localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
[gnulib.git] / ChangeLog
blob3eab13d2280bdea659ad901a45941d20fff45c9b
1 2021-01-07  Bruno Haible  <bruno@clisp.org>
3         localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
4         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
5         LOCALENAME_ENHANCE_LOCALE_FUNCS.
6         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE):
7         Set gt_working_uselocale.
8         (gt_INTL_THREAD_LOCALE_NAME): Set gt_fake_locales, gt_good_uselocale,
9         gt_localename_enhances_locale_funcs, LOCALENAME_ENHANCE_LOCALE_FUNCS.
10         Define HAVE_GOOD_USELOCALE, LOCALENAME_ENHANCE_LOCALE_FUNCS.
11         * m4/localename.m4 (gl_LOCALENAME): Test
12         gt_localename_enhances_locale_funcs instead of gt_nameless_locales.
13         * modules/locale (Makefile.am): Substitute
14         LOCALENAME_ENHANCE_LOCALE_FUNCS.
15         * lib/locale.in.h (newlocale, duplocale, freelocale): Don't override if
16         module 'localename' is in use but LOCALENAME_ENHANCE_LOCALE_FUNCS is 0.
17         * lib/localename.c (HAVE_GOOD_USELOCALE): Don't define here.
18         (get_locale_t_name, newlocale, duplocale, freelocale): Define if
19         LOCALENAME_ENHANCE_LOCALE_FUNCS.
21 2021-01-06  Bruno Haible  <bruno@clisp.org>
23         logb: Fix test failure on glibc/powerpc.
24         * doc/posix-functions/logb.texi: Update platform info.
25         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Test against bug with negative
26         subnormal numbers.
28 2021-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30         libc-config: simplify clang __has_* macros
31         cdefs.h sometimes used names like __glibc_clang_has_attribute and
32         sometimes __glibc_has_attribute.  There is no need in glibc or
33         Gnulib to distinguish clang from other compilers here, so be
34         consistent and use the simpler names.
35         * lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
36         Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
37         All uses changed.
38         (__glibc_clang_has_attribute): Remove. All uses replaced
39         by __glibc_has_attribute.
40         * lib/libc-config.h [!__glibc_likely]: Undef them here too.
41         This fixes a problem where __glibc_has_attribute was not undeffed.
43 2021-01-06  Bruno Haible  <bruno@clisp.org>
45         flock: Update documentation.
46         * doc/glibc-functions/flock.texi: Document what to expect on AIX and
47         Solaris.
49 2021-01-06  Bruno Haible  <bruno@clisp.org>
51         ilogbl: Fix compilation error with xlclang on AIX 7.2.
52         * lib/math.in.h (ilogbl): Undefine macro before declaration.
54 2021-01-06  Bruno Haible  <bruno@clisp.org>
56         ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
57         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test also some denormalized
58         argument.
59         * doc/posix-functions/ilogbl.texi: Mention the AIX bug.
61 2021-01-06  Bruno Haible  <bruno@clisp.org>
63         ilogb: Fix test failures on AIX 7.1 in 64-bit mode.
64         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Test also some denormalized
65         argument.
66         * doc/posix-functions/ilogb.texi: Mention the AIX bug.
68 2021-01-05  Bruno Haible  <bruno@clisp.org>
70         fclose: Fix test failure on AIX 7.2.
71         * m4/fclose.m4 (gl_FUNC_FCLOSE_STDIN): New macro.
72         (gl_FUNC_FCLOSE): Invoke it. Set REPLACE_FCLOSE accordingly.
73         * doc/posix-functions/fclose.texi: Update platform information.
74         * doc/posix-functions/fflush.texi: Likewise.
76 2021-01-05  Bruno Haible  <bruno@clisp.org>
78         pipe-filter-gi: Fix test failure on AIX 7.2.
79         * lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.
81 2021-01-05  Bruno Haible  <bruno@clisp.org>
83         utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
84         * lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
85         times differ by less than 0.01 seconds.
86         * tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
87         flag.
89 2021-01-05  Bruno Haible  <bruno@clisp.org>
91         utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
92         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
93         test for trailing slash handling. Improve cross-compilation guesses.
94         Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
95         * lib/utimensat.c (rpl_utimensat): Add alternative implementation when
96         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
97         * lib/utimens.c: Use the overridden utimensat when
98         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
99         * doc/posix-functions/utimensat.texi: Mention the AIX bug.
101 2021-01-05  Bruno Haible  <bruno@clisp.org>
103         ptsname_r, ptsname: Avoid test failures on AIX 7.2.
104         * tests/test-ptsname_r.c (main): On AIX, set a 20-seconds timer.
105         * tests/test-ptsname.c (main): Likewise. On AIX, open a pty through
106         /dev/ptc and don't test the BSD ptys.
108 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110         libc-config: merge from glibc
111         Use a better way of keeping glibc <sys/cdefs.h> and gnulib
112         lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms
113         where <sys/cdefs.h> does not work well enough for Gnulib.
114         * lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than
115         _GL_DEFS_H as an include guard.
116         (__THROW, __THROWNL, __NTH, __NTHNL):
117         Define to noexcept for C++11 and later.
118         (__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3.
119         (__warndecl): Remove.
120         (__attribute_copy__): New macro, for GCC 9 support.
121         (__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1)
122         (__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL)
123         (__REDIRECT_LDBL, __LDBL_REDIR_NTH):
124         Redirections for IEEE long double on powerpc64le.
125         (__LDBL_REDIR2_DECL): New macro.
126         (__attr_access): New macro, for GCC 10 bounds checking.
127         (__attribute_returns_twice__): New macro, for setjmp etc.
128         * lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is
129         undefined.  The following changes apply only if __glibc_likely
130         is not defined.
131         (__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__)
132         (__glibc_clang_has_attribute, __glibc_clang_has_extension)
133         (__glibc_objsize, __glibc_objsize0):
134         Undef these new (or newer) <cdefs.h> macros.
135         (__P, __PMT, __always_inline): Do not undef, since cdefs.h does that.
136         (__glibc_likely): Do not undef, since this is inside
137         ifndef __glibc_likely.
138         (__warndecl): Do not undef; no longer defined.
140 2021-01-05  Jim Meyering  <meyering@fb.com>
142         maintainer-makefile: correct preceding change
143         * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
145 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
147         maint: note syncs to glibc
148         * config/srclist.txt: filename.h, idx.h, scratch_buffer.h and
149         scratch_buffer_dupfree.c are now identical to glibc.  Add
150         commentary about some other syncs we’d like.
151         * modules/filename, modules/idx (Maintainer): Add glibc.
153 2021-01-05  Bruno Haible  <bruno@clisp.org>
155         truncate: Work around trailing slash bug in truncate() on AIX 7.2.
156         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate
157         rejects trailing slashes. Set REPLACE_TRUNCATE and define
158         TRUNCATE_TRAILING_SLASH_BUG if not.
159         * lib/truncate.c (orig_truncate): New function.
160         (truncate): Add alternative implementation when
161         TRUNCATE_TRAILING_SLASH_BUG is defined.
162         * modules/truncate (Depends-on): Add sys_stat, stat.
164 2021-01-05  Bruno Haible  <bruno@clisp.org>
166         mkfifoat: Fix cross-compilation guess (regression from 2021-01-04).
167         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Fix copy-and-paste mistake.
169 2021-01-05  Bruno Haible  <bruno@clisp.org>
171         ffsll: Override completely broken implementation on AIX in 32-bit mode.
172         * m4/ffsll.m4 (gl_FUNC_FFSLL): Test whether ffsll minimally works. If
173         not, set REPLACE_FFSLL.
174         * lib/string.in.h (ffsll): Consider REPLACE_FFSLL.
175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
176         REPLACE_FFSLL.
177         * modules/string (Makefile.am): Substitute REPLACE_FFSLL.
178         * modules/ffsll (Depends-on, configure.ac): Consider REPLACE_FFSLL.
179         * doc/glibc-functions/ffsll.texi: Mention the AIX 7.2 bug.
181 2021-01-04  Bruno Haible  <bruno@clisp.org>
183         symlinkat: Fix trailing slash handling.
184         * lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
185         trailing slash handling.
186         * modules/symlinkat (Depends-on): Update conditions.
188 2021-01-04  Bruno Haible  <bruno@clisp.org>
190         mkfifoat: Update module description.
191         * modules/mkfifoat (Depends-on): Update conditions after last commits.
193 2021-01-04  Bruno Haible  <bruno@clisp.org>
195         link: Improve trailing slash handling on native Windows.
196         * lib/link.c (link): If stat() fails, provide a better errno.
198 2021-01-04  Bruno Haible  <bruno@clisp.org>
200         mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
201         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
202         * lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
203         * lib/mknodat.c: Add an overriding implementation of mknodat().
204         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
205         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
206         * modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
207         * doc/posix-functions/mknodat.texi: Mention the AIX bug.
209         mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
210         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
211         trailing slashes. Set REPLACE_MKFIFOAT if not.
212         * lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
213         * lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
215         REPLACE_MKFIFOAT.
216         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
217         * modules/mkfifoat (Depends-on): Add fstatat.
218         (configure.ac): Consider REPLACE_MKFIFOAT.
219         * doc/posix-functions/mkfifoat.texi: Mention the AIX bug.
221 2021-01-04  Bruno Haible  <bruno@clisp.org>
223         libc-config: Avoid overriding the headers from an installed newer glibc.
224         Reported by Paul E Murphy <murphyp@linux.ibm.com> in
225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
226         * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
227         * lib/libc-config.h: Update accordingly.
229 2021-01-04  Simon Josefsson  <simon@josefsson.org>
231         maintainer-makefile: Invoke syntax-checks regardless of locale.
232         * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
233         environment because [a-z] may not include 'w' in all locales.
235 2021-01-04  Bruno Haible  <bruno@clisp.org>
237         nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
238         Reported by Mike Gran <spk121@yahoo.com> in
239         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.
240         * lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
241         * lib/time_rz.c: Likewise.
242         * lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
243         HAVE_TM_ZONE.
244         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.
246 2021-01-04  Bruno Haible  <bruno@clisp.org>
248         expm1f-ieee: Work around AIX 7.2 bug.
249         * m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
250         module 'expm1f-ieee' is in use, check whether expm1f works according to
251         IEEE.
252         * m4/expm1f-ieee.m4: New file.
253         * modules/expm1f-ieee (Files): Add it.
254         (Depends-on): Update conditions.
255         (configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
256         * doc/posix-functions/expm1f.texi: Mention the AIX bug.
258 2021-01-04  Bruno Haible  <bruno@clisp.org>
260         ffsl, ffsll: Work around AIX 7.2 problem.
261         * lib/string.in.h: On AIX, include <strings.h> for the declarations of
262         ffsl and ffsll.
263         * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
264         * doc/glibc-functions/ffsll.texi: Likewise.
266 2021-01-04  Bruno Haible  <bruno@clisp.org>
268         ssfmalloc: Fix includes.
269         * lib/ssfmalloc.h: Include <strings.h>, for ffs().
270         * tests/test-ssfmalloc.c: Include <string.h>, for memset().
272 2021-01-03  Bruno Haible  <bruno@clisp.org>
274         quotearg tests: Avoid test failures on Solaris 11.3.
275         * tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
276         'cp -a'.
278 2021-01-03  Bruno Haible  <bruno@clisp.org>
280         tests: Fix link errors on Solaris, when libunistring-optional is in use.
281         * modules/wcwidth (Link): New section.
282         * modules/wcswidth (Link): New section.
283         * modules/mbchar (Link): New section.
284         * modules/mbfile (Link): Link against libunistring.
285         * modules/mbiter (Link): Likewise.
286         * modules/mbuiter (Link): Likewise.
287         * modules/mbmemcasecmp (Link): Likewise.
288         * modules/mbscasecmp (Link): Likewise.
289         * modules/mbscasestr (Link): Likewise.
290         * modules/mbschr (Link): Likewise.
291         * modules/mbscspn (Link): Likewise.
292         * modules/mbslen (Link): Likewise.
293         * modules/mbsncasecmp (Link): Likewise.
294         * modules/mbsnlen (Link): Likewise.
295         * modules/mbspbrk (Link): Likewise.
296         * modules/mbspcasecmp (Link): Likewise.
297         * modules/mbsrchr (Link): Likewise.
298         * modules/mbssep (Link): Likewise.
299         * modules/mbsspn (Link): Likewise.
300         * modules/mbsstr (Link): Likewise.
301         * modules/mbstok_r (Link): Likewise.
302         * modules/mbswidth (Link): Likewise.
303         * modules/exclude (Link): Likewise.
304         * modules/propername (Link): Likewise.
305         * modules/regex-quote (Link): Likewise.
306         * modules/trim (Link): Likewise.
307         * modules/mbmemcasecmp-tests (Makefile.am): Link the test program
308         against libunistring.
309         * modules/mbscasecmp-tests (Makefile.am): Likewise.
310         * modules/mbscasestr-tests (Makefile.am): Likewise.
311         * modules/mbschr-tests (Makefile.am): Likewise.
312         * modules/mbscspn-tests (Makefile.am): Likewise.
313         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
314         * modules/mbspbrk-tests (Makefile.am): Likewise.
315         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
316         * modules/mbsrchr-tests (Makefile.am): Likewise.
317         * modules/mbsspn-tests (Makefile.am): Likewise.
318         * modules/mbsstr-tests (Makefile.am): Likewise.
319         * modules/exclude-tests (Makefile.am): Likewise.
320         * modules/regex-quote-tests (Makefile.am): Likewise.
322 2021-01-03  Bruno Haible  <bruno@clisp.org>
324         c32ispunct tests: Avoid test failures on FreeBSD.
325         * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
326         FreeBSD 12.1.1.
328 2021-01-04  Simon Josefsson  <simon@josefsson.org>
330         doc: Repeat warning that --with-tests cannot be used twice.
331         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
332         --with-tests limitation.
334 2021-01-03  Bruno Haible  <bruno@clisp.org>
336         iconv, iconv_open: Improve documentation.
337         Reported by Noah Misch <noah@leadboat.com> in
338         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
339         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
340         problems handled by Gnulib".
341         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
342         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
344 2021-01-03  Bruno Haible  <bruno@clisp.org>
346         iconv-h: Fix module description.
347         * modules/iconv-h (Include): Check HAVE_ICONV_H.
349 2021-01-03  Noah Misch  <noah@leadboat.com>
351         iconv_open: Fix module description.
352         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
354 2021-01-03  Bruno Haible  <bruno@clisp.org>
356         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
357         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
358         stricter: Add tests for offsetof-based alignof.
359         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
360         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
362 2021-01-03  Bruno Haible  <bruno@clisp.org>
364         free-posix: Work around GCC mis-optimization bug.
365         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
366         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
368 2021-01-02  Bruno Haible  <bruno@clisp.org>
370         valgrind-tests: Disable valgrind if it would cause all tests to fail.
371         Suggested by Simon Josefsson <simon@josefsson.org> in
372         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
373         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
374         executable produced by the current compiler. Set VALGRIND to empty if it
375         does not work. Don't set VALGRIND to empty if it merely does not accept
376         the --error-exitcode=1 --leak-check=full options.
378 2021-01-02  Bruno Haible  <bruno@clisp.org>
380         valgrind-tests: Really enable the valgrind options test.
381         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
382         valgrind options --error-exitcode=1 --leak-check=full always work.
384 2021-01-02  Bruno Haible  <bruno@clisp.org>
386         utimensat: Fix test failures on macOS 10.13.
387         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
388         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
389         utimensat, recognize a filename ending in a slash that does not point
390         to a directory.
392 2021-01-02  Bruno Haible  <bruno@clisp.org>
394         utimens: Fix test failure on macOS 10.13.
395         * lib/utimens.c: Include <string.h>.
397         utimens: Fix test failure on macOS 10.13.
398         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
399         filename ending in a slash that does not point to a directory.
401 2021-01-02  Bruno Haible  <bruno@clisp.org>
403         utimens: Avoid test failures on macOS 10.13.
404         Reported by Martin Storsjö <martin@martin.st> in
405         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
406         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
407         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
408         only the atime is requested to change.
409         * tests/test-futimens.h (test_futimens): Likewise.
410         * tests/test-lutimens.h (test_lutimens): Likewise.
412 2021-01-02  Bruno Haible  <bruno@clisp.org>
414         renameatu: Fix test failures on macOS.
415         Reported by Martin Storsjö <martin@martin.st> in
416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
417         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
418         Instead, treat it as a variant of renameat, with all possible bugs that
419         renameat might have.
421 2021-01-02  Bruno Haible  <bruno@clisp.org>
423         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
424         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
425         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
426         * tests/test-getgroups.c: Silence gcc warnings of type
427         -Wstringop-overflow.
429 2021-01-02  Bruno Haible  <bruno@clisp.org>
431         timespec_get: Add tests.
432         * tests/test-timespec_get.c: New file.
433         * modules/timespec_get-tests: New file.
435         timespec_get: New module.
436         * lib/time.in.h (timespec_get): New declaration.
437         * lib/timespec_get.c: New file.
438         * m4/timespec_get.m4: New file.
439         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
440         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
441         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
442         HAVE_TIMESPEC_GET.
443         * modules/timespec_get: New file.
444         * tests/test-time-c++.cc (timespec_get): Check signature.
445         * doc/glibc-functions/timespec_get.texi: Mention the new module.
447 2021-01-01  Bruno Haible  <bruno@clisp.org>
449         time: Define TIME_UTC.
450         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
451         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
452         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
453         * tests/test-time.c: Check that TIME_UTC is defined and a positive
454         integer.
455         * doc/posix-headers/time.texi: Mention TIME_UTC.
457 2021-01-01  Bruno Haible  <bruno@clisp.org>
459         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
460         * modules/stddef (Depends-on): Add extensions.
462 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
464         canonicalize: remove NARROW_ADDRESSES optimization
465         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
466         Remove, and remove all uses, as the optimization is arguably not
467         worth the extra complexity.  Suggested by Adhemerval Zanella in:
468         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
470 2021-01-01  Bruno Haible  <bruno@clisp.org>
472         stddef: Try harder to get max_align_t defined on OpenBSD.
473         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
475 2021-01-01  Bruno Haible  <bruno@clisp.org>
477         aligned_alloc: Fix test failure on OpenBSD 6.8.
478         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
479         _ISOC11_SOURCE.
480         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
481         comment.
483 2021-01-01  Bruno Haible  <bruno@clisp.org>
485         posixtm tests: Disable part of the test on plaforms where it fails.
486         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
488 2021-01-01  Bruno Haible  <bruno@clisp.org>
490         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
491         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
492         Solaris 11 OmniOS.
493         * tests/test-c32isprint.c (main): Likewise.
494         * tests/test-c32ispunct.c (main): Likewise.
496 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
498         libc-config: port to Sun C 5.9
499         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
500         definition.  It’s not needed for Gnulib and elicits a diagnostic
501         from Sun C 5.9 Patch 124867-12 2009/11/22.
503 2021-01-01  Bruno Haible  <bruno@clisp.org>
505         quotearg tests: Avoid test failures on Solaris 11.
506         * modules/quotearg-tests (Makefile.am): Set host_os in
507         TESTS_ENVIRONMENT.
508         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
509         directory that contains the .mo file.
511 2021-01-01  Bruno Haible  <bruno@clisp.org>
513         maint: Update copyright notices in --version output.
514         List the most recent year in which changes were made, per
515         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
516         * build-aux/declared.sh (func_version): Say 2019.
517         * build-aux/libtool-next-version (func_version): Likewise.
518         * build-aux/run-test (func_version): Likewise.
519         * check-module (COPYRIGHT_NOTICE): Say 2012.
520         * lib/git-merge-changelog.c (main): Say 2020.
522 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
524         filename: change filename.h comment to LGPLv2.1+
525         * lib/filename.h: Change license notice to match what should be in
526         glibc, and what modules/filename specifies.  This is to simplify
527         syncing with glibc.
529         doc: mention year-0 bugs in Solaris etc.
530         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
531         * doc/posix-functions/localtime.texi:
532         * doc/posix-functions/localtime_r.texi:
533         * doc/posix-functions/mktime.texi:
534         Mention year-0 bugs in localtime etc.
536 2020-12-31  Bruno Haible  <bruno@clisp.org>
538         ptsname_r: Fix test failure on Solaris.
539         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
540         the device.
542 2020-12-31  Bruno Haible  <bruno@clisp.org>
544         posixtm tests: Disable part of the test on plaforms where it fails.
545         * tests/test-posixtm.c (T): Disable two tests on Solaris.
547 2020-12-31  Bruno Haible  <bruno@clisp.org>
549         poll tests: Avoid test failure on AIX.
550         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
551         shutdown" test on AIX.
552         * doc/posix-functions/poll.texi: Mention the AIX bug.
554 2020-12-31  Bruno Haible  <bruno@clisp.org>
556         poll tests: Avoid test failure on BSD and Solaris systems.
557         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
558         "expecting POLLHUP after shutdown" test on all platforms except Linux.
560 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
562         fnmatch: merge from glibc + proposal
563         This merges the change proposed by Adhemerval Zanella in:
564         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
565         which fixes a Gnulib bug that led to a failed assert.
566         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
567         check that it stays nonnegative.  Use __flexarr instead of
568         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
569         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
571         glob: merge proposed glibc changes
572         This merges the change proposed by Adhemerval Zanella in:
573         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
574         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
576 2020-12-31  Bruno Haible  <bruno@clisp.org>
578         memalign: Work around Solaris bug.
579         * lib/memalign.c: New file.
580         * m4/memalign.m4: New file.
581         * modules/memalign (Files): Add them.
582         (Depends-on): Add malloc-h.
583         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
584         memalign.c. Set module indicator.
585         (Include): Include <malloc.h> unconditionally.
586         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
588         malloc-h: Add tests.
589         * tests/test-malloc-h.c: New file.
590         * modules/malloc-h-tests: New file.
591         * tests/test-malloc-h-c++.cc: New file.
592         * modules/malloc-h-c++-tests: New file.
594         malloc-h: New module.
595         * lib/malloc.in.h: New file.
596         * m4/malloc_h.m4: New file.
597         * modules/malloc-h: New file.
598         * doc/glibc-headers/malloc.texi: New file.
599         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
601 2020-12-31  Bruno Haible  <bruno@clisp.org>
603         unistd: Fix portability warnings.
604         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
606 2020-12-31  Bruno Haible  <bruno@clisp.org>
608         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
609         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
610         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
611         * lib/utime.c: Include <errno.h>.
613 2020-12-30  Karl Berry  <karl@freefriends.org>
615         config: srclistvars doc.
616         * config/srclistvars.sh: doc a couple of unusual source repo urls.
618 2020-12-30  Bruno Haible  <bruno@clisp.org>
620         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
621         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
622         with no errno.
623         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
624         EINVAL.
626 2020-12-29  Jim Meyering  <meyering@fb.com>
628         regex-tests: tweak to avoid a clang-10 warning
629         * tests/test-regex.c: Compare with explicit zero, rather than
630         as boolean to avoid this from clang-10:
631         test-regex.c:315:9: error: converting the result of '<<' to a \
632           boolean always evaluates to true \
633           [-Werror,-Wtautological-constant-compare]
634         if (! REG_STARTEND)
636         hash: add casts-to-float to avoid clang-10 warnings
637         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
638         to avoid this warning from clang-10 (for use in grep):
639           hash.c:501:11: error: implicit conversion from 'unsigned long' \
640             to 'float' changes value from 18446744073709551615 to \
641             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
642           if (SIZE_MAX <= new_candidate)
643         (hash_insert_if_absent): Likewise.
645 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
647         canonicalize: fix size overflow treatment
648         This also has some minor cleanups.
649         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
650         stddef.h, since the code no longer refers directly to ptrdiff_t.
651         * lib/canonicalize-lgpl.c (realpath_stk):
652         * lib/canonicalize.c (canonicalize_filename_mode_stk):
653         Treat size overflow like other out-of-memory.
654         * lib/canonicalize.c: No need to include stdlib.h, since
655         the code no longer refers to stdlib.h functions (other
656         than those that canonicalize.h must declare).
657         * lib/canonicalize.c (canonicalize_filename_mode_stk):
658         Do not bother terminating the string result on error.
660 2020-12-29  Bruno Haible  <bruno@clisp.org>
662         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
663         * lib/gl_list.hh: Include <stdlib.h>.
664         * lib/gl_map.hh: Likewise.
665         * lib/gl_omap.hh: Likewise.
666         * lib/gl_set.hh: Likewise.
667         * lib/gl_oset.hh: Likewise.
669 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
671         canonicalize: fix ptrdiff_t overflow bug
672         Problem reported by Adhemerval Zanella in:
673         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
674         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
675         Include intprops.h.
676         (NARROW_ADDRESSES): New constant.
677         * lib/canonicalize-lgpl.c (realpath_stk):m
678         * lib/canonicalize.c (canonicalize_filename_mode_stk):
679         Work even if strlen (END) does not fit in idx_t, or if adding
680         N to it overflows.
681         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
682         Add intprops.
684 2020-12-28  Bruno Haible  <bruno@clisp.org>
686         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
687         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
688         acl_is_expected_elfclass, use 'expr', not 'test'.
690 2020-12-28  Bruno Haible  <bruno@clisp.org>
692         ptsname_r: Fix a compiler warning on Solaris.
693         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
695 2020-12-28  Bruno Haible  <bruno@clisp.org>
697         gnulib-tool: Fix logic whether to add a dummy.c.
698         * gnulib-tool (func_remove_if_blocks): New function.
699         (func_modules_add_dummy): Use it to eliminate all conditional statements
700         from the automake snippet.
702 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
704         faccessat: revert recent EOVERFLOW change
705         I misunderstood the glibc source code.  Deduced from
706         Adhemerval Zanella’s proposed glibc patch in:
707         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
708         * doc/posix-functions/faccessat.texi: It is not a problem.
709         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
710         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
711         * lib/faccessat.c: Revert to simpler version now that
712         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
713         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
714         Remove.  All uses removed.
715         * modules/canonicalize, modules/canonicalize-lgpl (Files):
716         Remove m4/faccessat.m4.
718         canonicalize-lgpl: accommodate picky cpp
719         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
720         case preprocessor is picky.  Reported by Adhemerval Zanella in:
721         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
723         canonicalize: simplify via scratch_buffer_dupfree
724         * config/srclist.txt: Adjust accordingly.
725         * lib/canonicalize-lgpl.c (realpath_stk):
726         * lib/canonicalize.c (canonicalize_filename_mode_stk):
727         Simplify by using scratch_buffer_dupfree.
728         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
729         * lib/malloc/scratch_buffer_dupfree.c: New file.
730         * modules/scratch_buffer (Files, Depends-on):
731         Add malloc/scratch_buffer_dupfree.c.
733 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
735         regex: remove glibc21.m4
736         It doesn’t seem to be needed any more; at least, I couldn’t
737         reproduce the circa-2013 problem.  Perhaps the recent
738         --conditional-dependencies fixes have removed the need for it.
739         * m4/glibc21.m4: Remove.  All uses removed.
741 2020-12-26  Bruno Haible  <bruno@clisp.org>
743         gnulib-tool: Make --conditional-dependencies work with --with-tests.
744         Reported by Paul Eggert in
745         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
746         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
747         dependencies like func_emit_lib_Makefile_am.
749 2020-12-26  Bruno Haible  <bruno@clisp.org>
751         execvpe: Make dependency to stdbool explicit.
752         * lib/execvpe.c: Include <stdbool.h>.
753         * modules/execvpe (Depends-on): Add stdbool.
755         execlp: Add tests.
756         * tests/test-execlp-main.c: New file.
757         * tests/test-execlp.sh: New file.
758         * modules/execlp-tests: New file.
760         execlp: New module.
761         * lib/execlp.c: New file.
762         * m4/execlp.m4: New file.
763         * modules/execlp: New file.
764         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
765         new module.
767         execle: Add tests.
768         * tests/test-execle-main.c: New file.
769         * tests/test-execle.sh: New file.
770         * modules/execle-tests: New file.
772         execle: New module.
773         * lib/execle.c: New file.
774         * m4/execle.m4: New file.
775         * modules/execle: New file.
776         * doc/posix-functions/execle.texi: Mention more Windows problems and the
777         new module.
779         execl: Add tests.
780         * tests/test-execl-main.c: New file.
781         * tests/test-execl.sh: New file.
782         * modules/execl-tests: New file.
784         execl: New module.
785         * lib/execl.c: New file.
786         * m4/execl.m4: New file.
787         * modules/execl: New file.
788         * doc/posix-functions/execl.texi: Mention more Windows problems and the
789         new module.
791         execv: Add tests.
792         * tests/test-execv-main.c: New file.
793         * tests/test-execv.sh: New file.
794         * modules/execv-tests: New file.
796         execv: New module.
797         * lib/execv.c: New file.
798         * m4/execv.m4: New file.
799         * modules/execv: New file.
800         * doc/posix-functions/execv.texi: Mention more Windows problems and the
801         new module.
803         execvp: Add tests.
804         * tests/test-execvp-main.c: New file.
805         * tests/test-execvp.sh: New file.
806         * modules/execvp-tests: New file.
808         execvp: New module.
809         * lib/execvp.c: New file.
810         * m4/execvp.m4: New file.
811         * modules/execvp: New file.
812         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
813         new module.
815         execvpe: Add tests.
816         * tests/test-execvpe-main.c: New file.
817         * tests/test-execvpe.sh: New file.
818         * modules/execvpe-tests: New file.
820         execvpe: New module.
821         * lib/execvpe.c: New file.
822         * m4/execvpe.m4: New file.
823         * modules/execvpe: New file.
824         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
825         new module.
827         execve: Add tests.
828         * tests/test-exec-child.c: New file.
829         * tests/test-execve-main.c: New file.
830         * tests/test-execve.sh: New file.
831         * modules/execve-tests: New file.
833         execve: New module.
834         * lib/execve.c: New file.
835         * m4/execve.m4: New file.
836         * modules/execve: New file.
837         * doc/posix-functions/execve.texi: Mention more Windows problems and the
838         new module.
840         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
841         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
842         execvpe): Add declarations for the new modules.
843         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
844         execv, execve, execvp, execvpe are declared.
845         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
846         REPLACE_EXEC*.
847         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
848         REPLACE_EXEC*.
849         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
850         execlp, execv, execve, execvp, execvpe.
852 2020-12-26  Bruno Haible  <bruno@clisp.org>
854         stack: Fix typo in comments.
855         * lib/stack.h: Fix typo in comments.
857 2020-12-26  Bruno Haible  <bruno@clisp.org>
859         bitset: Fix conflict with 'free-posix' module.
860         * lib/bitset/base.h: Include <stdlib.h>.
862 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
864         idx: change idx.h comment to LGPLv2.1+
865         * lib/idx.h: Change license notice to match what should be in glibc.
866         gnulib-tool will change it as appropriate anyway, so this is just
867         to simplify syncing with glibc.
869 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
871         MODULES.html.sh: Update after 2020-12-19 change.
872         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
874 2020-12-25  Bruno Haible  <bruno@clisp.org>
876         Make it possible to turn off the mkdir override on Windows.
877         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
878         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
880         GNULIB_MDA_MKDIR.
881         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
882         GNULIB_MDA_MKDIR.
883         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
884         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
886         Make it possible to turn off each of the Windows oldnames workarounds.
887         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
888         oldnames workarounds through a GNULIB_MDA_<func> symbol.
889         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
890         * lib/search.in.h (lfind, lsearch): Likewise.
891         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
892         Likewise.
893         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
894         * lib/string.in.h (memccpy, strdup): Likewise.
895         * lib/sys_stat.in.h (chmod, umask): Likewise.
896         * lib/time.in.h (tzset): Likewise.
897         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
898         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
899         read, rmdir, swab, unlink, write): Likewise.
900         * lib/utime.in.h (utime): Likewise.
901         * lib/wchar.in.h (wcsdup): Likewise.
902         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
903         GNULIB_MDA_<func> symbols.
904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
905         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
909         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
910         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
912         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
913         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
914         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
915         symbols.
916         * modules/math (Makefile.am): Likewise.
917         * modules/search (Makefile.am): Likewise.
918         * modules/stdio (Makefile.am): Likewise.
919         * modules/stdlib (Makefile.am): Likewise.
920         * modules/string (Makefile.am): Likewise.
921         * modules/sys_stat (Makefile.am): Likewise.
922         * modules/time (Makefile.am): Likewise.
923         * modules/unistd (Makefile.am): Likewise.
924         * modules/utime-h (Makefile.am): Likewise.
925         * modules/wchar (Makefile.am): Likewise.
927 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
929         canonicalize, canonicalize-lgpl: remove lint
930         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
931         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
932         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
933         Sort shared include directives, for consistency.
934         (IF_LINT): New macro.
935         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
936         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
937         New macros.
938         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
939         * lib/canonicalize.c (canonicalize_filename_mode_stk):
940         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
942 2020-12-24  Bruno Haible  <bruno@clisp.org>
944         spawn-pipe: Use posix_spawn by default on native Windows.
945         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
946         (create_pipe): Use it to decide among the two possible implementations.
947         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
949 2020-12-24  Bruno Haible  <bruno@clisp.org>
951         unistd-safer: Implement pipe_safer on native Windows.
952         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
953         * modules/unistd-safer (Depends-on): Add pipe-posix.
955 2020-12-24  Bruno Haible  <bruno@clisp.org>
957         execute: Use posix_spawn by default on native Windows.
958         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
959         (execute): Use it to decide among the two possible implementations.
961 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
963         canonicalize-lgpl: merge proposed libc changes
964         This merges the changes proposed for glibc in:
965         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
966         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
967         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
968         unconditionally.
969         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
970         (ISSLASH) [_LIBC]: Remove.
972 2020-12-24  Bruno Haible  <bruno@clisp.org>
974         posix_spawn-internal: Implement for native Windows.
975         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
976         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
977         do_dup2, do_close): New functions.
978         (__spawni): Implement on native Windows.
979         * modules/posix_spawn-internal (Depends-on): Add filename,
980         concat-filename, findprog-in, malloca, windows-spawn.
981         * doc/posix-functions/posix_spawn.texi: Update.
982         * doc/posix-functions/posix_spawnp.texi: Likewise.
984 2020-12-24  Bruno Haible  <bruno@clisp.org>
986         windows-spawn: Export another auxiliary function.
987         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
988         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
989         extracted from spawnpvech.
990         (spawnpvech): Use it.
992 2020-12-24  Bruno Haible  <bruno@clisp.org>
994         windows-spawn: Export some more auxiliary functions.
995         * lib/windows-spawn.h: Include <stdbool.h>.
996         (struct inheritable_handles): New type.
997         (init_inheritable_handles, compose_handles_block,
998         free_inheritable_handles): New declarations.
999         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
1000         New functions, based on spawnvech.
1001         (free_inheritable_handles): New function.
1002         (spawnpvech): Use them.
1004 2020-12-24  Bruno Haible  <bruno@clisp.org>
1006         windows-spawn: Export another auxiliary function.
1007         * lib/windows-spawn.h (compose_envblock): New declaration.
1008         * lib/windows-spawn.c (compose_envblock): New function, extracted from
1009         spawnpvech.
1010         (spawnpvech): Use it.
1012 2020-12-24  Bruno Haible  <bruno@clisp.org>
1014         windows-spawn: Export an auxiliary function.
1015         * lib/windows-spawn.h (compose_command): New declaration.
1016         * lib/windows-spawn.c (compose_command): New function, extracted from
1017         spawnpvech.
1018         (spawnpvech): Use it.
1020 2020-12-24  Bruno Haible  <bruno@clisp.org>
1022         posix_spawn* tests: Add support for native Windows.
1023         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
1024         like Cygwin.
1025         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
1026         SIGHUP and SIGPIPE. On native Windows, don't call
1027         posix_spawnattr_setsigmask.
1028         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
1029         * tests/test-posix_spawn-fchdir.c (main): Likewise.
1030         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
1031         output from Cygwin's 'pwd' program.
1032         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
1033         executable-shell-script part of the test.
1034         * tests/test-posix_spawnp-script.c (main): Likewise.
1035         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
1036         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1037         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1038         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
1039         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1040         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1041         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
1042         test the POSIX_SPAWN_PORTED conditional.
1043         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
1044         Define the POSIX_SPAWN_PORTED conditional here.
1046 2020-12-24  Bruno Haible  <bruno@clisp.org>
1048         sh-filename: Add support for native Windows.
1049         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
1051 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1053         careadlinkat: improve warning line number
1054         This propagates an idea first used in canonicalize-lgpl.
1055         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
1056         New macro.
1057         (careadlinkat): Use it.
1059         linkat: use eloop-threshold
1060         * lib/linkat.c: Include eloop-threshold.h.
1061         Do not include sys/param.h.
1062         (MAXSYMLINKS): Remove.
1063         (link_follow, linkat_follow): Use __eloop_threshold instead
1064         of MAXSYMLINKS.
1065         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
1066         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
1068         canonicalize-lgpl: use eloop-threshold
1069         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
1070         (MAXSYMLINKS, __eloop_threshold): Remove.
1071         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
1073         eloop-threshold: new module
1074         * config/srclist.txt: Add a comment about it.
1075         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
1077         canonicalize: prefer faccessat to stat
1078         A proper faccessat doesn't have the EOVERFLOW problem, and can be
1079         more efficient as it needn't gather data from the filesystem to
1080         fill in struct stat.  So use stat only if faccessat is absent,
1081         or when checking for symlink loops in canonicalize.c.
1082         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1083         Include fcntl.h, for AT_EACCESS.
1084         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
1085         (file_accessible): New function, based on faccessat but with
1086         a fallback to stat and with an EOVERFLOW workaround.
1087         (dir_check): Use it.
1088         (dir_suffix): New static constant.
1089         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
1090         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
1091         (__faccessat) [!_LIBC]: Define.
1092         (realpath_stk): Use dir_suffix now.
1093         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1094         If logical, don't check each component's existence; just check
1095         at the end, as that's enough.
1096         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1097         (gl_CANONICALIZE_LGPL_SEPARATE):
1098         Require gl_FUNC_FACCESSAT_EOVERFLOW,
1099         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
1100         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
1101         as the code does not use HAVE_READLINK.
1102         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1103         Add m4/faccessat.m4, m4/lstat.m4.
1104         (Depends-on): Add fcntl-lh.
1106         faccessat: work around F_OK EOVERFLOW bug
1107         * doc/posix-functions/faccessat.texi: Mention the problem.
1108         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
1109         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
1110         for F_OK and EOVERFLOW, which means we can return 0.
1111         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
1112         (gl_FUNC_FACCESSAT): Use it.
1114         stat failing with EOVERFLOW implies existence
1115         * lib/euidaccess.c (euidaccess):
1116         * lib/file-has-acl.c (file_has_acl):
1117         * lib/link.c (link, rpl_link):
1118         * lib/mkdir.c (rpl_mkdir):
1119         * lib/mkfifo.c (rpl_mkfifo):
1120         * lib/mknod.c (rpl_mknod):
1121         * lib/ptsname_r.c (__ptsname_r):
1122         * lib/symlink.c (rpl_symlink):
1123         * lib/symlinkat.c (rpl_symlinkat):
1124         * lib/unlink.c (rpl_unlink):
1125         * lib/unlinkat.c (rpl_unlinkat):
1126         * lib/utime.c (utime):
1127         If stat fails with EOVERFLOW the file exists, so treat it that way
1128         in file-existence tests that do not need struct stat values.
1130         canonicalize-lgpl: remove freea macro
1131         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
1133         canonicalize, canonicalize-lgpl: fix symlink bug
1134         Problem reported by Adhemerval Zanella in:
1135         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
1136         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1137         (suffix_requires_dir_check, dir_check): New functions.
1138         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
1139         closer to the related GCC diagnostics.
1140         * lib/canonicalize-lgpl.c (realpath_stk):
1141         * lib/canonicalize.c (canonicalize_file_mode_stk):
1142         Use them to fix a bug with .../symlink-to-regular-file/ etc.
1143         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
1144         (realpath_stk): New function,
1145         with the contents of the old __realpath and a new scratch buffer arg.
1146         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
1147         (__realpath): Use it.
1148         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
1149         Add test cases for the bugs.
1151 2020-12-24  Bruno Haible  <bruno@clisp.org>
1153         execute: Treat signalled processes like wait-process does.
1154         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
1155         (execute): Recognize the case where the exit code indicates a signalled
1156         child process.
1157         * tests/test-execute-main.c (main): Update expected test result.
1158         * modules/execute (Depends-on): Add sys_wait.
1160 2020-12-24  Bruno Haible  <bruno@clisp.org>
1162         windows-spawn: Improve errno upon failure on native Windows.
1163         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
1164         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
1165         * tests/executable-script.sh: New file.
1166         * tests/test-posix_spawn-script.c (main): Also try executing
1167         executable-script.sh.
1168         * tests/test-posix_spawnp-script.c (main): Likewise.
1169         * tests/test-execute-script.c (main): Likewise.
1170         * tests/test-spawn-pipe-script.c (main): Likewise.
1171         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
1172         * modules/posix_spawnp-tests (Files): Likewise.
1173         * modules/execute-tests (Files): Likewise.
1174         * modules/spawn-pipe-tests (Files): Likewise.
1176 2020-12-24  Bruno Haible  <bruno@clisp.org>
1178         findprog-in: Improve errno upon failure on native Windows.
1179         * lib/findprog-in.c (find_in_given_path): If the file basename has no
1180         dot and the search with a suffix returned no result, do also a search
1181         without a suffix, and set errno = ENOEXEC if we find a file in this way.
1182         * tests/test-spawn-pipe-script.c (main): Update expected errno.
1184 2020-12-23  Bruno Haible  <bruno@clisp.org>
1186         posix_spawn, posix_spawnp: Fix execution of scripts.
1187         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
1188         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
1189         or posix_spawnp allows unsecure execution of scripts.
1190         * doc/posix-functions/posix_spawn.texi: Document the script execution
1191         problem.
1192         * doc/posix-functions/posix_spawnp.texi: Likewise.
1194 2020-12-23  Bruno Haible  <bruno@clisp.org>
1196         Add unit tests regarding execution of scripts.
1197         * tests/executable-script: New file.
1198         * tests/executable-shell-script: New file.
1199         * tests/test-posix_spawn-script.c: New file.
1200         * tests/test-posix_spawnp-script.c: New file.
1201         * tests/test-execute-script.c: New file.
1202         * tests/test-spawn-pipe-script.c: New file.
1203         * modules/posix_spawn-tests (Files): Add
1204         tests/test-posix_spawn-script.c, tests/executable-script,
1205         tests/executable-shell-script.
1206         (Makefile.am): Compile and run test-posix_spawn-script.
1207         * modules/posix_spawnp-tests (Files): Add
1208         tests/test-posix_spawnp-script.c, tests/executable-script,
1209         tests/executable-shell-script.
1210         (Makefile.am): Compile and run test-posix_spawnp-script.
1211         * modules/execute-tests (Files): Add tests/test-execute-script.c,
1212         tests/executable-script, tests/executable-shell-script.
1213         (Makefile.am): Compile and run test-execute-script.
1214         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
1215         tests/executable-script, tests/executable-shell-script.
1216         (Makefile.am): Compile and run test-spawn-pipe-script.
1218 2020-12-23  Bruno Haible  <bruno@clisp.org>
1220         Don't execute scripts without '#!' marker through /bin/sh.
1221         This reflects the change done in glibc through
1222         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
1223         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
1224         * lib/spawni.c (internal_function): Remove macro.
1225         (script_execute): Remove function.
1226         (__spawni): Don't invoke script_execute.
1227         * lib/execute.c (execute): Disable the ENOEXEC handling.
1228         * lib/spawn-pipe.c (create_pipe): Likewise.
1229         * NEWS: Mention the change.
1231 2020-12-23  Bruno Haible  <bruno@clisp.org>
1233         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
1234         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
1235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
1236         * lib/spawni.c (__spawni): Update function parameters.
1238 2020-12-23  Bruno Haible  <bruno@clisp.org>
1240         posix_spawn tests: Add two more tests.
1241         * tests/test-posix_spawn-inherit0.c: New file, based on
1242         tests/test-posix_spawn-open2.c.
1243         * tests/test-posix_spawn-inherit1.c: New file, based on
1244         tests/test-posix_spawn-open2.c.
1245         * modules/posix_spawn-tests (Files): Add them.
1246         (Depends-on): Add fflush.
1247         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
1248         test-posix_spawn-inherit1.
1250 2020-12-23  Bruno Haible  <bruno@clisp.org>
1252         posix_spawn tests: Add another test.
1253         * tests/test-posix_spawn-open2.c: New file, based on
1254         tests/test-posix_spawn-open1.c.
1255         * modules/posix_spawn-tests (Files): Add it.
1256         (Makefile.am): Compile and run test-posix_spawn-open1.
1258 2020-12-20  Bruno Haible  <bruno@clisp.org>
1260         Remove support for broken <wchar.h> in AIX 3.
1261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
1263 2020-12-20  Bruno Haible  <bruno@clisp.org>
1265         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
1266         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
1267         * lib/mbchar.h: Likewise.
1268         * lib/mbiter.h: Likewise.
1269         * lib/mbuiter.h: Likewise.
1270         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
1271         * lib/mbfile.h: Don't include <time.h>.
1272         * lib/mbswidth.h: Update comment.
1273         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
1274         <wchar.h>.
1275         * lib/wctype.in.h: Likewise.
1276         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
1277         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
1278         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
1279         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
1280         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
1281         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
1282         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
1283         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
1284         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
1285         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
1286         AC_FUNC_MBRTOWC): Likewise.
1287         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
1288         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
1289         Likewise.
1290         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
1291         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1292         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1293         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
1294         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
1295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1296         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
1297         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
1298         Likewise.
1299         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
1300         gl_WCSRTOMBS_NULL): Likewise.
1301         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1302         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1303         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1305         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1306         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
1307         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
1308         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
1309         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
1310         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
1312 2020-12-20  Bruno Haible  <bruno@clisp.org>
1314         isnanf: Fix autoconf test.
1315         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
1317 2020-12-20  Bruno Haible  <bruno@clisp.org>
1319         Remove some of the support for obsolete IRIX 4 and 5.
1320         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
1321         libsun.
1322         * tests/init.sh (setup_): Don't talk about IRIX 5.
1324 2020-12-20  Bruno Haible  <bruno@clisp.org>
1326         filemode: Remove Cray support.
1327         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1328         (filemodestring): Don't produce an 'M' type.
1329         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1330         * m4/st_dm_mode.m4: Remove file.
1331         * modules/filemode (Files): Remove it.
1333 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1335         free-posix: assume glibc 2.33 fixes this.
1336         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1337         Use compile-time test rather than guessing for cross-builds.
1339 2020-12-20  Bruno Haible  <bruno@clisp.org>
1341         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1342         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1344         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1346 2020-12-20  Bruno Haible  <bruno@clisp.org>
1348         float: Fix compilation error when gnulib's float.h exists twice.
1349         Reported by Santiago Vila <sanvila@unex.es>.
1350         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1352 2020-12-19  Bruno Haible  <bruno@clisp.org>
1354         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1355         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1356         Don't trust _POSIX_VERSION for this test.
1358 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1360         free-posix: port to GNU/Linux
1361         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1362         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1363         other GNU/Linux hosts.
1365 2020-12-19  Bruno Haible  <bruno@clisp.org>
1367         free-posix: Add tests.
1368         * tests/test-free.c: New file.
1369         * tests/macros.h (ASSERT_NO_STDIO,
1370         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1371         WRITE_TO_STDERR): New macros.
1372         * modules/free-posix-tests: New file.
1374 2020-12-18  Bruno Haible  <bruno@clisp.org>
1376         free-posix: Add C++ declaration test.
1377         * tests/test-stdlib-c++.cc (free): New declaration.
1379 2020-12-18  Bruno Haible  <bruno@clisp.org>
1381         free-posix: New module, renamed from 'free'.
1382         * modules/free-posix: Renamed from modules/free.
1383         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1385         not GNULIB_FREE.
1386         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1387         GNULIB_FREE.
1388         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1389         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1390         what it does.
1391         * NEWS: Mention that module 'free' no longer exists.
1392         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1393         * modules/canonicalize-lgpl (Depends-on): Likewise.
1395 2020-12-18  Bruno Haible  <bruno@clisp.org>
1397         free: Remove support for obsolete platforms.
1398         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1399         CANNOT_FREE_NULL.
1400         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1401         * modules/free (Description): Update.
1402         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1404 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1406         intprops: port to ICC 2021.1 Beta 20201112
1407         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1408         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1409         Add a clause for other compilers that claim to support
1410         __builtin_mul_overflow_p, since we might as well find out about
1411         slackers other than Clang and ICC.
1412         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1413         like older GCCs even when it claims to be a newer one.
1415 2020-12-18  Bruno Haible  <bruno@clisp.org>
1417         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1418         Reported by Stefan Liebler <stli@linux.ibm.com> in
1419         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1420         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1421         GCC 5.x and 6.x.
1422         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1423         GCC 5.x and 6.x.
1425 2020-12-17  Bruno Haible  <bruno@clisp.org>
1427         free: Fix warning.
1428         Reported by Pádraig Brady <P@draigBrady.com> in
1429         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1430         * lib/stdlib.in.h (free): New declaration.
1431         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1432         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1433         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1434         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1435         'free' as a macro here.
1436         * modules/free (Depends-on): Add stdlib.
1437         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1439 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1441         canonicalize-lgpl: fix AIX test failures
1442         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1443         Problem reported by Bruno Haible in:
1444         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1445         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1446         (__realpath): When testing a file name ending in '/', use stat
1447         rather than readlink, so that it does the right thing on AIX.
1448         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1450         canonicalize: omit second readlink when not needed
1451         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1452         Omit second readlink when (can_exist != CAN_MISSING
1453         && startlen != 0 && !logical).  Simplify.
1455         canonicalize: remove arbitrary 8192-byte limit
1456         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1457         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1458         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1459         using scratch buffers.  Lessen the number of differences between
1460         the two source files, to simplify this and future maintenance.
1461         * lib/canonicalize-lgpl.c (__realpath):
1462         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1463         Use scratch buffers instead of malloc and malloca.  This avoids
1464         the need for alloca, and avoids the need for malloc in most cases.
1465         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1466         easier to compare, e.g., by sorting include files and by switching
1467         to the GNU convention of calling file names "file names", not
1468         "path names".  Include stdbool.h, scratch_buffer.h.
1469         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1470         (malloca) [_LIBC]: Remove.
1471         [!_LIBC]: Do not include malloca.h.
1472         (get_path_max): New function, so that pathconf is called only in
1473         the rare and dubious case when when RESOLVED is not null and
1474         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1475         file name, as we care about the longest file name starting from
1476         "/" (not from the input file name), and POSIX does not specify
1477         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1478         not defined, do not worry about overriding a path_max of 0, and do
1479         not let path_max exceed IDX_MAX.
1480         (__realpath): Remove an assumption that file name components
1481         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1482         the Hurd, presumably).
1483         When allocating the result, allocate it to just the right size;
1484         this costs nothing when the result is smaller than 1023 bytes,
1485         and for larger results it's probably worth the CPU to call realloc,
1486         as canonicalize.c already does.
1487         * lib/canonicalize.c: Include attribute.h.
1488         Do not include pathmax.h or xgetcwd.h.
1489         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1490         work on platforms with no fixed limit.
1491         (canonicalize_filename_mode_stk): New function, with
1492         the content of the old canonicalize_filename_mode.
1493         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1494         since the scratch buffers now do memory management for us.
1495         Use rawmemchr instead of adding strlen.
1496         Use mempcpy instead of mempcpy + size.
1497         Assume free preserves errno.
1498         (canonicalize_filename_mode): Use it.
1499         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1500         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1501         scratch_buffer, stdbool, xalloc-die.
1502         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1503         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1505         canonicalize-lgpl: simplify merge to glibc
1506         This patch lessens the differences between git glibc
1507         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1508         The (perhaps wishful) goal is to make them identical.
1509         * lib/canonicalize-lgpl.c [!_LIBC]:
1510         Include <libc-config.h>, not config.h.
1511         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1512         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1513         Do not include alloca.h, since we use malloca now.
1514         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1515         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1516         freea so that the mainline code can be kept #ifdef free.
1517         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1518         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1519         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1520         __eloop_threshold.  All uses of their definiens changed.
1521         (SIZE_MAX): Remove; no longer needed.
1522         (alloc_failed): Remove, and remove all instances.
1523         No need for alloc_failed now that free preserves errno.
1524         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1525         the glibc tradition and is safer when the 2nd argument is null.
1526         Use __rawmemchr instead of strchr.
1527         Use __mempcpy where appropriate.
1528         Simplify test for overflow so that it does not need SIZE_MAX.
1529         Do not preserve errno around free or freea calls; no longer needed.
1530         Mark __realpath with libc_hidden_def.
1531         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1532         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1533         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1535         free: preserve errno
1536         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1537         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1538         platforms that do not preserve errno.
1539         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1540         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1541         * modules/free (configure.ac): Also replace 'free' if
1542         it does not preserve errno.
1544         idx: simplify IDX_MAX, remove IDX_WIDTH
1545         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1546         to UNSIGNED_IDX_T.
1547         (IDX_WIDTH): Remove, since it’s not used and its value
1548         arguably should be PTRDIFF_WIDTH anyway.
1550 2020-12-16  Bruno Haible  <bruno@clisp.org>
1552         posix_spawn_file_actions_addfchdir-tests: Rename test.
1553         * tests/test-posix_spawn-fchdir.c: Renamed from
1554         tests/test-posix_spawn5.c.
1555         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1556         Update.
1558         posix_spawn_file_actions_addchdir-tests: Rename test.
1559         * tests/test-posix_spawn-chdir.c: Renamed from
1560         tests/test-posix_spawn4.c.
1561         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1562         Update.
1564         posix_spawn-tests: Rename test.
1565         * tests/test-posix_spawn-open1.c: Renamed from
1566         tests/test-posix_spawn3.c.
1567         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1569         posix_spawnp-tests: Rename test.
1570         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1571         tests/test-posix_spawn2.c.
1572         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1573         tests/test-posix_spawn2.in.sh.
1574         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1576         posix_spawnp-tests: Rename test.
1577         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1578         tests/test-posix_spawn1.c.
1579         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1580         tests/test-posix_spawn1.in.sh.
1581         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1583 2020-12-14  Bruno Haible  <bruno@clisp.org>
1585         findprog-in: Allow overriding the current directory.
1586         * lib/findprog.h (find_in_given_path): Add directory argument.
1587         * lib/findprog-in.c (find_in_given_path): Likewise.
1588         * lib/execute.c (execute): Update caller.
1589         * lib/spawn-pipe.c (create_pipe): Likewise.
1590         * lib/windows-spawn.c (spawnpvech): Likewise.
1591         * NEWS: Mention the change.
1593 2020-12-14  Bruno Haible  <bruno@clisp.org>
1595         posix_spawn-internal: Make better use of 'const'.
1596         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1597         of argv and envp.
1598         * lib/spawni.c (__spawni, script_execute): Likewise.
1599         * lib/spawn.c (posix_spawn): Update caller.
1600         * lib/spawnp.c (posix_spawnp): Likewise.
1602 2020-12-14  Bruno Haible  <bruno@clisp.org>
1604         spawn: Make it compile on native Windows.
1605         * modules/spawn (Depends-on): Add signal-h.
1607 2020-12-14  Bruno Haible  <bruno@clisp.org>
1609         windows-spawn: Avoid shadowing a variable.
1610         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1612 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1614         string: port memchr macro to AIX 7.2 XLC
1615         Its <string.h> defines a memchr macro to help inlining.
1616         * lib/string.in.h (memchr): #undef before #defining.
1618         canonicalize: fix AIX test failures
1619         Problem reported by Bruno Haible in:
1620         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1621         * lib/canonicalize.c (canonicalize_filename_mode):
1622         When testing a file name ending in '/', use stat rather than
1623         readlink, so that it does the right thing on AIX.
1624         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1625         recent changes in the Gnulib readlink module.
1627         Assume readlink/readlinkat ERANGE fix
1628         * lib/areadlink-with-size.c (areadlink_with_size):
1629         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1630         * lib/careadlinkat.c (readlink_stk):
1631         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1632         since the Gnulib readlink and readlinkat modules now fix that.
1634         getcwd: port to AIX
1635         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1636         in case our sys/stat.h #defined a function macro with the same name.
1638         readlink, readlinkat: add ERANGE portability
1639         Fix some portability issues with Gnulib's readlink and readlinkat,
1640         notably mostly working around the ERANGE problem in AIX and HP-UX.
1641         * doc/posix-functions/readlink.texi:
1642         * doc/posix-functions/readlinkat.texi:
1643         ERANGE problem is mostly fixed now.  Mention AIX problem with
1644         trailing / and EINVAL.  Lessen differences between these two files.
1645         * lib/readlink.c (rpl_readlink):
1646         * lib/readlinkat.c (rpl_readlinkat):
1647         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1648         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1649         Lessen spurious differences between the readlink and readlinkat code.
1650         * lib/readlinkat.c (rpl_readlinkat):
1651         Fix bug where stat was used where fstatat was intended.
1652         * m4/readlink.m4 (gl_FUNC_READLINK):
1653         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1654         to identify readlink problems more precisely.  All uses changed.
1655         Guess no on AIX or HP-UX for this variable.
1656         Add check for whether readlink truncates results,
1657         and define new macro READLINK_TRUCATE_BUG accordingly.
1658         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1659         Also check gl_cv_func_readlink_trailing_slash when deciding
1660         whether to replace readlinkat.
1661         * modules/readlinkat (Depends-on): Most dependencies are also
1662         needed if replacing readlinkat.  fstatat is different, as it
1663         is needed only if replacing an existing readlinkat.
1665 2020-12-13  Bruno Haible  <bruno@clisp.org>
1667         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1668         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1669         the stdin_handle and/or stdout_handle.
1671 2020-12-12  Bruno Haible  <bruno@clisp.org>
1673         Fix gnulib-tool error when some modules occur in tests/.
1674         * doc/gnulib.texi (Specification): Update statistics.
1675         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1676         (Using AC_LIBOBJ): New section.
1677         * check-AC_LIBOBJ: New file.
1678         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1679         * modules/fopen-gnu (Files): Add lib/fopen.c.
1680         * modules/memmem (Files): Add lib/memmem.c.
1681         * modules/renameat (Files): Add lib/at-func2.c.
1682         * modules/strcasestr (Files): Add lib/strcasestr.c.
1683         * modules/strstr (Files): Add lib/strstr.c.
1685 2020-12-11  Bruno Haible  <bruno@clisp.org>
1687         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1688         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1689         elements of argv.
1690         * lib/sh-quote.c (shell_quote_argv): Likewise.
1691         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1692         the return type.
1693         * lib/windows-spawn.c (prepare_spawn): Likewise.
1694         * lib/os2-spawn.h (prepare_spawn): Likewise.
1695         * lib/os2-spawn.c (prepare_spawn): Likewise.
1696         * lib/execute.h (execute): Does not need write access to the elements of
1697         prog_argv.
1698         * lib/execute.c (execute): Likewise.
1699         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1700         Likewise.
1701         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1702         create_pipe_out): Likewise.
1703         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1704         Likewise.
1705         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1706         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1707         * lib/javaexec.h (execute_fn): Does not need write access to the
1708         elements of prog_argv.
1709         * lib/javaexec.c (execute_java_class): Update variable types and remove
1710         casts to 'char *'.
1711         * lib/csharpexec.h (execute_fn): Does not need write access to the
1712         elements of prog_argv.
1713         * lib/csharpexec.c (execute_csharp_using_mono,
1714         execute_csharp_using_sscli): Update variable types and remove casts to
1715         'char *'.
1716         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1717         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1718         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1719         is_jikes_present): Update variable types and remove casts to 'char *'.
1720         * lib/javaversion.c (execute_and_read_line): Does not need write access
1721         to the elements of prog_argv.
1722         * lib/csharpcomp.c (compile_csharp_using_mono,
1723         compile_csharp_using_sscli): Update variable types and remove casts to
1724         'char *'.
1725         * tests/test-sh-quote.c (main): Update variable types and remove casts
1726         to 'char *'.
1727         * tests/test-execute-main.c (main): Update variable types and remove
1728         casts to 'char *'.
1729         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1730         remove casts to 'char *'.
1731         * NEWS: Mention the changes.
1733 2020-12-11  Bruno Haible  <bruno@clisp.org>
1735         execute-tests: Fix compilation error with MSVC.
1736         * tests/test-execute-child.c (is_device): With _fstat, use
1737         'struct _stat', not 'struct stat'.
1739 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1741         vararrays: just use 2.70
1742         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1743         and later, since Autoconf 2.70 matches Gnulib now.
1745         sys_types: just use 2.70
1746         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1747         Reindent to match Autoconf sources.
1748         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1750         stdint: port to Autoconf 2.70
1751         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1752         instead of assuming that AC_INCLUDES_DEFAULT does it.
1753         The old code relied on AC_INCLUDES_DEFAULT being called
1754         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1755         but this does not occur in Autoconf 2.70.
1757         pid_t.m4: just use 2.70
1758         * m4/pid_t.m4 (AC_TYPE_PID_T):
1759         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1761         largefile: just use 2.70
1762         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1763         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1765         AC_C_RESTRICT: update from Autoconf
1766         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1767         as a prerequisite, not 2.69c, since 2.70 is now out.
1768         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1769         Try __restrict__ before __restrict.
1771         extensions: update from Autoconf
1772         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1773         Provide a default implementation for Autoconf 2.69 or earlier.
1774         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1775         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1777         alloca: update from Autoconf
1778         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1779         Trivial update to match Autoconf 2.70.
1781 2020-12-11  Bruno Haible  <bruno@clisp.org>
1783         memchr: Work around memory overrun bug on AIX 7.2.
1784         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1785         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1787 2020-12-11  Bruno Haible  <bruno@clisp.org>
1789         execute-tests: Fix compilation error on AIX in 32-bit mode.
1790         * tests/test-execute-child.c: In order to get the original definition of
1791         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1792         include the system's <sys/stat.h> and use it before including other
1793         header files.
1795 2020-12-10  Bruno Haible  <bruno@clisp.org>
1797         windows-spawn: Relicense under LGPLv2+.
1798         * modules/windows-spawn (License): Change to LGPLv2+.
1800 2020-12-10  Bruno Haible  <bruno@clisp.org>
1802         execute, spawn-pipe: Fix memory leak on native Windows.
1803         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1804         * lib/windows-spawn.c: Don't include xalloc.h.
1805         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1806         prepare_spawn.
1807         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1808         elements of *new_argv together.
1809         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1810         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1811         * lib/os2-spawn.c: Don't include xalloc.h.
1812         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1813         elements of *new_argv together.
1814         * lib/execute.c: Include xalloc.h.
1815         (execute): Check return value of prepare_spawn. Free the memory
1816         allocated by prepare_spawn.
1817         * modules/execute (Depends-on): Add xalloc-die.
1818         * lib/spawn-pipe.c: Include xalloc.h.
1819         (create_pipe): Check return value of prepare_spawn. Free the memory
1820         allocated by prepare_spawn.
1821         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1823 2020-12-10  Bruno Haible  <bruno@clisp.org>
1825         findprog-in: Relicense under LGPLv2+.
1826         Paul Smith's approval is in
1827         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1828         * modules/findprog-in (License): Change to LGPLv2+.
1830 2020-12-10  Bruno Haible  <bruno@clisp.org>
1832         findprog-in: Don't exit upon out-of-memory.
1833         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1834         code.
1835         * lib/findprog-in.c: Don't include xalloc.h.
1836         (find_in_given_path): Call concatenated_filename, not
1837         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1838         return NULL with errno set.
1839         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1840         concat-filename, strdup-posix, malloc-posix.
1842 2020-12-09  Bruno Haible  <bruno@clisp.org>
1844         fmaf: Work around a bug on FreeBSD 12.2/arm.
1845         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1846         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1848 2020-12-09  Bruno Haible  <bruno@clisp.org>
1850         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1851         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1852         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1853         * lib/glthread/threadlib.c: Include <errno.h>.
1854         (glthread_in_use): For FreeBSD, provide an alternative implementation
1855         that uses pthread_key_create.
1857 2020-12-09  Bruno Haible  <bruno@clisp.org>
1859         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1860         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1861         not 'isnan'.
1863 2020-12-08  Bruno Haible  <bruno@clisp.org>
1865         std-gnu11: Make compatible with Autoconf 2.70.
1866         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1867         use.
1869 2020-12-08  Bruno Haible  <bruno@clisp.org>
1871         argp: Avoid undefined behaviour when invoking qsort().
1872         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1873         Reported by Jeffrey Walton <noloader@gmail.com> in
1874         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1875         * lib/argp-help.c (group_cmp): Remove third argument.
1876         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1877         upon hol_cluster_cmp.
1878         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1879         (hol_entry_cmp): Rewritten to implement a total order.
1881 2020-12-08  Bruno Haible  <bruno@clisp.org>
1883         argp: Improve comments.
1884         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1885         null pointer.
1886         (struct hol_entry): Fix comment regarding sort order of group.
1887         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1888         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1889         (hol_cluster_is_child, argp_hol): Move functions.
1890         (HOL_ENTRY_PTRCMP): Remove unused macro.
1892 2020-12-08  Bruno Haible  <bruno@clisp.org>
1894         argp: Don't pass invalid arguments to isspace() and isalnum().
1895         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1896         before passing it to isspace() or isalnum().
1898 2020-12-08  Bruno Haible  <bruno@clisp.org>
1900         argp: Don't rely on undefined behaviour of _tolower().
1901         Patch by Eric Blake
1902         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1903         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1904         not upper-case.  Pass correct range to tolower.
1906 2020-12-07  Bruno Haible  <bruno@clisp.org>
1908         unicodeio: Fix wrong result on FreeBSD.
1909         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1910         characters on all platforms.
1912 2020-12-07  Bruno Haible  <bruno@clisp.org>
1914         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1915         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1916         FreeBSD systems.
1918 2020-12-07  Bruno Haible  <bruno@clisp.org>
1920         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1921         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1922         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1923         trivially of sbrk is not available.
1924         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1925         exist in FreeBSD 12.2/arm64.
1926         * doc/glibc-functions/brk.texi: Likewise.
1928 2020-12-07  Bruno Haible  <bruno@clisp.org>
1930         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1931         Suggested by Zack Weinberg in
1932         <https://savannah.gnu.org/support/?110294>.
1933         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1934         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1936 2020-12-07  Bruno Haible  <bruno@clisp.org>
1938         Tweak the Windows oldnames workaround.
1939         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1940         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1941         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1942         always.
1943         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1944         * lib/stdlib.in.h (putenv): Likewise.
1946 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1948         doc: fix flat address space discussion
1949         * doc/gnulib-readme.texi (Other portability assumptions):
1950         Move the all-bits-zero assumption outside the flat address space
1951         section, since the two issues are independent.
1953         doc: document -static-libubsan more
1954         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1955         -static-libubsan a bit more.  Mostly cons.
1957 2020-12-06  Bruno Haible  <bruno@clisp.org>
1959         doc: Add more details regarding the undefined behaviour sanitizer.
1960         * doc/gnulib-readme.texi (High Quality): Describe
1961         -fsanitize-undefined-trap-on-error better.
1963 2020-12-06  Bruno Haible  <bruno@clisp.org>
1965         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1966         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1967         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1968         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1969         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1970         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1971         a preprocessor #define.
1972         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1973         * lib/search.in.h (lfind, lsearch): Likewise.
1974         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1975         Likewise.
1976         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1977         * lib/string.in.h (memccpy, strdup): Likewise.
1978         * lib/sys_stat.in.h (chmod, umask): Likewise.
1979         * lib/time.in.h (tzset): Likewise.
1980         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1981         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1982         read, rmdir, swab, unlink, write): Likewise.
1983         * lib/utime.in.h (utime): Likewise.
1984         * lib/wchar.in.h (wcsdup): Likewise.
1985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1986         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1987         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1989         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1990         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1991         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1992         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1994         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1995         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1996         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1997         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1998         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
2000 2020-12-06  Bruno Haible  <bruno@clisp.org>
2002         doc: Mention some missing function declarations.
2003         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
2004         AIX.
2005         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
2006         FreeBSD.
2007         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
2008         Cygwin.
2009         * doc/pastposix-functions/fcvt.texi: Likewise.
2010         * doc/pastposix-functions/gcvt.texi: Likewise.
2012 2020-12-06  Bruno Haible  <bruno@clisp.org>
2014         doc: Tweak example.
2015         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
2016         'print'.
2018 2020-12-06  Bruno Haible  <bruno@clisp.org>
2020         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
2021         * tests/test-filenamecat.c: Include idx.h.
2022         (main): Mark prefixlen as nonnegative.
2023         * modules/filenamecat-tests (Depends-on): Add idx.
2025 2020-12-06  Bruno Haible  <bruno@clisp.org>
2027         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
2028         * lib/time_rz.c: Include idx.h.
2029         (save_abbr): Mark zone_size as nonnegative.
2030         * modules/time_rz (Depends-on): Add idx.
2032 2020-12-06  Bruno Haible  <bruno@clisp.org>
2034         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
2035         * lib/parse-datetime.y: Include idx.h.
2036         (textint): Mark digits as nonnegative.
2037         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
2038         dsts_seen, times_seen, zones_seen as nonnegative.
2039         (lookup_word): Mark wordlen as nonnegative.
2040         (yylex): Mark count as nonnegative.
2041         (parse_datetime2): Mark tzsize as nonnegative.
2042         * modules/parse-datetime (Depends-on): Add idx.
2044 2020-12-06  Bruno Haible  <bruno@clisp.org>
2046         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
2047         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
2048         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
2049         nonnegative.
2050         * modules/fnmatch (Depends-on): Add idx.
2052 2020-12-06  Bruno Haible  <bruno@clisp.org>
2054         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
2055         * lib/c-stack.c: Include idx.h.
2056         (die): Mark buflen as nonnegative.
2057         * modules/c-stack (Depends-on): Add idx.
2059 2020-12-06  Bruno Haible  <bruno@clisp.org>
2061         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
2062         * lib/backupfile.c: Include idx.h.
2063         (numbered_backup): Mark base_offset as nonnegative.
2064         (backupfile_internal): Likewise.
2065         * modules/backup-rename (Depends-on): Add idx.
2066         * modules/backupfile (Depends-on): Likewise.
2068 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2070         doc: fix curved quotes issue
2071         * doc/gnulib.texi: Set txicodequoteundirected and
2072         txicodequotebacktick so that ` and ' in examples do not generate
2073         curved single quotes that do the wrong thing when cut and pasted.
2075         doc: mention static and dynamic checking
2076         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
2077         for static and dynamic checking.
2079         intprops: Add INT_ADD_OK etc.
2080         * doc/intprops.texi (Checking Integer Overflow): New section.
2081         * lib/intprops.h: From a suggestion by Bruno Haible in:
2082         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
2083         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
2085         doc: move exotic platfroms to Target Platforms
2086         * doc/gnulib-intro.texi (Supported Platforms)
2087         (Formerly Supported Platforms, Unsupported Platforms):
2088         New subsections, split off from Target Platforms.
2089         (Unsupported Platforms): Move the exotic-platform stuff here ...
2090         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
2091         section.
2093         doc: mention intptr_t etc. and IBM i
2094         * doc/gnulib-readme.texi (Other portability assumptions):
2095         Mention intptr_t and uintptr_t, and that arithmetic on them
2096         works in the usual way.
2097         (Exotic platforms): New section, containing material from
2098         the old 'Integer Portability' section.  Also mention IBM i.
2099         * doc/intprops.texi (Wraparound Arithmetic):
2100         Say that the macros work on unsigned integers too.
2101         (Integer Portability): Remove.
2103 2020-12-04  Bruno Haible  <bruno@clisp.org>
2105         utime: Fix a test failure on macOS 10.13.
2106         Reported by Martin Storsjö <martin@martin.st> in
2107         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2108         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
2109         slashes on files.
2110         * lib/utime.c (utime): Add alternative implementation for Unix
2111         platforms.
2112         * modules/utime (Depends-on): Add stat.
2113         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
2114         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
2115         trailing-slash bug.
2116         * doc/posix-functions/open.texi: Likewise.
2117         * doc/posix-functions/stat.texi: Likewise.
2118         * doc/posix-functions/symlink.texi: Likewise.
2120 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2122         intprops: update doc and mention Unisys
2123         * doc/gnulib-readme.texi (Other portability assumptions):
2124         Also mention ptrdiff_t when talking about widths and overflow.
2125         * doc/intprops.texi (Integer Properties): Summarize new section.
2126         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
2127         evaluates its argument.
2128         (Integer Bounds): Fix typo.
2129         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
2130         Document that the _WRAPV macros now support pointers to unsigned
2131         integers.
2132         (Integer Range Overflow): Update SEI CERT citation.
2133         (Integer Portability): New subsection, which mentions
2134         the oddball Unisys platforms as non-Gnulib targets.
2136 2020-12-03  Bruno Haible  <bruno@clisp.org>
2138         idx: Clarify that idx_t always behaves like a signed type.
2139         Suggested by Paul Eggert in
2140         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
2141         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
2142         Don't test UNSIGNED_IDX_T.
2144 2020-12-03  Bruno Haible  <bruno@clisp.org>
2146         idx: New module.
2147         * lib/idx.h: New file.
2148         * modules/idx: New file.
2149         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
2150         ptrdiff_t.
2151         * lib/canonicalize.c: Likewise.
2152         * modules/canonicalize-lgpl (Depends-on): Add idx.
2153         * modules/canonicalize (Depends-on): Likewise.
2155 2020-12-03  Bruno Haible  <bruno@clisp.org>
2157         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
2158         Reported by Martin Storsjö <martin@martin.st> in
2159         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2160         * tests/test-fprintf-posix3.c: Skip the test on macOS.
2161         (main): Return a different exit code at each point. Allow 100 KB extra
2162         memory consumption.
2163         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
2164         doesn't work" diagnostic.
2166 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2168         canonicalize: refactor can_mode flag
2169         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
2170         (multiple_bits_set): ... this new static function.  Uses changed.
2171         (canonicalize_filename_mode): Refactor for clarity to avoid
2172         modifying the CAN_MODE argument.
2174         canonicalize: prefer signed integer types
2175         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
2176         (seen_triple, canonicalize_filename_mode): Prefer signed to
2177         unsigned types where either will do, as they avoid some glitches
2178         in comparisons and can trap on overflow when debugging.
2180         canonicalize: fix most of another EOVERFLOW issue
2181         * lib/canonicalize.c (canonicalize_filename_mode):
2182         Do not call stat if fewer than 20 symlinks have been traversed.
2183         This avoids EOVERFLOW failure in the common case where there
2184         are not that many symlinks, while continuing to catch loops
2185         (or fail due to EOVERFLOW) in the unusual case when there
2186         are many symlinks to traverse.
2188         canonicalize: do not assume symlinks have st_ino
2189         * lib/canonicalize.c (canonicalize_filename_mode):
2190         When checking for loops, use st_dev and st_ino from the parent
2191         directory not from the symlink, as pre-2017 POSIX says these
2192         members are not reliable for symlinks.  Couple this with START
2193         (the remaining file name to be resolved), not NAME (the whole file
2194         name with START as its suffix).
2195         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
2197         canonicalize: fix EOVERFLOW bug
2198         * lib/canonicalize.c (canonicalize_filename_mode):
2199         When testing whether a directory entry is a symbolic link, or a
2200         directory or other, do not use lstat or stat or
2201         areadlink_with_size.  Just use areadlink, as this suffices and it
2202         avoids the EOVERFLOW problem that lstat and stat have.
2203         * modules/canonicalize (Depends-on): Depend on areadlink instead
2204         of areadlink-with-size and stat.
2206         canonicalize-lgpl: fix EOVERFLOW bug
2207         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
2208         (__realpath): Do not use lstat.  Just use readlink, as this
2209         suffices and it avoids the EOVERFLOW problem that lstat has.
2210         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
2212 2020-12-02  Bruno Haible  <bruno@clisp.org>
2214         strsignal-tests: Fix test failure on macOS 10.13.
2215         Reported by Martin Storsjö <martin@martin.st> in
2216         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2217         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
2218         to be longer than the expected result.
2220 2020-12-02  Bruno Haible  <bruno@clisp.org>
2222         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
2223         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
2224         recursive self-include problem on FreeBSD 12.2 in C++ mode.
2226 2020-12-02  Bruno Haible  <bruno@clisp.org>
2228         spawn-pipe: Allow caller to specify directory for the subprocess.
2229         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2230         Add directory argument.
2231         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
2232         (create_pipe): Add directory argument. If specified, resolve the program
2233         file name and make it absolute, first. Pass the directory to spawnpvech
2234         and posix_spawn_file_actions_addchdir.
2235         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
2236         argument.
2237         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
2238         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
2239         * tests/test-spawn-pipe-main.c (test_pipe): Update.
2240         * NEWS: Mention the change.
2241         * lib/csharpcomp.c (compile_csharp_using_mono,
2242         compile_csharp_using_sscli): Update.
2243         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
2244         is_gcj_43): Update.
2245         * lib/javaversion.c (execute_and_read_line): Update.
2246         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
2247         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
2249 2020-12-02  Bruno Haible  <bruno@clisp.org>
2251         execute: Allow caller to specify directory for the subprocess.
2252         * lib/execute.h (execute): Add directory argument.
2253         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
2254         (execute): Add directory argument. If specified, resolve the program
2255         file name and make it absolute, first. Pass the directory to spawnpvech
2256         and posix_spawn_file_actions_addchdir.
2257         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
2258         posix_spawn, posix_spawn_file_actions_addchdir.
2259         * tests/test-execute-main.c: Add test for passing a directory.
2260         * tests/test-execute-child.c: Likewise.
2261         * tests/test-execute.sh: Update.
2262         * modules/execute-tests (Depends-on): Add mkdir.
2263         * NEWS: Mention the change.
2264         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
2265         * lib/csharpexec.c (execute_csharp_using_mono,
2266         execute_csharp_using_sscli): Update.
2267         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2268         compile_using_javac, compile_using_jikes, is_javac_present,
2269         is_jikes_present): Update.
2270         * lib/javaexec.c (execute_java_class): Update.
2272 2020-12-01  Bruno Haible  <bruno@clisp.org>
2274         vma-iter: Add support for macOS11/arm64.
2275         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
2276         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
2277         and by Martin Storsjö <martin@martin.st> in
2278         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2279         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
2281 2020-12-01  Bruno Haible  <bruno@clisp.org>
2283         spawn-pipe: Fix handling of OS/2 kLIBC.
2284         Reported by KO Myung-Hun <komh78@gmail.com> in
2285         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
2286         * modules/spawn-pipe (configure.ac): Use the common idiom for
2287         recognizing the OS/2 operating system.
2289 2020-11-30  Bruno Haible  <bruno@clisp.org>
2291         execute: Fix uninitialized use of errno.
2292         * lib/execute.c (execute): Preserve errno across several system calls.
2294 2020-11-30  Bruno Haible  <bruno@clisp.org>
2296         access tests: Fix test failure on native Windows.
2297         * tests/test-access.c (main): Change permissions of f2 file before
2298         attempting to remove it.
2300 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
2302         faccessat: link with $(LIB_EACCESS)
2303         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
2304         module depends on euidaccess.
2306 2020-11-30  Bruno Haible  <bruno@clisp.org>
2308         execute, spawn-pipe: Make multithread-safe on native Windows.
2309         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
2310         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
2311         (spawnpvech): New declaration.
2312         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
2313         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
2314         (_): Remove macro.
2315         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
2316         undup_safer_noinherit): Remove functions.
2317         (spawnpvech): New function.
2318         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
2319         cloexec, dup2, error, gettext-h.
2320         * lib/execute.c: Include msvc-nothrow.h.
2321         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
2322         * lib/spawn-pipe.c: Include msvc-nothrow.h.
2323         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
2324         instead of _spawnvpe.
2325         * modules/execute (Depends-on): Add msvc-nothrow.
2326         * modules/spawn-pipe (Depends-on): Likewise.
2328 2020-11-30  Bruno Haible  <bruno@clisp.org>
2330         execute, spawn-pipe: Improve documentation.
2331         * lib/execute.h: Describe progname, prog_path, prog_argv.
2332         * lib/spawn-pipe.h: Likewise.
2334 2020-11-30  Bruno Haible  <bruno@clisp.org>
2336         execute tests: Add more tests.
2337         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2338         inherited file descriptors >= 3.
2339         * tests/test-execute-child.c: Likewise.
2340         * tests/test-execute.sh: Update.
2342 2020-11-30  Bruno Haible  <bruno@clisp.org>
2344         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2345         Reported by comex <comexk@gmail.com> in
2346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2347         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2348         don't expect an ELF header.
2350 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2352         bitset: use integer_length in table implementation
2353         * lib/bitset/table.c (tbitset_list_reverse): Use
2354         BITSET_FOR_EACH_BIT_REVERSE.
2356 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2358         bitset: use integer_length in list implementation
2359         * lib/bitset/list.c (lbitset_list_reverse): Use
2360         BITSET_FOR_EACH_BIT_REVERSE.
2362 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2364         bitset: use integer_length in vector implementation
2365         * lib/bitset/array.c (vbitset_list_reverse): Use
2366         BITSET_FOR_EACH_BIT_REVERSE.
2368 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2370         bitset: use integer_length in array implementation
2371         * modules/bitset (Depends-on): Add integer_length_l.
2372         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2373         * lib/bitset/array.c (abitset_list_reverse): Use it.
2375 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2377         bitset: style: use consistent names
2378         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2379         and 'boffset' as 'bitoff', for consistency with the other
2380         implementations.
2381         * bitset/table.c (tbitset_list_reverse): Likewise.
2383 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2385         bitset: style: sort header
2386         * lib/bitset/base.h (bitset_ffs): Rename as...
2387         (bitset_ffs_): this.
2388         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2390 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2392         bitset: tests: check BITSET_FOR_EACH_REVERSE
2393         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2394         Check BITSET_FOR_EACH_REVERSE.
2396 2020-11-29  Bruno Haible  <bruno@clisp.org>
2398         spawn-pipe tests: Fix test failure with MSVC.
2399         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2400         (gl_msvc_invalid_parameter_handler): New function.
2401         (main): Set a global invalid-parameter handler.
2402         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2404 2020-11-29  Bruno Haible  <bruno@clisp.org>
2406         execute: Add tests.
2407         * tests/test-execute.sh: New file.
2408         * tests/test-execute-main.c: New file.
2409         * tests/test-execute-child.c: New file.
2410         * modules/execute-tests: New file.
2412 2020-11-29  Bruno Haible  <bruno@clisp.org>
2414         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2415         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2416         works.
2417         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2418         fallback implementation as on Haiku.
2419         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2420         effective.
2421         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2423 2020-11-29  Bruno Haible  <bruno@clisp.org>
2425         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2426         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2427         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2428         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2429         * lib/windows-spawn.c: Remove modifications for kLIBC.
2430         * modules/spawn-pipe (Files): Add the new files.
2431         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2433 2020-11-28  Bruno Haible  <bruno@clisp.org>
2435         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2436         Reported by Paul Eggert in
2437         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2438         * m4/sparcv8+.m4: New file.
2439         * modules/sparcv8+: New file.
2440         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2442 2020-11-28  Bruno Haible  <bruno@clisp.org>
2444         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2445         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2447 2020-11-28  Bruno Haible  <bruno@clisp.org>
2449         windows-spawn: New module.
2450         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2451         implementations.
2452         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2453         * modules/windows-spawn: New file.
2454         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2455         * lib/spawn-pipe.c: Likewise.
2456         * modules/execute (Files): Remove lib/w32spawn.h.
2457         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2458         xalloc.
2459         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2460         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2461         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2462         xalloc.
2463         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2465 2020-11-27  Bruno Haible  <bruno@clisp.org>
2467         ssfmalloc tests: Port to macOS 11.
2468         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2470 2020-11-26  Bruno Haible  <bruno@clisp.org>
2472         Fix dependencies of modules that use '_exit' on native Windows.
2473         Reported by Jim Meyering in
2474         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2475         * modules/_Exit (Depends-on): Add unistd.
2476         * modules/closein (Depends-on): Likewise.
2477         * modules/closeout (Depends-on): Likewise.
2478         * modules/forkpty (Depends-on): Likewise.
2479         * modules/posix_spawn-internal (Depends-on): Likewise.
2480         * modules/savewd (Depends-on): Likewise.
2481         * modules/stat-time-tests (Depends-on): Likewise.
2483 2020-11-26  Bruno Haible  <bruno@clisp.org>
2485         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2486         * modules/raise-tests (Depends-on): Add unistd.
2487         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2489 2020-11-25  Jim Meyering  <meyering@fb.com>
2491         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2492         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2493         non-NULL, since we don't bother handing strdup failure.
2495         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2496         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2497         * tests/test-raise.c: Include unistd.h.
2498         (handler): Use _exit, not exit.
2500 2020-11-23  Bruno Haible  <bruno@clisp.org>
2502         Use the correct printf format attribute for mingw.
2503         Reported by Reuben Thomas <rrt@sc3d.org> in
2504         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2506         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2507         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2509         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2510         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2511         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2512         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2513         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2514         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2516         * modules/vasnprintf (Depends-on): Add stdio.
2517         * lib/vasnprintf.h: Include <stdio.h>.
2518         (asnprintf, vasnprintf): Use the standard printf format attribute.
2520         * modules/xvasprintf (Depends-on): Add stdio.
2521         * lib/xvasprintf.h: Include <stdio.h>.
2522         (xasprintf, xvasprintf): Use the standard printf format attribute.
2524         * modules/xprintf (Depends-on): List stdio first.
2525         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2526         depends on GNULIB_VPRINTF_POSIX.
2527         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2528         GNULIB_VFPRINTF_POSIX.
2530         * modules/c-vasnprintf (Depends-on): Add stdio.
2531         * lib/c-vasnprintf.h: Include <stdio.h>.
2532         (c_vasnprintf): Use the standard printf format attribute.
2534         * modules/c-vasprintf (Depends-on): Add stdio.
2535         * lib/c-vasprintf.h: Include <stdio.h>.
2536         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2538         * modules/c-vsnprintf (Depends-on): Add stdio.
2539         * lib/c-vsnprintf.h: Include <stdio.h>.
2540         (c_vsnprintf): Use the standard printf format attribute.
2542         * modules/c-snprintf (Depends-on): Add stdio.
2543         * lib/c-snprintf.h: Include <stdio.h>.
2544         (c_snprintf): Use the standard printf format attribute.
2546         * modules/c-xvasprintf (Depends-on): Add stdio.
2547         * lib/c-xvasprintf.h: Include <stdio.h>.
2548         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2550         * modules/error (Depends-on): Depend on stdio always.
2551         * lib/error.h: Include <stdio.h>.
2552         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2553         (error, error_at_line): Use a printf format attribute that depends on
2554         GNULIB_VFPRINTF_POSIX.
2555         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2556         _GL_ATTRIBUTE_FORMAT_PRINTF.
2558         * modules/verror (Depends-on): Add stdio.
2559         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2560         (verror, verror_at_line): Use the standard printf format attribute.
2561         * lib/verror.c: Include "error.h".
2563         * modules/argp (Depends-on): Add stdio.
2564         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2565         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2567         * modules/libtextstyle-optional (Depends-on): Add stdio.
2568         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2569         printf format attribute.
2571         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2572         format attribute.
2574 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2576         selinux-at, selinux-h: use const correct declarations
2577         * lib/se-selinux.in.h: Use const for "set" functions,
2578         to match current selinux, and support cleaner user code.
2579         * lib/selinux-at.c: Likewise.
2580         * lib/selinux-at.h: Likewise.
2582 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2584         canonicalize-lgpl: fix memory leak
2585         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2586         which could have occurred if BUF was so large that malloc was
2587         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2588         this eliminates the need to free BUF separately.
2590 2020-11-22  Bruno Haible  <bruno@clisp.org>
2592         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2593         * modules/xvasprintf (Depends-on): Add xalloc.
2594         * modules/pipe-filter-gi (Depends-on): Likewise.
2595         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2596         * modules/spawn-pipe (Depends-on): Likewise.
2598 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2600         bootstrap: add option hooks
2601         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2602         (bootstrap_option_hook): Likewise.
2603         (usage): Call bootstrap_print_option_usage_hook.
2605 2020-11-22  Bruno Haible  <bruno@clisp.org>
2607         argp: Don't break getprogname on non-glibc systems.
2608         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2609         program_invocation_name and program_invocation_short_name.
2611 2020-11-22  Bruno Haible  <bruno@clisp.org>
2613         doc: Document <link.h>.
2614         * doc/glibc-headers/link.texi: New file.
2615         * doc/gnulib.texi: Include it.
2617 2020-11-22  Bruno Haible  <bruno@clisp.org>
2619         doc: Add references to the LSB.
2620         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2621         * doc/posix-functions/*.texi: Likewise.
2623 2020-11-22  Bruno Haible  <bruno@clisp.org>
2625         doc: Fix a makeinfo warning (regression 2020-11-03).
2626         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2628 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2630         parse-datetime: fix printf format typo
2631         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2632         previous patch to this file.  Problem reported by Chris Elvidge in
2633         <https://bugs.gnu.org/44763#32>.
2635         setlocale-null-tests: work around GCC bug 44511
2636         * tests/test-setlocale_null-mt-all.c:
2637         * tests/test-setlocale_null-mt-one.c:
2638         Ignore -Wreturn-type, to work around GCC bug 44511.
2640         nl_langinfo-tests: work around GCC bug 44511
2641         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2642         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2643         Problem reported for GNU grep by Andreas Schwab
2644         <https://bugs.gnu.org/44535>.
2646         selinux-h: add stubs for selabel_open etc.
2647         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2648         because matchpathcon is deprecated in favor of selabel_open etc.,
2649         so this patch adds stubs for these functions.
2650         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2651         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2652         as it is needed for selabel_open and selinux/selinux.h declares
2653         this type here.
2654         * modules/selinux-h (Files): Add the new files.
2655         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2656         (lib_SOURCES): Add se-label.in.h, se-label.c.
2657         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2658         (selinux/label.h): New rule, mimicking selinux/context.h.
2659         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2660         (Include): Add selinux/label.h.
2662 2020-11-21  Bruno Haible  <bruno@clisp.org>
2664         Update after 'test-driver' in Automake changed.
2665         * build-aux/test-driver.diff: Rebase.
2667 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2669         read-file: remove dead assignment
2670         * lib/read-file.c (fread_file): Remove dead assignment when
2671         RF_SENSITIVE is set, flagged by clang-analyzer.
2673 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2675         bitset: tests: exercise the stats too
2677         * tests/test-bitset.c: Display the stats at the end of the test.
2678         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2679         last bin, display "256-..." rather that "256-511", since the last bin
2680         does count item greater than or equal to 256.
2682 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2684         bitset: tests: try harder to break it
2685         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2686         BITSET_LIST_SIZE.
2687         (main): Likewise.
2688         While at it, also exercise super small bitsets.
2690 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2692         bitset: use ffs where possible in the vector implementation
2693         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2695 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2697         bitset: use ffs where possible in the table implementation
2698         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2700 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2702         bitset: check empty and full bitsets
2703         * tests/test-bitset.c (check_zero, check_ones): New.
2704         (check_attributes): Use them.
2706 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2708         bitset: be sure to always return a value
2709         * lib/bitset/array.c (abitset_small_list): Always update *next and
2710         return a value.
2712 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2714         vcs-to-changelog: Expect spaces in file names
2715         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2716         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2717         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2718         tabs to spaces.
2719         (list_changes): Use tabs to identify file names.
2721 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2723         bitset: strengthen tests
2724         * tests/test-bitset.c (compare): Also check count.
2725         Deal only with random values, move the one-bit tests to...
2726         (check_one_bit): this new function.
2727         (check_attributes): Call it.
2729 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2731         bitset: fix iteration over table bitsets
2732         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2734 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2736         bitset: rename internal details for consistency
2737         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2739 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2741         bitset: test: run deterministic tests on several bitset sizes
2742         * tests/test-bitset.c (check_attributes): Run it with small and large
2743         sizes.
2745 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2747         bitset: use ffs where possible in the list implementation
2748         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2750 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2752         bitset: use ffs where possible in array implementation
2753         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2755 2020-11-17  Bruno Haible  <bruno@clisp.org>
2757         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2758         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2759         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2760         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2761         C++ mode.
2763 2020-11-17  Bruno Haible  <bruno@clisp.org>
2765         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2766         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2767         is always declared.
2768         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2769         declared.
2771 2020-11-17  Bruno Haible  <bruno@clisp.org>
2773         Fix link errors on AIX.
2774         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2775         * modules/getumask (Link): Link with $(LIBTHREAD).
2776         * modules/getumask-tests (Makefile.am): Link test-getumask with
2777         $(LIBTHREAD).
2778         * modules/supersede (Link): Link with $(LIBTHREAD).
2779         * modules/supersede-tests (Makefile.am): Link test-supersede with
2780         $(LIBTHREAD).
2781         * modules/fatal-signal (Link): New section.
2782         * modules/execute (Link): New section.
2783         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2784         * modules/javaexec (Link): Link with $(LIBTHREAD).
2785         * modules/spawn-pipe (Link): New section.
2786         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2787         $(LIBTHREAD).
2788         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2789         * modules/javacomp (Link): Link with $(LIBTHREAD).
2790         * modules/javaversion (Link): Link with $(LIBTHREAD).
2791         * modules/pipe-filter-gi (Link): New section.
2792         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2793         test-pipe-filter-gi2-main with $(LIBTHREAD).
2794         * modules/pipe-filter-ii (Link): New section.
2795         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2796         test-pipe-filter-ii2-main with $(LIBTHREAD).
2797         * modules/term-style-control (Link): New section.
2798         * modules/term-style-control-tests (Makefile.am): Link
2799         test-term-style-control-hello, test-term-style-control-yes with
2800         $(LIBTHREAD).
2801         * modules/wait-process (Link): New section.
2802         * modules/nonblocking-pipe-tests (Makefile.am): Link
2803         test-nonblocking-pipe-main with $(LIBTHREAD).
2804         * modules/nonblocking-socket-tests (Makefile.am): Link
2805         test-nonblocking-socket-main with $(LIBTHREAD).
2807 2020-11-16  Bruno Haible  <bruno@clisp.org>
2809         Fix link errors on platforms with libunistring.
2810         * modules/c32isalnum (Link): New section.
2811         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2812         $(LIBUNISTRING).
2813         * modules/c32isalpha (Link): New section.
2814         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2815         $(LIBUNISTRING).
2816         * modules/c32isblank (Link): New section.
2817         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2818         $(LIBUNISTRING).
2819         * modules/c32iscntrl (Link): New section.
2820         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2821         $(LIBUNISTRING).
2822         * modules/c32isdigit (Link): New section.
2823         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2824         $(LIBUNISTRING).
2825         * modules/c32isgraph (Link): New section.
2826         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2827         $(LIBUNISTRING).
2828         * modules/c32islower (Link): New section.
2829         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2830         $(LIBUNISTRING).
2831         * modules/c32isprint (Link): New section.
2832         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2833         $(LIBUNISTRING).
2834         * modules/c32ispunct (Link): New section.
2835         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2836         $(LIBUNISTRING).
2837         * modules/c32isspace (Link): New section.
2838         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2839         $(LIBUNISTRING).
2840         * modules/c32isupper (Link): New section.
2841         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2842         $(LIBUNISTRING).
2843         * modules/c32isxdigit (Link): New section.
2844         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2845         $(LIBUNISTRING).
2846         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2847         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2848         $(LIBUNISTRING).
2850 2020-11-16  Bruno Haible  <bruno@clisp.org>
2852         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2853         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2854         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2855         * modules/getumask-tests (Makefile.am): Link test-getumask with
2856         $(LIBINTL).
2857         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2858         * modules/supersede-tests (Makefile.am): Link test-supersede with
2859         $(LIBINTL).
2860         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2861         $(LIBINTL).
2863 2020-11-16  Bruno Haible  <bruno@clisp.org>
2865         getumask: Document link dependencies.
2866         * modules/getumask (Link): New section.
2868 2020-11-16  Bruno Haible  <bruno@clisp.org>
2870         Update link dependencies in modules after 2020-09-09 change.
2871         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2872         * modules/mkdtemp (Link): Likewise.
2873         * modules/mkostemp (Link): Likewise.
2874         * modules/mkostemps (Link): Likewise.
2875         * modules/mkstemp (Link): Likewise.
2876         * modules/mkstemps (Link): Likewise.
2877         * modules/supersede (Link): Likewise.
2878         * modules/tmpfile (Link): Likewise.
2879         * modules/tmpfile-safer (Link): Likewise.
2881 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2883         getumask-tests: port to Solaris 10 etc.
2884         Problem reported by Tom Christensen in:
2885         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2886         * modules/getumask-tests (test_getumask_LDADD):
2887         Add $(LIB_CLOCK_GETTIME).
2889 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2891         bitset: use ffsl to accelerate iterations over set bits
2892         Suggested by Bruno Haible.
2893         * modules/bitset: Depend upon ffsl.
2894         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2895         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2897 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2899         bitset: more tests
2900         * tests/test-bitset.c (compare): Make it clear that the random values
2901         should not be modified.
2902         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2904 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2906         bitset: fix the copy from lbitset to other types
2907         * lib/bitset/list.c (lbitset_copy): Rename as...
2908         (lbitset_copy_): this.
2909         (lbitset_copy): New.
2910         Dispatch to heterogeneous/homogeneous copy.
2912 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2914         bitset: making debug traces more useful
2915         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2917         bitset: comment changes
2918         * lib/bitset.c: Move some documenting comments to...
2919         * lib/bitset.h: here.
2920         * lib/bitset/array.c: Fix some comments.
2922 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2924         careadlinkat: warn better about GCC bug 93644
2925         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2926         not in effect, use "#warning" to let builders know more clearly
2927         about GCC bug 93644, because the bug triggers even if no -W option
2928         is given to GCC.
2930 2020-11-13  Jim Meyering  <meyering@fb.com>
2932         hard-locale-tests: avoid a -Wstrict-prototypes warning
2933         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2934         changing "main ()" to "main (void)". This was the only case that
2935         triggered a warning when building grep with --enable-gcc-warnings.
2937 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2939         time_rz: simplify CVE-2017-7476 fix
2940         * lib/time_rz.c: Do not include limits.h; I think it was included
2941         under the mistaken impression that limits.h defines SIZE_MAX.
2942         (SIZE_MAX): Remove.
2943         (save_abbr): Put string length into a ptrdiff_t variable,
2944         so that the size comparison works naturally.  This
2945         fixes CVE-2017-7476 in a cleaner way.
2947         parse-datetime: streamline overflow checking
2948         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2949         did not work for unsigned destinations, and since time_t might
2950         be unsigned that meant it did not work for time_t destinations.
2951         This limitation of INT_ADD_WRAPV has been fixed, so we can
2952         now streamline parse-datetime.y a bit.
2953         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2954         has not been used for a while.
2955         (yylex, parse_datetime2): Assume C99 declarations after statements.
2956         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2957         to TYPE_MINIMUM.
2958         (parse_datetime2): No need for time_overflow now that
2959         INT_ADD_WRAPV works for unsigned results.
2961         parse-datetime-tests: port to Alpine Linux 3.12.1
2962         * tests/test-parse-datetime.c: Include errno.h for errno,
2963         and unistd.h for _SC_TZNAME_MAX and sysconf.
2964         (main): In the outlandishly-long time zone abbreviation test,
2965         do not exceed TZNAME_MAX as this has undefined behavior,
2966         and on Alpine Linux 3.12.1 it makes the test fail.
2968 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2970         mgetgroups: avoid warning with clang
2971         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2972         so disable -Wpointer-sign for all clang versions.
2974 2020-11-07  Bruno Haible  <bruno@clisp.org>
2976         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2977         Reported by Simon Josefsson in
2978         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2979         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2980         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2981         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2983 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2985         tests: pacify Sun C 5.9
2986         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2987         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2988         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2989         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2990         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2991         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2992         Remove unreachable ‘return NULL;’s.
2994         tests: port better to XLC 12.01
2995         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2996         even in code that is not executed, as IBM XLC 12.01 complains "The
2997         subscript -1 is less than zero."
2998         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2999         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
3000         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
3001         arguments than are required by the macro definition."
3003 2020-11-03  Bruno Haible  <bruno@clisp.org>
3005         aligned-malloc: Use fixes from the new modules.
3006         * modules/aligned-malloc (Depends-on): Add posix_memalign,
3007         aligned_alloc, memalign.
3008         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3010 2020-11-03  Bruno Haible  <bruno@clisp.org>
3012         aligned_alloc: Add tests.
3013         * tests/test-aligned_alloc.c: New file.
3014         * modules/aligned_alloc-tests: New file.
3016         aligned_alloc: New module.
3017         * lib/stdlib.in.h (aligned_alloc): New declaration.
3018         * lib/aligned_alloc.c: New file.
3019         * m4/aligned_alloc.m4: New file.
3020         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
3021         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
3022         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3023         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
3024         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3025         * modules/aligned_alloc: New file.
3026         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
3027         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
3028         AIX bug.
3030 2020-11-03  Bruno Haible  <bruno@clisp.org>
3032         posix_memalign: Add tests.
3033         * tests/test-posix_memalign.c: New file.
3034         * modules/posix_memalign-tests: New file.
3036         posix_memalign: New module.
3037         * lib/stdlib.in.h (posix_memalign): New declaration.
3038         * lib/posix_memalign.c: New file.
3039         * m4/posix_memalign.m4: New file.
3040         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
3041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
3042         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3043         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
3044         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3045         * modules/posix_memalign: New file.
3046         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
3047         * doc/posix-functions/posix_memalign.texi: Mention the new module and
3048         the OpenBSD bug.
3050 2020-11-03  Bruno Haible  <bruno@clisp.org>
3052         memalign: Add tests.
3053         * tests/test-memalign.c: New file.
3054         * modules/memalign-tests: New file.
3056         memalign: New module.
3057         * modules/memalign: New file.
3058         * doc/glibc-functions/memalign.texi: Mention the new module.
3060 2020-11-03  Bruno Haible  <bruno@clisp.org>
3062         verify tests: Fix crash with GCC (regression 2020-11-02).
3063         * tests/test-verify.c (main): Fix initializer of s.
3065 2020-11-03  Pádraig Brady  <P@draigBrady.com>
3067         mountlist: recognize more file system types as remote
3069         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
3070         "remote" file systems from stat.c in coreutils.
3072 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
3074         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
3075         * tests/test-verify.c (main): Initialize state variable.
3076         Reported by Bruno Haible for GCC 5.4.0.
3078 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
3080         dfa.h: support inclusion from C++
3081         * lib/dfa.h: Allow multiple inclusion, and inclusion from
3082         C++ code.  The latter was suggested by Arnold Robbins.
3084 2020-11-01  Bruno Haible  <bruno@clisp.org>
3086         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
3087         * tests/test-ssfmalloc.c: Include <limits.h>.
3088         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
3090 2020-11-01  Bruno Haible  <bruno@clisp.org>
3092         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
3093         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
3095 2020-11-01  Jim Meyering  <meyering@fb.com>
3097         dfa-tests: test for today's invalid-merge fix
3098         * tests/test-dfa-invalid-merge.sh: New file.
3099         * modules/dfa-tests (Files): Add it.
3100         (TESTS): Add it.
3102 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3104         dfa: retain sequences of similar nodes in optimization
3105         DFA was merging similar nodes when it should not.  For example,
3106         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
3107         is not merged.  Problem reported by Gonzalo Padrino in
3108         https://bugs.gnu.org/44351
3109         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
3110         optimization.
3112 2020-11-01  Jim Meyering  <meyering@fb.com>
3114         test-dfa-match-aux.c: accept EREs, not BREs
3115         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
3116         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
3118 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
3120         verify tests: avoid -Wmissing-declarations warnings
3121         * tests/test-verify.c (test_assume_expressions): Add declaration.
3122         (test_assume_optimization): Likewise.
3123         (test_assume_noreturn): Likewise.
3124         (main): Move down after all other definitions.  While at it, also
3125         call test_assume_expressions and test_assume_optimization as a
3126         runtime check.
3128 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3130         sys_stat: update comments for S_IRWXUGO, S_IXUGO
3131         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
3132         Perhaps these macros should be removed, as they’re not in either
3133         POSIX or GNU.  They could be moved to stat-macros.h, which would
3134         be cleaner in some sense.
3136 2020-10-25  Bruno Haible  <bruno@clisp.org>
3138         ssfmalloc tests: Small tweaks.
3139         * tests/test-ssfmalloc.c: Add comments.
3140         (alloc_pages): Don't require PROT_EXEC bits.
3141         (block_sizes): Add more small sizes, for better coverage of
3142         ssfmalloc-bitmap.h.
3144         ssfmalloc tests: Portability to Minix.
3145         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
3146         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
3147         * m4/mmap-anon.m4: Update comment.
3149         ssfmalloc: Portability to AIX.
3150         * modules/ssfmalloc (Include): Add ssfmalloc.h.
3151         (Link): New section.
3152         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
3153         $(LIBTHREAD).
3155         ssfmalloc: Portability to Cygwin.
3156         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
3157         (pg_offset_t): Define depending on PAGESIZE_MAX.
3158         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
3159         (PAGESIZE_MAX): New macro.
3161         ssfmalloc: Fix buffer overrun in bitmap search.
3162         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
3163         word *words_end.
3165 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3167         doc: mention ‘restrict’ and C++
3168         * doc/gnulib-readme.texi (C99 features assumed): Document
3169         that ‘restrict’ should be avoided in C++ code.
3171 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
3173         selinux-at, selinux-h: port to SELinux 3.1
3174         The new release finally deprecated the typedef 'security_context_t',
3175         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
3176         Use the simpler 'char *' instead.
3177         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
3178         (lgetfilecon): Likewise.
3179         (fgetfilecon): Likewise.
3180         (map_to_failure): Likewise.
3181         (rpl_getfilecon): Likewise.
3182         (rpl_lgetfilecon): Likewise.
3183         (rpl_fgetfilecon): Likewise.
3184         * lib/se-selinux.in.h (security_context_t): Remove typedef.
3185         (getcon): Adjust type of context parameter.
3186         (freecon): Likewise.
3187         (getfscreatecon): Likewise.
3188         (setfscreatecon): Likewise.
3189         (matchpathcon): Likewise.
3190         (getfilecon): Likewise.
3191         (lgetfilecon): Likewise.
3192         (fgetfilecon): Likewise.
3193         (setfilecon): Likewise.
3194         (lsetfilecon): Likewise.
3195         (fsetfilecon): Likewise.
3196         (security_check_context): Likewise.
3197         (security_check_context_raw): Likewise.
3198         (setexeccon): Likewise.
3199         (security_compute_create): Likewise.
3200         * lib/selinux-at.c (getfileconat): Likewise.
3201         (lgetfileconat): Likewise.
3202         (setfileconat): Likewise.
3203         (lsetfileconat): Likewise.
3204         * lib/selinux-at.h: Likewise.
3206 2020-10-19  Bruno Haible  <bruno@clisp.org>
3208         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
3209         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
3210         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
3211         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
3212         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
3213         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
3214         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
3216 2020-10-18  Bruno Haible  <bruno@clisp.org>
3218         ssfmalloc: Add tests.
3219         * tests/test-ssfmalloc.c: New file.
3220         * modules/ssfmalloc-tests: New file.
3222         ssfmalloc: New module.
3223         * lib/ssfmalloc.h: New file.
3224         * lib/ssfmalloc-bitmap.h: New file.
3225         * modules/ssfmalloc: New file.
3227 2020-10-18  Bruno Haible  <bruno@clisp.org>
3229         wchar: Fix configure test result on some versions of AIX.
3230         Reported by Clément Chigot <clement.chigot@atos.net> in
3231         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
3232         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
3233         systems.
3235 2020-10-18  Bruno Haible  <bruno@clisp.org>
3237         time: Fix warning about asctime when asctime is not used.
3238         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
3239         invocation.
3241 2020-10-18  Bruno Haible  <bruno@clisp.org>
3243         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
3244         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
3245         '_GL_ATTRIBUTE_CONST'.
3246         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
3247         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
3248         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3249         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
3250         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
3251         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
3252         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
3254 2020-10-18  Bruno Haible  <bruno@clisp.org>
3256         obstack: Fix a clang warning.
3257         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
3259 2020-10-16  Bruno Haible  <bruno@clisp.org>
3261         hash: Rename hash_delete to hash_remove.
3262         * lib/hash.h (hash_remove): Renamed from hash_delete.
3263         (hash_delete): New declaration.
3264         * lib/hash.c (hash_remove): Renamed from hash_delete.
3265         (hash_delete): New function.
3266         * tests/test-hash.c (main): Update.
3267         * lib/fts-cycle.c (leave_dir): Likewise.
3268         * NEWS: Mention the change.
3270 2020-10-16  Bruno Haible  <bruno@clisp.org>
3272         hash, xhash: Make usable from C++.
3273         * lib/hash.h: Add extern "C".
3275 2020-10-16  Bruno Haible  <bruno@clisp.org>
3277         hash, xhash: Move comments to the .h file.
3278         * lib/hash.c: Move comments meant for the user from here...
3279         * lib/xhash.c: ... and here...
3280         * lib/hash.h: ... to here.
3282 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
3284         Don't declare an intention to modify the return value of strerror.
3285         * tests/test-perror2.c (main): Assign the return value of strerror to a
3286         'const char *' variable.
3288 2020-10-11  Bruno Haible  <bruno@clisp.org>
3290         *printf: Avoid "expanded before it was required" warning.
3291         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
3292         AC_DEFUN_ONCE.
3294 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
3296         getprogname: Add support for OpenServer 6 and UnixWare 7.
3297         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
3298         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
3300 2020-10-11  Bruno Haible  <bruno@clisp.org>
3302         tests: Avoid a name clash on UnixWare.
3303         Reported by Tim Rice <tim@multitalents.net> in
3304         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
3305         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
3307 2020-10-11  Bruno Haible  <bruno@clisp.org>
3309         stdioext: Update comments regarding UnixWare.
3310         Reported by Tim Rice <tim@multitalents.net> in
3311         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3312         * lib/fbufmode.c: Update comments.
3313         * lib/fflush.c: Likewise.
3314         * lib/fpending.c: Likewise.
3315         * lib/fpurge.c: Likewise.
3316         * lib/freadable.h: Likewise.
3317         * lib/freadable.c: Likewise.
3318         * lib/freadahead.c: Likewise.
3319         * lib/freading.h: Likewise.
3320         * lib/freading.c: Likewise.
3321         * lib/freadptr.c: Likewise.
3322         * lib/freadseek.c: Likewise.
3323         * lib/fseeko.c: Likewise.
3324         * lib/fseterr.c: Likewise.
3325         * lib/fwritable.h: Likewise.
3326         * lib/fwritable.c: Likewise.
3327         * lib/fwriting.h: Likewise.
3328         * lib/fwriting.c: Likewise.
3330 2020-10-11  Bruno Haible  <bruno@clisp.org>
3332         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3333         Reported by Tim Rice <tim@multitalents.net> in
3334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3335         Uses the info from
3336         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3337         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3339 2020-10-11  Bruno Haible  <bruno@clisp.org>
3341         stdioext: Avoid compilation errors on UnixWare 7.
3342         Reported by Tim Rice <tim@multitalents.net> in
3343         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3344         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3345         * lib/fpurge.c: Likewise.
3346         * lib/freadable.h: Likewise.
3347         * lib/freading.h: Likewise.
3348         * lib/fwritable.h: Likewise.
3349         * lib/fwriting.h: Likewise.
3350         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3351         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3352         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3353         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3354         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3355         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3357 2020-10-11  Bruno Haible  <bruno@clisp.org>
3359         stdioext: Update comments regarding Cygwin.
3360         * lib/fpending.c: Update comments.
3361         * lib/fpurge.c: Likewise.
3362         * lib/freadable.h: Likewise.
3363         * lib/freadable.c: Likewise.
3364         * lib/freading.h: Likewise.
3365         * lib/freading.c: Likewise.
3366         * lib/fwritable.h: Likewise.
3367         * lib/fwritable.c: Likewise.
3368         * lib/fwriting.h: Likewise.
3369         * lib/fwriting.c: Likewise.
3371 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3373         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3374         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3375         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3377 2020-10-10  Bruno Haible  <bruno@clisp.org>
3379         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3380         Reported by Marc Nieper-Wißkirchen in
3381         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3382         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3383         gl_linked_iterator_from_to): Mark as 'pure'.
3384         (gl_linked_iterator_free): Mark as 'const'.
3385         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3386         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3387         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3388         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3389         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3390         (gl_tree_iterator_free): Mark as 'const'.
3391         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3392         'pure'.
3393         (gl_tree_iterator_free): Mark as 'const'.
3394         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3395         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3396         (gl_tree_iterator_free): Mark as 'const'.
3397         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3398         compare_position_threshold): Mark as 'pure'.
3399         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3400         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3401         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3402         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3403         'pure'.
3404         (gl_array_iterator_free): Mark as 'const'.
3405         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3406         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3407         (gl_array_iterator_free): Mark as 'const'.
3408         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3409         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3410         gl_array_iterator_atleast): Mark as 'pure'.
3411         (gl_array_iterator_free): Mark as 'const'.
3412         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3413         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3414         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3415         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3416         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3417         gl_carray_sortedlist_search): Mark as 'pure'.
3418         (gl_carray_iterator_free): Mark as 'const'.
3420 2020-10-10  Bruno Haible  <bruno@clisp.org>
3422         rbtree-list: Avoid possible compiler warnings.
3423         This mirrors the change of avltree-list on 2014-09-16.
3424         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3425         declaration. Add cast to void for ignored value of check_invariants.
3427 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3429         stack: New module.
3430         * MODULES.html.sh: Add entry for the stack module.
3431         * modules/stack: New file.
3432         * modules/stack-tests: New file.
3433         * lib/stack.h: New file.
3434         * tests/test-stack.c: New file.
3436 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3438         attribute: improve const, pure doc
3439         Problem reported by Marc Nieper-Wißkirchen in:
3440         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3441         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3442         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3444 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3446         thread: pacify GCC on Solaris 10
3447         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3448         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3449         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3450         where pthread_t is unsigned int.
3452 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3454         c-stack: avoid AS_IF
3455         Problem reported by Bruno Haible in:
3456         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3457         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3459         c-stack: pacify GCC 9.3.1 when using libsigsegv
3460         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3462 2020-10-04  Bruno Haible  <bruno@clisp.org>
3464         localename: Fix a couple of "unused parameter" warnings.
3465         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3466         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3467         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3468         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3469         parameter list.
3471 2020-10-04  Bruno Haible  <bruno@clisp.org>
3473         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3474         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3475         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3477         HAVE_SNPRINTF_TRUNCATION_C99.
3478         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3479         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3481 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3483         c-stack: streamline Solaris configuration
3484         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3485         the code is used only if a test for sigaltstack worked
3486         in some other way.
3487         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3488         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3489         heuristic does not work).
3490         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3491         we no longer require the libsigsegv module.
3492         (Depends-on): Depend on havelib, not libsigsegv.
3494         c-stack: stop using SIGSTKSZ
3495         It’s been proposed to stop making SIGSTKSZ an integer constant:
3496         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3497         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3498         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3499         * lib/c-stack.c (SIGSTKSZ): Remove.
3500         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3501         All uses changed.
3503         c-stack: fix libsigsegv typo
3504         Problem reported by Bruno Haible in:
3505         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3506         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3507         to be used only on Solaris (exactly where it is not needed!).
3509 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3511         MODULES.html.sh: Fix typo.
3512         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3514 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3516         version-etc: pacify Oracle Studio 12.6
3517         Without this patch, it complains: "version-etc.h", line 64:
3518         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3519         pedantic mode.
3520         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3522 2020-09-27  Bruno Haible  <bruno@clisp.org>
3524         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3525         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3526         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3527         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3528         ourselves; don't use AC_DECL_SYS_SIGLIST.
3530 2020-09-27  Bruno Haible  <bruno@clisp.org>
3532         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3533         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3534         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3535         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3536         instead of _AC_COMPUTE_INT.
3538 2020-09-27  Bruno Haible  <bruno@clisp.org>
3540         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3541         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3542         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3543         Based on a patch by Paul Eggert.
3544         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3545         test STDC_HEADERS. Assume <stdlib.h> exists.
3546         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3548 2020-09-27  Bruno Haible  <bruno@clisp.org>
3550         Enable testing of prereleases of Autoconf 2.70.
3551         Suggested by Paul Eggert in
3552         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3553         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3554         >= 2.70.
3555         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3556         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3557         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3559 2020-09-27  Bruno Haible  <bruno@clisp.org>
3561         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3562         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3563         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3564         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3565         AC_PROG_CC, depending on the Autoconf version.
3567 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3569         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3570         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3571         of AC_HELP_STRING.
3572         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3574 2020-09-27  Bruno Haible  <bruno@clisp.org>
3576         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3577         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3578         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3579         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3581 2020-09-27  Bruno Haible  <bruno@clisp.org>
3583         extensions: Simplify last commit.
3584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3585         AC_GNU_SOURCE ever.
3587 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3589         extensions: require AC_GNU_SOURCE only for <=2.63
3590         Problem reported by Gavin Smith in:
3591         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3593         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3594         shouldn’t be needed after that, and Autoconf 2.70 complains about
3595         it being obsolete.
3597 2020-09-26  Bruno Haible  <bruno@clisp.org>
3599         regex-tests: Make test more robust.
3600         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3601         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3603 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3605         regex-tests: fix possible Turkish false-alarm
3606         * modules/regex-tests (Depends-on): Add wctype-h.
3607         * tests/test-regex.c: Include wctype.h.
3608         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3609         as the Turkish regex test assumes this.
3611         regex-tests: fix test and add debug output
3612         Perhaps this will fix the recent grep test failure reported at:
3613         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3614         At least, the debug output should help narrow down the failure.
3615         * tests/test-regex.c: Include stdarg.h, stdio.h.
3616         (exit_status): New var.
3617         (report_error): New function.
3618         (main): Use it to report failures to stdout instead of merely
3619         exiting with some nonzero status.  The status info alone isn’t
3620         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3621         regex before calling re_compile_pattern, fixing a portability bug.
3623         regex: no longer match glibc
3624         * config/srclist.txt: Comment out regex_internal.c for now.
3626 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3628         regex: fix ignore-case Turkish bug
3629         * lib/regex_internal.c (build_wcs_upper_buffer):
3630         Do not assume that converting single-byte character to upper
3631         yields a single-byte character.  This is not true for Turkish,
3632         where towupper (L'i') yields L'İ', which is not single-byte.
3633         * tests/test-regex.c (main): Test for this bug.
3635         regex: port to weird isascii platforms
3636         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3638 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3640         dfa: make dfasupported a global function
3641         * lib/dfa.c (dfasupported): Rename, and make it global.
3642         Update caller.
3643         * lib/dfa.h (dfasupported): Add prototype.
3645 2020-09-20  Bruno Haible  <bruno@clisp.org>
3647         canonicalize: Add support for UNC file names on native Windows.
3648         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3649         <https://savannah.gnu.org/bugs/?59079>.
3650         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3651         extend the prefix to include the server.
3653 2020-09-20  Bruno Haible  <bruno@clisp.org>
3655         supersede: Fix test failures on native Windows.
3656         * lib/supersede.c (open_supersede): Handle non-regular files on native
3657         Windows like on Solaris.
3658         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3660 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3662         test-stdalign: test Oracle Studio better
3663         * doc/posix-headers/stdalign.texi (stdalign.h):
3664         * tests/test-stdalign.c (main):
3665         Sun Studio Bug #2125432 seems to be fixed.
3667         c-stack: output diagnostic in single 'write'
3668         * lib/c-stack.c (die): In the typical case, use just one 'write'
3669         syscall to output the diagnostic, as this lessens interleaving.
3670         (die, c_stack_action): Assume C99.
3671         * modules/c-stack (Depends-on): Add c99, mempcpy.
3673         c-stack: improve checking if !libsigsegv
3674         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3675         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3676         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3677         I found these problems while looking into this bug report:
3678         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3679         * lib/c-stack.c: Include c-stack.h first, to test interface.
3680         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3681         max_align_t, intprops.h for INT_ADD_WRAPV.
3682         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3683         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3684         for libsigsegv 2.8 and earlier since the bug should be fixed
3685         after that.
3686         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3687         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3688         Assume sprintf returns byte count; this assumption is safe now.
3689         (page_size): New static volatile variable, since sysconf isn’t
3690         documented to be async-signal-safe on Solaris.  This variable is
3691         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3692         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3693         SIGINFO_WORKS).
3694         (segv_handler): Use it if present.  Never report null pointer
3695         dereference as a stack overflow.  Check for (unlikely) unsigned
3696         and/or pointer overflow.
3697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3698         Rename cache variables to gl_cv_sys_stack_overflow_works
3699         and gl_cv_sys_xsi_stack_overflow_heuristic.
3700         All uses changed.
3701         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3702         c-stack no longer uses STACK_DIRECTION.
3703         Do not check for unistd.h, since we depend on unistd.
3704         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3705         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3706         stdbool, stddef.
3708 2020-09-20  Bruno Haible  <bruno@clisp.org>
3710         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3711         * m4/musl.m4: Revert 2020-09-19 patch.
3712         * m4/setlocale_null.m4: Likewise.
3713         * modules/setlocale-null: Likewise.
3715 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3716             Bruno Haible  <bruno@clisp.org>
3718         relocatable-prog: Fix for multiple relocatable library directories.
3719         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3720         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3721         being attached to a single one.
3723 2020-09-19  Jim Meyering  <meyering@fb.com>
3725         test-verify.c: avoid -Wshadow warnings
3726         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3727         (enum): Capitalize member names. Adjust uses.
3729 2020-09-19  Bruno Haible  <bruno@clisp.org>
3731         havelib: Avoid linking with libc.a on GNU systems.
3732         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3733         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3735         dependency_libs value of a .la file, ignore '-lc' options on GNU
3736         systems.
3738 2020-09-19  Bruno Haible  <bruno@clisp.org>
3740         Fix recognition of musl libc on Alpine Linux 3.10.
3741         Reported by Jeffrey Walton <noloader@gmail.com> in
3742         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3743         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3744         (gl_MUSL_LIBC): Require it.
3745         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3746         * modules/setlocale-null (Files): Add m4/musl.m4.
3748 2020-09-19  Bruno Haible  <bruno@clisp.org>
3750         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3751         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3752         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3753         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3754         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3755         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3756         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3757         or <threads.h>.
3758         (ITEMS, MAX_RESULT_LEN): New macros.
3759         (nl_langinfo_unlocked): New function.
3760         (gl_get_nl_langinfo_lock): New declaration.
3761         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3762         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3763         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3764         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3765         REPLACE_NL_LANGINFO.
3766         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3767         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3768         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3769         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3770         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3772 2020-09-18  Bruno Haible  <bruno@clisp.org>
3774         fsusage, getaddrinfo: Produce more regular configure output.
3775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3776         corresponding AC_MSG_RESULT.
3777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3779 2020-09-18  Bruno Haible  <bruno@clisp.org>
3781         Add back gl_SILENT.
3782         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3784 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3786         c-stack-tests: fix -fsanitize=undefined false alarm
3787         * tests/test-c-stack2.sh: Skip the test-harness self-test
3788         if ‘gcc -fsanitize=undefined’ is in use.
3790 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3792         signalblocking: simplify and remove gl_SILENT
3793         gl_SILENT was problematic because if a trap was sprung, stderr
3794         generated during the trap was lost.  Avoid the problem by
3795         removing the need for gl_SILENT.
3796         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3797         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3798         Simplify, avoiding the need for gl_SILENT while preserving the
3799         ability of the user to override the value of the cache variable,
3800         now ac_cv_func_sigprocmask.
3802 2020-09-17  Bruno Haible  <bruno@clisp.org>
3804         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3805         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3806         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3807         AS_MESSAGE_FD.
3809 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3811         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3812         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3813         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3814         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3815         Define to 0.
3816         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3817         Do not use __builtin_mul_overflow_p.
3819         libc-config: port __THROW to Ubuntu 4
3820         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3821         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3822         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3823         The GCC 3.3.4 documentation says the attribute should work, but
3824         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3825         little point or desire to research this circa-2004 platform further,
3826         so just avoid the attribute there.
3828 2020-09-17  Jim Meyering  <meyering@fb.com>
3830         test-dfa-match.sh: port timeout work-around to newer Busybox
3831         * tests/test-dfa-match.sh: Update timeout -t portability test to
3832         accommodate Busybox 1.30.0 and newer.
3834 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3836         fnmatch: adjust to match glibc fix
3837         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3838         This does not affect Gnulib; it merely keeps Gnulib and glibc
3839         closer together, to help with any eventual merge, by incorporating
3840         a recent glibc patch.  The patch and the following commentary is
3841         by Andreas Schwab.
3842         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3843         contains the index into the extra array, whereas wextra points
3844         into the extra array at this index, containing the length of the
3845         following collating sequence in the wide character representation.
3847 2020-09-16  Bruno Haible  <bruno@clisp.org>
3849         stat, fstat: Fix compilation error with old mingw headers.
3850         Reported by Eli Zaretskii <eliz@gnu.org> in
3851         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3852         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3853         define it.
3855 2020-09-16  Bruno Haible  <bruno@clisp.org>
3857         stat, fstat: Fix when compiling for versions older than Windows Vista.
3858         Reported by Eli Zaretskii <eliz@gnu.org> in
3859         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3860         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3861         that was originally set before we redefined it.
3862         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3863         (gl_PREREQ_STAT): Require it.
3864         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3866 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3868         dfa: remove dfa-heap-overrun workaround
3869         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3870         both sets map[*] and does other things.  This reverts
3871         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3872         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3873         fixed the underlying problem.
3875 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3877         dfa: avoid use of uninitialized constraint
3878         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3879         to zero here.
3880         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3881         use of an uninitialized constraint by later code when ! (flags[i]
3882         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3883         the constraint.  Problem found by running 'valgrind src/grep -E
3884         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3886         dfa: assume C99 in reorder_tokens
3887         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3889         dfa: fix dfa-heap-overrun failure
3890         * lib/dfa.c (reorder_tokens): When setting
3891         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3892         that (i < d->follows[i].elems[j].index), use two loops, one to set
3893         the map array and the other to use it.  The incorrect assumption
3894         caused some elements to be missed, and this in turn caused grep's
3895         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3896         with GCC.  I found this bug while investigating
3897         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3898         and I think the bug also occurs on GNU/Linux but with more-subtle
3899         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3900         recent changes make the bug more likely.
3902 2020-09-13  Bruno Haible  <bruno@clisp.org>
3904         parse-datetime: Make the build rule work with parallel 'make'.
3905         Reported by Daiki Ueno <ueno@gnu.org> in
3906         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3907         * modules/parse-datetime (Makefile.am): Use a phony target and the
3908         general idiom for rules that produce multiple files.
3910 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3912         getpass: Check for nonnull prompt argument while avoiding warnings.
3913         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3914         (getpass) [!_WIN32]: Print prompt only if nonnull.
3916 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3918         dfa: epsilon-closure tweaks (Bug#40634)
3919         Rename BACKWORD to BACKWARD consistently.
3920         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3921         (addtok_mb): Redo slightly to make it act more like a state machine.
3922         Check depth only when it increases.
3923         (epsclosure): Let the switch test the tokens.
3924         (dfaanalyze): Cache tindex.  Simplify position loops.
3925         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3926         only if it is not null, since we're testing that anyway.
3927         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3929 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3931         dfa: use backward set in removal of epsilon closure
3932         When removing in epsilon closure, the code searched all nodes
3933         sequentially, and this was slow for some cases.  Build a backward
3934         set before search, and only check previous position with the set.
3935         Problem reported in <https://bugs.gnu.org/40634>.
3936         * lib/dfa.c (struct dfa): New member 'epsilon'.
3937         (addtok_mb): Check whether a pattern has epsilon node or not.
3938         (epsclosure): New arg BACKWORD; caller changed.  When removing
3939         epsilon node and reconnecting, check only previous positions.
3940         Treat BEG as if it were character.
3941         (dfaanalyze): Build backward set.
3943 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3945         canonicalize: fix pointer indexing bugs
3946         Problem reported by Florian Weimer in:
3947         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3948         * lib/canonicalize-lgpl.c (__realpath):
3949         * lib/canonicalize.c (canonicalize_filename_mode):
3950         Do not generate a pointer past the end of the array.
3951         * lib/canonicalize.c (canonicalize_filename_mode):
3952         Do not use a pointer after passing it to realloc.
3954 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3956         tempname: help merge with glibc
3957         Inspired by draft patches by Adhemerval Zanella in:
3958         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3959         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3960         * lib/tempname.c: Include stdalign.h, time.h.
3961         If _LIBC, do not include random-bits.h.
3962         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3963         (RANDOM_BITS): Remove, replacing with ...
3964         (random_bits): ... this new static function.  All uses changed.
3965         Add entropy each time if getrandom is not supported.
3966         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3967         Assume 64-bit support a la C99.
3968         (try_tempname_len): Take advantage of ASLR when initializing
3969         random value.
3970         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3972         getcwd: merge recent glibc changes
3973         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3974         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3976 2020-09-06  Bruno Haible  <bruno@clisp.org>
3978         attribute: Clarify which file to include.
3979         * modules/attribute (Include): Add "attribute.h".
3981 2020-09-06  Bruno Haible  <bruno@clisp.org>
3983         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3984         * lib/pipe-filter-ii.c: Include <process.h>.
3985         * lib/pipe-filter-gi.c: Likewise.
3987 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3989         verify: avoid __builtin_assume
3990         Our latest attempt to use Clang’s __builtin_assume caused a crash
3991         in GNU Emacs that we spent quite some time tracking down as being
3992         caused by the switch to __builtin_assume.  It’s not known whether
3993         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3994         For now, play it safe and avoid __builtin_assume.
3995         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3996         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3998 2020-09-05  Bruno Haible  <bruno@clisp.org>
4000         Fix several "warning: no previous prototype for function".
4001         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
4002         in front of the declaration of the lookup function in
4003         unicase/locale-languages.h.
4004         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
4005         unictype/bidi_byname.h.
4006         * modules/unictype/category-byname (Makefile.am): Likewise in
4007         unictype/categ_byname.h.
4008         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
4009         unictype/combiningclass_byname.h.
4010         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
4011         unictype/joininggroup_byname.h.
4012         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
4013         unictype/joiningtype_byname.h.
4014         * modules/unictype/property-byname (Makefile.am): Likewise in
4015         unictype/pr_byname.h.
4016         * modules/unictype/scripts (Makefile.am): Likewise in
4017         unictype/scripts_byname.h.
4018         * modules/uninorm/composition (Makefile.am): Likewise in
4019         uninorm/composition-table.h.
4021 2020-09-05  Bruno Haible  <bruno@clisp.org>
4023         select: Fix "warning: no previous prototype for function".
4024         * lib/select.c: Include <sys/select.h>.
4026 2020-09-05  Bruno Haible  <bruno@clisp.org>
4028         Use module 'c99' when needed for variadic macros with '...' syntax.
4029         * modules/crypto/sm3 (Depends-on): Add c99.
4031 2020-09-05  Bruno Haible  <bruno@clisp.org>
4033         Use module 'c99' when needed for subobject initializer syntax.
4034         * modules/tempname (Depends-on): Add c99.
4035         * modules/nstrftime-tests (Depends-on): Likewise.
4037 2020-09-05  Bruno Haible  <bruno@clisp.org>
4039         Use module 'c99' when needed for declaration-after-statement syntax.
4040         * modules/backup-rename (Depends-on): Add c99.
4041         * modules/backupfile (Depends-on): Likewise.
4042         * modules/bitset-tests (Depends-on): Likewise.
4043         * modules/bitsetv (Depends-on): Likewise.
4044         * modules/c-strtod (Depends-on): Likewise.
4045         * modules/c-strtold (Depends-on): Likewise.
4046         * modules/clean-temp (Depends-on): Likewise.
4047         * modules/copy-file (Depends-on): Likewise.
4048         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
4049         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
4050         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
4051         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
4052         * modules/crypto/md5-buffer (Depends-on): Likewise.
4053         * modules/crypto/md5-tests (Depends-on): Likewise.
4054         * modules/crypto/sha1-buffer (Depends-on): Likewise.
4055         * modules/crypto/sha1-tests (Depends-on): Likewise.
4056         * modules/crypto/sha256-buffer (Depends-on): Likewise.
4057         * modules/crypto/sha256-tests (Depends-on): Likewise.
4058         * modules/crypto/sha512-buffer (Depends-on): Likewise.
4059         * modules/crypto/sha512-tests (Depends-on): Likewise.
4060         * modules/diffseq (Depends-on): Likewise.
4061         * modules/fatal-signal (Depends-on): Likewise.
4062         * modules/fchmodat (Depends-on): Likewise.
4063         * modules/fstrcmp (Depends-on): Likewise.
4064         * modules/fsusage (Depends-on): Likewise.
4065         * modules/fts (Depends-on): Likewise.
4066         * modules/fts-tests (Depends-on): Likewise.
4067         * modules/getumask (Depends-on): Likewise.
4068         * modules/git-merge-changelog (Depends-on): Likewise.
4069         * modules/hash-map (Depends-on): Likewise.
4070         * modules/hash-set (Depends-on): Likewise.
4071         * modules/lchmod (Depends-on): Likewise.
4072         * modules/libgmp-tests (Depends-on): Likewise.
4073         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
4074         * modules/linkedhash-map (Depends-on): Likewise.
4075         * modules/linkedhash-set (Depends-on): Likewise.
4076         * modules/long-options (Depends-on): Likewise.
4077         * modules/mbrtoc32 (Depends-on): Likewise.
4078         * modules/memchr2-tests (Depends-on): Likewise.
4079         * modules/memmem-tests (Depends-on): Likewise.
4080         * modules/memrchr-tests (Depends-on): Likewise.
4081         * modules/mktime-internal (Depends-on): Likewise.
4082         * modules/nstrftime (Depends-on): Likewise.
4083         * modules/opendirat (Depends-on): Likewise.
4084         * modules/parse-datetime (Depends-on): Likewise.
4085         * modules/quotearg-simple-tests (Depends-on): Likewise.
4086         * modules/same (Depends-on): Likewise.
4087         * modules/supersede (Depends-on): Likewise.
4088         * modules/supersede-tests (Depends-on): Likewise.
4089         * modules/time_rz (Depends-on): Likewise.
4090         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4091         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
4092         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
4093         * modules/xalloc (Depends-on): Likewise.
4094         * modules/xnanosleep (Depends-on): Likewise.
4096 2020-09-05  Bruno Haible  <bruno@clisp.org>
4098         Fix "warning: array initialized from parenthesized string constant".
4099         * tests/test-memmem.c (main): Remove parentheses around string constant.
4100         * tests/test-c-strcasestr.c (main): Likewise.
4101         * tests/test-strcasestr.c (main): Likewise.
4103 2020-09-05  Bruno Haible  <bruno@clisp.org>
4105         argmatch tests: Fix ISO C compliance warning.
4106         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
4107         invocation.
4109 2020-09-05  Bruno Haible  <bruno@clisp.org>
4111         uniname/uniname: Fix -Wshadow warning.
4112         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
4113         * modules/uniname/uniname (Depends-on): Add c99.
4115 2020-09-05  Bruno Haible  <bruno@clisp.org>
4117         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
4118         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
4119         argument to size_t.
4120         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
4121         n to size_t.
4123 2020-09-05  Bruno Haible  <bruno@clisp.org>
4125         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
4126         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
4127         u32_uctomb): Change type of last argument to ptrdiff_t.
4128         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4129         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4130         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
4131         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
4132         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
4134 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4136         manywarnings: remove -Wchkp and -Wabi from C++ too
4137         Suggested by Reuben Thomas in:
4138         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
4139         At some point somebody should merge the many other manywarnings-c.m4
4140         changes into manywarnings-c++.m4 too, e.g.,
4141         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
4142         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
4143         Remove -Wchkp, -Wabi.
4145 2020-08-30  Bruno Haible  <bruno@clisp.org>
4147         strerrorname_np: Add tests.
4148         * tests/test-strerrorname_np.c: New file.
4149         * modules/strerrorname_np-tests: New file.
4151         strerrorname_np: New module.
4152         * lib/string.in.h (strerrorname_np): New declaration.
4153         * lib/strerrorname_np.c: New file.
4154         * m4/strerrorname_np.m4: New file.
4155         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
4156         is declared.
4157         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
4158         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4159         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
4160         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4161         * modules/strerrorname_np: New file.
4162         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
4163         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
4164         the glibc 2.32 bug.
4166 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4168         perror, strerror_r: remove unportable tests
4169         Problem reported by Florian Weimer in:
4170         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
4171         * tests/test-perror2.c (main):
4172         * tests/test-strerror_r.c (main): Omit unportable tests.
4174 2020-08-26  Bruno Haible  <bruno@clisp.org>
4176         stdint, wchar, wctype-h: Change configure message.
4177         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
4178         enough..." instead of "checking whether wint_t is too small...".
4180 2020-08-26  Bruno Haible  <bruno@clisp.org>
4182         time_rz: Change configure message.
4183         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
4184         near extrema..." instead of "checking whether localtime loops forever
4185         near extrema...".
4187 2020-08-26  Bruno Haible  <bruno@clisp.org>
4189         stdint: Change configure message.
4190         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
4191         without ISO C predefines..." instead of "checking whether stdint.h
4192         predates C++11...".
4194 2020-08-26  Bruno Haible  <bruno@clisp.org>
4196         socketlib: Change configure message.
4197         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
4198         instead of "checking if we need to call WSAStartup in winsock2.h and
4199         -lws2_32...".
4201 2020-08-26  Bruno Haible  <bruno@clisp.org>
4203         include_next: Change configure message.
4204         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
4205         code line length is unlimited..." instead of "checking whether system
4206         header files limit the line length...".
4208 2020-08-26  Bruno Haible  <bruno@clisp.org>
4210         getcwd: Change configure message.
4211         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
4212         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
4213         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
4215 2020-08-26  Bruno Haible  <bruno@clisp.org>
4217         chdir-long: Change configure message.
4218         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
4219         system supports file names of any length..." instead of "checking
4220         whether this system has an arbitrary file name length limit...".
4221         Set gl_cv_have_unlimited_file_name_length instead of
4222         gl_cv_have_arbitrary_file_name_length_limit.
4223         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
4225 2020-08-26  Bruno Haible  <bruno@clisp.org>
4227         ceill: Change configure message.
4228         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
4229         instead of "checking whether ceill() breaks with small values...".
4231 2020-08-26  Bruno Haible  <bruno@clisp.org>
4233         iconv: Change configure message.
4234         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
4235         with its POSIX signature..." instead of "checking for iconv
4236         declaration...". Remove K&R C support.
4238 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4240         getcwd: help the merge back into glibc
4241         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
4242         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
4243         The idea is to make it easier for Gnulib lib/getcwd.c to match
4244         glibc io/getcwd-generic.c.
4245         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
4246         Include not-cancel.h.
4247         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
4248         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
4249         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
4250         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
4251         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
4252         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
4253         (__getcwd_generic): Rename from __getcwd.
4254         Use the abovementioned macros for consistency with glibc.
4255         (weak_alias): Remove.
4257 2020-08-25  Bruno Haible  <bruno@clisp.org>
4259         verify: Avoid warnings when assume(0) is used.
4260         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
4261         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
4262         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
4263         the constant 0.
4264         * tests/test-verify.c (f): New function.
4265         (state): New type.
4266         (test_assume_expressions, test_assume_optimization,
4267         test_assume_noreturn): New functions.
4269 2020-08-25  Bruno Haible  <bruno@clisp.org>
4271         fstrcmp: Clarification regarding NOTE_ORDERED.
4272         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
4274 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4276         diffseq: new option NOTE_ORDERED
4277         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
4278         * NEWS: Mention this.
4279         * lib/diffseq.h (NOTE_ORDERED): New macro.
4280         (IF_LINT2): Remove; no longer needed.
4281         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
4282         subproblem and iterate to do the larger.
4284 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4286         sys_types: let Autoconf 2.70 do pid_t
4287         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
4288         only for Autoconf versions 2.69 and earlier, since 2.70
4289         will be fixed.
4291 2020-08-23  Bruno Haible  <bruno@clisp.org>
4293         tests: Don't assume that pid_t fits in an 'int'.
4294         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
4295         of 'int'.
4296         * tests/test-nonblocking-socket-main.c (main): Likewise.
4298         sys_types: Fix definition of pid_t on 64-bit MSVC.
4299         * m4/pid_t.m4: New file.
4300         * modules/sys_types (Files): Add it.
4301         * modules/dirent (Files): Likewise.
4302         * modules/fcntl-h (Files): Likewise.
4303         * modules/sched (Files): Likewise.
4304         * modules/signal-h (Files): Likewise.
4305         * modules/spawn (Files): Likewise.
4306         * modules/sys_stat (Files): Likewise.
4307         * modules/sys_wait (Files): Likewise.
4308         * modules/termios (Files): Likewise.
4309         * modules/unistd (Files): Likewise.
4311 2020-08-23  Bruno Haible  <bruno@clisp.org>
4313         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
4314         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
4315         program.
4317 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4319         intprops: be consistent about +X vs X+0
4320         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
4322         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
4323         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
4324         is a bit-field, on older GCC or non-GCC compilers where we do
4325         things ourselves instead of using __builtin_mul_overflow.
4326         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4327         to applying sizeof to a bit-field.
4328         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4329         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4331 2020-08-23  Bruno Haible  <bruno@clisp.org>
4333         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4334         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4335         via Thomas Klausner <tk@giga.or.at> in
4336         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4337         * lib/supersede.c (open_supersede): When opening an existing non-regular
4338         file on Solaris, use O_CREAT although it should not be necessary.
4340 2020-08-23  Bruno Haible  <bruno@clisp.org>
4342         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4343         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4344         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4345         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4346         variable.
4348 2020-08-23  Bruno Haible  <bruno@clisp.org>
4350         libc-config: Improve comments.
4351         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4352         cannot use clang's __diagnose_if__ here.
4354 2020-08-22  Bruno Haible  <bruno@clisp.org>
4356         verify: Do use __builtin_assume on clang.
4357         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4358         variable in a statement expression.
4360 2020-08-22  Bruno Haible  <bruno@clisp.org>
4362         sig2str: Add more signals.
4363         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4365 2020-08-22  Bruno Haible  <bruno@clisp.org>
4367         doc: Update for OpenBSD 6.0, 6.7.
4368         * doc/*/*.texi: Update.
4369         * m4/printf.m4: Update comments and cross-compilation guesses.
4370         * m4/ceill.m4: Update comments.
4371         * m4/getcwd-abort-bug.m4: Likewise.
4372         * m4/ilogb.m4: Likewise.
4373         * m4/ilogbf.m4: Likewise.
4374         * m4/langinfo_h.m4: Likewise.
4375         * m4/modf.m4: Likewise.
4376         * m4/modff.m4: Likewise.
4378 2020-08-22  Bruno Haible  <bruno@clisp.org>
4380         doc: Mention sig2str module.
4381         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4383 2020-08-21  Bruno Haible  <bruno@clisp.org>
4385         sigdescr_np: Add tests.
4386         * tests/test-sigdescr_np.c: New file.
4387         * modules/sigdescr_np-tests: New file.
4389         sigdescr_np: New module.
4390         * lib/string.in.h (sigdescr_np): New declaration.
4391         * lib/sigdescr_np.c: New file.
4392         * m4/sigdescr_np.m4: New file.
4393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4394         declared.
4395         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4396         HAVE_SIGDESCR_NP.
4397         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4398         HAVE_SIGDESCR_NP.
4399         * modules/sigdescr_np: New file.
4400         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4401         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4403 2020-08-20  Bruno Haible  <bruno@clisp.org>
4405         sigabbrev_np: Add tests.
4406         * tests/test-sigabbrev_np.c: New file.
4407         * modules/sigabbrev_np-tests: New file.
4409         sigabbrev_np: New module.
4410         * lib/string.in.h (sigabbrev_np): New declaration.
4411         * lib/sigabbrev_np.c: New file.
4412         * m4/sigabbrev_np.m4: New file.
4413         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4414         declared.
4415         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4416         HAVE_SIGABBREV_NP.
4417         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4418         HAVE_SIGABBREV_NP.
4419         * modules/sigabbrev_np: New file.
4420         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4421         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4423 2020-08-20  Bruno Haible  <bruno@clisp.org>
4425         stdalign tests: Skip test with AIX xlclang.
4426         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4428 2020-08-20  Bruno Haible  <bruno@clisp.org>
4430         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4431         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4432         workaround as for GCC versions < 4.9.
4434 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4436         Sync up ProjectQuirks comments and documentation
4437         Transform the ProjectQuirks comments into a docstring so that it can
4438         be accessed from python as ProjectQuirks.__doc__ and harmonize
4439         descriptions with the documentation.
4440         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4441         Transform comments into a docstring.
4442         * doc/vcs-to-changelog.texi: Sync up description with comments.
4444         Split ProjectQuirks out into its own file
4445         ProjectQuirks is used by external quirks files and importing it from
4446         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4447         is cleaner to put it in its own file anyway.
4448         * build-aux/vcstocl/projectquirks.py: A new file...
4449         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4450         we move ProjectQuirks and import the file.
4452 2020-08-19  Bruno Haible  <bruno@clisp.org>
4454         uchar: Fix compilation errors in C++ mode on macOS.
4455         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4456         system header file before attempting to use 'char16_t' and 'char32_t'.
4458 2020-08-19  Bruno Haible  <bruno@clisp.org>
4460         ansi-c++-opt: Work around an autoconf macro reordering problem.
4461         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4462         section.
4464 2020-08-19  Bruno Haible  <bruno@clisp.org>
4466         math C++ tests: Fix compilation error in with GCC 10.
4467         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4468         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4469         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4471 2020-08-19  Bruno Haible  <bruno@clisp.org>
4473         uchar: Fix compilation errors in C++ mode on OpenBSD.
4474         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4475         CXX_HAS_UCHAR_TYPES is 1.
4476         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4477         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4478         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4480 2020-08-19  Bruno Haible  <bruno@clisp.org>
4482         Fix compilation errors in C++ mode on OpenBSD.
4483         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4484         OpenBSD with clang, use the approach without C preprocessor macro.
4486 2020-08-18  Bruno Haible  <bruno@clisp.org>
4488         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4489         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4490         AC_LANG_POP.
4492 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4494         verify: avoid __built_assume on Clang
4495         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4496         Clang 9 incorrectly diagnoses arguments as having side effects
4497         even when they do not.  I guess Clang 9 considers any function
4498         call as if it had a side effect here.
4500         libc-config: avoid Clang’s __diagnose_if__
4501         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4502         For now, do not use __diagnose_if__ here, as this fails
4503         on Fedora 31 with Clang 9.0.1, with diagnostic
4504         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4505         size than length of destination buffer
4506         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4507         for functions that are not called?
4509         careadlinkat: speedup for GCC 10 with GCC_LINT
4510         Inspired by a suggestion by Bruno Haible in:
4511         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4512         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4513         (readlink_stk): New function, with most of the old careadlinkat
4514         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4515         if GCC_LINT.
4516         (careadlinkat): Use the new function for everything but the
4517         stack buffer.
4519         * build-aux/gcc-warning.spec: Update comments.
4521 2020-08-17  Bruno Haible  <bruno@clisp.org>
4523         Assume autoconf >= 2.64.
4524         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4526 2020-08-17  Bruno Haible  <bruno@clisp.org>
4528         Revert autoupdate's revert.
4529         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4531 2020-08-17  Bruno Haible  <bruno@clisp.org>
4533         uchar C++ tests: Fix build error on FreeBSD 12.
4534         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4535         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4536         <cuchar> does not exist.
4538 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4540         time_rz: remove unused functions
4541         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4543         time_rz: fix issues with mktime_z failures
4544         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4545         Use a cheaper tm_yday test for failed mktime.
4547 2020-08-16  Bruno Haible  <bruno@clisp.org>
4549         intprops test: Strengthen on clang.
4550         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4552 2020-08-16  Bruno Haible  <bruno@clisp.org>
4554         nstrftime: Guide inlining also on clang.
4555         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4557 2020-08-16  Bruno Haible  <bruno@clisp.org>
4559         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4560         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4562 2020-08-16  Bruno Haible  <bruno@clisp.org>
4564         log2l: Disable MSVC workaround on clang.
4565         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4567 2020-08-16  Bruno Haible  <bruno@clisp.org>
4569         argp: Emit a warning also with clang.
4570         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4571         clang.
4573 2020-08-16  Bruno Haible  <bruno@clisp.org>
4575         libc-config: Enable __REDIRECT macro also on clang.
4576         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4577         __ASMNAME2): Define on clang like on GCC.
4579 2020-08-16  Bruno Haible  <bruno@clisp.org>
4581         regex: Use initializer shorthand syntax also with clang.
4582         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4583         with clang.
4585 2020-08-16  Bruno Haible  <bruno@clisp.org>
4587         regex: Use space optimization also with clang.
4588         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4589         with clang.
4591 2020-08-16  Bruno Haible  <bruno@clisp.org>
4593         Use _Static_assert and static_assert primitives when present on clang.
4594         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4595         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4596         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4598 2020-08-16  Bruno Haible  <bruno@clisp.org>
4600         Use 'throw ()' for optimization in C++ mode also on clang.
4601         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4602         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4603         * lib/md5.h (__THROW): Likewise.
4605 2020-08-16  Bruno Haible  <bruno@clisp.org>
4607         absolute-header: Add support for clang.
4608         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4609         HAVE_INCLUDE_NEXT expression.
4611 2020-08-16  Bruno Haible  <bruno@clisp.org>
4613         Fix "warning: implicitly declaring library function 'strcasecmp'".
4614         * lib/argp-help.c: Include <strings.h>.
4616 2020-08-16  Bruno Haible  <bruno@clisp.org>
4618         stdio: Don't break attribute 'scanf' on clang.
4619         * lib/stdio.in.h (scanf): Treat clang like GCC.
4621 2020-08-16  Bruno Haible  <bruno@clisp.org>
4623         Use __restrict also on clang.
4624         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4625         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4626         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4628 2020-08-16  Bruno Haible  <bruno@clisp.org>
4630         pthread-spin: Use GCC built-ins also on clang.
4631         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4632         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4633         also on clang.
4635 2020-08-16  Bruno Haible  <bruno@clisp.org>
4637         asyncsafe-spin tests: Update.
4638         * tests/test-asyncsafe-spin2.c: Update to match the change in
4639         lib/asyncsafe-spin.c from 2020-08-11.
4641 2020-08-16  Bruno Haible  <bruno@clisp.org>
4643         setenv: Use tree code also with clang.
4644         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4646 2020-08-16  Bruno Haible  <bruno@clisp.org>
4648         math: Optimize signbit also on clang.
4649         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4650         on clang.
4652 2020-08-16  Bruno Haible  <bruno@clisp.org>
4654         avltreehash-list, rbtreehash-list: Optimize also on clang.
4655         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4656         __builtin_expect also on clang.
4658 2020-08-16  Bruno Haible  <bruno@clisp.org>
4660         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4661         * lib/socket.c: Use WSASocketW, not WSASocketA.
4663         Fix "warning: format specifies type 'unsigned long'".
4664         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4665         argument to match the format directive.
4667         Fix "warning: no case matching constant switch condition '0'".
4668         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4670         Fix "warning: integer overflow in expression".
4671         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4672         remove a 'long' overflow.
4674         Fix "warning: "getpagesize" redefined".
4675         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4676         macro.
4678         Fix "warning: implicitly declaring library function 'strncasecmp'".
4679         * lib/strptime.c: Include <strings.h>.
4681         Fix "warning: 'snprintf' macro redefined".
4682         * lib/strerror_r.c (snprintf): Undefine before redefining.
4684         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4685         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4687         Fix "warning: '__stat64' macro redefined".
4688         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4690         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4691         * lib/stdio.in.h (printf): Treat clang like GCC.
4693         Fix "warning: attribute declaration must precede definition" with clang.
4694         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4695         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4696         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4697         on non-glibc systems.
4698         * lib/netdb.in.h (gai_strerror): Likewise.
4699         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4700         * lib/sys_stat.in.h (fstat): Likewise.
4701         * lib/utime.in.h (utime): Likewise.
4703         Fix undesired warnings.
4704         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4705         clang.
4707 2020-08-16  Bruno Haible  <bruno@clisp.org>
4709         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4710         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4711         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4712         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4713         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4715 2020-08-16  Bruno Haible  <bruno@clisp.org>
4717         Don't use Autoconf quadrigraphs.
4718         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4719         Autoconf quadrigraph.
4720         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4721         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4722         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4723         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4725         * m4/math_h.m4 (gl_MATH_H): Likewise.
4726         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4728 2020-08-16  Bruno Haible  <bruno@clisp.org>
4730         Fix quoting of AC_LANG_PROGRAM arguments.
4731         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4732         arguments through [[...]].
4733         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4736         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4737         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4738         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4739         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4740         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4741         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4742         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4743         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4744         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4745         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4747 2020-08-16  Bruno Haible  <bruno@clisp.org>
4749         Assume autoconf >= 2.64.
4750         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4751         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4752         * NEWS: Mention the changed requirement.
4753         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4754         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4756         variables.
4757         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4758         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4759         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4760         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4761         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4762         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4763         Likewise.
4764         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4765         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4766         * m4/configmake.m4: Update comment.
4768 2020-08-16  Bruno Haible  <bruno@clisp.org>
4770         sys_ioctl: Simplify.
4771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4772         AC_INCLUDES_DEFAULT.
4774 2020-08-16  Bruno Haible  <bruno@clisp.org>
4776         Fix quoting of AC_LANG_SOURCE arguments.
4777         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4778         GL_NOCRASH expansion.
4779         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4780         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4781         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4782         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4783         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4785 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4787         nstrftime: be more predictable about errno
4788         This aligns nstrftime better with draft POSIX 202x strftime.
4789         * lib/nstrftime.c: Include errno.h.
4790         (width_add, __strftime_internal): Set errno on failure,
4791         and preserve it on success.  Check for mktime_z failure.
4792         * modules/nstrftime (Depends-on): Add errno.
4793         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4794         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4795         (errno_test): New test function.
4796         (main): Call it.
4798 2020-08-15  Bruno Haible  <bruno@clisp.org>
4800         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4801         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4802         from dependency analysis first.
4804 2020-08-15  Bruno Haible  <bruno@clisp.org>
4806         Determine asm output option and filename suffix for MSVC/clang.
4807         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4808         clang-cl.
4810 2020-08-15  Bruno Haible  <bruno@clisp.org>
4812         doc: Update for MSVC/clang.
4813         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4814         that MSVC 14 does not have.
4816 2020-08-15  Bruno Haible  <bruno@clisp.org>
4818         Revert autoupdate's revert.
4819         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4821 2020-08-15  Bruno Haible  <bruno@clisp.org>
4823         frexpl: Fix configuration test result on MSVC.
4824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4825         zero.
4827 2020-08-15  Bruno Haible  <bruno@clisp.org>
4829         Support compiling without -loldnames on native Windows.
4830         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4831         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4832         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4833         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4834         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4836         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4837         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4838         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4839         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4840         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4841         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4842         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4843         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4844         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4845         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4846         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4848         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4849         Likewise.
4850         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4851         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4852         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4853         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4855         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4856         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4857         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4859         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4860         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4861         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4862         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4863         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4864         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4865         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4866         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4868         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4869         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4870         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4872         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4873         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4874         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4875         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4876         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4877         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4878         test for getcwd.
4879         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4880         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4881         with GL_MDA_DEFINES.
4882         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4883         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4884         prefixed symbol.
4885         * lib/search.in.h (lfind, lsearch): Likewise.
4886         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4887         Likewise.
4888         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4889         * lib/string.in.h (memccpy, strdup): Likewise.
4890         * lib/sys_stat.in.h (chmod, umask): Likewise.
4891         * lib/time.in.h (tzset): Likewise.
4892         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4893         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4894         read, rmdir, swab, unlink, write): Likewise.
4895         * lib/utime.in.h (utime): Likewise.
4896         * lib/wchar.in.h (wcsdup): Likewise.
4897         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4898         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4899         rpl_-prefixed macro.
4900         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4901         * lib/close.c (close_nothrow): On native Windows, use _close.
4902         * lib/creat.c (orig_creat): On native Windows, use _creat.
4903         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4904         * lib/dup2.c (dup2_nothrow): Use _dup2.
4905         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4906         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4907         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4908         * lib/open.c (orig_open): On native Windows, use _open.
4909         * lib/read.c (read_nothrow): Use _read.
4910         * lib/rmdir.c: On native Windows, use _rmdir.
4911         * lib/unlink.c: On native Windows, use _unlink.
4912         * lib/write.c (write_nothrow): Use _write.
4913         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4914         undefined symbol.
4915         * lib/sys_socket.in.h (close): Likewise.
4916         * lib/sys_time.in.h (close): Likewise.
4917         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4919 2020-08-15  Bruno Haible  <bruno@clisp.org>
4921         Fix "unknown pragma ignored" warnings with clang on native Windows.
4922         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4923         * lib/cbrtf.c: Likewise.
4924         * lib/ceil.c: Likewise.
4925         * lib/floor.c: Likewise.
4926         * lib/fma.c: Likewise.
4927         * lib/fmod.c: Likewise.
4928         * lib/rint.c: Likewise.
4929         * lib/round.c: Likewise.
4930         * lib/trunc.c: Likewise.
4931         * tests/test-ceil2.c: Likewise.
4932         * tests/test-ceilf2.c: Likewise.
4933         * tests/test-floor2.c: Likewise.
4934         * tests/test-floorf2.c: Likewise.
4935         * tests/test-trunc2.c: Likewise.
4936         * tests/test-truncf2.c: Likewise.
4937         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4940 2020-08-15  Bruno Haible  <bruno@clisp.org>
4942         Fix compilation errors in C++ mode with clang on native Windows.
4943         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4944         non-glibc systems.
4945         * lib/sched.in.h (sched_yield): Likewise.
4947 2020-08-14  Bruno Haible  <bruno@clisp.org>
4949         stdnoreturn: Work around problem with MSVC/clang.
4950         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4951         system header after <stdnoreturn.h>.
4952         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4954 2020-08-14  Bruno Haible  <bruno@clisp.org>
4956         utime-h: Generate an utime.h file always.
4957         * modules/utime-h (Makefile.am): Generate utime.h always.
4958         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4959         GL_GENERATE_UTIME_H.
4961 2020-08-14  Bruno Haible  <bruno@clisp.org>
4963         mktime, mktime-internal: Remove obsolete code.
4964         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4966 2020-08-14  Bruno Haible  <bruno@clisp.org>
4968         getcwd: Remove obsolete code.
4969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4970         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4972 2020-08-14  Bruno Haible  <bruno@clisp.org>
4974         tzset: Assume the function exists.
4975         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4976         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4977         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4978         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4979         HAVE_TZSET.
4980         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4981         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4983         nstrftime: Assume tzset exists.
4984         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4985         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4986         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4988         mktime, mktime-internal: Assume tzset exists.
4989         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4990         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4992 2020-08-14  Bruno Haible  <bruno@clisp.org>
4994         strdup: Assume the function exists.
4995         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4996         whether strdup exists.
4997         * modules/strdup (Files): Remove lib/strdup.c.
4998         (configure.ac): Don't compile strdup.c.
4999         * modules/strdup-posix (Depends-on, configure.ac): Don't test
5000         ac_cv_func_strdup.
5001         * doc/posix-functions/strdup.texi: Update.
5002         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
5003         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
5004         (Depends-on): Remove unistr/u8-strlen.
5006 2020-08-13  Bruno Haible  <bruno@clisp.org>
5008         sys_random: Work around an uClibc bug.
5009         Reported by akater <nuclearspace@gmail.com>
5010         via Stefan Kangas <stefan@marxist.se>
5011         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
5012         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
5013         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
5014         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5015         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
5017 2020-08-12  Bruno Haible  <bruno@clisp.org>
5019         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
5020         Reported by Florian Weimer in
5021         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
5022         * lib/gen-uni-tables.c (output_predicate): Change the element type of
5023         the level3 array to 'unsigned int'.
5024         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
5025         * lib/unictype/categ_*.h: Regenerated.
5026         * lib/unictype/ctype_*.h: Regenerated.
5027         * lib/unictype/pr_*.h: Regenerated.
5028         * lib/unictype/sy_*.h: Regenerated.
5029         * lib/unicase/cased.h: Regenerated.
5030         * lib/unicase/ignorable.h: Regenerated.
5032 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5034         stdint: port intptr_t to more-recent MinGW
5035         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
5036         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
5037         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
5038         Apparently those two macros were removed in mingwrt-3.22
5039         dated 2016-07-14.
5041 2020-08-12  Bruno Haible  <bruno@clisp.org>
5043         thread-optim: Export function-like macros only.
5044         Suggested by Paul Eggert.
5045         * lib/thread-optim.h (gl_multithreaded): New macro.
5046         (IF_MT_DECL, IF_MT): Remove macros.
5047         * doc/multithread.texi (Multithreading Optimizations): Add a small
5048         example.
5049         * lib/fatal-signal.c: Update all uses.
5050         * lib/clean-temp.c: Likewise.
5051         * lib/localename.c: Likewise.
5052         * modules/localename (Depends-on): Add stdbool.
5054 2020-08-12  Bruno Haible  <bruno@clisp.org>
5056         Revert autoupdate's revert.
5057         * config/srclist.txt: Mark regex.h as needing sync with glibc.
5059 2020-08-11  Bruno Haible  <bruno@clisp.org>
5061         thread-optim: Fix a compiler warning.
5062         * lib/thread-optim.h (IF_MT_DECL): Define differently.
5064 2020-08-11  Bruno Haible  <bruno@clisp.org>
5066         Use __restrict also on clang.
5067         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
5068         (__restrict_arr): On clang, define like on GCC.
5069         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
5070         (_Restrict_arr_): Use _Restrict_ also on clang.
5071         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
5072         (_Restrict_arr_): Use _Restrict_ also on clang.
5074 2020-08-11  Bruno Haible  <bruno@clisp.org>
5076         Use flexible array syntax also on clang.
5077         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
5078         define like for GCC 3.
5080 2020-08-11  Bruno Haible  <bruno@clisp.org>
5082         fcntl: On native Windows, use _setmode, not setmode.
5083         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
5084         * lib/binary-io.h: Update comment.
5085         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
5086         * tests/test-dup2.c: Likewise.
5087         * tests/test-dup-safer.c: Likewise.
5088         * tests/test-fcntl.c: Likewise.
5090 2020-08-11  Bruno Haible  <bruno@clisp.org>
5092         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
5093         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
5094         * lib/spawn-pipe.c (create_pipe): Likewise.
5095         * tests/test-nonblocking-pipe-main.c (main): Likewise.
5096         * tests/test-nonblocking-socket-main.c (main): Likewise.
5097         * lib/wait-process.c: Update comment.
5098         * doc/posix-functions/fork.texi: Update.
5100 2020-08-11  Bruno Haible  <bruno@clisp.org>
5102         asyncsafe-spin: Use GCC built-ins also on clang.
5103         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
5104         the newer GCC built-ins also on clang.
5106 2020-08-11  Bruno Haible  <bruno@clisp.org>
5108         Use expression statements also on clang.
5109         * lib/cdefs.h (__extension__): Don't define to empty on clang.
5110         * lib/obstack.h (__extension__): Likewise.
5111         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
5112         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
5113         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
5114         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
5115         obstack_finish, obstack_free): Enable as optimized macros also on clang.
5116         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
5118 2020-08-10  Bruno Haible  <bruno@clisp.org>
5120         Use many __attribute__s with clang.
5121         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
5122         on clang.
5123         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
5124         New macros.
5125         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
5126         on clang.
5127         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
5128         also on older clang versions.
5129         (__attribute__): Don't define to empty on clang.
5130         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
5131         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
5132         (__attribute_const__): Use __attribute__ __const__ also on clang.
5133         (__attribute_used__): Use __attribute__ __used__ also on clang.
5134         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
5135         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
5136         clang.
5137         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
5138         clang.
5139         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
5140         also on clang.
5141         (__nonnull): Use __attribute__ __nonnull__ also on clang.
5142         (__attribute_warn_unused_result__): Use __attribute__
5143         __warn_unused_result__ also on clang.
5144         (__always_inline): Use __attribute__ __always_inline__ also on clang.
5145         (__attribute_artificial__): Use __attribute__ __artificial__ also on
5146         clang >= 7.
5147         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
5148         clang versions.
5149         (_Noreturn): Don't redefine on clang >= 3.5.
5150         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
5151         also on clang.
5152         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
5153         on clang.
5154         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5155         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5156         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5157         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
5158         also on clang.
5159         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5160         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
5161         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
5162         also on clang.
5163         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
5164         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
5165         __attribute__ __noreturn__ also on clang.
5166         * lib/obstack.h (__attribute_noreturn__): Likewise.
5167         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
5168         clang.
5169         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
5170         always_inline also on clang.
5171         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
5172         clang.
5174 2020-08-10  Bruno Haible  <bruno@clisp.org>
5176         c-ldtoastr tests: Fix test failure.
5177         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
5178         is longer than 'double'.
5180 2020-08-10  Bruno Haible  <bruno@clisp.org>
5182         Revert autoupdate's revert.
5183         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
5185 2020-08-09  Bruno Haible  <bruno@clisp.org>
5187         string: Fix build error in C++ mode with clang (regression from today).
5188         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
5189         parameters, one for GCC, one for clang.
5190         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
5191         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
5192         as return type.
5194 2020-08-09  Bruno Haible  <bruno@clisp.org>
5196         ftruncate: Use _chsize, not chsize.
5197         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
5198         * lib/ftruncate.c: Test HAVE__CHSIZE.
5199         (chsize_nothrow): Use _chsize, not chsize.
5201 2020-08-09  Bruno Haible  <bruno@clisp.org>
5203         Silence warnings from clang 10 with -Wimplicit-fallthrough.
5204         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
5205         clang >= 10.
5206         * lib/fnmatch.c (FALLTHROUGH): Likewise.
5207         * lib/fts.c (FALLTHROUGH): Likewise.
5208         * tests/macros.h (FALLTHROUGH): Likewise.
5209         * lib/regex_internal.h (FALLTHROUGH): Likewise.
5210         * config/srclist.txt: Mark it as needing sync with glibc.
5212 2020-08-09  Bruno Haible  <bruno@clisp.org>
5214         stdbool tests: Enable the stricter tests also on clang.
5215         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
5216         (e): Enable the address-to-bool conversion test also on clang.
5218 2020-08-09  Bruno Haible  <bruno@clisp.org>
5220         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
5221         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
5223 2020-08-09  Bruno Haible  <bruno@clisp.org>
5225         Use attribute __aligned__ with clang.
5226         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
5227         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
5229 2020-08-09  Bruno Haible  <bruno@clisp.org>
5231         Use __alignof__ with clang.
5232         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
5233         on clang.
5234         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
5235         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
5236         clang.
5237         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
5238         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
5239         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
5240         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
5242 2020-08-09  Bruno Haible  <bruno@clisp.org>
5244         ignore-value: Simplify on clang.
5245         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
5246         workaround.
5248 2020-08-09  Bruno Haible  <bruno@clisp.org>
5250         Use __typeof__ with clang.
5251         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
5252         "clang -std=gnu99".
5253         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
5254         * tests/test-stdint.c (verify_same_types): Enable the check also on
5255         clang.
5257 2020-08-09  Bruno Haible  <bruno@clisp.org>
5259         Add ability to emit user-defined warnings and errors with clang.
5260         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
5261         _GL_ATTRIBUTE_WARNING using an attribute for clang.
5262         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
5263         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
5264         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
5265         attribute for clang.
5267 2020-08-09  Bruno Haible  <bruno@clisp.org>
5269         intprops: Fix typo in comment.
5270         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
5272 2020-08-09  Bruno Haible  <bruno@clisp.org>
5274         Use __builtin_signbit* with clang.
5275         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
5276         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
5277         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5279         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5280         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
5281         not REPLACE_SIGNBIT_USING_GCC.
5283 2020-08-09  Bruno Haible  <bruno@clisp.org>
5285         Use __builtin_isnan with clang.
5286         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5287         not __builtin_isnanf. Also on clang.
5288         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
5289         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
5290         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
5291         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
5292         built-in.
5293         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5294         not __builtin_isnanl. Also on clang.
5295         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
5296         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
5297         * lib/math.in.h (__has_builtin): Remove macro.
5298         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
5299         __builtin_isnanf. Also on clang.
5300         (isnand, gl_isnan_d): With clang, use the GCC built-in.
5301         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
5302         __builtin_isnanl. Also on clang.
5303         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
5304         on clang.
5306 2020-08-09  Bruno Haible  <bruno@clisp.org>
5308         thread-optim: Fix logic error.
5309         Reported by Paul Eggert.
5310         * lib/thread-optim.h (IF_MT): Fix logic error.
5312 2020-08-08  Bruno Haible  <bruno@clisp.org>
5314         localename: Use module 'thread-optim'.
5315         * lib/localename.c: Include thread-optim.h.
5316         (struniq): Use IF_MT macro.
5317         * modules/localename (Depends-on): Add thread-optim.
5319         clean-temp: Use module 'thread-optim'.
5320         * lib/clean-temp.c: Include thread-optim.h.
5321         (register_temporary_file, unregister_temporary_file, create_temp_dir,
5322         register_temp_file, unregister_temp_file, register_temp_subdir,
5323         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
5324         close_temp, fclose_variant_temp): Use IF_MT macro.
5325         * modules/clean-temp (Depends-on): Add thread-optim.
5327         fatal-signal: Use module 'thread-optim'.
5328         * lib/fatal-signal.c: Include thread-optim.h.
5329         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5330         macro.
5331         * modules/fatal-signal (Depends-on): Add thread-optim.
5333 2020-08-08  Bruno Haible  <bruno@clisp.org>
5335         New module 'thread-optim'.
5336         * lib/thread-optim.h: New file.
5337         * modules/thread-optim: New file.
5338         * doc/multithread.texi (Multithreading Optimizations): New section.
5340 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5342         doc: more updates for glibc 2.32
5343         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5344         * doc/posix-functions/fchmodat.texi: Update.
5346 2020-08-07  Bruno Haible  <bruno@clisp.org>
5348         doc: Update for glibc 2.32.
5349         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5350         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5351         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5352         * doc/glibc-functions/sigabbrev_np.texi: New file.
5353         * doc/glibc-functions/sigdescr_np.texi: New file.
5354         * doc/glibc-functions/strerrordesc_np.texi: New file.
5355         * doc/glibc-functions/strerrorname_np.texi: New file.
5356         * doc/gnulib.texi: Include them.
5357         (Glibc sys/single_threaded.h): New section.
5358         * doc/pastposix-functions/h_errno.texi: Update.
5359         * doc/posix-functions/*.texi: Likewise.
5360         * doc/glibc-functions/*.texi: Likewise.
5362 2020-08-07  Bruno Haible  <bruno@clisp.org>
5364         alloca: No need to compile alloca.c with clang.
5365         * lib/alloca.c: Skip all code with clang.
5367         Use __builtin_alloca with clang.
5368         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5370 2020-08-06  Bruno Haible  <bruno@clisp.org>
5372         Use __builtin_assume with clang.
5373         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5374         (assume): Use __builtin_assume when available.
5376 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5378         libgmp: add <gmp/gmp.h> support
5379         * m4/libgmp.m4 (gl_LIBGMP):
5380         * modules/libgmp (configure.ac, Makefile.am):
5381         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5382         ‘#include <gmp.h>’.
5384 2020-08-06  Bruno Haible  <bruno@clisp.org>
5386         Consider that clang defines __OPTIMIZE__ like GCC does.
5387         * lib/streq.h: Define the inline functions also on clang.
5388         * lib/c-strcaseeq.h: Likewise.
5389         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5390         the GCC workaround to clang.
5392 2020-08-06  Bruno Haible  <bruno@clisp.org>
5394         safe-alloc: Remove unused code.
5395         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5397 2020-08-06  Bruno Haible  <bruno@clisp.org>
5399         Use __builtin_expect with clang everywhere.
5400         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5401         also on clang.
5403 2020-08-05  Bruno Haible  <bruno@clisp.org>
5405         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5406         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5407         built-in also on clang.
5408         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5409         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5411 2020-08-05  Bruno Haible  <bruno@clisp.org>
5413         Use __builtin_clz{,l,ll} with clang, also on Windows.
5414         * lib/integer_length.c: With clang, use the GCC built-in, not
5415         <intrin.h>.
5416         * lib/integer_length_l.c: Likewise.
5417         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5418         also on clang.
5419         * lib/vasnprintf.c (divide): Likewise.
5421 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5423         Update srclist.txt as per recent glibc changes
5424         * config/srclist.txt: Uncomment lines to reflect recent merges
5425         from Gnulib to glibc.
5427 2020-08-03  Bruno Haible  <bruno@clisp.org>
5429         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5430         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5432 2020-08-03  Bruno Haible  <bruno@clisp.org>
5434         integer_length_ll: Optimize for MSVC in 64-bit mode.
5435         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5436         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5438 2020-08-03  Bruno Haible  <bruno@clisp.org>
5440         integer_length_ll: Optimize for MSVC in 32-bit mode.
5441         * lib/integer_length_l.c: Include <intrin.h>.
5442         (integer_length): Define as inline function, like in
5443         lib/integer_length.c.
5445 2020-08-03  Bruno Haible  <bruno@clisp.org>
5447         integer_length: Optimize for MSVC.
5448         * lib/integer_length.c: Include <intrin.h>.
5449         (integer_length): With MSVC, use the _BitScanReverse built-in.
5451 2020-08-03  Bruno Haible  <bruno@clisp.org>
5453         ffsll: Optimize for MSVC in 64-bit mode.
5454         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5455         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5456         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5458 2020-08-03  Bruno Haible  <bruno@clisp.org>
5460         ffsll: Optimize for MSVC in 32-bit mode.
5461         * lib/ffsl.h: Include <intrin.h>.
5462         (ffs): Define as inline function, like in lib/ffs.c.
5464 2020-08-03  Bruno Haible  <bruno@clisp.org>
5466         ffs: Optimize for MSVC.
5467         * lib/ffs.c: Include <intrin.h>.
5468         (ffs): With MSVC, use the _BitScanForward built-in.
5470 2020-08-03  Bruno Haible  <bruno@clisp.org>
5472         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5473         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5474         variable.
5476 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5478         fopen: Avoid undesired interactions with glibc headers.
5479         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5480         __need_FILE, as the latter does not work with glibc.
5482 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5484         fcntl: document some F_SETLK errno variations
5485         * doc/posix-functions/fcntl.texi (fcntl): Document
5486         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5488 2020-08-02  Bruno Haible  <bruno@clisp.org>
5490         oset: Add an 'iterator_atleast' operation.
5491         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5492         extracted from gl_array_search_atleast.
5493         (gl_array_search_atleast): Use it.
5494         (gl_array_iterator_atleast): New function.
5495         (gl_array_oset_implementation): Use it.
5496         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5497         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5498         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5499         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5500         member.
5501         (gl_oset_iterator_atleast): New function.
5502         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5503         (gl_OSet::iterator): Add another auxiliary constructor.
5504         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5505         New functions.
5506         (main): Test also gl_oset_iterator_atleast.
5507         * tests/test-avltree_oset.c (is_at_least): New function.
5508         (main): Test also gl_oset_iterator_atleast.
5509         * tests/test-rbtree_oset.c (is_at_least): New function.
5510         (main): Test also gl_oset_iterator_atleast.
5511         * tests/test-oset-c++.cc (is_at_most): New function.
5512         (main): Test also gl_OSet::begin_atleast.
5514 2020-08-02  Bruno Haible  <bruno@clisp.org>
5516         oset-c++, omap-c++: Remove restriction for search_atleast method.
5517         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5518         a different type than the element.
5519         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5520         a different type than the key.
5522 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5524         gnumakefile: say ‘$(MAKE)’ not ‘make’
5525         * top/GNUmakefile (abort-due-to-no-makefile):
5526         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5527         This change is backported from Autoconf.
5529 2020-08-01  Bruno Haible  <bruno@clisp.org>
5531         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5532         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5533         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5534         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5535         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5536         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5538 2020-08-01  Bruno Haible  <bruno@clisp.org>
5540         libtextstyle-optional: Update tests.
5541         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5542         gl_LIBTEXTSTYLE_OPTIONAL.
5544 2020-08-01  Bruno Haible  <bruno@clisp.org>
5546         parse-datetime: Fix wrong #line statements.
5547         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5548         parse-datetime-gen.h.
5550 2020-08-01  Bruno Haible  <bruno@clisp.org>
5552         libtextstyle[-optional]: Allow requesting a minimum version.
5553         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5554         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5555         gl_LIBTEXTSTYLE_SEARCH): New macros.
5556         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5557         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5558         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5559         * modules/libtextstyle-optional (configure.ac): Don't invoke
5560         gl_LIBTEXTSTYLE_OPTIONAL.
5561         * NEWS: Mention the changes.
5563 2020-07-31  Bruno Haible  <bruno@clisp.org>
5565         _GL_CMP: Improve documentation.
5566         Reported by Paul Eggert in
5567         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5568         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5569         passed.
5571 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5573         largefile: sync with Autoconf master
5574         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5575         Avoid undefined behavior on platforms where off_t is 32 bits.
5576         See: https://bugs.debian.org/742780
5578         alloca: sync with Autoconf master
5579         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5580         Do not define if Autoconf 2.70 or later, since Autoconf master
5581         now matches us.
5583 2020-07-30  Bruno Haible  <bruno@clisp.org>
5585         unicodeio: Add comment.
5586         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5587         different iconv behaviours.
5589 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5591         Work around some Oracle Studio attribute bugs
5592         These were discovered when building bleeding-edge Emacs with
5593         Oracle Studio.
5594         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5595         Port to Oracle Studio 12.6, which mishandles __attribute__
5596         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5597         __has_attribute says they work.
5599 2020-07-29  Bruno Haible  <bruno@clisp.org>
5601         unicodeio: Fix wrong result on musl libc.
5602         Reported by A. Wilcox <awilfox@adelielinux.org> in
5603         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5604         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5605         on musl libc.
5606         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5607         * modules/unicodeio (Files): Add m4/musl.m4.
5609 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5611         fsusage, regex, stat-size: remove Cray support
5612         As near as I can make out this is actually support for UNICOS/mp,
5613         last released 2005, and Cray hasn’t supported that for years.
5614         * config/srclist.txt: Comment out regex.h for now.
5615         * lib/fsusage.c (get_fs_usage):
5616         * lib/regex.h (re_comp, re_exec):
5617         * lib/stat-size.h (ST_NBLOCKSIZE):
5618         Don’t worry about _CRAY.
5620 2020-07-29  Bruno Haible  <bruno@clisp.org>
5622         parse-datetime: Fix compilation error with bison 3.7.
5623         * modules/parse-datetime (Makefile.am): Create a generated header file
5624         parse-datetime-gen.h in the source directory. Correct #include and
5625         #line statements during preprocessing.
5627 2020-07-28  Bruno Haible  <bruno@clisp.org>
5629         fopen-gnu: Create files correctly (regression from 2020-05-24).
5630         * lib/fopen.c (rpl_open): Pass a third argument to open().
5632 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5634         xalloc-die: don’t depend on xalloc
5635         This removes a circular dependency, as xalloc depends on xalloc-die.
5636         * modules/xalloc-die (Files): Add lib/xalloc.h.
5637         (Depends-on): Remove xalloc.
5638         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5640         dfa-tests: port to MSVC
5641         Problem reported by Gisle Vanem in:
5642         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5643         Also, remove an unnecessary dependency on getprogname.
5644         * modules/dfa-tests (Depends-on): Remove getprogname.
5645         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5646         (exit_status): New static var.
5647         (dfawarn): Set it instead of exiting.
5648         Do not declare as _Noreturn, to pacify MSVC.
5649         (main): Return exit_status.
5651 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5653         argz: pacify MSVC
5654         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5655         Problem reported by Gisle Vanem.
5657         libgmp: remove dependency on havelib
5658         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5659         use the more-traditional AC_SEARCH_LIBS approach.
5660         This should work better with GNU Emacs configuration,
5661         which uses pkg-config instead of a havelib-style approach.
5662         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5663         * modules/libgmp (Depends-on): Remove havelib.
5665         libgmp: remove HAVE_GMP, LIB_GMP
5666         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5667         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5669 2020-07-26  Bruno Haible  <bruno@clisp.org>
5671         inttypes: Remove support for AIX 4.
5672         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5673         * m4/inttypes-pri.m4: Remove file.
5674         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5675         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5676         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5677         PRI_MACROS_BROKEN.
5678         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5680 2020-07-26  Bruno Haible  <bruno@clisp.org>
5682         gettimeofday: Remove workaround for Mac OS X 10.0.
5683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5684         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5685         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5686         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5687         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5688         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5689         * modules/localtime-buffer: Remove file.
5690         * lib/localtime-buffer.h: Remove file.
5691         * lib/localtime-buffer.c: Remove file.
5692         * m4/localtime-buffer.m4: Remove file.
5693         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5695 2020-07-26  Bruno Haible  <bruno@clisp.org>
5697         tzset: Remove workaround for Solaris 2.6.
5698         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5699         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5700         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5701         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5702         * lib/localtime-buffer.c: Likewise.
5703         * lib/localtime.c: Likewise.
5704         * lib/tzset.c: Don't include localtime-buffer.h.
5705         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5706         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5707         is 1.
5708         * modules/tzset (Depends-on): Remove localtime-buffer.
5710 2020-07-26  Bruno Haible  <bruno@clisp.org>
5712         expl: Simplify autoconf test.
5713         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5714         with small values..." test into the "checking whether expl works..."
5715         test.
5717 2020-07-26  Bruno Haible  <bruno@clisp.org>
5719         alloca: Remove Cray-2 and Cray Y-MP support.
5720         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5721         Enable also on Autoconf >= 2.69.
5722         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5723         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5724         i00afunc): Remove.
5726 2020-07-25  Bruno Haible  <bruno@clisp.org>
5728         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5729         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5731 2020-07-25  Bruno Haible  <bruno@clisp.org>
5733         sigprocmask: Small autoconf macro improvement.
5734         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5735         user to override the value of gl_cv_func_sigprocmask.
5736         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5738 2020-07-25  Bruno Haible  <bruno@clisp.org>
5740         Small autoconf macro improvements.
5741         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5742         override the value of gl_cv_func_working_mktime.
5743         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5744         compiler produces multi-arch binaries..." in the configure output.
5745         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5746         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5748 2020-07-25  Bruno Haible  <bruno@clisp.org>
5750         doc: Update for NetBSD 7.1, 8.0, 9.0.
5751         * doc/*/*.texi: Update.
5752         * m4/exp2l.m4: Update comments.
5753         * m4/expl.m4: Likewise.
5754         * m4/ilogb.m4: Likewise.
5755         * m4/ilogbf.m4: Likewise.
5756         * m4/log10l.m4: Likewise.
5757         * m4/logl.m4: Likewise.
5758         * m4/printf.m4: Likewise.
5759         * m4/rintl.m4: Likewise.
5760         * m4/wcwidth.m4: Likewise.
5762 2020-07-24  Bruno Haible  <bruno@clisp.org>
5764         doc: Update for Mac OS X 10.13.
5765         * doc/*/*.texi: Update.
5766         * m4/expm1l.m4: Update comments.
5767         * m4/getgroups.m4: Likewise.
5768         * m4/getlogin_r.m4: Likewise.
5769         * m4/linkat.m4: Likewise.
5770         * m4/printf.m4: Likewise.
5772 2020-07-24  Bruno Haible  <bruno@clisp.org>
5774         doc: Update for Cygwin 2.9.0.
5775         * doc/*/*.texi: Update.
5777 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5779         parse-datetime: modernize doc
5780         * doc/parse-datetime.texi: Use more-current examples.
5781         Don’t lead with 32-bit time_t, as it’s on its way out.
5782         Capitalize “Epoch” to be consistent with POSIX.
5784         timespec: remove dependence on ‘verify’
5785         * lib/timespec.h: Do not include verify.h; no longer needed.
5786         * modules/timespec (Depends-on): Remove ‘verify’.
5788         Optimize a few more three-valued comparisons
5789         * lib/timespec.h (timespec_cmp, timespec_sign):
5790         * lib/utimecmp.c (utimecmpat):
5791         Avoid conditional branches by using _GL_CMP.
5793         Fix _GL_CMP parenthesization typo
5794         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5796 2020-07-24  Bruno Haible  <bruno@clisp.org>
5798         dfa: Revert breaking gawk.
5799         Reported by Arnold Robbins <arnold@skeeve.com>.
5800         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5802 2020-07-23  Bruno Haible  <bruno@clisp.org>
5804         Optimize three-valued comparison between integers.
5805         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5806         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5807         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5808         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5809         * lib/dfa.c (compare): Likewise.
5810         * lib/fts.c (fts_compare_ino): Likewise.
5811         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5812         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5813         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5814         * lib/memcasecmp.c (memcasecmp): Likewise.
5815         * lib/memcmp2.c (memcmp2): Likewise.
5816         * lib/savedir.c (direntry_cmp_inode): Likewise.
5817         * lib/strcasecmp.c (strcasecmp): Likewise.
5818         * lib/strncasecmp.c (strncasecmp): Likewise.
5819         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5821 2020-07-23  Bruno Haible  <bruno@clisp.org>
5823         lchmod: Use /proc on Cygwin.
5824         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5826 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5828         fchmodat: Use /proc on Cygwin
5829         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5831 2020-07-21  Bruno Haible  <bruno@clisp.org>
5833         aligned-malloc: Optionally use aligned_alloc.
5834         * lib/aligned-malloc.h: Verify the alignment.
5835         (aligned_malloc): Use aligned_alloc as an alternative.
5836         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5837         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5838         'aligned-malloc' and 'pagealign_alloc'.
5840 2020-07-21  Bruno Haible  <bruno@clisp.org>
5842         aligned-malloc: Add tests.
5843         * tests/test-aligned-malloc.c: New file.
5844         * modules/aligned-malloc-tests: New file.
5846         aligned-malloc: New module.
5847         * lib/aligned-malloc.h: New file.
5848         * m4/malloc-align.m4: New file.
5849         * modules/aligned-malloc: New file.
5850         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5851         * doc/glibc-functions/memalign.texi: Likewise.
5853 2020-07-21  Bruno Haible  <bruno@clisp.org>
5855         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5856         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5857         sure PRIPTR_PREFIX is defined to "ll", not "l".
5859 2020-07-21  Bruno Haible  <bruno@clisp.org>
5861         printf-posix: Make an autoconf test more future-proof.
5862         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5863         using uintptr_t.
5865 2020-07-20  Bruno Haible  <bruno@clisp.org>
5867         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5868         * modules/list (License): Change to LGPLv2+.
5869         * modules/array-list (License): Likewise.
5870         * modules/carray-list (License): Likewise.
5871         * modules/linked-list (License): Likewise.
5872         * modules/avltree-list (License): Likewise.
5873         * modules/rbtree-list (License): Likewise.
5874         * modules/oset (License): Likewise.
5875         * modules/array-oset (License): Likewise.
5876         * modules/avltree-oset (License): Likewise.
5877         * modules/rbtree-oset (License): Likewise.
5878         * modules/omap (License): Likewise.
5879         * modules/array-omap (License): Likewise.
5880         * modules/avltree-omap (License): Likewise.
5881         * modules/rbtree-omap (License): Likewise.
5883 2020-07-20  Bruno Haible  <bruno@clisp.org>
5885         oset: Add an 'update' operation.
5886         * lib/gl_array_oset.c (gl_array_update): New function.
5887         (gl_array_oset_implementation): Use it.
5888         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5889         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5890         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5891         extracted from gl_tree_nx_add_before.
5892         (gl_tree_nx_add_before): Invoke it.
5893         (gl_tree_add_node_after): New function, extracted from
5894         gl_tree_nx_add_after.
5895         (gl_tree_nx_add_after): Invoke it.
5896         (gl_tree_remove_node_no_free): New function, extracted from
5897         gl_tree_remove_node.
5898         (gl_tree_remove_node): Invoke it.
5899         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5900         extracted from gl_tree_nx_add_before.
5901         (gl_tree_nx_add_before): Invoke it.
5902         (gl_tree_add_node_after): New function, extracted from
5903         gl_tree_nx_add_after.
5904         (gl_tree_nx_add_after): Invoke it.
5905         (gl_tree_remove_node_no_free): New function, extracted from
5906         gl_tree_remove_node.
5907         (gl_tree_remove_node): Invoke it.
5908         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5909         from gl_tree_iterator_next.
5910         (gl_tree_iterator_next): Invoke it.
5911         (gl_tree_prev_node, gl_tree_update): New functions.
5912         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5913         (gl_avltree_oset_implementation): Use gl_tree_update.
5914         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5915         (gl_rbtree_oset_implementation): Use gl_tree_update.
5916         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5917         (gl_oset_update): New function.
5918         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5919         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5920         * modules/rbtree-oset (configure.ac): Likewise.
5921         * tests/test-oset-update.h: New file.
5922         * tests/test-array_oset.c: Include test-oset-update.h.
5923         (main): Invoke test_update.
5924         * tests/test-avltree_oset.c: Likewise.
5925         * tests/test-rbtree_oset.c: Likewise.
5926         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5927         * modules/avltree-oset-tests (Files): Likewise.
5928         * modules/rbtree-oset-tests (Files): Likewise.
5929         * tests/test-oset-c++.cc (action): New function.
5930         (main): Test the 'update' member function.
5932 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5934         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5935         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5936         shell if, so that the argument to AC_CHECK_HEADERS is
5937         a simple string that does not require shell evaluation.
5938         This fixes a warning generated by Autoconf 2.69b.
5940 2020-07-12  Bruno Haible  <bruno@clisp.org>
5942         libgmp: Avoid warning when --without-libgmp is used.
5943         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5944         GCC >= 8, not for GCC >= 4.6.
5946 2020-07-12  Bruno Haible  <bruno@clisp.org>
5948         libgmp: Link to the correct shared library.
5949         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5950         * modules/libgmp (Depends-on): Add havelib.
5951         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5952         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5954 2020-07-12  Bruno Haible  <bruno@clisp.org>
5956         libgmp tests: Add some safety checks.
5957         * modules/libgmp-tests (Depends-on): Add verify.
5958         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5959         (main): Verify that gmp.h and libgmp versions match.
5961 2020-07-10  Bruno Haible  <bruno@clisp.org>
5963         unicodeio: Fix wrong result on NetBSD.
5964         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5965         characters also on NetBSD.
5967 2020-07-09  Bruno Haible  <bruno@clisp.org>
5969         unicodeio: Fix wrong result on Solaris 11.
5970         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5971         via Akim Demaille <akim.demaille@gmail.com> in
5972         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5973         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5974         characters on Solaris.
5975         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5976         UTF-8 output or the specified fallback.
5978 2020-07-08  Bruno Haible  <bruno@clisp.org>
5980         unicodeio: Add tests.
5981         * tests/test-unicodeio.c: New file.
5982         * tests/test-unicodeio1.sh: New file.
5983         * tests/test-unicodeio2.sh: New file.
5984         * tests/test-unicodeio3.sh: New file.
5985         * modules/unicodeio-tests: New file.
5987 2020-07-08  Bruno Haible  <bruno@clisp.org>
5989         unicodeio: Document link requirements.
5990         * modules/unicodeio (Link): New section.
5992 2020-07-07  Bruno Haible  <bruno@clisp.org>
5994         doc: Remove support for some very old platforms.
5995         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5996         * doc/posix-functions/memcpy.texi: Likewise.
5997         * doc/posix-functions/memmove.texi: Likewise.
5998         * doc/posix-functions/memset.texi: Likewise.
5999         * doc/posix-functions/getcwd.texi: Likewise.
6001         memchr: Remove support for some very old platforms.
6002         * m4/memchr-obsolete.m4: Remove file.
6003         * modules/memchr-obsolete: Remove file.
6004         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
6005         absent. Don't define HAVE_MEMCHR.
6006         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
6007         * modules/memchr (Depends-on): Remove memchr-obsolete.
6008         (configure.ac): Assume HAVE_MEMCHR is 1.
6009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6010         HAVE_MEMCHR.
6011         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
6012         * doc/posix-functions/memchr.texi: Don't mention module
6013         'memchr-obsolete'.
6014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6015         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6016         * modules/strnlen (Depends-on): Remove memchr-obsolete.
6018         dup2: Remove support for some very old platforms.
6019         * m4/dup2-obsolete.m4: Remove file.
6020         * modules/dup2-obsolete: Remove file.
6021         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
6022         Don't define HAVE_DUP2.
6023         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
6024         * lib/dup2.c: Likewise.
6025         * modules/dup2 (Depends-on, configure.ac): Likewise.
6026         (Depends-on): Remove dup2-obsolete.
6027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
6028         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
6029         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
6031 2020-07-07  Bruno Haible  <bruno@clisp.org>
6033         canonicalize: Trim module dependencies.
6034         * lib/hash-triple.h: Group declarations.
6035         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
6036         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
6037         (STREQ): Remove macro.
6038         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
6039         * modules/hash-triple-simple: New file, based on modules/hash-triple.
6040         * modules/hash-triple (Files): Remove lib/hash-triple.h.
6041         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
6042         * modules/canonicalize (Depends-on): Remove hash-triple. Add
6043         hash-triple-simple.
6044         * modules/file-set (Depends-on): Likewise.
6046 2020-07-07  Bruno Haible  <bruno@clisp.org>
6048         Clarify dependencies to double-slash-root.
6049         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
6050         (Depends-on): Add double-slash-root.
6051         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
6052         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
6054 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6056         libgmp: new module
6057         The idea is to let programs simply include <gmp.h>, and
6058         so long as they live within the mini-gmp subset they need
6059         not worry about whether the GMP libraries are installed.
6060         * MODULES.html.sh: Mention it.
6061         * config/srclist.txt: Mention files copied from GMP source.
6062         * config/srclistvars.sh (GMP): New var.
6063         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
6064         * modules/libgmp-tests, tests/test-libgmp.c: New files.
6065         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
6067 2020-07-05  Bruno Haible  <bruno@clisp.org>
6069         mkancesdirs: Trim module dependencies.
6070         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
6071         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
6073 2020-07-05  Bruno Haible  <bruno@clisp.org>
6075         getprogname: Trim module dependencies.
6076         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
6077         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
6078         basename-lgpl.
6080 2020-07-05  Bruno Haible  <bruno@clisp.org>
6082         filenamecat-lgpl: Trim module dependencies.
6083         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
6084         dirname.h.
6085         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
6086         basename-lgpl, filename.
6088 2020-07-05  Bruno Haible  <bruno@clisp.org>
6090         backupfile, backup-rename: Trim module dependencies.
6091         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
6092         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
6093         basename-lgpl.
6094         * modules/backup-rename (Depends-on): Likewise.
6096 2020-07-05  Bruno Haible  <bruno@clisp.org>
6098         argp: Trim module dependencies.
6099         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
6100         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
6102 2020-07-05  Bruno Haible  <bruno@clisp.org>
6104         basename-lgpl: New module.
6105         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
6106         lib/basename-lgpl.c.
6107         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
6108         <stdbool.h>, filename.h.
6109         (last_component): Rename a local variable.
6110         * lib/dirname.h: Include basename-lgpl.h.
6111         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
6112         (last_component, base_len): Remove declarations.
6113         * modules/basename-lgpl: New file.
6114         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
6115         (Depends-on): Add basename-lgpl. Remove double-slash-root.
6116         (Makefile.am): Don't compile basename-lgpl.c.
6117         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
6118         not 'dirname'.
6120 2020-07-05  Bruno Haible  <bruno@clisp.org>
6122         dirname, dirname-lgpl: Simplify.
6123         * m4/dirname.m4: Remove file.
6124         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
6125         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
6126         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
6128 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
6130         tests: avoid shadowing warning
6131         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
6133 2020-07-05  Bruno Haible  <bruno@clisp.org>
6135         supersede: Add tests.
6136         * tests/test-supersede.c: New file.
6137         * tests/test-supersede-open.h: New file.
6138         * tests/test-supersede-fopen.h: New file.
6139         * modules/supersede-tests: New file.
6141         supersede: New module.
6142         * lib/supersede.h: New file.
6143         * lib/supersede.c: New file.
6144         * m4/supersede.m4: New file.
6145         * modules/supersede: New file.
6147 2020-07-05  Bruno Haible  <bruno@clisp.org>
6149         Add some copyright headers.
6150         * lib/dev-ino.h: Add copyright header.
6151         * lib/di-set.h: Likewise.
6152         * lib/fchown-stub.c: Likewise.
6153         * lib/file-set.h: Likewise.
6154         * lib/hash-triple.h: Likewise.
6155         * lib/idcache.h: Likewise.
6156         * lib/ino-map.h: Likewise.
6157         * lib/mkancesdirs.h: Likewise.
6158         * lib/scratch_buffer.h: Likewise.
6159         * lib/se-context.in.h: Likewise.
6160         * lib/stdopen.h: Likewise.
6161         * lib/userspec.h: Likewise.
6163 2020-07-04  Bruno Haible  <bruno@clisp.org>
6165         getrandom: Relicense under LGPLv2+.
6166         Paul Eggert's approval is in
6167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
6168         * modules/getrandom (License): Change to LGPLv2+.
6170 2020-07-04  Bruno Haible  <bruno@clisp.org>
6172         getumask: Add tests.
6173         * tests/test-getumask.c: New file.
6174         * modules/getumask-tests: New file.
6176         getumask: New module.
6177         * lib/sys_stat.in.h (getumask): New declaration.
6178         * lib/getumask.c: New file.
6179         * m4/getumask.m4: New file.
6180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
6181         declared.
6182         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
6183         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
6184         HAVE_GETUMASK.
6185         * modules/getumask: New file.
6186         * tests/test-sys_stat-c++.cc (getumask): Check signature.
6187         * doc/glibc-functions/getumask.texi: New file.
6188         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
6190 2020-07-04  Bruno Haible  <bruno@clisp.org>
6192         clean-temp: Add support for temporary files with given mode.
6193         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
6194         * lib/clean-temp.c (struct try_create_file_params): New type.
6195         (try_create_file): New function.
6196         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
6197         gen_tempname.
6199 2020-07-04  Bruno Haible  <bruno@clisp.org>
6201         clean-temp: Document limitations.
6202         * lib/clean-temp.h: Document limitations.
6204 2020-07-04  Bruno Haible  <bruno@clisp.org>
6206         clean-temp: Add support for temporary files with unpredictable names.
6207         * lib/clean-temp.h (gen_register_open_temp): New declaration.
6208         * lib/clean-temp.c: Include tempname.h.
6209         (gen_register_open_temp): New function.
6210         * modules/tempname (configure.ac): Define a module indicator.
6212 2020-07-04  Bruno Haible  <bruno@clisp.org>
6214         clean-temp: Add support for temporary files anywhere in the file system.
6215         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
6216         cleanup_temporary_file): New declarations.
6217         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
6218         variables.
6219         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
6220         (dir_cleanup_list): Renamed from cleanup_list.
6221         (cleanup_action): Process the file_cleanup_list as well.
6222         (do_init_clean_temp): New function.
6223         (clean_temp_once): New variable.
6224         (init_clean_temp): New function.
6225         (create_temp_dir): Invoke it.
6226         (register_temporary_file, unregister_temporary_file,
6227         cleanup_temporary_file): New functions.
6228         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
6229         argument.
6231 2020-07-04  Bruno Haible  <bruno@clisp.org>
6233         clean-temp: Improve comments.
6234         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6235         fwriteerror_temp, close_stream_temp): Clarify intended use.
6236         * lib/clean-temp.c: Likewise.
6238 2020-07-04  Bruno Haible  <bruno@clisp.org>
6240         clean-temp: Make multithread-safe, part 2.
6241         * lib/fatal-signal.h: Include <signal.h>.
6242         (get_fatal_signal_set): New declaration.
6243         * lib/fatal-signal.c (get_fatal_signal_set): New function.
6244         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
6245         (struct closeable_fd): New type.
6246         (fatal_signal_set): New variable.
6247         (init_fatal_signal_set): New function.
6248         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
6249         (cleanup_action): Invoke asyncsafe_close instead of close.
6250         (create_temp_dir): Invoke init_fatal_signal_set.
6251         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
6252         element.
6253         (unregister_fd): Remove function.
6254         (close_temp): Cleanup descriptors list on the fly. Invoke
6255         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
6256         (fclose_variant_temp): New function.
6257         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
6258         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
6260 2020-07-04  Bruno Haible  <bruno@clisp.org>
6262         clean-temp: Make multithread-safe, part 1.
6263         * lib/clean-temp.c: Include glthread/lock.h.
6264         (cleanup_list_lock): New variable.
6265         (register_temp_file, unregister_temp_file, register_temp_subdir,
6266         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
6267         (create_temp_dir): Likewise. Don't free the old array.
6268         (descriptors_lock): New variable.
6269         (register_fd, unregister_fd): Use it.
6270         * modules/clean-temp (Depends-on): Add lock.
6272 2020-07-04  Bruno Haible  <bruno@clisp.org>
6274         fatal-signal: Make multithread-safe.
6275         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6276         (do_init_fatal_signal_set): New function, extracted from
6277         init_fatal_signal_set.
6278         (fatal_signal_set_once): New variable.
6279         (init_fatal_signal_set): Use gl_once.
6281 2020-07-03  Bruno Haible  <bruno@clisp.org>
6283         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
6284         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
6285         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
6286         <bcrypt.h>.
6288 2020-07-03  Bruno Haible  <bruno@clisp.org>
6290         dfa tests: Follow common file naming conventions.
6291         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
6292         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
6293         * tests/test-dfa-invalid-char-class.sh: Renamed from
6294         tests/dfa-invalid-char-class.sh. Update.
6295         * modules/dfa-tests (Files, Makefile.am): Update.
6297 2020-07-03  Bruno Haible  <bruno@clisp.org>
6299         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
6300         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
6301         the GCC extended asm syntax also for the Sun Studio 12 compilers.
6303 2020-07-03  Bruno Haible  <bruno@clisp.org>
6305         asyncsafe-spin: Reduce code duplication.
6306         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
6307         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
6308         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
6310 2020-07-03  Bruno Haible  <bruno@clisp.org>
6312         lchmod: Simplify after 2020-02-22 change.
6313         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6315 2020-07-03  Bruno Haible  <bruno@clisp.org>
6317         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
6318         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
6320 2020-07-03  Bruno Haible  <bruno@clisp.org>
6322         dfa: Make sure the compiler does not barf on 'inline'.
6323         * modules/dfa (configure.ac): Require AC_C_INLINE.
6325 2020-07-03  Bruno Haible  <bruno@clisp.org>
6327         bitset: Make sure the compiler does not barf on 'inline'.
6328         * modules/bitset (configure.ac): New section.
6330 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6332         manywarnings: improve port to GCC 10.1
6333         * build-aux/gcc-warning.spec: Also list warnings that are default
6334         or are enabled by already-given flags.  This lets us speed up
6335         checking for attributes, and makes the generated compilation
6336         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6337         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6338         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6339         to shell variables that may have long values.
6340         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6341         consequences of other flags, to speed up checking and
6342         shorten commands.
6344         tests: pacify gcc -fanalyzer on zerosize_ptr
6345         * tests/test-memcasecmp.c (main):
6346         * tests/test-memchr.c (main):
6347         * tests/test-memchr2.c (main):
6348         * tests/test-memcmp.c (main):
6349         * tests/test-memmem.c (main):
6350         * tests/test-memrchr.c (main):
6351         * tests/unistr/test-chr.h (main):
6352         * tests/unistr/test-cmp.h (test_cmp):
6353         Check whether zerosize_ptr returns NULL before using it.
6354         This pacifies GCC 10.1’s new fanalyzer option, and matches
6355         other uses of zerosize_ptr.
6357 2020-07-01  Bruno Haible  <bruno@clisp.org>
6359         asyncsafe-spin: Add tests.
6360         * tests/test-asyncsafe-spin1.c: New file.
6361         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6362         tests/test-pthread-spin.c.
6363         * modules/asyncsafe-spin-tests: New file.
6365 2020-07-01  Bruno Haible  <bruno@clisp.org>
6367         asyncsafe-spin: New module.
6368         * lib/asyncsafe-spin.h: New file.
6369         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6370         * modules/asyncsafe-spin: New file.
6372 2020-07-01  Bruno Haible  <bruno@clisp.org>
6374         windows-spin: Fix race condition on multiprocessor systems.
6375         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6377 2020-07-01  Bruno Haible  <bruno@clisp.org>
6379         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6380         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6381         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6382         an implementation based on other GCC built-ins.
6384 2020-07-01  Bruno Haible  <bruno@clisp.org>
6386         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6387         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6388         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6389         lock byte.
6391 2020-07-01  Bruno Haible  <bruno@clisp.org>
6393         pthread-spin: Add error checking.
6394         * lib/pthread-spin.c: Include <stdbool.h>.
6395         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6396         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6397         the unlocks.
6398         * modules/pthread-spin (Depends-on): Add stdbool.
6400 2020-07-01  Bruno Haible  <bruno@clisp.org>
6402         pthread-spin: Add tests.
6403         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6404         * modules/pthread-spin-tests: New file.
6406 2020-07-01  Bruno Haible  <bruno@clisp.org>
6408         tests: Reduce code duplication.
6409         * tests/atomic-int-posix.h: New file, extracted from
6410         tests/test-pthread-mutex.c.
6411         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6412         * tests/test-pthread-rwlock.c: Likewise.
6413         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6414         * modules/pthread-rwlock-tests (Files): Likewise.
6416 2020-07-01  Bruno Haible  <bruno@clisp.org>
6418         tests: Refactor.
6419         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6420         * tests/test-mtx.c: Include it. Remove the corresponding code.
6421         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6423 2020-07-01  Bruno Haible  <bruno@clisp.org>
6425         tests: Refactor.
6426         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6427         * tests/test-lock.c: Include it. Remove the corresponding code.
6428         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6430 2020-06-29  Bruno Haible  <bruno@clisp.org>
6432         sys_socket: Don't define socklen_t if it is already defined on mingw.
6433         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6434         <https://savannah.gnu.org/bugs/?57725>,
6435         by Rahul Das <bokul_4u@yahoo.com> in
6436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6437         and by Eli Zaretskii <eliz@gnu.org> in
6438         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6439         * lib/sys_socket.in.h (socklen_t): Remove definition.
6441 2020-06-29  Bruno Haible  <bruno@clisp.org>
6443         alloca-opt: Fix warning on mingw.
6444         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6445         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6446         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6447         whether alloca is defined.
6449 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6451         getrandom: do not depend on ‘open’ on mingw
6452         Similarly for at-internal, getloadavg.  These modules do not call
6453         the ‘open’ function when they are compiled on mingw.  On mingw,
6454         this avoids having to compile open.c when building Emacs, which
6455         does its own thing with ‘open’.
6456         * modules/at-internal, modules/getloadavg, modules/getrandom:
6457         (Depends-on): Don’t depend on ‘open’ on mingw.
6458         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6459         * modules/getloadavg (Depends-on):
6460         Depend on intprops, open, stdbool, stdlib only if compiling
6461         getloadavg.c.
6463 2020-06-28  Bruno Haible  <bruno@clisp.org>
6465         doc: Add a note about sigprocmask vs. pthread_sigmask.
6466         * doc/posix-functions/sigprocmask.texi: Add note.
6468 2020-06-28  Bruno Haible  <bruno@clisp.org>
6470         getrandom: Fix compilation errors on older versions of mingw.
6471         Reported by Eli Zaretskii <eliz@gnu.org> in
6472         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6473         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6474         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6475         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6476         BCryptGenRandom ourselves.
6478 2020-06-28  Bruno Haible  <bruno@clisp.org>
6480         clean-temp: Fix wrong errno in error message.
6481         * lib/clean-temp.c (create_temp_dir): Save errno around
6482         unblock_fatal_signals call.
6484 2020-06-27  Bruno Haible  <bruno@clisp.org>
6486         fatal-signal: Make multithread-safe.
6487         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6489 2020-06-27  Bruno Haible  <bruno@clisp.org>
6491         clean-temp: Don't force deletion of temporary files on native Windows.
6492         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6493         argument.
6494         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6495         * NEWS: Mention the change.
6496         * lib/javacomp.c (write_temp_file): Update.
6498 2020-06-27  Bruno Haible  <bruno@clisp.org>
6500         fatal-signal: Make multithread-safe.
6501         * lib/fatal-signal.c: Include glthread/lock.h.
6502         (at_fatal_signal_lock): New variable.
6503         (at_fatal_signal): Use it.
6504         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6505         (block_fatal_signals, unblock_fatal_signals): Use them.
6506         * modules/fatal-signal (Depends-on): Add lock.
6508 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6510         getloadavg: don’t depend on fopen-gnu
6511         This is for Emacs, which does not need fopen-gnu for anything else,
6512         and which would need it only on a NetBSD platform where getloadavg
6513         does not work (does that even happen?).
6514         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6515         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6517         * tests/test-getloadavg.c (main): Fix typo.
6519 2020-06-27  Bruno Haible  <bruno@clisp.org>
6521         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6522         * modules/tempname (Link): New section.
6523         * modules/mkdtemp (Link): Likewise.
6524         * modules/clean-temp (Link): Likewise.
6525         * modules/mkstemp (Link): Likewise.
6526         * modules/stdlib-safer (Link): Likewise.
6527         * modules/mkstemps (Link): Likewise.
6528         * modules/mkostemp (Link): Likewise.
6529         * modules/mkostemps (Link): Likewise.
6530         * modules/tmpfile (Link): Likewise.
6531         * modules/tmpfile-safer (Link): Likewise.
6532         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6533         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6534         $(LIB_GETRANDOM).
6535         * NEWS: Mention the changes.
6537 2020-06-27  Bruno Haible  <bruno@clisp.org>
6539         fopen-gnu: Simplify code.
6540         * lib/fopen.c: Include <stdbool.h>.
6541         (rpl_fopen): Use a single variable open_flags instead of
6542         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6543         * modules/fopen (Depends-on): Add stdbool.
6545 2020-06-26  Bruno Haible  <bruno@clisp.org>
6547         canonicalize: Improve documentation.
6548         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6549         return convention.
6551 2020-06-26  Bruno Haible  <bruno@clisp.org>
6553         xgetcwd: Improve documentation.
6554         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6556 2020-06-26  Bruno Haible  <bruno@clisp.org>
6558         getcwd: Improve documentation.
6559         * lib/getcwd.c (__getcwd): Document the failure return convention.
6561 2020-06-26  Bruno Haible  <bruno@clisp.org>
6563         fchdir: Improve documentation.
6564         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6565         convention.
6567 2020-06-26  Bruno Haible  <bruno@clisp.org>
6569         filenamecat-lgpl: Set errno upon failure.
6570         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6571         return convention.
6572         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6574 2020-06-26  Bruno Haible  <bruno@clisp.org>
6576         areadlink-with-size: Set errno upon failure.
6577         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6578         fails.
6579         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6581 2020-06-26  Bruno Haible  <bruno@clisp.org>
6583         copy-file: Shrink dependencies.
6584         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6585         qcopy-acl.
6587 2020-06-26  Bruno Haible  <bruno@clisp.org>
6589         doc: Mention declaration fixes implemented by some modules.
6590         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6591         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6592         declaration appear in <unistd.h>.
6593         * doc/posix-functions/dup.texi: Likewise.
6594         * doc/posix-functions/dup2.texi: Likewise.
6595         * doc/posix-functions/gethostname.texi: Likewise.
6596         * doc/posix-functions/isatty.texi: Likewise.
6597         * doc/posix-functions/lseek.texi: Likewise.
6598         * doc/posix-functions/unlink.texi: Likewise.
6599         * doc/posix-functions/read.texi: Mention the module 'read'.
6600         * doc/posix-functions/write.texi: Mention the effects of the module
6601         'write'.
6603 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6605         c-dtoastr, c-ldtoastr: new modules
6606         These modules provide the same functionality as the modules
6607         dtoastr and ldtoastr except for the formatting taking place in the
6608         C locale.
6609         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6610         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6611         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6612         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6613         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6614         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6615         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6616         modules/c-ldtoastr-tests: New files.
6617         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6618         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6620 2020-06-21  Bruno Haible  <bruno@clisp.org>
6622         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6623         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6625 2020-06-16  Bruno Haible  <bruno@clisp.org>
6627         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6628         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6630 2020-06-16  Bruno Haible  <bruno@clisp.org>
6632         thread, thrd: Avoid a compiler warning.
6633         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6635 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6637         windows-thread: Avoid a compiler warning.
6638         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6639         void.
6640         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6642 2020-06-15  Bruno Haible  <bruno@clisp.org>
6644         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6645         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6647         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6648         first.
6650 2020-06-06  Bruno Haible  <bruno@clisp.org>
6652         calloc-gnu tests: Avoid a test failure with clang.
6653         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6654         'volatile', to defeat compiler optimizations.
6656 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6658         getloadavg: fix double-increment bug
6659         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6660         Linux without glibc, Android, Cygwin.  This fixes a bug I
6661         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6662         Problem and fix reported by Semen Verchenko in:
6663         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6665         tempname: use getrandom, not getentropy
6666         This removes a dependency, as getentropy depends on getrandom.
6667         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6668         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6669         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6671 2020-06-01  Bruno Haible  <bruno@clisp.org>
6673         doc: New chapter 'Multithreading'.
6674         * doc/multithread.texi: New file.
6675         * doc/gnulib.texi: Include it.
6677 2020-06-01  Bruno Haible  <bruno@clisp.org>
6679         doc: Move 'Running self-tests under valgrind' section.
6680         * doc/gnulib.texi (Build Infrastructure Modules): Include
6681         valgrind-tests.texi here...
6682         (Miscellaneous Notes): ... not here.
6684 2020-06-01  Bruno Haible  <bruno@clisp.org>
6686         doc: Move 'Visual Studio Compatibility' section.
6687         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6688         here...
6689         (Build Infrastructure Modules): ... not here.
6691 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6693         doc: improve randomness discussion
6694         Inspired by comments from Jeffrey Walton in:
6695         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6696         * doc/glibc-functions/getentropy.texi (getentropy):
6697         * doc/glibc-functions/getrandom.texi (getrandom):
6698         Improve discussion of problems with "random" data,
6699         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6701 2020-06-01  Bruno Haible  <bruno@clisp.org>
6703         doc: Fix Texinfo syntax error.
6704         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6706 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6708         doc: Change '.' to '@.' where appropriate.
6709         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6710         * doc/glibc-functions/fstatfs.texi: Likewise.
6711         * doc/glibc-functions/fts_children.texi: Likewise.
6712         * doc/glibc-functions/fts_read.texi: Likewise.
6713         * doc/glibc-functions/getdirentries.texi: Likewise.
6714         * doc/glibc-functions/mkostemp.texi: Likewise.
6715         * doc/glibc-functions/mkostemps.texi: Likewise.
6716         * doc/glibc-functions/mkstemps.texi: Likewise.
6717         * doc/glibc-functions/preadv.texi: Likewise.
6718         * doc/glibc-functions/pwritev.texi: Likewise.
6719         * doc/glibc-functions/sendfile.texi: Likewise.
6720         * doc/glibc-functions/statfs.texi: Likewise.
6721         * doc/gnulib-intro.texi: Likewise.
6722         * doc/gnulib-tool.texi: Likewise.
6723         * doc/intprops.texi: Likewise.
6724         * doc/lib-symbol-visibility.texi: Likewise.
6725         * doc/licenses-texi.texi: Likewise.
6726         * doc/pastposix-functions/bcmp.texi: Likewise.
6727         * doc/pastposix-functions/bcopy.texi: Likewise.
6728         * doc/pastposix-functions/bzero.texi: Likewise.
6729         * doc/pastposix-functions/ecvt.texi: Likewise.
6730         * doc/pastposix-functions/fcvt.texi: Likewise.
6731         * doc/pastposix-functions/ftime.texi: Likewise.
6732         * doc/pastposix-functions/gcvt.texi: Likewise.
6733         * doc/pastposix-functions/getwd.texi: Likewise.
6734         * doc/pastposix-functions/index.texi: Likewise.
6735         * doc/pastposix-functions/mktemp.texi: Likewise.
6736         * doc/pastposix-functions/rindex.texi: Likewise.
6737         * doc/pastposix-functions/wcswcs.texi: Likewise.
6738         * doc/posix-functions/aio_cancel.texi: Likewise.
6739         * doc/posix-functions/aio_error.texi: Likewise.
6740         * doc/posix-functions/aio_fsync.texi: Likewise.
6741         * doc/posix-functions/aio_read.texi: Likewise.
6742         * doc/posix-functions/aio_return.texi: Likewise.
6743         * doc/posix-functions/aio_suspend.texi: Likewise.
6744         * doc/posix-functions/aio_write.texi: Likewise.
6745         * doc/posix-functions/creat.texi: Likewise.
6746         * doc/posix-functions/ctime.texi: Likewise.
6747         * doc/posix-functions/daylight.texi: Likewise.
6748         * doc/posix-functions/fgetpos.texi: Likewise.
6749         * doc/posix-functions/fopen.texi: Likewise.
6750         * doc/posix-functions/freopen.texi: Likewise.
6751         * doc/posix-functions/fseeko.texi: Likewise.
6752         * doc/posix-functions/fsetpos.texi: Likewise.
6753         * doc/posix-functions/fstatat.texi: Likewise.
6754         * doc/posix-functions/fstatvfs.texi: Likewise.
6755         * doc/posix-functions/ftello.texi: Likewise.
6756         * doc/posix-functions/ftruncate.texi: Likewise.
6757         * doc/posix-functions/getrlimit.texi: Likewise.
6758         * doc/posix-functions/lio_listio.texi: Likewise.
6759         * doc/posix-functions/localtime.texi: Likewise.
6760         * doc/posix-functions/lseek.texi: Likewise.
6761         * doc/posix-functions/mkstemp.texi: Likewise.
6762         * doc/posix-functions/mktime.texi: Likewise.
6763         * doc/posix-functions/open.texi: Likewise.
6764         * doc/posix-functions/openat.texi: Likewise.
6765         * doc/posix-functions/opendir.texi: Likewise.
6766         * doc/posix-functions/pread.texi: Likewise.
6767         * doc/posix-functions/pwrite.texi: Likewise.
6768         * doc/posix-functions/readdir.texi: Likewise.
6769         * doc/posix-functions/readdir_r.texi: Likewise.
6770         * doc/posix-functions/scandir.texi: Likewise.
6771         * doc/posix-functions/seekdir.texi: Likewise.
6772         * doc/posix-functions/setrlimit.texi: Likewise.
6773         * doc/posix-functions/statvfs.texi: Likewise.
6774         * doc/posix-functions/strftime.texi: Likewise.
6775         * doc/posix-functions/telldir.texi: Likewise.
6776         * doc/posix-functions/timezone.texi: Likewise.
6777         * doc/posix-functions/tmpfile.texi: Likewise.
6778         * doc/posix-functions/truncate.texi: Likewise.
6779         * doc/posix-functions/tzname.texi: Likewise.
6780         * doc/posix-functions/wcsftime.texi: Likewise.
6781         * doc/windows-sockets.texi: Likewise.
6783 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6785         getrandom-tests: do not assume GRND_RANDOM yields short read
6786         * tests/test-getrandom.c (main): Omit assertion that
6787         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6788         when b’s size is 100000.  This assertion fails with Linux kernel
6789         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6790         The separate blocking pool is going away in the Linux kernel, and
6791         they’ve added a flag GRND_INSECURE instead; see:
6792         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6793         The assertion was iffy anyway; what’s to prevent a kernel from
6794         lazily filling a large buffer with random bytes?
6796         read-file-test: pacify --enable-gcc-warnings
6797         * tests/test-read-file.c (test_read_file): Now static.
6799         tempname: merge from glibc and coreutils
6800         Also, merge in Gnulib’s more-recent methods of making it easier
6801         to share between Gnulib and glibc, and fix a few randomness
6802         glitches.
6803         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6804         (__set_errno): Remove; libc-config.h does that for us.
6805         Do not include <sys/time.h>.
6806         (__secure_getenv) [_LIBC]: New macro.
6807         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6808         (RANDOM_BITS): Rewrite.
6809         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6810         (random_value): New typedef.
6811         (try_file, try_dir, try_nocreate): Move up.
6812         (gen_tempname_len, try_tempname_len): New functions.
6813         (gen_tempname_len): Use a constant array rather than a switch.
6814         (try_tempname_len): Don’t assume string length fits in int.
6815         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6816         has enough entropy (it’s a bit short).
6817         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6818         (__try_tempname): Rewrite in terms of try_tempname_len.
6819         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6820         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6821         Add getentropy, libc-config.
6823 2020-05-31  Bruno Haible  <bruno@clisp.org>
6825         getrandom, getentropy: Mention the crypto/gc-random module.
6826         Suggested by Simon Josefsson in
6827         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6828         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6829         crypto/gc-random module.
6830         * doc/glibc-functions/getentropy.texi: Likewise.
6832 2020-05-31  Bruno Haible  <bruno@clisp.org>
6834         getentropy: Enhance tests.
6835         * tests/test-getentropy.c (main): Add one more test.
6836         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6838 2020-05-31  Bruno Haible  <bruno@clisp.org>
6840         getentropy: Work around a macOS and Solaris problem.
6841         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6842         'getentropy' module.
6843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6844         UNISTD_H_HAVE_SYS_RANDOM_H.
6845         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6846         UNISTD_H_HAVE_SYS_RANDOM_H.
6847         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6848         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6849         problem. List more platforms.
6851 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6853         fnmatch: merge from glibc
6854         Also, merge in Gnulib’s more-recent methods of making it easier
6855         to share between Gnulib and glibc.
6856         * lib/fnmatch.c: Reorder includes to match glibc better.
6857         Include libc-config.h instead of config.h.
6858         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6859         Do not include "../locale/elem-hash.h" if _LIBC.
6860         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6861         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6862         Include intprops.h, since glibc has it now.
6863         (SIZE_MAX): Remove; use (size_t) -1 instead.
6864         Omit the "Comment out all this code" ifdef, since Gnulib
6865         has never really needed it.
6866         (STREQ): Remove; no longer used.
6867         (__libc_use_alloca, alloca, alloca_account): Define as
6868         needed if !_LIBC.
6869         (ISWCTYPE): Remove; all uses replaced by iswctype.
6870         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6871         (internal_function): Remove.  All uses removed.
6872         (STRUCT): New macro.
6873         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6874         (WMEMCMP): New macro.
6875         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6876         and <locale/weightwc.h>.
6877         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6878         __builtin_expect.  Check for integer overflow more
6879         systematically.  Account for alloca storage better when
6880         recursive.  Use strnlen instead of strlen for efficiency.
6881         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6882         (struct STRUCT): New type.
6883         (FCT, EXT): New ENDS and ALLOCA_USED args.
6884         All callers changed.
6885         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6886         Simplify by assuming WIDE_CHAR_SUPPORT.
6887         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6888         Cast cold to UCHAR to avoid signedness warning.
6889         (END): Check for invalid pattern.
6890         (EXT): Improve alloca/malloc checking (taken from glibc),
6891         and improve it some more by using intprops.h and checking
6892         for integer overflow and using bool for booleans.
6893         * lib/libc-config.h (compat_symbol): New macro.
6894         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6895         acceptable to non-GCC when a trailing semicolon is added.
6896         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6897         libc-config, strnlen.  Remove alloca.
6899 2020-05-31  Bruno Haible  <bruno@clisp.org>
6901         getrandom: Doc and test tweaks.
6902         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6903         it sets errno when failing.
6904         * tests/test-getrandom.c (main): Disable the high-quality check on those
6905         platforms on which it fails.
6906         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6907         Cygwin to the list of platforms that don't have the function. Add a note
6908         about the quality of the result.
6909         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6910         declaration; this is fixed by module 'getrandom'.
6912 2020-05-31  Bruno Haible  <bruno@clisp.org>
6914         getrandom: Add support for native Windows.
6915         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6916         <wincrypt.h>.
6917         (CRYPT_VERIFY_CONTEXT): New macro.
6918         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6919         'A'.
6920         (GetProcAddress): New macro.
6921         (BCryptGenRandomFuncType): New type.
6922         (BCryptGenRandomFunc, initialized): New variables.
6923         (initialize): New function.
6924         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6925         <wincrypt.h> API as fallback.
6926         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6927         * modules/getrandom (Link): New section.
6928         * modules/getentropy (Link): Likewise.
6929         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6930         $(LIB_GETRANDOM).
6931         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6932         $(LIB_GETRANDOM).
6933         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6934         against $(LIB_GETRANDOM).
6935         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6936         support.
6938 2020-05-31  Bruno Haible  <bruno@clisp.org>
6940         getrandom: Simplify the determination of the random number devices.
6941         Suggested by Paul Eggert in
6942         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6943         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6944         macros.
6945         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6947 2020-05-31  Bruno Haible  <bruno@clisp.org>
6949         crypto/gc-random: Fix list of crypto devices for Solaris.
6950         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6952 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6954         list: fix GCC warnings
6955         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6956         (gl_tree_next_node, gl_tree_node_nx_set_value)
6957         (gl_tree_previous_node, gl_tree_next_node):
6958         Mark unused arguments.
6959         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6960         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6961         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6963         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6964         the same variable name in nested scopes.
6966 2020-05-31  Bruno Haible  <bruno@clisp.org>
6968         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6969         Reported by Akim Demaille in
6970         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6971         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6972         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6973         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6974         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6975         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6977 2020-05-30  Bruno Haible  <bruno@clisp.org>
6979         wmemchr: Relicense under LGPLv2+.
6980         * modules/wmemchr (License): Set to LGPLv2+.
6982 2020-05-30  Bruno Haible  <bruno@clisp.org>
6984         wmempcpy: New module.
6985         Reported by Paul Eggert in
6986         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6987         * lib/wchar.in.h (wmempcpy): New declaration.
6988         * lib/wmempcpy.c: New file.
6989         * m4/wmempcpy.m4: New file.
6990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6992         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6993         HAVE_WMEMPCPY.
6994         * modules/wmempcpy: New file.
6995         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6996         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6997         * modules/mempcpy (Description): Fix typo.
6999 2020-05-30  Bruno Haible  <bruno@clisp.org>
7001         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
7002         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
7004 2020-05-30  Bruno Haible  <bruno@clisp.org>
7006         sys_random: Work around macOS bug.
7007         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
7008         <stdlib.h> before <sys/random.h>.
7009         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
7010         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
7011         first.
7012         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
7014 2020-05-30  Bruno Haible  <bruno@clisp.org>
7016         getrandom: Override incompatible system function on Solaris 11.
7017         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
7018         * lib/getrandom.c (getrandom): When the system has getrandom, just
7019         invoke it.
7020         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
7021         system's getrandom function's prototype is not the expected one.
7022         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
7023         REPLACE_GETRANDOM.
7024         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
7025         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
7026         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
7027         EAGAIN.
7028         * doc/glibc-functions/getrandom.texi: Mention the new module and the
7029         Solaris problem.
7031 2020-05-30  Bruno Haible  <bruno@clisp.org>
7033         sys_random: Add C++ tests.
7034         * tests/test-sys_random-c++.cc: New file.
7035         * modules/sys_random-c++-tests: New file.
7036         * modules/sys_random-tests (Depends-on): Depend on it.
7038         sys_random: Add tests.
7039         * tests/test-sys_random.c: New file.
7040         * modules/sys_random-tests: New file.
7042         sys_random: New module.
7043         * lib/sys_random.in.h: Use the common idioms for overridable header
7044         files.
7045         * m4/sys_random_h.m4: New file.
7046         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
7047         * modules/sys_random: New file.
7048         * modules/getrandom (Files): Remove lib/sys_random.in.h.
7049         (Depends-on): Add sys_random.
7050         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
7051         gl_UNISTD_MODULE_INDICATOR.
7052         (Makefile.am): Don't generate sys/random.h here.
7053         * doc/glibc-headers/sys_random.texi: New file.
7054         * doc/gnulib.texi: Include it.
7056 2020-05-30  Bruno Haible  <bruno@clisp.org>
7058         unistd: Remove conflicting declaration of getrandom().
7059         * lib/unistd.in.h (getrandom): Remove declaration.
7060         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
7061         declared.
7062         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
7063         HAVE_GETRANDOM.
7064         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
7065         HAVE_GETRANDOM.
7067 2020-05-30  Bruno Haible  <bruno@clisp.org>
7069         getrandom: Add tests.
7070         * tests/test-getrandom.c: New file.
7071         * modules/getrandom-tests: New file.
7073 2020-05-30  Bruno Haible  <bruno@clisp.org>
7075         crypto/gc-random: Fix link error on MSVC.
7076         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
7077         * modules/crypto/gc-random (Link): New section.
7078         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
7079         $(LIB_GC_RANDOM).
7081 2020-05-30  Bruno Haible  <bruno@clisp.org>
7083         Don't assume that UNICODE is not defined.
7084         Many Windows API functions are defined differently (redirecting to a
7085         function with suffix 'W') if the application defines the macro UNICODE
7086         than by default (redirecting to a function with suffix 'A').
7087         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
7088         variant with suffix 'A'.
7089         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
7090         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
7091         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
7092         * lib/getlogin.c (GetUserName): Likewise.
7093         * lib/getlogin_r.c (GetUserName): Likewise.
7094         * lib/gettimeofday.c (LoadLibrary): Likewise.
7095         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
7096         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
7097         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
7098         * lib/mountlist.c (GetDriveType): Likewise.
7099         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
7100         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
7101         Likewise.
7102         * lib/physmem.c (GetModuleHandle): Likewise.
7103         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7104         PeekMessage, DispatchMessage): Likewise.
7105         * lib/progreloc.c (GetModuleFileName): Likewise.
7106         * lib/putenv.c (SetEnvironmentVariable): Likewise.
7107         * lib/read.c (GetNamedPipeHandleState): Likewise.
7108         * lib/readdir.c (FindNextFile): Likewise.
7109         * lib/relocatable.c (GetModuleFileName): Likewise.
7110         * lib/rename.c (MoveFileEx): Likewise.
7111         * lib/rewinddir.c (FindFirstFile): Likewise.
7112         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7113         PeekMessage, DispatchMessage): Likewise.
7114         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
7115         * lib/socket.c (WSASocket): Likewise.
7116         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
7117         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
7118         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
7119         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
7120         * lib/tmpdir.c (GetTempPath): Likewise.
7121         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
7122         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
7123         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
7124         * lib/windows-cond.c (CreateEvent): Likewise.
7125         * lib/windows-rwlock.c (CreateEvent): Likewise.
7126         * lib/windows-timedmutex.c (CreateEvent): Likewise.
7127         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
7128         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
7129         * lib/write.c (GetNamedPipeHandleState): Likewise.
7131 2020-05-30  Bruno Haible  <bruno@clisp.org>
7133         physmem: Fix compilation errors on MSVC.
7134         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
7135         * modules/physmem (Depends-on): Add unistd.
7137 2020-05-29  Bruno Haible  <bruno@clisp.org>
7139         gnulib-tool: Fix link errors with a particular set of modules on mingw.
7140         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
7141         LDADD a second time, after the second occurrence of libtests.a.
7142         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
7144 2020-05-29  Bruno Haible  <bruno@clisp.org>
7146         fnmatch: Rely on more gnulib modules.
7147         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
7148         wmempcpy, mempcpy.
7149         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
7150         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
7151         HAVE_MEMPCPY are all 1.
7152         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
7153         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
7155 2020-05-29  Bruno Haible  <bruno@clisp.org>
7157         Avoid dynamic lookup of Windows API functions when possible.
7158         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
7159         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
7160         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
7161         (use_win32_p): Define differently.
7162         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
7163         CreateHardLinkFunc, initialized, initialize): Don't define in a build
7164         for Windows XP or higher.
7166 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7168         read-file: disable buffering if RF_SENSITIVE is set
7169         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
7170         Suggested by Glenn Strauss.
7171         (fread_file): Suggest calling setvbuf before calling this
7172         function.  Suggested by Bruno Haible.
7174 2020-05-29  Bruno Haible  <bruno@clisp.org>
7176         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
7177         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
7178         program.
7179         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
7180         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
7181         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
7182         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
7184 2020-05-29  Bruno Haible  <bruno@clisp.org>
7186         Fix compilation error on native Windows (regression from 2020-05-28).
7187         Reported by Daiki Ueno.
7188         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
7189         macro when not using dynamic loading.
7190         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
7191         QueryFullProcessImageNameFunc): Likewise.
7192         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
7193         GetFinalPathNameByHandleFunc): Likewise.
7195 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7197         fopen-gnu-tests: fix "\x" escape usage
7198         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
7200 2020-05-28  Bruno Haible  <bruno@clisp.org>
7202         Avoid dynamic loading of Windows API functions when possible.
7203         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7204         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
7205         * lib/gettimeofday.c (GetProcAddress,
7206         GetSystemTimePreciseAsFileTimeFuncType,
7207         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
7208         define in a build for Windows 8 or higher.
7209         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
7210         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
7211         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
7212         in a build for Windows Vista or higher.
7213         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
7214         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
7215         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
7217 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7219         explicit_bzero-tests: improve -Wmissing-declarations pacification
7220         * tests/test-explicit_bzero.c: Now noinline.
7221         Suggested by Bruno Haible in:
7222         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
7224 2020-05-28  Bruno Haible  <bruno@clisp.org>
7226         Fix build errors due to read-file changes (regression from 2020-05-27).
7227         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
7228         invocation.
7229         * tests/test-sameacls.c (main): Likewise.
7230         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
7231         read_binary_file.
7232         * tests/test-pipe-filter-ii1.c (main): Likewise.
7234 2020-05-28  Bruno Haible  <bruno@clisp.org>
7236         fts: Make more robust in multithreaded applications.
7237         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
7238         * modules/fts (Depends-on): Add 'open'.
7240 2020-05-28  Bruno Haible  <bruno@clisp.org>
7242         relocatable-prog: Make more robust in multithreaded applications.
7243         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
7244         relocatable-prog-wrapper.
7245         (find_executable): Pass an O_CLOEXEC flag to open().
7246         * modules/relocatable-prog (Depends-on): Add 'open'.
7248 2020-05-28  Bruno Haible  <bruno@clisp.org>
7250         getloadavg: Make more robust in multithreaded applications.
7251         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
7252         Simplify use of O_CLOEXEC.
7253         * modules/getloadavg (Depends-on): Add 'open'.
7255 2020-05-28  Bruno Haible  <bruno@clisp.org>
7257         vma-iter: Make more robust in multithreaded applications.
7258         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
7259         open().
7260         * modules/vma-iter (Depends-on): Add 'open'.
7262 2020-05-28  Bruno Haible  <bruno@clisp.org>
7264         truncate: Make more robust in multithreaded applications.
7265         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
7267 2020-05-28  Bruno Haible  <bruno@clisp.org>
7269         pagealign_alloc: Make more robust in multithreaded applications.
7270         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
7271         open().
7272         * modules/pagealign_alloc (Depends-on): Add 'open'.
7274 2020-05-28  Bruno Haible  <bruno@clisp.org>
7276         openat: Make more robust in multithreaded applications.
7277         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
7279 2020-05-28  Bruno Haible  <bruno@clisp.org>
7281         at-internal: Make more robust in multithreaded applications.
7282         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
7283         open().
7285 2020-05-28  Bruno Haible  <bruno@clisp.org>
7287         mountlist: Make more robust in multithreaded applications.
7288         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
7289         open().
7290         * modules/mountlist (Depends-on): Add 'open'.
7292 2020-05-28  Bruno Haible  <bruno@clisp.org>
7294         login_tty: Make more robust in multithreaded applications.
7295         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
7296         * modules/login_tty (Depends-on): Add 'open'.
7298 2020-05-28  Bruno Haible  <bruno@clisp.org>
7300         javacomp: Make more robust in multithreaded applications.
7301         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
7302         open().
7303         * modules/javacomp (Depends-on): Add 'open'.
7305 2020-05-28  Bruno Haible  <bruno@clisp.org>
7307         getprogname: Make more robust in multithreaded applications.
7308         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
7309         * modules/getprogname (Depends-on): Add 'open'.
7311 2020-05-28  Bruno Haible  <bruno@clisp.org>
7313         get_progname_of: Make more robust in multithreaded applications.
7314         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
7315         open().
7316         * modules/get_progname_of (Depends-on): Add 'open'.
7318 2020-05-28  Bruno Haible  <bruno@clisp.org>
7320         get_ppid_of: Make more robust in multithreaded applications.
7321         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
7322         * modules/get_ppid_of (Depends-on): Add 'open'.
7324 2020-05-28  Bruno Haible  <bruno@clisp.org>
7326         get-rusage-as: Make more robust in multithreaded applications.
7327         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7328         flag to open().
7329         * modules/get-rusage-as (Depends-on): Add 'open'.
7331 2020-05-28  Bruno Haible  <bruno@clisp.org>
7333         crypto/gc: Make more robust in multithreaded applications.
7334         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7335         * modules/crypto/gc (Depends-on): Add 'open'.
7337 2020-05-28  Bruno Haible  <bruno@clisp.org>
7339         copy-file: Make more robust in multithreaded applications.
7340         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7341         open().
7343 2020-05-28  Bruno Haible  <bruno@clisp.org>
7345         chown: Make more robust in multithreaded applications.
7346         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7348 2020-05-28  Bruno Haible  <bruno@clisp.org>
7350         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7351         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7353 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7355         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7356         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7357         specified on Windows.
7358         * tests/test-fopen-gnu.c (DATA): New define.
7359         (main): Add test for reading binary files with an 'e' flag.
7361 2020-05-27  Bruno Haible  <bruno@clisp.org>
7363         Don't assume that UNICODE is not defined.
7364         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7365         differently if the application defines the macro UNICODE.
7366         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7367         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7368         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7369         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7370         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7372 2020-05-27  Bruno Haible  <bruno@clisp.org>
7374         Improve pattern for defining _WIN32_WINNT.
7375         Newer versions of the Windows API may not only add, but also remove API
7376         functions. Therefore, when the user is e.g. building for Windows 10, we
7377         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7378         use of APIs that were present in Windows 8 but removed in Windows 10.
7379         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7381         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7382         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7383         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7385 2020-05-27  Bruno Haible  <bruno@clisp.org>
7387         javacomp: Make more robust in multithreaded applications.
7388         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7389         * modules/javacomp (Depends-on): Add fopen-gnu.
7391 2020-05-27  Bruno Haible  <bruno@clisp.org>
7393         mountlist: Make more robust in multithreaded applications.
7394         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7395         to fopen.
7396         * modules/mountlist (Depends-on): Add fopen-gnu.
7398 2020-05-27  Bruno Haible  <bruno@clisp.org>
7400         sethostname: Make more robust in multithreaded applications.
7401         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7402         * modules/sethostname (Depends-on): Add fopen-gnu.
7404 2020-05-27  Bruno Haible  <bruno@clisp.org>
7406         readutmp: Make more robust in multithreaded applications.
7407         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7408         * modules/readutmp (Depends-on): Add fopen-gnu.
7410 2020-05-27  Bruno Haible  <bruno@clisp.org>
7412         getpass: Make more robust in multithreaded applications.
7413         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7414         * modules/getpass (Depends-on): Add fopen-gnu.
7416 2020-05-27  Bruno Haible  <bruno@clisp.org>
7418         getloadavg: Make more robust in multithreaded applications.
7419         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7420         * modules/getloadavg (Depends-on): Add fopen-gnu.
7422 2020-05-27  Bruno Haible  <bruno@clisp.org>
7424         exclude: Make more robust in multithreaded applications.
7425         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7426         * modules/exclude (Depends-on): Add fopen-gnu.
7428 2020-05-27  Bruno Haible  <bruno@clisp.org>
7430         bitset: Make more robust in multithreaded applications.
7431         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7432         'e' flag to fopen.
7433         * modules/bitset (Depends-on): Add fopen-gnu.
7435 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7437         read-file: add RF_SENSITIVE flag
7438         * lib/read-file.h (RF_SENSITIVE): New define.
7439         * lib/read-file.c (fread_file, read_file): Take into account of
7440         RF_SENSITIVE flag.
7441         * modules/read-file (Depends-on): Add explicit_bzero.
7442         This adds an alternative behavior of those functions to explicitly
7443         clear the internal memory block when it becomes unused.  This is
7444         useful for reading sensitive information from a file.
7446 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7448         read-file: add flags to modify reading behavior
7449         * lib/read-file.h (RF_BINARY): New define.
7450         (fread_file, read_file): Take FLAGS argument.
7451         (read_binary_file): Remove.
7452         * lib/read-file.c (internal_read_file): Merge into ...
7453         (read_file): ... here.
7454         * modules/read-file-tests (Files): Add "tests/macros.h".
7455         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7456         * NEWS: Mention this change.
7458 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7460         doc/gnulib-intro.texi: add missing "to" in sentence
7461         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7462         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7463         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7465 2020-05-26  Bruno Haible  <bruno@clisp.org>
7467         count-one-bits: Fix MSVC specific code.
7468         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7469         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7470         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7471         using GCC.
7472         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7473         (__popcnt64): In 32-bit mode, define as an inline function.
7474         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7476 2020-05-26  Bruno Haible  <bruno@clisp.org>
7478         argz: Avoid name clashes through argz.h.
7479         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7480         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7481         * lib/argz.h: Don't use __ prefixed identifiers.
7482         (const): Remove definition.
7483         (argz_next): Remove inline definitions.
7485 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7487         read-file: make use of fopen-gnu
7488         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7489         (read_binary_file): Likewise.
7490         * modules/read-file (Depends-on): Add fopen-gnu.
7492 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7494         getentropy, getrandom: new modules
7495         * MODULES.html.sh (func_all_modules):
7496         * lib/unistd.in.h (getentropy, getrandom):
7497         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7498         * modules/unistd (unistd.h):
7499         Add support for getentropy, getrandom.
7500         * doc/glibc-functions/getentropy.texi (getentropy):
7501         * doc/glibc-functions/getrandom.texi (getrandom):
7502         These are now fixed on some platforms.
7503         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7504         * m4/getentropy.m4, m4/getrandom.m4:
7505         * modules/getentropy, modules/getentropy-tests:
7506         * modules/getrandom, modules/getrandom-tests:
7507         * tests/test-getentropy.c, tests/test-getrandom.c:
7508         New files.
7510 2020-05-25  Bruno Haible  <bruno@clisp.org>
7512         Add missing C99 dependencies.
7513         Reported by Paul Smith <psmith@gnu.org> in
7514         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7515         * modules/assert (Depends-on): Add c99.
7516         * modules/filenamecat-lgpl (Depends-on): Likewise.
7517         * modules/libc-config (Depends-on): Likewise.
7518         * modules/mktime (Depends-on): Likewise.
7519         * modules/random_r (Depends-on): Likewise.
7520         * modules/regex (Depends-on): Likewise.
7521         * modules/scratch_buffer (Depends-on): Likewise.
7522         * modules/timespec-add (Depends-on): Likewise.
7523         * modules/timespec-sub (Depends-on): Likewise.
7524         * modules/verify (Depends-on): Likewise.
7526 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7528         explicit_bzero-tests: pacify -Wmissing-declarations
7529         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7530         Now static.
7532 2020-05-24  Bruno Haible  <bruno@clisp.org>
7534         fopen-gnu: Add tests.
7535         * tests/test-fopen-gnu.c: New file.
7536         * modules/fopen-gnu-tests: New file.
7538         fopen-gnu: New module.
7539         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7541         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7542         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7543         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7544         * modules/fopen-gnu: New file.
7545         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7547 2020-05-24  Bruno Haible  <bruno@clisp.org>
7549         open, openat: Really support O_CLOEXEC.
7550         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7551         O_CLOEXEC flag to orig_open.
7552         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7553         pass a O_CLOEXEC flag to orig_openat.
7554         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7555         * modules/open-tests (Depends-on): Add fcntl.
7556         * modules/openat-tests (Depends-on): Likewise.
7557         * modules/fcntl-safer-tests (Depends-on): Likewise.
7559 2020-05-24  Bruno Haible  <bruno@clisp.org>
7561         fopen: Fix the trailing slash workaround.
7562         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7563         write access. Pass the right flags to open().
7564         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7566 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7568         assure: new macro ‘affirm’
7569         * lib/assure.h: Include verify.h.
7570         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7571         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7572         and commentary by Bruno Haible in:
7573         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7574         * modules/assure (Depends-on:): Add verify.
7576 2020-05-23  Bruno Haible  <bruno@clisp.org>
7578         calloc-gnu: Make test work in non-flat address spaces.
7579         Uses code by Paul Eggert.
7580         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7581         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7583 2020-05-23  Bruno Haible  <bruno@clisp.org>
7585         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7586         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7587         AC_RUN_IFELSE invocations.
7589 2020-05-23  Bruno Haible  <bruno@clisp.org>
7591         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7592         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7593         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7594         don't have it.
7595         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7596         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7597         don't have it.
7598         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7599         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7600         it.
7601         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7602         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7603         it.
7604         * lib/math.in.h (__has_builtin): New macro.
7605         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7606         it.
7607         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7608         it.
7609         (isnan): Don't use the builtins on clang versions that don't have
7610         __builtin_isnanf and __builtin_isnanl.
7612 2020-05-23  Bruno Haible  <bruno@clisp.org>
7614         calloc-gnu: Avoid wrong configure results with clang.
7615         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7616         'volatile', to defeat compiler optimizations.
7618 2020-05-23  Bruno Haible  <bruno@clisp.org>
7620         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7621         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7622         'long double' values by reference, with values taken from a statically
7623         allocated array.
7625 2020-05-23  Bruno Haible  <bruno@clisp.org>
7627         findprog-in: Ignore directories.
7628         Reported by Frederick Eaton via Dmitry Goncharov in
7629         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7630         * lib/findprog-in.c (find_in_given_path): When the file found is a
7631         directory, set errno to EACCES and, during a PATH search, continue
7632         searching.
7633         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7635 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7637         verify: document ‘assume’ better
7638         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7640 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7642         gendocs: Clarify licenses for templates.
7643         * doc/gendocs_template: Add a GNU All-Permissive license notice
7644         and bump Parent-Version.
7645         * doc/gendocs_template_min: Add a GNU All-Permissive license
7646         notice and copy the explanatory comment about the license notice
7647         at the bottom from gendocs_template.
7649 2020-05-21  Bruno Haible  <bruno@clisp.org>
7651         group-member: Relicense under LGPLv2+.
7652         Jim Meyering's approval is in
7653         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7654         Paul Eggert's approval is in
7655         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7656         Eric Blake's approval is in
7657         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7658         * modules/group-member (License): Change to LGPLv2+.
7660 2020-05-21  Bruno Haible  <bruno@clisp.org>
7662         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7663         Reported by Tim Rühsen in
7664         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7667 2020-05-21  Bruno Haible  <bruno@clisp.org>
7669         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7670         Reported by Tim Rühsen in
7671         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7672         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7673         before returning with status 0.
7675 2020-05-21  Bruno Haible  <bruno@clisp.org>
7677         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7678         Reported by Tim Rühsen in
7679         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7680         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7682 2020-05-21  Bruno Haible  <bruno@clisp.org>
7684         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7685         Reported by Tim Rühsen in
7686         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7687         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7688         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7689         respectively.
7691 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7693         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7694         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7696 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7698         ftoastr: fix ifndef typo
7699         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7701 2020-05-19  Bruno Haible  <bruno@clisp.org>
7703         havelib: Tweak documentation.
7704         * doc/havelib.texi (Searching for Libraries): Fix typo.
7706 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7708         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7709         This was needed earlier because modules had to import the main script,
7710         but that is no longer true.  Rename the script so that it is
7711         consistent with all other scripts in gnulib and uses hyphens.
7712         * build-aux/vcs_to_changelog.py: Rename to...
7713         * build-aux/vcs-to-changelog.py: ... this.
7714         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7715         * modules/vcs-to-changelog: Likewise.
7717 2020-05-17  Bruno Haible  <bruno@clisp.org>
7719         Clarify intended usage of the license file modules.
7720         Reported by Asher Gordon <AsDaGo@posteo.net> in
7721         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7722         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7723         GNU AGPL. Explain the intended usage of the modules.
7724         * modules/fdl (Notice): Discourage use as a module.
7725         * modules/fdl-1.3 (Notice): Likewise.
7727 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7729         hash: add hash_xinsert
7730         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7732 2020-05-16  Bruno Haible  <bruno@clisp.org>
7734         findprog-lgpl: Fix link error (existing since 2008-09-02).
7735         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7736         findprog-lgpl.c, not findprog.c.
7737         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7738         XNMALLOC.
7740 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7742         c-stack: pacify -Wunused-result when DEBUG
7743         Problem reported by Marc Nieper-Wißkirchen in:
7744         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7745         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7746         Explicitly ignore write failures.
7748 2020-05-13  Jim Meyering  <meyering@fb.com>
7750         announce-gen: improve a comment
7751         * build-aux/announce-gen: Improve comment.
7753 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7755         xalloc: pacify -Wanalyzer-possible-null-argument
7756         Problem reported for GCC 10.1.0 by Bruno Haible in:
7757         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7758         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7759         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7760         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7762 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7764         careadlinkat: fix GCC 10 workaround
7765         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7766         Massage the code so that it’s closer to what it was before
7767         the GCC 10.1.0 workaround was introduced.  This fixes
7768         a loop when !buffer and the bug workaround is in effect.
7769         Remove unnecessary casts.  Defend in a different way
7770         against (buffer && !buffer_size), by adding at least 1
7771         to buf_size each time through the loop.
7773 2020-05-10  Bruno Haible  <bruno@clisp.org>
7775         doc: Mark HP-UX as unsupported.
7776         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7778 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7780         careadlinkat: limit GCC workaround
7781         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7782         10.1.0 and later, since the workaround is pretty bad and the GCC
7783         bug should get fixed.
7785 2020-05-10  Bruno Haible  <bruno@clisp.org>
7787         havelib: Enhance documentation.
7788         * doc/havelib.texi (Searching for Libraries): Mention the bad
7789         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7791 2020-05-10  Bruno Haible  <bruno@clisp.org>
7793         attribute: Clarify list of attributes.
7794         * lib/attribute.h: Reorder the list of attributes, and group them by
7795         purpose.
7797 2020-05-10  Bruno Haible  <bruno@clisp.org>
7799         string: Fix compilation error in C++ mode.
7800         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7801         _GL_WARN_ON_USE.
7802         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7803         instead of _GL_WARN_ON_USE.
7805 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7807         announce-gen: add support for dist-lzip
7808         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7810 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7812         manywarnings: port to GCC 10.1
7813         * build-aux/gcc-warning.spec:
7814         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7815         Add GCC 10.1.0 warnings.
7817         careadlinkat: pacify -Wreturn-local-addr
7818         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7819         Pacify gcc 10’s -Wreturn-local-addr option.
7820         Simplify some of the later code.
7822 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7824         attribute: remove ATTRIBUTE_DEPRECATED
7825         * lib/attribute.h: Improve recently-added comments, mostly
7826         by shortening them (use active voice, etc.).
7827         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7828         Problem reported by Bruno Haible in:
7829         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7831 2020-05-09  Bruno Haible  <bruno@clisp.org>
7833         attribute: Add comments.
7834         * lib/attribute.h: Document each macro.
7836 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7838         bitset: use the attribute module
7839         * modules/bitset: Depend on 'attribute'.
7840         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7841         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7842         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7843         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7845 2020-05-09  Bruno Haible  <bruno@clisp.org>
7847         c-stack: Fix warning when DEBUG is enabled.
7848         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7849         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7850         * lib/c-stack.c: Include <stdio.h>.
7852 2020-05-09  Bruno Haible  <bruno@clisp.org>
7854         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7855         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7856         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7857         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7858         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7859         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7860         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7861         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7862         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7863         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7864         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7865         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7866         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7868 2020-05-09  Bruno Haible  <bruno@clisp.org>
7870         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7871         Reported by Akim Demaille in
7872         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7873         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7874         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7875         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7877 2020-05-09  Bruno Haible  <bruno@clisp.org>
7879         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7880         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7881         that usually comes from m4/gnulib-common.m4.
7882         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7884 2020-05-09  Bruno Haible  <bruno@clisp.org>
7886         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7887         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7888         that usually comes from m4/gnulib-common.m4.
7889         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7890         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7891         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7893 2020-05-09  Bruno Haible  <bruno@clisp.org>
7895         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7896         * lib/uchar.in.h (char16_t): Define as macro if
7897         GNULIB_OVERRIDES_CHAR16_T.
7898         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7899         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7900         (gl_UCHAR_H): Invoke them.
7901         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7902         GNULIB_OVERRIDES_CHAR32_T.
7903         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7904         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7905         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7906         GNULIB_OVERRIDES_CHAR32_T.
7908 2020-05-09  Bruno Haible  <bruno@clisp.org>
7910         Macro tweaks.
7911         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7914 2020-05-08  Bruno Haible  <bruno@clisp.org>
7916         c32rtomb: Avoid compilation failure on Haiku.
7917         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7918         inline definitions.
7919         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7921 2020-05-08  Bruno Haible  <bruno@clisp.org>
7923         mbrtoc32: Avoid compilation failure on Haiku.
7924         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7925         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7926         AC_CHECK_FUNCS_ONCE.
7927         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7929 2020-05-08  Bruno Haible  <bruno@clisp.org>
7931         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7932         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7934 2020-05-08  Bruno Haible  <bruno@clisp.org>
7936         list: Update documentation.
7937         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7938         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7939         * doc/containers.texi (Container data types): Document the new list
7940         operations and their complexity.
7942 2020-05-08  Bruno Haible  <bruno@clisp.org>
7944         ignore-value tests: Use module 'attribute'.
7945         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7946         * tests/test-ignore-value.c: Include attribute.h.
7947         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7948         * modules/ignore-value-tests (Depends-on): Add attribute.
7950 2020-05-08  Bruno Haible  <bruno@clisp.org>
7952         uniname/uniname: Use module 'attribute'.
7953         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7954         * lib/uniname/uninames.h: Regenerated.
7955         * lib/uniname/uniname.c: Include attribute.h.
7956         * modules/uniname/uniname (Depends-on): Add attribute.
7958 2020-05-08  Bruno Haible  <bruno@clisp.org>
7960         c32rtomb: Use module 'attribute'.
7961         * lib/c32rtomb.c: Include attribute.h.
7962         (FALLTHROUGH): Remove macro.
7963         * modules/c32rtomb (Depends-on): Add attribute.
7965 2020-05-08  Bruno Haible  <bruno@clisp.org>
7967         xsize: Use module 'attribute'.
7968         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7969         * modules/xsize (Depends-on): Add attribute.
7971 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7973         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7975         * lib/attribute.h: Minor style fixes.
7977         Fix version-etc glitch on OpenIndiana
7978         Problem reported by Mats Erik Andersson in:
7979         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7980         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7981         that now clashes with gnulib-common.h.  All uses changed.
7983 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7985         attribute: new module
7986         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7987         * MODULES.html.sh: Add attribute.
7988         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7989         * doc/gnulib.texi (Particular Modules): Add Attributes.
7990         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7991         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7992         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7993         * lib/vasnprintf.c:
7994         Include attribute.h, and let it define FALLTHROUGH.
7995         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7996         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7997         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7998         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7999         This is a copy since Gawk doesn’t use Gnulib.
8000         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
8001         is incompatible with gl_COMMON_BODY’s.  All uses changed.
8002         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
8003         Keep the existing FALLTHROUGH definition since Glibc might use it,
8004         and it does no harm to Gnulib’s FALLTHROUGH.
8005         * lib/fts_.h, lib/inttostr.h:
8006         (__GNUC_PREREQ): Remove; no longer needed.
8007         (__attribute_warn_unused_result__): Remove.  All uses
8008         replaced by _GL_ATTRIBUTE_NODISCARD.
8009         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
8010         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
8011         __attribute__ ((__warn_unused_result__)), for forward
8012         compatibility to C2X.
8013         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
8014         _GL_ATTRIBUTE_NODISCARD.
8015         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
8016         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
8017         replaced by gl_COMMON_BODY’s implementation, which has a
8018         slightly different signature.
8019         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
8020         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
8021         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
8022         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
8023         No doubt all uses should be replaced, at some point.
8024         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
8025         (_Noreturn): Use it.
8026         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
8027         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
8028         (_GL_ATTRIBUTE_COLD)
8029         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
8030         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
8031         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
8032         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
8033         (_GL_ATTRIBUTE_MAYBE_UNUSED)
8034         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
8035         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
8036         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
8037         (_GL_ATTRIBUTE_RETURNS_NONNULL)
8038         (_GL_ATTRIBUTE_SENTINEL): New macros.
8039         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
8040         * modules/fnmatch, modules/freopen-safer, modules/fts:
8041         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
8042         * modules/quotearg, modules/savewd:
8043         * modules/unistdio/u16-u16-vasnprintf:
8044         * modules/unistdio/u16-vasnprintf:
8045         * modules/unistdio/u32-u32-vasnprintf:
8046         * modules/unistdio/u32-vasnprintf:
8047         * modules/unistdio/u8-u8-vasnprintf:
8048         * modules/unistdio/u8-vasnprintf:
8049         * modules/unistdio/ulc-vasnprintf:
8050         * modules/unistr/u8-uctomb, modules/vasnprintf:
8051         (Depends-on:): Add attribute module.
8053 2020-05-03  Bruno Haible  <bruno@clisp.org>
8055         bison: Fix today's commit.
8056         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
8058 2020-05-03  Bruno Haible  <bruno@clisp.org>
8060         list-c++: Add get_first, get_last, set_first, set_last operations.
8061         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
8062         set_first, set_last.
8063         * lib/gl_list.h: Tweak comments.
8065 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
8067         bison: rely on bison's %require to check a version requirement
8068         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
8069         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
8070         enough of not.
8071         So far it is the only know Yacc tool that supports '%require'.
8072         Other yaccs will actually even choke on seeing the -o option after the
8073         input file name.
8074         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
8076 2020-05-02  Bruno Haible  <bruno@clisp.org>
8078         list: Add get_first, get_last, set_first, set_last operations.
8079         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
8080         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
8081         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
8083 2020-05-02  Bruno Haible  <bruno@clisp.org>
8085         list: Remove redundant code for remove_first and remove_last operations.
8086         * lib/gl_list.h (struct gl_list_implementation): Remove fields
8087         remove_first, remove_last.
8088         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
8089         * lib/gl_array_list.c: Revert last change.
8090         * lib/gl_carray_list.c: Likewise.
8091         * lib/gl_anylinked_list2.h: Likewise.
8092         * lib/gl_linked_list.c: Likewise.
8093         * lib/gl_linkedhash_list.c: Likewise.
8094         * lib/gl_anytree_list2.h: Likewise.
8095         * lib/gl_avltree_list.c: Likewise.
8096         * lib/gl_avltreehash_list.c: Likewise.
8097         * lib/gl_rbtree_list.c: Likewise.
8098         * lib/gl_rbtreehash_list.c: Likewise.
8099         * lib/gl_sublist.c: Likewise.
8101 2020-05-02  Bruno Haible  <bruno@clisp.org>
8103         bison-i18n: Add support for cross-compilation.
8104         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
8105         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
8106         via Akim Demaille <akim@lrde.epita.fr>.
8107         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
8108         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
8109         Don't use bison's --print-localedir option when cross-compiling.
8110         Also, fix an error message and a comment.
8112 2020-05-01  Bruno Haible  <bruno@clisp.org>
8114         list: Add remove_first and remove_last operations.
8115         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
8117         * lib/gl_list.h (struct gl_list_implementation): Add fields
8118         remove_first, remove_last.
8119         (gl_list_remove_first, gl_list_remove_last): New functions.
8120         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
8121         functions, based on gl_array_remove_at.
8122         (gl_array_list_implementation): Implement the new operations.
8123         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
8124         New functions, based on gl_carray_remove_at.
8125         (gl_carray_list_implementation): Implement the new operations.
8126         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
8127         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
8128         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
8129         new operations.
8130         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
8131         Likewise.
8132         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
8133         New functions, based on gl_tree_remove_at.
8134         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
8135         new operations.
8136         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8137         Likewise.
8138         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
8139         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
8140         Likewise.
8141         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
8142         New functions, based on gl_sublist_remove_at.
8143         (gl_sublist_list_implementation): Implement the new operations.
8144         * lib/gl_list.hh (class gl_List): Add methods remove_first,
8145         remove_last.
8146         * tests/test-array_list.c (main): Test also gl_list_remove_first and
8147         gl_list_remove_last.
8148         * tests/test-avltree_list.c (main): Likewise.
8149         * tests/test-avltreehash_list.c (main): Likewise.
8150         * tests/test-carray_list.c (main): Likewise.
8151         * tests/test-linked_list.c (main): Likewise.
8152         * tests/test-linkedhash_list.c (main): Likewise.
8153         * tests/test-rbtree_list.c (main): Likewise.
8154         * tests/test-rbtreehash_list.c (main): Likewise.
8156 2020-05-01  Bruno Haible  <bruno@clisp.org>
8158         parse-datetime: Fix a build failure with an older bison version.
8159         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
8160         parse-datetime.tab.c if a suitable version of bison was not found.
8162 2020-05-01  Bruno Haible  <bruno@clisp.org>
8164         bison: New module.
8165         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
8166         m4/parse-datetime.m4.
8167         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
8168         * modules/bison: New file.
8169         * modules/parse-datetime (Files): Remove m4/bison.m4.
8170         (Depends-on): Add bison.
8172 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
8174         Update users.txt.
8175         * users.txt: Add poke.
8177 2020-04-28  Bruno Haible  <bruno@clisp.org>
8179         posix_spawn_file_actions_addfchdir tests: Enhance test.
8180         * tests/test-posix_spawn5.c: Include findprog.h.
8181         (test): New function, extracted from main.
8182         (main): Invoke it. Also, invoke it with a program name such as
8183         "bin/pwd".
8184         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
8185         findprog.
8187 2020-04-28  Bruno Haible  <bruno@clisp.org>
8189         posix_spawn_file_actions_addchdir tests: Enhance test.
8190         * tests/test-posix_spawn4.c: Include findprog.h.
8191         (test): New function, extracted from main.
8192         (main): Invoke it. Also, invoke it with a program name such as
8193         "bin/pwd".
8194         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
8195         findprog.
8197 2020-04-28  Bruno Haible  <bruno@clisp.org>
8199         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
8200         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
8201         access elements of the wrong union member.
8203 2020-04-27  Bruno Haible  <bruno@clisp.org>
8205         getdate: Remove deprecated module.
8206         * modules/getdate: Remove file.
8207         * doc/getdate.texi: Remove file.
8208         * lib/getdate.h: Remove file.
8209         * NEWS: Mention the removal.
8211 2020-04-27  Bruno Haible  <bruno@clisp.org>
8213         realloc: Remove deprecated module.
8214         * modules/realloc: Remove file.
8215         * NEWS: Mention the removal.
8217 2020-04-27  Bruno Haible  <bruno@clisp.org>
8219         calloc: Remove deprecated module.
8220         * modules/calloc: Remove file.
8221         * NEWS: Mention the removal.
8223 2020-04-27  Bruno Haible  <bruno@clisp.org>
8225         malloc: Remove deprecated module.
8226         * modules/malloc: Remove file.
8227         * NEWS: Mention the removal.
8229 2020-04-27  Bruno Haible  <bruno@clisp.org>
8231         fnmatch-posix: Remove deprecated module.
8232         * modules/fnmatch-posix: Remove file.
8233         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
8234         * NEWS: Mention the removal.
8236 2020-04-27  Bruno Haible  <bruno@clisp.org>
8238         pipe: Remove deprecated module.
8239         * modules/pipe: Remove file.
8240         * lib/pipe.h: Remove file.
8241         * NEWS: Mention the removal.
8243 2020-04-27  Bruno Haible  <bruno@clisp.org>
8245         getopt: Remove deprecated module.
8246         * modules/getopt: Remove file.
8247         * NEWS: Mention the removal.
8249 2020-04-27  Bruno Haible  <bruno@clisp.org>
8251         remove-dest-slash: Remove deprecated module.
8252         * modules/rename-dest-slash: Remove file.
8253         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
8254         Update.
8255         * NEWS: Mention the removal.
8257 2020-04-27  Bruno Haible  <bruno@clisp.org>
8259         unictype/bidicategory-*: Remove deprecated modules.
8260         * modules/unictype/bidicategory-all: Remove file.
8261         * modules/unictype/bidicategory-byname: Remove file.
8262         * modules/unictype/bidicategory-name: Remove file.
8263         * modules/unictype/bidicategory-of: Remove file.
8264         * modules/unictype/bidicategory-test: Remove file.
8265         * MODULES.html.sh (Unicode string functions): Update.
8266         * NEWS: Mention the removals.
8268 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8270         Tune fts for FTS_LOGICAL+FTS_NOSTAT
8271         From a suggestion by Askar Safin in:
8272         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
8273         * lib/fts.c (fts_build): If file types are known, optimize
8274         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
8275         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
8276         non-directories.
8278 2020-04-19  Bruno Haible  <bruno@clisp.org>
8280         vasnprintf: Add support for printing wide characters using escapes.
8281         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
8282         (wctomb_fallback): New function.
8283         (local_wctomb): New function.
8284         (local_wcrtomb): New function or macro.
8285         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
8286         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
8287         %lc.
8289 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8291         fts: remove NOSTAT_LEAF_OPTIMIZATION
8292         It caused ‘find’ and ‘du’ to dump core, and it was useful
8293         only for obsolescent Linux filesystems anyway.  Problem reported in:
8294         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
8295         Quite possibly there is still a serious underlying fts bug with
8296         tight-loop-check and mutating file systems, but if so this patch
8297         should cause the bug to be triggered less often.
8298         * lib/fts.c (enum leaf_optimization): Remove
8299         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
8300         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
8301         (leaf_optimization): Remove special cases for ReiserFS and XFS.
8302         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
8303         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
8304         Remove.  All uses removed.
8306 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8308         explicit_bzero: Improve code style.
8309         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
8311 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8313         explicit_bzero: On native Windows, use SecureZeroMemory().
8314         * lib/explicit_bzero.c: Include <windows.h>.
8315         (explicit_bzero): On native Windows, use SecureZeroMemory.
8317 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8319         explicit_bzero: Use memset_s() when available.
8320         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
8321         (explicit_bzero): Use memset_s when available.
8322         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
8324 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8326         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8327         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8328         free() that overwrite the memory with canaries.
8330 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8332         bootstrap: recommend git submodule update --init
8333         Reported by Bruno Haible.
8334         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8335         * build-aux/bootstrap: recommand "git submodule update --init"
8336         rather than "git submodule init".
8338 2020-04-12  Bruno Haible  <bruno@clisp.org>
8340         explicit_bzero: Add tests.
8341         * tests/test-explicit_bzero.c: New file.
8342         * modules/explicit_bzero-tests: New file.
8344 2020-04-11  Bruno Haible  <bruno@clisp.org>
8346         explicit_bzero: Relicense under LGPLv2+.
8347         Approved by Paul Eggert.
8348         * modules/explicit_bzero (License): Change to LGPLv2+.
8350 2020-04-10  Bruno Haible  <bruno@clisp.org>
8352         findprog, relocatable-prog: Ignore directories during PATH search.
8353         Reported by Frederick Eaton via Dmitry Goncharov in
8354         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8356         * lib/findprog.c (find_in_path): When the file found in a PATH element
8357         is a directory, continue searching.
8358         * modules/findprog (Depends-on): Add sys_stat, stat.
8359         * modules/findprog-lgpl (Depends-on): Likewise.
8361         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8362         element is a directory, continue searching.
8363         * lib/relocwrapper.c: Update comments.
8364         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8365         (configure.ac-early): New section.
8367 2020-04-10  Bruno Haible  <bruno@clisp.org>
8369         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8370         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8372         * MODULES.html.sh: In a git-less tarball, use the date of the first
8373         ChangeLog entry.
8375 2020-04-04  Bruno Haible  <bruno@clisp.org>
8377         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8378         * m4/gettext.m4: Fix comments regarding the gettext library.
8379         * m4/intl-thread-locale.m4: Likewise.
8380         * m4/intlmacosx.m4: Likewise.
8381         * m4/lcmessage.m4: Likewise.
8382         * m4/nls.m4: Likewise.
8383         * m4/po.m4: Likewise.
8384         * m4/progtest.m4: Likewise.
8386 2020-04-04  Jim Meyering  <meyering@fb.com>
8388         maint: remove a stray inter-word space in a 6x-repeated comment
8389         Induce the changes by running this:
8390           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8391         * build-aux/announce-gen: Change "by  perl" to "by perl".
8392         * build-aux/gitlog-to-changelog: Likewise.
8393         * build-aux/prefix-gnulib-mk: Likewise.
8394         * build-aux/update-copyright: Likewise.
8395         * build-aux/useless-if-before-free: Likewise.
8396         * tests/test-update-copyright.sh: Likewise.
8398 2020-03-28  Bruno Haible  <bruno@clisp.org>
8400         Use module 'filename' instead of module 'dosname'.
8402         * lib/at-func.c: Include filename.h instead of dosname.h.
8403         * lib/unlinkat.c: Likewise.
8404         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8405         * modules/areadlinkat-with-size (Depends-on): Likewise.
8406         * modules/faccessat (Depends-on): Likewise.
8407         * modules/fchmodat (Depends-on): Likewise.
8408         * modules/fchownat (Depends-on): Likewise.
8409         * modules/fstatat (Depends-on): Likewise.
8410         * modules/mkdirat (Depends-on): Likewise.
8411         * modules/mkfifoat (Depends-on): Likewise.
8412         * modules/readlinkat (Depends-on): Likewise.
8413         * modules/selinux-at (Depends-on): Likewise.
8414         * modules/symlinkat (Depends-on): Likewise.
8415         * modules/unlinkat (Depends-on): Likewise.
8416         * modules/utimensat (Depends-on): Likewise.
8418         * lib/at-func2.c: Include filename.h instead of dosname.h.
8419         * modules/linkat (Depends-on): Add filename. Remove dosname.
8420         * modules/renameatu (Depends-on): Likewise.
8422         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8423         * lib/canonicalize-lgpl.c: Likewise.
8424         * modules/canonicalize (Depends-on): Add filename.
8425         * modules/canonicalize-lgpl (Depends-on): Likewise.
8427         * lib/dirname.h: Include filename.h instead of dosname.h.
8428         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8430         * lib/fchdir.c: Include filename.h instead of dosname.h.
8431         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8433         * lib/openat.c: Include filename.h instead of dosname.h.
8434         * modules/openat (Depends-on): Add filename. Remove dosname.
8436         * lib/rmdir.c: Include filename.h instead of dosname.h.
8437         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8439         * lib/savewd.c: Include filename.h instead of dosname.h.
8440         * modules/savewd (Depends-on): Add filename. Remove dosname.
8442         * lib/unlink.c: Include filename.h instead of dosname.h.
8443         * modules/unlink (Depends-on): Add filename. Remove dosname.
8445         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8446         * lib/relocwrapper.c: Update comments.
8448         * modules/lstat (Depends-on): Remove dosname.
8450 2020-03-28  Bruno Haible  <bruno@clisp.org>
8452         dosname: Redirect to 'filename'.
8453         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8455         * lib/dosname.h: Remove all definitions. Just include filename.h.
8456         * modules/dosname (Status, Notice): Mark as deprecated.
8457         (Depends-on): Add 'filename'.
8459 2020-03-28  Bruno Haible  <bruno@clisp.org>
8461         dosname: Change IS_RELATIVE_FILE_NAME.
8462         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8463         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8464         * NEWS: Mention the change.
8466 2020-03-28  Bruno Haible  <bruno@clisp.org>
8468         filename: Copy some definitions from module 'dosname'.
8469         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8470         (HAS_DEVICE): Document macro.
8471         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8472         (IS_ABSOLUTE_FILE_NAME): Consider
8473         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8474         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8475         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8476         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8477         IS_PATH_WITH_DIR.
8478         (DllMain): Update.
8479         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8480         IS_PATH_WITH_DIR.
8481         (find_executable): Update.
8482         * NEWS: Document the deprecations.
8484 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8486         getopt-posix: port __GETOPT_PREFIX to macOS
8487         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8488         Define to work around a problem with asm on macOS (Bug#40205).
8490 2020-03-22  Bruno Haible  <bruno@clisp.org>
8492         MODULES.html.sh: Add support for reproducible builds.
8493         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8494         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8495         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8496         current date.
8498 2020-03-22  Bruno Haible  <bruno@clisp.org>
8500         Several modules: Depend on stat.
8501         * modules/acl-permissions (Depends-on): Add stat.
8502         * modules/canonicalize (Depends-on): Likewise.
8503         * modules/file-has-acl (Depends-on): Likewise.
8504         * modules/fstat (Depends-on): Likewise.
8505         * modules/fstatat (Depends-on): Likewise.
8506         * modules/glob (Depends-on): Likewise.
8507         * modules/javacomp (Depends-on): Likewise.
8508         * modules/linkat (Depends-on): Likewise.
8509         * modules/mkdir (Depends-on): Likewise.
8510         * modules/pt_chown (Depends-on): Likewise.
8511         * modules/ptsname_r (Depends-on): Likewise.
8512         * modules/readlinkat (Depends-on): Likewise.
8513         * modules/rename (Depends-on): Likewise.
8514         * modules/renameatu (Depends-on): Likewise.
8515         * modules/tmpdir (Depends-on): Likewise.
8516         * modules/utimens (Depends-on): Likewise.
8517         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8518         * modules/same (Depends-on): Remove stat.
8520 2020-03-22  Bruno Haible  <bruno@clisp.org>
8522         acl-permissions: Improve autoconf macro.
8523         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8524         more reliably.
8526 2020-03-22  Bruno Haible  <bruno@clisp.org>
8528         file-has-acl: Fix module description.
8529         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8530         (Depends-on): Depend on acl-permissions unconditionally.
8532 2020-03-21  Bruno Haible  <bruno@clisp.org>
8534         unlink: Ensure errno also on native Windows.
8535         * modules/unlink (Depends-on): Add malloc-posix.
8537 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8539         unlink: fix malloc errno typo
8540         Problem reported by Tim Rühsen in:
8541         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8542         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8544 2020-03-16  Bruno Haible  <bruno@clisp.org>
8546         *printf-posix: Fix m4 error (regression from 2020-03-08).
8547         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8548         brackets in AC_COMPILE_IFELSE invocation.
8550 2020-03-08  Bruno Haible  <bruno@clisp.org>
8552         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8553         * modules/crypto/af_alg (Depends-on): Add fstat.
8554         * modules/renameatu (Depends-on): Likewise.
8555         * modules/same (Depends-on): Likewise.
8556         * modules/term-style-control (Depends-on): Likewise.
8558 2020-03-08  Bruno Haible  <bruno@clisp.org>
8560         *printf-posix: Document why it's overridden on some glibc systems.
8561         Reported by Adrian Bunk <bunk@stusta.de> in
8562         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8563         * doc/posix-functions/*printf.texi: Document the problem with the %n
8564         directive on some glibc systems.
8565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8566         the cross-compilation guesses accordingly.
8568 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8570         open, openat: port to (O_RDWR | O_RDONLY) != 0
8571         Potential portability problem reported by Dan Gohman in:
8572         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8573         * lib/open.c (open):
8574         * lib/openat.c (rpl_openat):
8575         Don’t assume O_RDONLY is disjoint from O_RDWR.
8577 2020-03-07  Bruno Haible  <bruno@clisp.org>
8579         openat: Fix theoretically possible issue on GNU/Hurd.
8580         Reported by Dan Gohman <sunfish@mozilla.com> in
8581         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8582         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8583         ignore the bits that are also set in O_RDONLY.
8585 2020-02-24  Bruno Haible  <bruno@clisp.org>
8587         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8588         Reported by Jens Rehsack <sno@netbsd.org> in
8589         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8590         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8591         cross-compiling.
8593 2020-02-24  Bruno Haible  <bruno@clisp.org>
8595         fcntl: Add witness of gnulib override.
8596         Reported by Jens Rehsack <sno@netbsd.org> in
8597         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8598         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8599         macros.
8601 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8603         Update users.txt.
8604         * users.txt: Add datamash, time.
8606 2020-02-23  Bruno Haible  <bruno@clisp.org>
8608         uni*/base: Use 'restrict'.
8609         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8610         from lib/regex.h.
8611         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8612         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8613         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8614         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8615         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8616         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8617         '_UC_RESTRICT'.
8618         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8619         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8620         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8621         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8622         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8623         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8624         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8625         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8626         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8627         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8628         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8629         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8630         '_UC_RESTRICT'.
8631         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8632         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8633         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8634         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8635         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8636         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8637         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8638         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8640 2020-02-23  Bruno Haible  <bruno@clisp.org>
8642         glob, spawn: Use improved '_Restrict_' definition.
8643         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8644         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8646 2020-02-23  Bruno Haible  <bruno@clisp.org>
8648         crypto/gc: Use 'restrict'.
8649         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8650         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8652         crypto/hmac-*: Use 'restrict'.
8653         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8654         'restrict'.
8655         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8656         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8657         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8658         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8660         crypto/sm3: Use 'restrict'.
8661         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8662         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8664         crypto/*-buffer: Use 'restrict'.
8665         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8666         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8668         crypto/sha512-buffer: Use 'restrict'.
8669         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8670         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8671         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8673         crypto/sha256-buffer: Use 'restrict'.
8674         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8675         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8676         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8678         crypto/sha1-buffer: Use 'restrict'.
8679         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8680         'restrict'.
8681         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8683         crypto/md5-buffer: Use 'restrict'.
8684         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8685         'restrict'.
8686         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8688         crypto/md4: Use 'restrict'.
8689         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8690         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8692         crypto/md2: Use 'restrict'.
8693         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8694         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8696         crypto/rijndael: Use 'restrict'.
8697         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8698         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8699         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8701         crypto/arctwo: Use 'restrict'.
8702         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8703         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8705         crypto/arcfour: Use 'restrict'.
8706         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8707         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8709         careadlinkat: Use 'restrict'.
8710         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8711         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8712         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8714         regex-quote: Use 'restrict'.
8715         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8716         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8718         system-quote: Use 'restrict'.
8719         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8720         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8722         sh-quote: Use 'restrict'.
8723         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8724         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8726         quotearg: Use 'restrict'.
8727         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8728         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8730         parse-datetime: Use 'restrict'.
8731         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8732         'restrict'.
8733         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8735         nstrftime: Use 'restrict'.
8736         * lib/strftime.h (nstrftime): Use 'restrict'.
8737         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8739         mbstok_r: Use 'restrict'.
8740         * lib/string.in.h (mbstok_r): Use 'restrict'.
8742         xmemcoll: Use 'restrict'.
8743         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8744         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8746         memcoll: Use 'restrict'.
8747         * lib/memcoll.h (memcoll): Use 'restrict'.
8748         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8750         vasnprintf: Use 'restrict'.
8751         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8752         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8754         c-vasnprintf: Use 'restrict'.
8755         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8756         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8758         c-vsnprintf: Use 'restrict'.
8759         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8760         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8762         c-snprintf: Use 'restrict'.
8763         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8764         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8766         astrxfrm: Use 'restrict'.
8767         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8768         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8770         amemxfrm: Use 'restrict'.
8771         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8772         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8774 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8776         fchmodat, lchmod: simplify
8777         It appears that we may have overengineered lchmod and fchmodat,
8778         in that the code was prepared for some hypothetical platforms but
8779         was so complicated that it was hard to understand.  I attempted to
8780         improve the situation by simplifying the code when this
8781         simplification should not hurt on real platforms; we can re-add
8782         complexity later to port to platforms I didn’t know about.
8783         * lib/fchmodat.c (fchmodat):
8784         * lib/lchmod.c (lchmod):
8785         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8786         around the /proc code that needs it.
8787         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8788         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8789         Do not include <config.h> twice.
8790         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8791         lchmod on any known hosts.
8792         (lchmod): Do not defer to fchmodat, so that the lchmod module
8793         need not depend on the fchmodat module (which is a circular
8794         dependency).  Do not use openat, since ‘open’ suffices.
8795         Coalesce calls to lchmod/chmod.
8796         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8797         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8798         * modules/lchmod (Depends-on, configure.ac):
8799         * modules/sys_stat (Depends-on):
8800         Do not worry about replacing lchmod, since that shouldn’t happen.
8801         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8802         Do not worry about whether lchmod works on non-symlinks,
8803         since every known lchmod works on non-symlinks.
8804         * modules/lchmod (Depends-on):
8805         Remove circular dependency on fchmodat.
8807 2020-02-22  Bruno Haible  <bruno@clisp.org>
8809         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8810         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8811         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8813 2020-02-22  Bruno Haible  <bruno@clisp.org>
8815         Use 'restrict' in all POSIX function declarations.
8816         * lib/iconv.in.h (iconv): Use 'restrict'.
8817         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8818         * lib/monetary.in.h (strfmon_l): Likewise.
8819         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8820         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8821         pthread_mutex_timedlock, pthread_rwlock_init,
8822         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8823         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8824         * lib/search.in.h (tdelete): Likewise.
8825         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8826         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8827         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8828         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8829         Likewise.
8830         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8831         strtoull): Likewise.
8832         * lib/string.in.h (strncat): Likewise.
8833         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8834         recvfrom): Likewise.
8835         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8836         * lib/time.in.h (strftime): Likewise.
8837         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8838         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8839         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8840         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8841         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8842         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8843         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8844         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8845         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8846         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8847         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8850         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8851         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8852         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8853         other *_h.m4 files.
8854         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8856 2020-02-22  Bruno Haible  <bruno@clisp.org>
8858         Update NEWS.
8859         * NEWS: Mention the last change.
8861 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8863         chmodat, chownat: new modules
8864         These are split from fchmodat, fchownat.  GNU Emacs needs the
8865         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8866         lchmodat.  Split the latter two into a new module chmodat.
8867         Similarly for fchownat.  This the same basic idea for why statat
8868         was split from fstatat on 2013-01-23.
8869         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8870         Rename from FCHMODAT_INLINE.  All uses changed.
8871         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8872         Rename from FCHOWNAT_INLINE.  All uses changed.
8873         * lib/openat.h:
8874         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8875         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8876         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8877         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8878         (configure.ac): Remove fchmodat module indicator.
8879         (Makefile.am): Omit chmodat.c.
8880         (Maintainer): Add self.
8881         * modules/fchownat: Similarly, but for chown.
8882         * tests/test-fchownat.c (BASE): Don't define if already defined.
8883         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8885 2020-02-22  Bruno Haible  <bruno@clisp.org>
8887         users.txt: Add groff.
8888         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8889         * users.txt: Add groff.
8891 2020-02-22  Bruno Haible  <bruno@clisp.org>
8893         gnulib-tool: Ensure copied files are writable.
8894         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8895         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8896         * gnulib-tool (func_ensure_writable): New function.
8897         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8898         func_create_testdir, copy-file): Invoke it after copying a file.
8900 2020-02-22  Bruno Haible  <bruno@clisp.org>
8902         users.txt: Update.
8903         * users.txt: Update URLs to projects that have moved or switched to git.
8904         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8905         over the summary view. Add gawk.
8907 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8909         largefile: remove _DARWIN_USE_64_BIT_INODE
8910         It’s not needed in currently-supported macOS versions, and was
8911         problematic anyway in MacOS X 10.5 which was the only version that
8912         could use it.  Problem reported by Peter Eisentraut in:
8913         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8914         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8915         Don’t define _DARWIN_USE_64_BIT_INODE.
8916         This syncs with Autoconf master.
8918         Add ‘extern "C"’ to count-one-bits.h etc.
8919         This ports these .h files to C++.
8920         Problem reported by Simon Marchi in:
8921         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8922         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8923         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8925 2020-02-19  Bruno Haible  <bruno@clisp.org>
8927         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8928         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8929         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8930         * lib/array-mergesort.h: Accept an optional macro definition
8931         STATIC_FROMTO.
8932         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8934 2020-02-16  Bruno Haible  <bruno@clisp.org>
8936         fchmodat: Make more future-proof.
8937         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8938         NEED_FCHMODAT_NONSYMLINK_FIX.
8939         (gl_PREREQ_FCHMODAT): New macro.
8940         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8941         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8942         without lchmod function.
8943         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8945 2020-02-16  Bruno Haible  <bruno@clisp.org>
8947         lchmod: Make more future-proof.
8948         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8949         (gl_PREREQ_LCHMOD): New macro.
8950         * lib/lchmod.c (orig_lchmod): New function.
8951         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8952         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8953         function.
8954         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8956         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8957         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8959 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8961         xnanosleep: prefer pause, and get remaining time
8962         Problem reported by Vladimir Panteleev in:
8963         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8964         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8965         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8966         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8967         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8968         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8970 2020-02-16  Bruno Haible  <bruno@clisp.org>
8972         lchmod: Improve cross-compilation guess.
8973         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8974         cross-compiling, guess depending on the platform.
8976 2020-02-16  Bruno Haible  <bruno@clisp.org>
8978         fstrcmp: Add API to clean up resources.
8979         Reported by Akim Demaille <akim@lrde.epita.fr> in
8980         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8981         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8982         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8984 2020-02-14  Bruno Haible  <bruno@clisp.org>
8986         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8987         Reported by Christian Biesinger in
8988         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8989         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8990         corresponding module is not enabled.
8991         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8992         prototype if the corresponding module is not enabled.
8994 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8996         fchmodat, lchmod: port to buggy Linux filesystems
8997         Problem reported by Florian Weimer in:
8998         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8999         * lib/fchmodat.c (fchmodat):
9000         * lib/lchmod.c (lchmod):
9001         Don’t assume that chmod on the O_PATH-opened fd will do
9002         the right thing on a symbolic link.
9003         * lib/fchmodat.c (fchmodat):
9004         Don’t attempt to special-case
9005         any flag value other than AT_SYMLINK_NOFOLLOW.
9007 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
9009         lchmod: pacify Coverity CID 1491216
9010         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
9011         not complain about unreachable code at the ‘struct stat st;’
9012         declaration.
9014 2020-02-10  Bruno Haible  <bruno@clisp.org>
9016         copysignf: Fix link error on HP-UX with cc.
9017         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
9018         HP-UX, set COPYSIGNF_LIBM to -lm.
9020 2020-02-10  Bruno Haible  <bruno@clisp.org>
9022         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
9023         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
9024         with $(LIB_SEMAPHORE).
9025         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
9026         with $(LIB_SEMAPHORE).
9028 2020-02-10  Bruno Haible  <bruno@clisp.org>
9030         ptsname_r-tests: Avoid unused function warning.
9031         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
9033 2020-02-08  Bruno Haible  <bruno@clisp.org>
9035         lchmod: Add tests.
9036         * tests/test-lchmod.c: New file.
9037         * modules/lchmod-tests: New file.
9039 2020-02-08  Bruno Haible  <bruno@clisp.org>
9041         lchmod: Ensure declaration on HP-UX.
9042         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
9043         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
9045 2020-02-08  Bruno Haible  <bruno@clisp.org>
9047         fchmodat: Strengthen tests.
9048         * tests/test-fchmodat.c (BASE): New macro.
9049         (main): Use it, to avoid conflicts with other unit tests. Verify that
9050         fchmodat changed the file permission bits.
9052 2020-02-08  Bruno Haible  <bruno@clisp.org>
9054         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
9055         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
9056         '#undef __need_system_sys_stat_h'.
9058 2020-02-08  Bruno Haible  <bruno@clisp.org>
9060         fchmodat: Improve cross-compilation guesses.
9061         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
9062         cross-compiling, guess depending on the platform.
9063         * doc/posix-functions/fchmodat.texi: Clarify.
9065 2020-02-08  Bruno Haible  <bruno@clisp.org>
9067         Fix compilation errors in a testdir created with --with-c++-tests.
9068         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
9069         since it does not work any more with g++ >= 4.4.
9071 2020-02-08  Bruno Haible  <bruno@clisp.org>
9073         doc: Update for glibc 2.31.
9074         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
9075         * doc/gnulib.texi: Include it.
9076         * doc/pastposix-functions/h_errno.texi: Update.
9077         * doc/posix-functions/*.texi: Likewise.
9079 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
9081         mountlist: consider smb3 file systems as remote
9082         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
9083         "smb3" as remote.
9085 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9087         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
9088         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
9089         they act like chmod on non-symlinks.
9090         * NEWS:
9091         * doc/glibc-functions/lchmod.texi (lchmod):
9092         * doc/posix-functions/fchmodat.texi (fchmodat):
9093         Mention this.
9094         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
9095         config.h, and undef it after including sys/stat.h the first time.
9096         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
9097         sys/stat.h a second time after defining orig_fchmodat.
9098         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
9099         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
9100         * lib/lchmod.c: New file.
9101         * lib/sys_stat.in.h (fchmodat, lchmod):
9102         Support replacing these functions.
9103         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
9104         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
9105         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
9106         Test that lchmod works on non-symlinks.
9107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
9108         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
9109         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
9110         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
9111         * modules/lchmod (Files): Add lib/lchmod.c.
9112         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
9113         (configure.ac): Compile lchmod.c if needed.
9114         (lib_SOURCES): Add lchmod.c.
9115         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
9116         and REPLACE_LCHMOD.
9117         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
9118         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
9120 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
9122         mountlist: Consider AFS filesystems as remote
9123         df --local relies on the ME_REMOTE macro to determine if a given
9124         mount entry should be considered "local".  There is special logic
9125         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
9126         kernel's kafs module or AuriStorFS is treated as a local mount.
9127         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
9128         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
9130 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9132         Port _Noreturn to older Clang
9133         Problem reported by Jeffery Walton in:
9134         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
9135         * lib/_Noreturn.h (_Noreturn):
9136         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9137         Assume _Noreturn works in Clang 3.5 and later.
9138         It is documented to work in Clang 3.5:
9139         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
9140         and is not documented in Clang 3.4:
9141         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
9142         Apple sets __clang_version__ to a different value, so use
9143         __apple_build_version__ there.  See:
9144         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
9146 2020-02-04  Pádraig Brady  <P@draigBrady.com>
9148         test-canonicalize: avoid unused function warning
9149         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
9150         with the same guard as that used to protect usage of the null_ptr
9151         function, so that one doesn't get a -Wunused warning.
9152         * tests/test-canonicalize-lgpl.c: Likewise.
9154 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9156         libc-config: port to Apple’s Clang variant
9157         * lib/libc-config.h (__glibc_clang_prereq):
9158         Port to Apple’s Clang variant, which uses a different
9159         numbering scheme for __clang_major__.
9161 2020-02-02  Bruno Haible  <bruno@clisp.org>
9163         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
9164         * doc/containers.texi: Document these new modules.
9166 2020-02-02  Bruno Haible  <bruno@clisp.org>
9168         omap-c++: Add tests.
9169         * tests/test-omap-c++.cc: New file.
9170         * modules/omap-c++-tests: New file.
9172         omap-c++: New module.
9173         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
9174         * modules/omap-c++: New file.
9176 2020-02-02  Bruno Haible  <bruno@clisp.org>
9178         map-c++: Add tests.
9179         * tests/test-map-c++.cc: New file.
9180         * modules/map-c++-tests: New file.
9182         map-c++: New module.
9183         * lib/gl_map.hh: New file, based on lib/gl_map.h.
9184         * modules/map-c++: New file.
9186 2020-02-02  Bruno Haible  <bruno@clisp.org>
9188         oset-c++: Add tests.
9189         * tests/test-oset-c++.cc: New file.
9190         * modules/oset-c++-tests: New file.
9192         oset-c++: New module.
9193         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
9194         * modules/oset-c++: New file.
9196 2020-02-02  Bruno Haible  <bruno@clisp.org>
9198         set-c++: Add tests.
9199         * tests/test-set-c++.cc: New file.
9200         * modules/set-c++-tests: New file.
9202         set-c++: New module.
9203         * lib/gl_set.hh: New file, based on lib/gl_set.h.
9204         * modules/set-c++: New file.
9206 2020-02-02  Bruno Haible  <bruno@clisp.org>
9208         list-c++: Add tests.
9209         * tests/test-list-c++.cc: New file.
9210         * modules/list-c++-tests: New file.
9212         list-c++: New module.
9213         * lib/gl_list.hh: New file, based on lib/gl_list.h.
9214         * modules/list-c++: New file.
9216 2020-02-02  Bruno Haible  <bruno@clisp.org>
9218         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
9219         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
9220         '_Noreturn'.
9221         * lib/sigpipe-die.h (sigpipe_die): Likewise.
9223 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9225         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
9226         On x86_64 with glibc-2.30, gcc 9.2 is giving:
9227           error: argument 2 value '18446744073709551615'
9228           exceeds maximum object size 9223372036854775807
9229           [-Werror=alloc-size-larger-than=]
9230         The details of this restriction are discussed at:
9231         https://stackoverflow.com/q/42574890/4421
9232         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
9234 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9236         sysctl.h: avoid including on glibc
9237         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
9238         * lib/physmem.c: Likewise.
9240 2020-02-02  Bruno Haible  <bruno@clisp.org>
9242         list, set, oset, map, omap: Avoid imperative voice in documentation.
9243         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
9244         in the specification of functions.
9245         * lib/gl_set.h: Likewise.
9246         * lib/gl_oset.h: Likewise.
9247         * lib/gl_map.h: Likewise.
9248         * lib/gl_omap.h: Likewise.
9249         * lib/gl_*.h: Likewise.
9251 2020-02-01  Bruno Haible  <bruno@clisp.org>
9253         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
9254         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
9255         does.
9257 2020-01-29  Bruno Haible  <bruno@clisp.org>
9259         array-map, hash-map, linkedhash-map: Fix module description.
9260         * modules/array-map (Description): Fix description.
9261         * modules/hash-map (Description): Likewise.
9262         * modules/linkedhash-map (Description): Likewise.
9264 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9266         dfa: do not depend on isblank
9267         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
9268         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
9269         * modules/dfa (Depends-on): Remove isblank.
9270         * modules/isblank: Add a module indicator, for lib/dfa.c.
9272         dfa: do not assume 64-bit int
9273         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
9274         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
9275         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
9276         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
9277         Fall back to 32-bit words.
9278         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
9279         of 4 64-bit args.  All uses changed.
9281 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9283         regex: remove limits-h dependency
9284         * modules/regex (Depends-on): Remove limits-h, since the
9285         code no longer depends on ULONG_WIDTH already being defined.
9287         regex: port to non-GCC pre-IEC-60559
9288         Problem reported by Arnold Robbins in:
9289         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
9290         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
9292 2020-01-25  Bruno Haible  <bruno@clisp.org>
9294         c32isxdigit: Add tests.
9295         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
9296         * tests/test-c32isxdigit.sh: New file.
9297         * modules/c32isxdigit-tests: New file.
9299         c32isxdigit: New module.
9300         * lib/c32isxdigit.c: New file.
9301         * modules/c32isxdigit: New file.
9302         * doc/posix-functions/iswxdigit.texi: Mention the new module.
9304 2020-01-25  Bruno Haible  <bruno@clisp.org>
9306         c32isupper: Add tests.
9307         * tests/test-c32isupper.c: New file.
9308         * tests/test-c32isupper.sh: New file.
9309         * modules/c32isupper-tests: New file.
9311         c32isupper: New module.
9312         * lib/c32isupper.c: New file.
9313         * modules/c32isupper: New file.
9314         * doc/posix-functions/iswupper.texi: Mention the new module.
9316 2020-01-25  Bruno Haible  <bruno@clisp.org>
9318         c32isspace: Add tests.
9319         * tests/test-c32isspace.c: New file.
9320         * tests/test-c32isspace.sh: New file.
9321         * modules/c32isspace-tests: New file.
9323         c32isspace: New module.
9324         * lib/c32isspace.c: New file.
9325         * modules/c32isspace: New file.
9326         * doc/posix-functions/iswspace.texi: Mention the new module.
9328 2020-01-25  Bruno Haible  <bruno@clisp.org>
9330         c32ispunct: Add tests.
9331         * tests/test-c32ispunct.c: New file.
9332         * tests/test-c32ispunct.sh: New file.
9333         * modules/c32ispunct-tests: New file.
9335         c32ispunct: New module.
9336         * lib/c32ispunct.c: New file.
9337         * modules/c32ispunct: New file.
9338         * doc/posix-functions/iswpunct.texi: Mention the new module.
9340 2020-01-25  Bruno Haible  <bruno@clisp.org>
9342         c32isprint: Add tests.
9343         * tests/test-c32isprint.c: New file.
9344         * tests/test-c32isprint.sh: New file.
9345         * modules/c32isprint-tests: New file.
9347         c32isprint: New module.
9348         * lib/c32isprint.c: New file.
9349         * modules/c32isprint: New file.
9350         * doc/posix-functions/iswprint.texi: Mention the new module.
9352 2020-01-25  Bruno Haible  <bruno@clisp.org>
9354         c32islower: Add tests.
9355         * tests/test-c32islower.c: New file.
9356         * tests/test-c32islower.sh: New file.
9357         * modules/c32islower-tests: New file.
9359         c32islower: New module.
9360         * lib/c32islower.c: New file.
9361         * modules/c32islower: New file.
9362         * doc/posix-functions/iswlower.texi: Mention the new module.
9364 2020-01-25  Bruno Haible  <bruno@clisp.org>
9366         c32isgraph: Add tests.
9367         * tests/test-c32isgraph.c: New file.
9368         * tests/test-c32isgraph.sh: New file.
9369         * modules/c32isgraph-tests: New file.
9371         c32isgraph: New module.
9372         * lib/c32isgraph.c: New file.
9373         * modules/c32isgraph: New file.
9374         * doc/posix-functions/iswgraph.texi: Mention the new module.
9376 2020-01-25  Bruno Haible  <bruno@clisp.org>
9378         c32isdigit: Add tests.
9379         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9380         * tests/test-c32isdigit.sh: New file.
9381         * modules/c32isdigit-tests: New file.
9383         c32isdigit: New module.
9384         * lib/c32isdigit.c: New file.
9385         * modules/c32isdigit: New file.
9386         * doc/posix-functions/iswdigit.texi: Mention the new module.
9388 2020-01-25  Bruno Haible  <bruno@clisp.org>
9390         c32iscntrl: Add tests.
9391         * tests/test-c32iscntrl.c: New file.
9392         * tests/test-c32iscntrl.sh: New file.
9393         * modules/c32iscntrl-tests: New file.
9395         c32iscntrl: New module.
9396         * lib/c32iscntrl.c: New file.
9397         * modules/c32iscntrl: New file.
9398         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9400 2020-01-25  Bruno Haible  <bruno@clisp.org>
9402         c32isblank: Add tests.
9403         * tests/test-c32isblank.c: New file.
9404         * tests/test-c32isblank.sh: New file.
9405         * modules/c32isblank-tests: New file.
9407         c32isblank: New module.
9408         * lib/c32isblank.c: New file.
9409         * modules/c32isblank: New file.
9410         * doc/posix-functions/iswblank.texi: Mention the new module.
9412 2020-01-25  Bruno Haible  <bruno@clisp.org>
9414         c32isalpha: Add tests.
9415         * tests/test-c32isalpha.c: New file.
9416         * tests/test-c32isalpha.sh: New file.
9417         * modules/c32isalpha-tests: New file.
9419         c32isalpha: New module.
9420         * lib/c32isalpha.c: New file.
9421         * modules/c32isalpha: New file.
9422         * doc/posix-functions/iswalpha.texi: Mention the new module.
9424 2020-01-25  Bruno Haible  <bruno@clisp.org>
9426         c32isalnum: Add tests.
9427         * tests/test-c32isalnum.c: New file.
9428         * tests/test-c32isalnum.sh: New file.
9429         * modules/c32isalnum-tests: New file.
9431         c32isalnum: New module.
9432         * lib/c32isalnum.c: New file.
9433         * lib/c32is-impl.h: New file.
9434         * modules/c32isalnum: New file.
9435         * doc/posix-functions/iswalnum.texi: Mention the new module.
9437 2020-01-25  Bruno Haible  <bruno@clisp.org>
9439         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9440         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9441         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9442         c32isupper, c32isxdigit): New declarations.
9443         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9444         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9445         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9446         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9447         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9448         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9449         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9450         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9451         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9452         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9453         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9454         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9455         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9457 2020-01-25  Bruno Haible  <bruno@clisp.org>
9459         mbchar, wctype: Use the corrected iswxdigit function.
9460         * modules/mbchar (Depends-on): Add iswxdigit.
9461         * modules/wctype (Depends-on): Likewise.
9463         iswxdigit: Add tests.
9464         * tests/test-iswxdigit.c: New file.
9465         * tests/test-iswxdigit.sh: New file.
9466         * modules/iswxdigit-tests: New file.
9468         iswxdigit: New module.
9469         * m4/iswxdigit.m4: New file.
9470         * lib/wctype.in.h (iswxdigit): Potentially override.
9471         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9472         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9473         * lib/iswxdigit.c: New file.
9474         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9475         REPLACE_ISWXDIGIT.
9476         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9477         REPLACE_ISWXDIGIT.
9478         * modules/iswxdigit: New file.
9479         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9481 2020-01-25  Bruno Haible  <bruno@clisp.org>
9483         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9484         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9485         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9486         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9487         off_t on mingw, invoke _lseeki64 instead of lseek.
9489 2020-01-25  Bruno Haible  <bruno@clisp.org>
9491         iswdigit tests: Avoid test failure on Cygwin.
9492         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9493         byte sequence, return 0.
9495         iswdigit: Fix test failure on native Windows.
9496         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9498         mbchar, wctype: Use the corrected iswdigit function.
9499         * modules/mbchar (Depends-on): Add iswdigit.
9500         * modules/wctype (Depends-on): Likewise.
9502         iswdigit: Add tests.
9503         * tests/test-iswdigit.c: New file.
9504         * tests/test-iswdigit.sh: New file.
9505         * modules/iswdigit-tests: New file.
9507         iswdigit: New module.
9508         * m4/iswdigit.m4: New file.
9509         * lib/wctype.in.h (iswdigit): Potentially override.
9510         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9511         * lib/iswdigit.c: New file.
9512         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9513         REPLACE_ISWDIGIT.
9514         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9515         REPLACE_ISWDIGIT.
9516         * modules/iswdigit: New file.
9517         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9519 2020-01-25  Bruno Haible  <bruno@clisp.org>
9521         hard-locale tests: Make it easy to reuse the musl test.
9522         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9523         * modules/hard-locale-tests (Files): Add it.
9524         (configure.ac): Invoke gl_MUSL_LIBC.
9526 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9528         regex: port to Gawk on nonstandard platforms
9529         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9530         This is useful for Gawk, which does not use the Gnulib stdlib-h
9531         module.  Problem reported by Arnold Robbins in:
9532         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9534 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9536         regex: fix bug with >=16 subexpressions
9537         * lib/regex_internal.h (struct re_backref_cache_entry):
9538         Use bitset_word_t as the type of eps_reachable_subexps_map,
9539         instead of unsigned short int.  This fixes a bug I introduced
9540         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9541         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9542         Remove unused member 'unused'.
9544         regex: simplify definition of BITSET_WORD_BITS
9545         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9546         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9547         * lib/regex_internal.h (BITSET_WORD_BITS):
9548         * modules/regex (Depends-on): Add limits-h.
9549         Simplify now that we can use ULONG_WIDTH.
9551 2020-01-20  Bruno Haible  <bruno@clisp.org>
9553         mbrtoc32: Add note about FreeBSD 12.
9554         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9555         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9556         affected.
9558 2020-01-20  Bruno Haible  <bruno@clisp.org>
9560         unistr/u8-uctomb: Fix warning.
9561         Reported by Andreas Schwab <schwab@suse.de> in
9562         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9563         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9564         (u8_uctomb): Add FALLTHROUGH markers.
9566 2020-01-20  Bruno Haible  <bruno@clisp.org>
9568         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9569         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9570         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9571         (glthread_once): Use it.
9573 2020-01-19  Bruno Haible  <bruno@clisp.org>
9575         threadlib: Disable use of weak symbols on FreeBSD 11.
9576         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9577         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9578         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9579         against a bug in FreeBSD 11.
9581 2020-01-19  Bruno Haible  <bruno@clisp.org>
9583         iconv_open: Improve z/OS support.
9584         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9585         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9586         Remove mapping for EUC-TW.
9588 2020-01-18  Bruno Haible  <bruno@clisp.org>
9590         Rename ~~gnulib.m4 to zzgnulib.m4.
9591         Suggested by Paul Eggert.
9592         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9593         * gnulib-tool (func_get_filelist): Update.
9594         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9596 2020-01-18  Bruno Haible  <bruno@clisp.org>
9598         doc: Update license notices.
9599         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9600         reference to a section or to a "file as part of this distribution".
9602 2020-01-18  Bruno Haible  <bruno@clisp.org>
9604         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9605         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9606         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9607         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9608         AC_EGREP_CPP.
9610 2020-01-18  Bruno Haible  <bruno@clisp.org>
9612         Ensure Automake does not drop ~~gnulib.m4.
9613         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9614         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9616 2020-01-18  Bruno Haible  <bruno@clisp.org>
9618         Fix major regression from 2020-01-10.
9619         Reported by Paul Eggert in
9620         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9621         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9622         Don't AC_REQUIRE anything.
9623         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9624         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9625         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9626         use ac_compile instead.
9627         (AC_CHECK_DECL): Remove override.
9628         * m4/~~gnulib.m4: New file.
9629         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9630         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9632 2020-01-17  Bruno Haible  <bruno@clisp.org>
9633             Paul Eggert  <eggert@cs.ucla.edu>
9635         glob: Fix use-after-free bug.
9636         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9637         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9638         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9639         end_name.
9641 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9643         vcs-to-changelog: Fix parsing of fndecl without args.
9644         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9645         for empty arguments.
9647 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9649         vcs-to-changelog: Add documentation.
9650         * doc/vcs-to-changelog.texi: New file.
9651         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9652         section.
9654 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9656         vcs-to-changelog: Allow loading of custom quirks file.
9657         * build-aux/vcs_to_changelog.py: New commandline option -q.
9659 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9661         vcs-to-changelog: Fix formatting of ChangeLog output.
9662         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9663         output.
9665 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9667         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9668         Reported in
9669         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9670         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9672 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9674         crypto/gc-pbkdf2: New module.
9675         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9676         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9677         * lib/gc-pbkdf2.c: New file.
9678         * lib/gc-pbkdf2-sha1.c: Use new interface.
9679         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9680         * modules/crypto/gc-pbkdf2: New file.
9681         * modules/crypto/gc-pbkdf2-tests: New file.
9682         * tests/test-gc-pbkdf2.c: New file.
9684 2020-01-12  Bruno Haible  <bruno@clisp.org>
9686         c32stombs: Add tests.
9687         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9688         * tests/test-c32stombs-1.sh: New file, based on
9689         tests/test-c32srtombs-1.sh.
9690         * tests/test-c32stombs-2.sh: New file, based on
9691         tests/test-c32srtombs-2.sh.
9692         * tests/test-c32stombs-3.sh: New file, based on
9693         tests/test-c32srtombs-3.sh.
9694         * tests/test-c32stombs-4.sh: New file, based on
9695         tests/test-c32srtombs-4.sh.
9696         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9698         c32stombs: New module.
9699         * lib/uchar.in.h (c32stombs): New declaration.
9700         * lib/c32stombs.c: New file.
9701         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9702         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9703         * modules/c32stombs: New file.
9704         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9705         * doc/posix-functions/wcstombs.texi: Mention the new module.
9707 2020-01-11  Jim Meyering  <meyering@fb.com>
9709         perl: require the "warnings" module
9710         * m4/perl.m4: Also "use warnings", so we reject the perl found
9711         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9712         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9714 2020-01-10  Bruno Haible  <bruno@clisp.org>
9716         Fix major regression from 2020-01-04.
9717         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9718         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9719         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9720         AC_DEFUN_ONCE.
9721         (AC_CHECK_DECL): Invoke, not require, it.
9723 2020-01-10  Bruno Haible  <bruno@clisp.org>
9725         c32snrtombs: Add tests.
9726         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9727         * tests/test-c32snrtombs-1.sh: New file, based on
9728         tests/test-wcsnrtombs1.sh.
9729         * tests/test-c32snrtombs-2.sh: New file, based on
9730         tests/test-wcsnrtombs2.sh.
9731         * tests/test-c32snrtombs-3.sh: New file, based on
9732         tests/test-wcsnrtombs3.sh.
9733         * tests/test-c32snrtombs-4.sh: New file, based on
9734         tests/test-wcsnrtombs4.sh.
9735         * modules/c32snrtombs-tests: New file, based on
9736         modules/wcsnrtombs-tests.
9738         c32snrtombs: New module.
9739         * lib/uchar.in.h (c32snrtombs): New declaration.
9740         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9741         INTERNAL_STATE, WCRTOMB.
9742         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9743         * lib/c32snrtombs.c: New file.
9744         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9745         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9746         * modules/c32snrtombs: New file.
9747         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9748         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9750 2020-01-09  Bruno Haible  <bruno@clisp.org>
9752         c32srtombs: Add tests.
9753         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9754         * tests/test-c32srtombs-1.sh: New file, based on
9755         tests/test-wcsrtombs1.sh.
9756         * tests/test-c32srtombs-2.sh: New file, based on
9757         tests/test-wcsrtombs2.sh.
9758         * tests/test-c32srtombs-3.sh: New file, based on
9759         tests/test-wcsrtombs3.sh.
9760         * tests/test-c32srtombs-4.sh: New file, based on
9761         tests/test-wcsrtombs4.sh.
9762         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9764         c32srtombs: New module.
9765         * lib/uchar.in.h (c32srtombs): New declaration.
9766         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9767         INTERNAL_STATE, WCRTOMB.
9768         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9769         * lib/c32srtombs.c: New file.
9770         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9771         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9772         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9773         * modules/c32srtombs: New file.
9774         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9775         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9777 2020-01-08  Bruno Haible  <bruno@clisp.org>
9779         c32tob: Make consistent with mbrtoc32.
9780         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9781         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9782         use c32rtomb, not wctob.
9783         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9784         (Depends-on): Add c32rtomb.
9785         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9787 2020-01-08  Bruno Haible  <bruno@clisp.org>
9789         c32rtomb: Add tests.
9790         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9791         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9792         * tests/test-c32rtomb-w32.c: New file, based on
9793         tests/test-wcrtomb-w32.c.
9794         * tests/test-c32rtomb-w32-1.sh: New file, based on
9795         tests/test-wcrtomb-w32-1.sh.
9796         * tests/test-c32rtomb-w32-2.sh: New file, based on
9797         tests/test-wcrtomb-w32-2.sh.
9798         * tests/test-c32rtomb-w32-3.sh: New file, based on
9799         tests/test-wcrtomb-w32-3.sh.
9800         * tests/test-c32rtomb-w32-4.sh: New file, based on
9801         tests/test-wcrtomb-w32-4.sh.
9802         * tests/test-c32rtomb-w32-5.sh: New file, based on
9803         tests/test-wcrtomb-w32-5.sh.
9804         * tests/test-c32rtomb-w32-6.sh: New file, based on
9805         tests/test-wcrtomb-w32-6.sh.
9806         * tests/test-c32rtomb-w32-7.sh: New file, based on
9807         tests/test-wcrtomb-w32-7.sh.
9808         * modules/c32rtomb-tests: New file.
9810         c32rtomb: New module.
9811         * lib/uchar.in.h (c32rtomb): New declaration.
9812         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9813         * m4/c32rtomb.m4: New file.
9814         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9815         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9816         REPLACE_C32RTOMB.
9817         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9818         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9819         * modules/c32rtomb: New file.
9820         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9821         * doc/posix-functions/c32rtomb.texi: Document the new module.
9822         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9824 2020-01-08  Bruno Haible  <bruno@clisp.org>
9826         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9827         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9828         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9829         but is not working.
9830         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9831         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9832         differ, use the system's mbrtoc32, adding workarounds.
9833         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9834         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9835         Windows problem.
9836         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9837         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9838         use mbrtoc32, not btowc.
9839         * modules/btoc32 (Depends-on): Add mbrtoc32.
9840         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9841         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9842         * modules/mbsrtoc32s (Depends-on): Update conditions.
9843         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9844         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9845         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9846         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9847         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9849 2020-01-07  Bruno Haible  <bruno@clisp.org>
9851         wcrtomb: Make multithread-safe, except possibly on IRIX.
9852         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9853         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9854         WCRTOMB_RETVAL_BUG.
9855         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9856         wctomb only on IRIX.
9858 2020-01-05  Jim Meyering  <meyering@fb.com>
9860         tests: skip thread-using tests when threading is disabled
9861         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9862         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9863         of those, so they are skipped in this case.
9864         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9865         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9866         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9868 2020-01-05  Bruno Haible  <bruno@clisp.org>
9870         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9871         Reported by Jim Meyering in
9872         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9873         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9874         (GNULIB_defined_ptsname_r): New macro.
9875         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9876         (main): Disable the NULL argument test if canonicalize_file_name does
9877         not come from gnulib.
9878         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9879         (main): Disable the NULL argument test if canonicalize_file_name does
9880         not come from gnulib.
9881         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9882         (test_errors): Disable the NULL argument test if ptsname_r does not come
9883         from gnulib.
9885 2020-01-04  Jim Meyering  <meyering@fb.com>
9887         update-copyright: reenable its always-skipped test
9888         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9889         on 2019-06-15. Without those, an internal preliminary test would
9890         fail, causing this test always to be skipped.
9891         Verify that the test is now run and passes via this:
9892           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9894 2020-01-05  Bruno Haible  <bruno@clisp.org>
9896         mbstoc32s: Add tests.
9897         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9898         * tests/test-mbstoc32s-1.sh: New file, based on
9899         tests/test-mbsrtoc32s-1.sh.
9900         * tests/test-mbstoc32s-2.sh: New file, based on
9901         tests/test-mbsrtoc32s-2.sh.
9902         * tests/test-mbstoc32s-3.sh: New file, based on
9903         tests/test-mbsrtoc32s-3.sh.
9904         * tests/test-mbstoc32s-4.sh: New file, based on
9905         tests/test-mbsrtoc32s-4.sh.
9906         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9908         mbstoc32s: New module.
9909         * lib/uchar.in.h (mbstoc32s): New declaration.
9910         * lib/mbstoc32s.c: New file.
9911         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9912         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9913         * modules/mbstoc32s: New file.
9914         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9915         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9917 2020-01-05  Bruno Haible  <bruno@clisp.org>
9919         Tweak recently added tests.
9920         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9921         * tests/test-mbsrtoc32s.c: Likewise.
9922         * tests/test-mbsnrtoc32s.c: Likewise.
9924 2020-01-04  Bruno Haible  <bruno@clisp.org>
9926         mbsnrtoc32s: Add tests.
9927         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9928         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9929         tests/test-mbsnrtowcs1.sh.
9930         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9931         tests/test-mbsnrtowcs2.sh.
9932         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9933         tests/test-mbsnrtowcs3.sh.
9934         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9935         tests/test-mbsnrtowcs4.sh.
9936         * modules/mbsnrtoc32s-tests: New file, based on
9937         modules/mbsnrtowcs-tests.
9939         mbsnrtoc32s: New module.
9940         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9941         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9942         INTERNAL_STATE, MBRTOWC.
9943         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9944         * lib/mbsnrtoc32s.c: New file.
9945         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9946         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9947         * modules/mbsnrtoc32s: New file.
9948         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9949         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9951 2020-01-04  Bruno Haible  <bruno@clisp.org>
9953         mbsrtoc32s tests: Enhance test.
9954         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9955         test strings for UTF-8 and GB18030.
9957 2020-01-04  Bruno Haible  <bruno@clisp.org>
9959         mbsrtoc32s: Fix bug.
9960         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9961         that SMALL_WCHAR_T is defined.
9963 2020-01-04  Bruno Haible  <bruno@clisp.org>
9965         mbsrtoc32s: Add tests.
9966         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9967         * tests/test-mbsrtoc32s-1.sh: New file, based on
9968         tests/test-mbsrtowcs1.sh.
9969         * tests/test-mbsrtoc32s-2.sh: New file, based on
9970         tests/test-mbsrtowcs2.sh.
9971         * tests/test-mbsrtoc32s-3.sh: New file, based on
9972         tests/test-mbsrtowcs3.sh.
9973         * tests/test-mbsrtoc32s-4.sh: New file, based on
9974         tests/test-mbsrtowcs4.sh.
9975         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9977         mbsrtoc32s: New module.
9978         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9979         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9980         INTERNAL_STATE, MBRTOWC.
9981         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9982         * lib/mbsrtoc32s.c: New file.
9983         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9984         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9985         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9986         * modules/mbsrtoc32s: New file.
9987         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9988         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9990 2020-01-04  Bruno Haible  <bruno@clisp.org>
9992         mbrtowc, mbrtoc32: Tighten dependendies.
9993         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9994         REPLACE_MBSTATE_T is 1.
9995         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9996         REPLACE_MBSTATE_T is 0.
9997         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9998         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9999         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10000         REPLACE_MBSTATE_T is 0.
10002 2020-01-04  Bruno Haible  <bruno@clisp.org>
10004         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
10005         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
10006         * modules/uchar (Files): Add stdint.m4.
10007         (Makefile.am): Substitute SMALL_WCHAR_T.
10008         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
10010 2020-01-04  Bruno Haible  <bruno@clisp.org>
10012         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
10013         Reported by Martin Storsjö <martin@martin.st> in
10014         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
10015         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
10016         New macros.
10017         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
10019 2020-01-04  Bruno Haible  <bruno@clisp.org>
10021         btoc32: Add tests.
10022         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
10023         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
10024         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
10025         * modules/btoc32-tests: New file, based on modules/btowc-tests.
10027         btoc32: New module.
10028         * lib/uchar.in.h (btoc32): New declaration.
10029         * lib/btoc32.c: New file.
10030         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
10031         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
10032         * modules/btoc32: New file.
10033         * tests/test-uchar-c++.cc: Test the signature of btoc32.
10034         * doc/posix-functions/btowc.texi: Mention the new module.
10036 2020-01-03  Bruno Haible  <bruno@clisp.org>
10038         uchar tests: Avoid compilation error with HP cc.
10039         * tests/test-uchar.c: Disable a test when HP cc is in use.
10041 2020-01-03  Bruno Haible  <bruno@clisp.org>
10043         mbrtoc32: Add tests.
10044         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
10045         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
10046         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
10047         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
10048         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
10049         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
10050         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
10051         * tests/test-mbrtoc32-w32-1.sh: New file, based on
10052         tests/test-mbrtowc-w32-1.sh.
10053         * tests/test-mbrtoc32-w32-2.sh: New file, based on
10054         tests/test-mbrtowc-w32-2.sh.
10055         * tests/test-mbrtoc32-w32-3.sh: New file, based on
10056         tests/test-mbrtowc-w32-3.sh.
10057         * tests/test-mbrtoc32-w32-4.sh: New file, based on
10058         tests/test-mbrtowc-w32-4.sh.
10059         * tests/test-mbrtoc32-w32-5.sh: New file, based on
10060         tests/test-mbrtowc-w32-5.sh.
10061         * tests/test-mbrtoc32-w32-6.sh: New file, based on
10062         tests/test-mbrtowc-w32-6.sh.
10063         * tests/test-mbrtoc32-w32-7.sh: New file, based on
10064         tests/test-mbrtowc-w32-7.sh.
10065         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
10067         mbrtoc32: New module.
10068         * lib/uchar.in.h (mbrtoc32): New declaration.
10069         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
10070         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
10071         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
10072         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
10073         REPLACE_MBRTOC32.
10074         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
10075         HAVE_MBRTOC32, REPLACE_MBRTOC32.
10076         * modules/mbrtoc32: New file, based on modules/mbrtowc.
10077         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
10078         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
10079         $(LIB_MBRTOWC).
10080         * doc/posix-functions/mbrtoc32.texi: Document the new module.
10081         * doc/posix-functions/mbrtowc.texi: Mention the new module.
10083 2020-01-03  Bruno Haible  <bruno@clisp.org>
10085         mbrtowc: Refactor to share code with mbrtoc32.
10086         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
10087         * lib/mbrtowc-impl-utf8.h: Likewise.
10088         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
10089         mbrtowc-impl.h.
10090         * modules/mbrtowc (Files): Add the new files.
10092 2020-01-03  Jim Meyering  <meyering@fb.com>
10094         doc: fix time.texi wording
10095         * doc/posix-headers/time.texi (time.h): Typo.
10097 2020-01-03  Bruno Haible  <bruno@clisp.org>
10099         mbrtowc: Refactor locale charset dispatching.
10100         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
10101         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
10102         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
10103         localcharset.h, streq.h.
10104         (enc_t): Remove type.
10105         (locale_enc): Remove function.
10106         (cached_locale_enc): Remove variable.
10107         (locale_enc_cached): Remove function.
10108         (mbrtowc): Invoke locale_encoding_classification.
10109         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
10110         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
10111         lc-charset-dispatch.c.
10112         (configure.ac): Arrange to compile lc-charset-dispatch.c.
10114 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10116         doc: mention 32-bit time_t issue
10117         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10118         * doc/posix-headers/time.texi (time.h): Mention 2038.
10120 2020-01-03  Bruno Haible  <bruno@clisp.org>
10122         mbrtowc: Ensure the mbtowc_lock is unique.
10123         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
10124         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
10125         lib/setlocale_null.c.
10126         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
10127         glthread/lock.h. Include mbtowc-lock.h.
10128         (mbtowc_lock): Remove declaration.
10129         (mbrtowc): Use mbtowc_with_lock.
10130         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
10131         threads.h. Set LIB_MBRTOWC.
10132         (gl_PREREQ_MBTOWC_LOCK): New macro.
10133         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
10134         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
10135         (Depends-on): Remove lock.
10136         (configure.ac): Arrange to compile mbtowc-lock.c.
10137         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
10138         * modules/acl (Link): Likewise.
10139         * modules/argmatch (Link): Likewise.
10140         * modules/backup-rename (Link): Likewise.
10141         * modules/backupfile (Link): Likewise.
10142         * modules/closein (Link): Likewise.
10143         * modules/closeout (Link): Likewise.
10144         * modules/copy-file (Link): Likewise.
10145         * modules/csharpcomp (Link): Likewise.
10146         * modules/csharpexec (Link): Likewise.
10147         * modules/dfa (Link): Likewise.
10148         * modules/exclude (Link): Likewise.
10149         * modules/fnmatch (Link): Likewise.
10150         * modules/fnmatch-gnu (Link): Likewise.
10151         * modules/fnmatch-posix (Link): Likewise.
10152         * modules/glob (Link): Likewise.
10153         * modules/human (Link): Likewise.
10154         * modules/javacomp (Link): Likewise.
10155         * modules/javaexec (Link): Likewise.
10156         * modules/javaversion (Link): Likewise.
10157         * modules/mbfile (Link): Likewise.
10158         * modules/mbiter (Link): Likewise.
10159         * modules/mbmemcasecmp (Link): Likewise.
10160         * modules/mbmemcasecoll (Link): Likewise.
10161         * modules/mbrlen (Link): Likewise.
10162         * modules/mbscasecmp (Link): Likewise.
10163         * modules/mbscasestr (Link): Likewise.
10164         * modules/mbschr (Link): Likewise.
10165         * modules/mbscspn (Link): Likewise.
10166         * modules/mbsinit (Link): Likewise.
10167         * modules/mbslen (Link): Likewise.
10168         * modules/mbsncasecmp (Link): Likewise.
10169         * modules/mbsnlen (Link): Likewise.
10170         * modules/mbsnrtowcs (Link): Likewise.
10171         * modules/mbspbrk (Link): Likewise.
10172         * modules/mbspcasecmp (Link): Likewise.
10173         * modules/mbsrchr (Link): Likewise.
10174         * modules/mbsrtowcs (Link): Likewise.
10175         * modules/mbssep (Link): Likewise.
10176         * modules/mbsspn (Link): Likewise.
10177         * modules/mbsstr (Link): Likewise.
10178         * modules/mbstok_r (Link): Likewise.
10179         * modules/mbswidth (Link): Likewise.
10180         * modules/mbuiter (Link): Likewise.
10181         * modules/mkdir-p (Link): Likewise.
10182         * modules/propername (Link): Likewise.
10183         * modules/quote (Link): Likewise.
10184         * modules/quotearg (Link): Likewise.
10185         * modules/quotearg-simple (Link): Likewise.
10186         * modules/regex-quote (Link): Likewise.
10187         * modules/rpmatch (Link): Likewise.
10188         * modules/sh-quote (Link): Likewise.
10189         * modules/system-quote (Link): Likewise.
10190         * modules/trim (Link): Likewise.
10191         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10192         * modules/unistdio/ulc-fprintf (Link): Likewise.
10193         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10194         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10195         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10196         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10197         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10198         * modules/xfreopen (Link): Likewise.
10199         * modules/xmemcoll (Link): Likewise.
10200         * modules/yesno (Link): Likewise.
10201         * modules/regex (Link): Add $(LIB_MBRTOWC).
10202         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
10203         instead of $(LIBTHREAD).
10204         * modules/argmatch-tests (Makefile.am): Likewise.
10205         * modules/closein-tests (Makefile.am): Likewise.
10206         * modules/copy-file-tests (Makefile.am): Likewise.
10207         * modules/dfa-tests (Makefile.am): Likewise.
10208         * modules/fnmatch-tests (Makefile.am): Likewise.
10209         * modules/glob-tests (Makefile.am): Likewise.
10210         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10211         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10212         * modules/mbrtowc-tests (Makefile.am): Likewise.
10213         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10214         * modules/mbscasestr-tests (Makefile.am): Likewise.
10215         * modules/mbschr-tests (Makefile.am): Likewise.
10216         * modules/mbscspn-tests (Makefile.am): Likewise.
10217         * modules/mbsinit-tests (Makefile.am): Likewise.
10218         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10219         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10220         * modules/mbspbrk-tests (Makefile.am): Likewise.
10221         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10222         * modules/mbsrchr-tests (Makefile.am): Likewise.
10223         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10224         * modules/mbsspn-tests (Makefile.am): Likewise.
10225         * modules/mbsstr-tests (Makefile.am): Likewise.
10226         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10227         * modules/quotearg-tests (Makefile.am): Likewise.
10228         * modules/readtokens-tests (Makefile.am): Likewise.
10229         * modules/sh-quote-tests (Makefile.am): Likewise.
10230         * modules/system-quote-tests (Makefile.am): Likewise.
10231         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10232         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10233         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10234         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10235         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10236         * modules/yesno-tests (Makefile.am): Likewise.
10237         * modules/exclude-tests (Makefile.am): Link the programs with
10238         $(LIB_MBRTOWC).
10239         * modules/regex-tests (Makefile.am): Likewise.
10240         * modules/regex-quote-tests (Makefile.am): Likewise.
10242 2020-01-03  Bruno Haible  <bruno@clisp.org>
10244         getopt-posix: Fix compilation failure in testdirs.
10245         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
10246         when the gnulib module 'getopt-posix' is enabled.
10247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
10248         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
10249         module indicator.
10250         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
10252 2020-01-03  Bruno Haible  <bruno@clisp.org>
10254         doc: Mention the 64-bit inode number problem.
10255         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
10256         64-bit inode number problem.
10257         * doc/posix-functions/stat.texi: Mention that this module fixes the
10258         64-bit inode number problem.
10259         * doc/posix-functions/lstat.texi: Likewise.
10260         * doc/posix-functions/fstat.texi: Likewise.
10261         * doc/posix-functions/readdir.texi: Add more details.
10262         * doc/posix-functions/readdir_r.texi: Likewise.
10264 2020-01-02  Bruno Haible  <bruno@clisp.org>
10266         wcrtomb: Add more tests.
10267         * tests/test-wcrtomb-w32.c: Include localcharset.h.
10268         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10269         locale_charset() returns the expected value; otherwise, skip the test.
10270         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
10271         * tests/test-wcrtomb-w32-7.sh: Likewise.
10272         * modules/wcrtomb-tests (Files): Add these files.
10273         (Depends-on): Add localcharset.
10274         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
10276 2020-01-02  Bruno Haible  <bruno@clisp.org>
10278         mbrtowc: Add more tests.
10279         * tests/test-mbrtowc-w32.c: Include localcharset.h.
10280         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10281         locale_charset() returns the expected value; otherwise, skip the test.
10282         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
10283         * tests/test-mbrtowc-w32-7.sh: Likewise.
10284         * modules/mbrtowc-tests (Files): Add these files.
10285         (Depends-on): Add localcharset.
10286         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
10288 2020-01-02  Bruno Haible  <bruno@clisp.org>
10290         mbrtowc: Fix test failures on MSVC (regression by previous commit).
10291         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
10292         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
10293         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
10294         MBRTOWC_STORES_INCOMPLETE_BUG.
10295         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
10297 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10299         doc: mention glibc bug 24269
10300         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
10301         Reformat slightly so that it looks nicer in the Grep manual.
10303 2020-01-02  Bruno Haible  <bruno@clisp.org>
10305         mbrtowc: Don't replace mbstate_t on MSVC.
10306         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
10307         a missing mbsinit function on native Windows.
10308         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
10309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
10310         MSVC bug.
10311         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
10313 2020-01-02  Bruno Haible  <bruno@clisp.org>
10315         setlocale-null: Avoid crashing the MSVC linker.
10316         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
10317         MSVC.
10319 2020-01-02  Bruno Haible  <bruno@clisp.org>
10321         wchar: Make the HP-UX workaround work on HP-UX 11.31.
10322         * modules/wchar (Depends-on): Add inttypes-incomplete.
10323         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
10324         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
10325         of strtoimax.
10327 2020-01-02  Bruno Haible  <bruno@clisp.org>
10329         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10330         * lib/mbrtowc.c: Include <stdint.h>.
10331         * modules/mbrtowc (Depends-on): Add stdint.
10333 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10335         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10336         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10337         which will auto enable use of openssl, only for >= version 3,
10338         which is newly licensed under the Apache Software License.
10340 2020-01-01  Bruno Haible  <bruno@clisp.org>
10342         mbrtowc: Include function name in macro names.
10343         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10344         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10345         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10346         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10347         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10348         C_LOCALE_MAYBE_EILSEQ.
10350 2020-01-01  Bruno Haible  <bruno@clisp.org>
10352         c32tob: New module.
10353         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10354         (c32tob): New declaration.
10355         * lib/c32tob.c: New file.
10356         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10357         macros.
10358         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10359         * modules/uchar (Depends-on): Add snippet/c++defs.
10360         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10361         uchar.h.
10362         * modules/c32tob: New file.
10363         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10364         defined.
10365         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10366         c32tob.
10367         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10368         * doc/posix-functions/wctob.texi: Mention the new module.
10370 2020-01-01  Bruno Haible  <bruno@clisp.org>
10372         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10373         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10374         $(LIB_SETLOCALE).
10376 2020-01-01  Bruno Haible  <bruno@clisp.org>
10378         hard-locale tests: Fix a conflict with the C++ tests.
10379         * modules/hard-locale-tests (Makefile.am): Build a program named
10380         'current-locale', not 'locale'.
10382 2020-01-01  Bruno Haible  <bruno@clisp.org>
10384         doc: Update documentation about wchar_t.
10385         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10386         wchar_t type.
10388 2020-01-01  Bruno Haible  <bruno@clisp.org>
10390         mbrtowc tests: Fix typos.
10391         * tests/test-mbrtowc.c (main): Fix typo.
10392         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10394 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10396         maint: update copyright notices
10397         Before doing the following changes done by hand, I also ran ‘make
10398         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10399         to do most of the copyright years automatically.  A few upstream
10400         sources are still in 2019 but these should eventually be changed
10401         automatically too.
10402         * build-aux/declared.sh (func_version):
10403         * build-aux/libtool-next-version (func_version):
10404         * build-aux/run-test (func_version):
10405         Update these notices by hand.  Put just the last year
10406         in output of programs, as per GNU coding standards.
10408 2019-12-31  Bruno Haible  <bruno@clisp.org>
10410         uchar: Add C++ tests.
10411         * tests/test-uchar-c++.cc: New file.
10412         * tests/test-uchar-c++2.cc: New file.
10413         * modules/uchar-c++-tests: New file.
10415         uchar: Add tests.
10416         * tests/test-uchar.c: New file.
10417         * modules/uchar-tests: New file.
10419         uchar: New module.
10420         * lib/uchar.in.h: New file.
10421         * m4/uchar.m4: New file.
10422         * modules/uchar: New file.
10423         * doc/posix-headers/uchar.texi: Mention the new module.
10425 2019-12-30  Jim Meyering  <meyering@fb.com>
10427         localeinfo: ->simple would be wrong for LC_ALL=C
10428         That would lead to using unnecessary and expensive code paths in dfa.c.
10429         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10430         error that would have made grep many times slower in the C locale.
10431         With this change, and a file created like this:
10432           yes 00 | head -10000000 > in
10433         Running grep as follows becomes more than 40 times faster:
10434           LC_ALL=C grep -Fw 0 in
10436 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10438         doc: document trouble with back-references
10439         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10441 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10443         doc: use “back-reference” for \1 etc.
10444         * doc/regex.texi: Consistently spell “back-reference” with
10445         a hyphen, since that’s how POSIX does it.
10447 2019-12-26  Jim Meyering  <meyering@fb.com>
10449         test-framework-sh: tighten an internal grep regexp
10450         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10451         that helps test for a working printf.
10453 2019-12-26  Bruno Haible  <bruno@clisp.org>
10455         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10456         Reported by Paul Eggert in
10457         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10458         Simplification by Jim Meyering.
10459         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10460         octal escape sequence in a UTF-8 locale.
10462 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10464         mbrtowc: port better to narrow-wchar_t platforms
10465         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10466         wchar_t is too narrow to represent all the Unicode characters,
10467         consider a byte sequence for an out-of-wchar_t-range character to
10468         be an encoding error.  This fixes grep’s surrogate-pair test
10469         failure on AIX 7.2.
10471 2019-12-24  Bruno Haible  <bruno@clisp.org>
10473         localcharset: Avoid referencing rpl_setlocale on native Windows.
10474         * lib/localcharset.c (setlocale): Undefine.
10476 2019-12-24  Bruno Haible  <bruno@clisp.org>
10478         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10479         * m4/semaphore.m4: New file.
10480         * modules/lock-tests (Files): Add it.
10481         (configure.ac): Require gl_SEMAPHORE.
10482         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10484 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10486         strptime: fix typo in previous patch
10487         Problem and fix reported by Bruno Haible in:
10488         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10489         * lib/strptime.c (day_of_the_week): Fix paren bug.
10491 2019-12-24  Bruno Haible  <bruno@clisp.org>
10493         setlocale-null: Make it easy to rely on the lock in another library.
10494         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10495         defined.
10497 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10499         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10500         Performanced analyzed by Bruno Haible in:
10501         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10502         * config/srclist.txt: Do not sync mktime.c for now.
10503         * lib/mktime.c (shr, ydhms_diff):
10504         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10505         * lib/strptime.c (day_of_the_week):
10506         * lib/xtime.h (xtime_sec):
10507         Redo with neither ‘%’ nor conditional branches.
10509 2019-12-23  Bruno Haible  <bruno@clisp.org>
10511         setlocale-null: Export the lock function also on non-Windows platforms.
10512         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10513         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10514         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10515         * modules/setlocale-null (configure.ac): Invoke it.
10516         (Files): Add m4/visibility.m4.
10518 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10520         gethrxtime: fix rounding bug with negative args
10521         Problem reported by Bruno Haible in:
10522         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10523         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10524         with negative rounding.  Common platforms can compute / and % with
10525         a single instruction, so the simplified code should be shorter and
10526         faster on these platforms anyway.
10528 2019-12-22  Bruno Haible  <bruno@clisp.org>
10530         gethrxtime: remove incorrect overflow detection
10531         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10532         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10533         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10534         cannot now see the need for anyway (even in cases where it works),
10535         as the patch is helpful only when the signs of S and NS disagree,
10536         and all callers pass nonnegative values for S and NS.
10538 2019-12-22  Bruno Haible  <bruno@clisp.org>
10540         setlocale-null: Add standalone include file.
10541         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10542         * lib/locale.in.h: Include setlocale_null.h.
10543         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10544         setlocale_null): Remove declarations.
10545         * lib/setlocale_null.c: Include setlocale_null.h.
10546         * lib/localename.c: Likewise.
10547         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10548         (Depends-on): Add snippet/arg-nonnull.
10549         (Include): Allow either "setlocale_null.h" or <locale.h>.
10551 2019-12-22  Bruno Haible  <bruno@clisp.org>
10553         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10554         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10555         AC_RUN_IFELSE test.
10556         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10557         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10558         problem.
10560 2019-12-22  Bruno Haible  <bruno@clisp.org>
10562         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10563         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10564         unconditional AC_LIBOBJ.
10565         * modules/selinux-at: Likewise.
10566         * modules/xmemdup0: Likewise.
10567         * modules/xstrtoll: Likewise.
10569 2019-12-22  Bruno Haible  <bruno@clisp.org>
10571         longlong: Mark module obsolete.
10572         * modules/longlong (Status, Notice): New sections.
10574         stdint: Assume that the compiler supports 'long long'.
10575         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10576         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10577         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10578         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10579         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10580         * modules/stdint (Files): Remove longlong.m4.
10581         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10582         HAVE_UNSIGNED_LONG_LONG_INT.
10584         inttypes-incomplete: Assume that the compiler supports 'long long'.
10585         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10586         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10587         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10588         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10589         HAVE_LONG_LONG_INT to be 1.
10590         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10591         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10593         malloca: Assume that the compiler supports 'long long'.
10594         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10595         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10596         * modules/malloca (Files): Remove longlong.m4.
10597         * modules/relocatable-prog-wrapper (Files): Likewise.
10599         atoll: Assume that the compiler supports 'long long'.
10600         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10601         * modules/atoll (Files): Remove longlong.m4.
10603         strtoll: Assume that the compiler supports 'long long'.
10604         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10605         * modules/strtoll (Files): Remove longlong.m4.
10607         strtoull: Assume that the compiler supports 'long long'.
10608         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10609         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10610         * modules/strtoull (Files): Remove longlong.m4.
10612         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10613         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10614         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10615         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10616         AC_TYPE_LONG_LONG_INT.
10617         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10618         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10619         * modules/strtoimax (Files): Remove longlong.m4.
10620         * modules/strtoumax (Files): Likewise.
10622         xstrtoll: Assume that the compiler supports 'long long'.
10623         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10624         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10626         vasnprintf: Assume that the compiler supports 'long long'.
10627         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10628         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10629         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10630         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10631         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10632         require AC_TYPE_LONG_LONG_INT.
10633         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10634         gl_PREREQ_VASNPRINTF): Likewise.
10635         * modules/vasnprintf (Files): Remove longlong.m4.
10636         * modules/c-vasnprintf (Files): Likewise.
10637         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10638         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10639         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10640         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10641         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10642         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10643         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10645         gethrxtime: Assume that the compiler supports 'long long'.
10646         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10647         (XTIME_PRECISION): Define to 1000000000 always.
10648         (xtime_make, xtime_sec): Optimize accordingly.
10649         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10650         * modules/gethrxtime (Files): Remove longlong.m4.
10652         integer_length*: Assume that the compiler supports 'long long'.
10653         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10654         * modules/integer_length (Files): Remove longlong.m4.
10655         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10656         * modules/integer_length_l (Files): Remove longlong.m4.
10657         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10658         * modules/integer_length_ll (Files): Remove longlong.m4.
10659         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10661         count-one-bits: Assume that the compiler supports 'long long'.
10662         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10663         * m4/count-one-bits.m4: Remove file.
10664         * modules/count-one-bits (Files): Remove it.
10665         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10666         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10667         unconditionally.
10669         count-trailing-zeros: Assume that the compiler supports 'long long'.
10670         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10671         unconditionally.
10672         * m4/count-trailing-zeros.m4: Remove file.
10673         * modules/count-trailing-zeros (Files): Remove it.
10674         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10675         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10676         unconditionally.
10678         count-leading-zeros: Assume that the compiler supports 'long long'.
10679         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10680         unconditionally.
10681         * m4/count-leading-zeros.m4: Remove file.
10682         * modules/count-leading-zeros (Files): Remove it.
10683         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10684         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10685         unconditionally.
10687 2019-12-22  Bruno Haible  <bruno@clisp.org>
10689         localcharset: Update support for OpenBSD.
10690         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10692 2019-12-21  Bruno Haible  <bruno@clisp.org>
10694         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10695         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10696         NetBSD.
10697         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10699 2019-12-21  Bruno Haible  <bruno@clisp.org>
10701         threadlib: Improve code structure.
10702         * m4/threadlib.m4: Reorder macros. Add comments.
10704 2019-12-21  Bruno Haible  <bruno@clisp.org>
10706         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10707         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10708         here from m4/threads.m4).
10709         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10710         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10711         (gl_STDTHREADLIB): New macro.
10712         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10713         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10715 2019-12-21  Bruno Haible  <bruno@clisp.org>
10717         sched_yield: Don't depend on threadlib and yield.
10718         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10719         LIB_SCHED_YIELD.
10720         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10721         m4/yield.m4).
10722         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10723         gl_THREADLIB and gl_YIELD.
10724         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10725         based on $(LIB_SCHED_YIELD).
10726         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10727         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10728         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10729         (Depends-on): Remove threadlib.
10730         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10731         * modules/threads-h (Files): Remove m4/yield.m4.
10732         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10733         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10734         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10735         * modules/pthread-once-tests (Makefile.am): Likewise.
10736         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10737         * modules/pthread-tss-tests (Makefile.am): Likewise.
10739 2019-12-21  Bruno Haible  <bruno@clisp.org>
10741         threads-h: Don't depend on threadlib.
10742         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10743         not gl_THREADLIB_EARLY.
10745 2019-12-21  Bruno Haible  <bruno@clisp.org>
10747         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10748         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10749         with $(LIB_SETLOCALE).
10751 2019-12-21  Bruno Haible  <bruno@clisp.org>
10753         threadlib: Remove unused dependency (left over from 2019-07-06).
10754         * modules/threadlib (Depends-on): Remove havelib.
10756 2019-12-21  Bruno Haible  <bruno@clisp.org>
10758         New convention for multithread-safety tests.
10759         * tests/test-setlocale_null-mt-one.c: Renamed from
10760         tests/test-setlocale_null-one.c.
10761         * tests/test-setlocale_null-mt-all.c: Renamed from
10762         tests/test-setlocale_null-all.c.
10763         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10765 2019-12-21  Bruno Haible  <bruno@clisp.org>
10767         quotearg tests: Fix conflict with hard-locale tests.
10768         * tests/testlocale: Renamed from tests/locale.
10769         * modules/quotearg-tests (Files): Update.
10770         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10772 2019-12-21  Bruno Haible  <bruno@clisp.org>
10774         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10775         Reported by Daniel Richard G. in
10776         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10777         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10778         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10779         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10780         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10781         alternative to PTHREAD_RWLOCK_INITIALIZER.
10782         * lib/glthread/lock.c: Likewise.
10784 2019-12-21  Bruno Haible  <bruno@clisp.org>
10786         memcmp tests: Work around the clang bug.
10787         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10788         the clang optimization.
10790 2019-12-20  Bruno Haible  <bruno@clisp.org>
10792         localcharset: Add support for z/OS encoding names.
10793         * lib/localcharset.h: Mention which encodings are used as locale
10794         encodings on z/OS.
10796 2019-12-20  Bruno Haible  <bruno@clisp.org>
10798         iconv_open: Add support for z/OS encoding names.
10799         Reported by Daniel Richard G. in
10800         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10801         * lib/iconv_open-zos.gperf: New file.
10802         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10803         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10804         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10806         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10808 2019-12-20  Bruno Haible  <bruno@clisp.org>
10810         doc: Document the problem of the per-thread locale functions on z/OS.
10811         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10812         * doc/posix-functions/newlocale.texi: Likewise.
10813         * doc/posix-functions/duplocale.texi: Likewise.
10814         * doc/posix-functions/freelocale.texi: Likewise.
10816 2019-12-20  Bruno Haible  <bruno@clisp.org>
10818         localename, gettext: Fix host_os value for z/OS.
10819         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10820         cross-configuration code.
10822 2019-12-19  Jim Meyering  <meyering@fb.com>
10824         nstrftime: avoid a shadowing warning
10825         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10826         to avoid shadowing an "i" declared hundreds of lines above.
10828 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10830         dfa: struct dfamust now uses flexible array
10831         * lib/dfa.c: Include flexmember.h.
10832         (dfamust, dfamustfree): Adjust to struct dfamust change.
10833         This saves a call to malloc+free.
10834         * lib/dfa.h (struct dfamust): Make the final member a
10835         flexible array member.
10836         * modules/dfa (Depends-on): Add flexmember.
10838         dfa: fast->small for array elements
10839         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10840         since this type is used in arrays.  This change is more for
10841         documentation than for any practical effect, since the two types
10842         are the same on all known platforms.
10844 2019-12-19  Bruno Haible  <bruno@clisp.org>
10846         iconv tests: Test canonicalized, not system-dependent, encoding names.
10847         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10848         * modules/iconv-tests (Depends-on): Add iconv_open.
10850 2019-12-18  Bruno Haible  <bruno@clisp.org>
10852         localename: Fix test failure on AIX 7.2.
10853         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10854         locales on AIX.
10855         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10856         locales on AIX.
10858 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10860         Improve port of AC_C_RESTRICT to Oracle C++
10861         Problem reported by Christian Biesinger in:
10862         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10863         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10864         Oracle Developer Studio C++ 12.5 or later.
10866 2019-12-18  Bruno Haible  <bruno@clisp.org>
10868         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10869         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10871 2019-12-18  Bruno Haible  <bruno@clisp.org>
10873         localename: Ensure multithread-safety in future changes.
10874         * lib/localename.c (setlocale): Reference the system's setlocale().
10875         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10876         (gl_locale_name_posix): Likewise.
10877         * modules/localename (Depends-on): Add setlocale-null.
10879 2019-12-18  Bruno Haible  <bruno@clisp.org>
10881         setlocale-null: Make API more useful.
10882         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10883         callers changed.
10884         (setlocale_null): New declaration.
10885         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10886         extracted from setlocale_null_unlocked.
10887         (setlocale_null_unlocked): Invoke it.
10888         (setlocale_null_r): Renamed from setlocale_null.
10889         (setlocale_null): New function, extracted from setlocale_mtsafe in
10890         setlocale.c.
10891         * lib/setlocale.c: Don't include <errno.h>.
10892         (setlocale_mtsafe): Invoke setlocale_null.
10893         * lib/setlocale-lock.c: Update comments.
10894         * doc/posix-functions/setlocale.texi: Mention both functions.
10896 2019-12-18  Bruno Haible  <bruno@clisp.org>
10898         localename: Optimize code for native Windows.
10899         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10900         category (not allowed here).
10902 2019-12-18  Bruno Haible  <bruno@clisp.org>
10904         setlocale: Make calls with NULL argument multithread-safe.
10905         * lib/setlocale.c: Include <errno.h>.
10906         (setlocale_mtsafe): New function.
10907         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10908         (setlocale_improved): Renamed from rpl_setlocale.
10909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10910         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10911         LIB_SETLOCALE.
10912         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10913         (Link): New section.
10914         * tests/locale.c: Undefine setlocale.
10915         * tests/test-setlocale_null-one.c: Likewise.
10916         * tests/test-setlocale_null-all.c: Likewise.
10917         * modules/setlocale-tests (Makefile.am): Link the test programs with
10918         $(LIB_SETLOCALE).
10919         * modules/astrxfrm-tests (Makefile.am): Likewise.
10920         * modules/btowc-tests (Makefile.am): Likewise.
10921         * modules/c-ctype-tests (Makefile.am): Likewise.
10922         * modules/c-snprintf-tests (Makefile.am): Likewise.
10923         * modules/c-strcase-tests (Makefile.am): Likewise.
10924         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10925         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10926         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10927         * modules/dfa-tests (Makefile.am): Likewise.
10928         * modules/duplocale-tests (Makefile.am): Likewise.
10929         * modules/hard-locale-tests (Makefile.am): Likewise.
10930         * modules/localcharset-tests (Makefile.am): Likewise.
10931         * modules/localename-tests (Makefile.am): Likewise.
10932         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10933         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10934         * modules/mbrtowc-tests (Makefile.am): Likewise.
10935         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10936         * modules/mbscasestr-tests (Makefile.am): Likewise.
10937         * modules/mbschr-tests (Makefile.am): Likewise.
10938         * modules/mbscspn-tests (Makefile.am): Likewise.
10939         * modules/mbsinit-tests (Makefile.am): Likewise.
10940         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10941         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10942         * modules/mbspbrk-tests (Makefile.am): Likewise.
10943         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10944         * modules/mbsrchr-tests (Makefile.am): Likewise.
10945         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10946         * modules/mbsspn-tests (Makefile.am): Likewise.
10947         * modules/mbsstr-tests (Makefile.am): Likewise.
10948         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10949         * modules/quotearg-tests (Makefile.am): Likewise.
10950         * modules/regex-tests (Makefile.am): Likewise.
10951         * modules/strfmon_l-tests (Makefile.am): Likewise.
10952         * modules/strtod-tests (Makefile.am): Likewise.
10953         * modules/strtold-tests (Makefile.am): Likewise.
10954         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10955         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10956         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10957         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10958         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10959         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10960         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10961         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10962         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10963         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10964         * modules/wcrtomb-tests (Makefile.am): Likewise.
10965         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10966         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10967         * modules/wcwidth-tests (Makefile.am): Likewise.
10968         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10969         safety fix is also available in module 'setlocale'.
10971 2019-12-18  Bruno Haible  <bruno@clisp.org>
10973         hard-locale: Make multithread-safe.
10974         * lib/hard-locale.h (hard_locale): Move documentation to here.
10975         * lib/hard-locale.c: Don't include <stdlib.h>.
10976         (GLIBC_VERSION): Remove macro.
10977         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10978         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10979         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10980         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10981         (Link): New section.
10982         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10983         $(LIB_HARD_LOCALE).
10985 2019-12-18  Bruno Haible  <bruno@clisp.org>
10987         hard-locale: Avoid test failure on Haiku.
10988         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10990 2019-12-18  Bruno Haible  <bruno@clisp.org>
10992         setlocale-null: Handle NULL result from setlocale.
10993         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10994         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10995         from setlocale or _wsetlocale.
10997 2019-12-18  Bruno Haible  <bruno@clisp.org>
10999         hard-locale: Add test.
11000         * tests/test-hard-locale.c: New file.
11001         * tests/locale.c: New file.
11002         * modules/hard-locale-tests: New file.
11004 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11006         dfa: do not match invalid UTF-8
11007         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
11008         from 5 to 9 tokens; this is needed due to the changes to
11009         add_utf8_anychar.
11010         (charclass_index): 2nd arg is now pointer-to-const.
11011         (add_utf8_anychar): Match only valid UTF-8 byte sequences
11012         instead of allowing overlong encodings or surrogate halves.
11014         dfa: simplify charclass by assuming C99
11015         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
11016         (charclass_word): Now always uint_fast64_t.
11017         (CHARCLASS_PAIR): Remove.
11018         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
11020         fts: tune via calloc
11021         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
11023         dfa: tune via xzalloc
11024         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
11026 2019-12-17  Bruno Haible  <bruno@clisp.org>
11028         localcharset: Fix multithread-safety bug on Windows and OS/2.
11029         * lib/localcharset.h (locale_charset): Clarify when the result becomes
11030         invalid.
11031         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
11032         assemble the result.
11034 2019-12-17  Bruno Haible  <bruno@clisp.org>
11036         localcharset: Optimize code for native Windows.
11037         * lib/localcharset.c (locale_charset): Don't bother calling
11038         setlocale (LC_ALL, NULL) since we're not interested in its result.
11040 2019-12-17  Bruno Haible  <bruno@clisp.org>
11042         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
11043         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
11044         setlocale.
11045         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
11046         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
11047         * modules/nl_langinfo (Depends-on): Add setlocale-null.
11049 2019-12-17  Bruno Haible  <bruno@clisp.org>
11051         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
11052         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
11053         stack-allocated buffer to assemble each result and different static
11054         buffers to return it.
11055         * tests/test-nl_langinfo-mt.c: New file.
11056         * modules/nl_langinfo-tests (Files): Add it.
11057         (Depends-on): Add thread, nanosleep.
11058         (Makefile.am): Build test-nl_langinfo-mt test.
11060 2019-12-17  Bruno Haible  <bruno@clisp.org>
11062         langinfo: Document more details.
11063         * doc/posix-headers/langinfo.texi: List platform details.
11064         * doc/posix-functions/nl_langinfo.texi: Likewise.
11066 2019-12-17  Bruno Haible  <bruno@clisp.org>
11068         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
11069         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
11070         and Martin Storsjö <martin@martin.st>
11071         in <https://savannah.gnu.org/bugs/?57406>.
11072         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
11073         mingw.
11075 2019-12-17  Bruno Haible  <bruno@clisp.org>
11077         glob: Avoid warning on mingw.
11078         Reported by Christian Biesinger <cbiesinger@google.com> in
11079         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
11080         * lib/glob.c (__stat64): Undefine first.
11082 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11084         xalloc: tune xzalloc for fresh allocations
11085         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
11086         because when the memory is freshly allocated from the OS via sbrk
11087         or mmap, calloc can avoid doing the memset.
11089         dfa: new function dfacopysyntax
11090         * lib/dfa.c (struct dfa): Move syntax member later so
11091         that dfacopysyntax can easily clear earlier members.
11092         (dfacopysyntax): New function, used by Gawk.
11094 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11096         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
11097         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
11098         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
11099         if not already defined.
11101         dfa: remove one dependency on MB_CUR_MAX
11102         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
11104         dfa: remove struct lexer_state.cur_mb_len
11105         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
11106         as it’s not needed and the code is simpler without it.
11107         All uses removed.
11109 2019-12-16  Bruno Haible  <bruno@clisp.org>
11111         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
11112         Reported by Arnold Robbins <arnold@skeeve.com>.
11113         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
11114         copied from lib/glthread/lock.h.
11115         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
11116         (setlocale_null_with_lock): If pthread_in_use() is false, use
11117         setlocale_null_unlocked directly.
11118         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
11119         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
11120         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
11121         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
11122         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
11123         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
11125 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11127         dfa: make dfasyntax thread-safe
11128         Problem reported by Bruno Haible in:
11129         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
11130         * lib/dfa.c: Do not include locale.h.
11131         (struct dfa): Remove simple_locale member.
11132         All uses replaced by localeinfo.simple.
11133         (using_simple_locale): Remove; now present (with some
11134         changes) in localeinfo.c.
11135         (dfasyntax): No need to initialize removed member.
11137         localeinfo: record whether locale is simple
11138         * lib/localeinfo.c (using_simple_locale): New function,
11139         copied here from lib/dfa.c but with a change: it uses
11140         strcoll for its heuristic, instead of using setlocale.
11141         This lets it be thread-safe.
11142         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
11144 2019-12-15  Bruno Haible  <bruno@clisp.org>
11146         duplocale: Fix multithread-safety bug on AIX.
11147         * lib/duplocale.c: Don't include <stdlib.h>.
11148         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
11149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11150         Set LIB_DUPLOCALE.
11151         * modules/duplocale (Depends-on): Add setlocale-null.
11152         (Link): New section.
11153         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
11154         $(LIB_DUPLOCALE).
11156 2019-12-15  Bruno Haible  <bruno@clisp.org>
11158         setlocale-null: Add tests.
11159         * tests/test-setlocale_null.c: New file.
11160         * tests/test-setlocale_null-one.c: New file.
11161         * tests/test-setlocale_null-all.c: New file.
11162         * modules/setlocale-null-tests: New file.
11164         setlocale-null: New module.
11165         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
11166         setlocale_null): New declarations.
11167         * lib/setlocale_null.c: New file.
11168         * lib/setlocale-lock.c: New file.
11169         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
11170         * m4/setlocale_null.m4: New file.
11171         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
11172         GNULIB_SETLOCALE_NULL.
11173         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
11174         * modules/setlocale-null: New file.
11175         * doc/posix-functions/setlocale.texi: Mention the new module.
11177 2019-12-15  Bruno Haible  <bruno@clisp.org>
11179         lock tests: Skip test when no multithreading is enabled.
11180         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
11182 2019-12-14  Bruno Haible  <bruno@clisp.org>
11184         locale, duplocale, localename: Fix last patch.
11185         Reported by Daniel Richard G. in
11186         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
11187         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
11188         Don't define if locale_t does not exist.
11190 2019-12-13  Bruno Haible  <bruno@clisp.org>
11192         locale, duplocale, localename: Fix errors if locale_t does not exist.
11193         Reported by Daniel Richard G. in
11194         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
11195         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
11196         macros.
11197         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
11198         HAVE_NEWLOCALE.
11199         * tests/test-localename.c: Likewise.
11200         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
11201         HAVE_DUPLOCALE.
11202         * tests/test-locale-c++.cc: Likewise.
11204 2019-12-13  Bruno Haible  <bruno@clisp.org>
11206         wcstok: Fix test failure on HP-UX.
11207         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
11208         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
11210 2019-12-12  Bruno Haible  <bruno@clisp.org>
11212         strtod, strtold tests: Avoid test failure on AIX 7.2.
11213         * tests/test-strtod1.c (main): Allow implementations in which ',' and
11214         '.' both are radix characters.
11215         * tests/test-strtold1.c (main): Likewise.
11217 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11219         dfa: prefer ptrdiff_t for API, too
11220         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
11221         but do this only for internal use for now.
11222         * NEWS: Mention the API change.
11223         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
11224         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
11225         values known to be nonnegative.
11226         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
11227         Prefer idx_t or ptrdiff_t to size_t for API.
11228         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
11229         Prefer ptrdiff_t to size_t for API.
11231         stdalign: port to xlclang 16.01
11232         Problem reportd by Bruno Haible in:
11233         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
11234         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
11235         ((__aligned__ (...))) with xlclang, as a top-level
11236         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
11237         xlclang version 16.01.0000.0001; the alignment directive is ignored.
11239 2019-12-12  Bruno Haible  <bruno@clisp.org>
11241         duplocale: Fix test failure on AIX 7.2 with xlclang.
11242         * lib/duplocale.c: Include <stdlib.h>.
11243         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
11244         value.
11246 2019-12-12  Bruno Haible  <bruno@clisp.org>
11248         stddef: Document the AIX xlc issue.
11249         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
11251 2019-12-12  Bruno Haible  <bruno@clisp.org>
11253         duplocale: Don't attempt to override if locale_t does not exist.
11254         Reported by Daniel Richard G. in
11255         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
11256         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
11257         HAVE_DUPLOCALE to 0.
11259 2019-12-12  Bruno Haible  <bruno@clisp.org>
11261         wcwidth: Avoid test failure on AIX 7.2.
11262         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
11263         negative.
11264         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
11266 2019-12-12  Bruno Haible  <bruno@clisp.org>
11268         ilogbl: Work around Cygwin bug.
11269         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
11270         correct.
11271         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
11273 2019-12-12  Bruno Haible  <bruno@clisp.org>
11275         strtold: Work around Cygwin bug.
11276         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
11277         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
11278         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
11279         STRTOLD_HAS_UNDERFLOW_BUG is defined.
11280         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
11282 2019-12-12  Bruno Haible  <bruno@clisp.org>
11284         strtold: Fix autoconf test.
11285         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
11287 2019-12-11  Bruno Haible  <bruno@clisp.org>
11289         fsync tests: Skip test that is known to fail.
11290         * doc/posix-functions/fsync.texi: Update list of platforms.
11291         * tests/test-fsync.c (main): Skip test with read-only file descriptors
11292         that is known to fail on AIX and Cygwin.
11294 2019-12-11  Bruno Haible  <bruno@clisp.org>
11296         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
11297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
11298         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
11299         HAVE_GETADDRINFO as a C macro.
11300         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
11301         declare as replacement functions.
11302         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
11303         define as no-op overrides.
11304         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
11305         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
11306         * modules/getaddrinfo (Depends-on, configure.ac): Test
11307         REPLACE_GETADDRINFO.
11308         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
11309         problem.
11310         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
11311         convention problems.
11313 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11315         dfa: prefer signed integers for internals
11316         Signed integers can be checked more easily for integer overflow.
11317         * lib/dfa.c (position, struct lexer_state, struct parser_state)
11318         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
11319         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
11320         (nsubtoks, copytoks, closure, alloc_position_set, delete)
11321         (replace, state_index, epsclosure, charclass_context)
11322         (state_separate_contexts, merge_nfa_state, dfaoptimize)
11323         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
11324         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
11325         (comsubs, inboth, allocmust):
11326         Prefer a signed to an unsigned integer when calculating indexes,
11327         unless the integer is part of the external API (a bigger deal,
11328         and to be done later).
11330         dfa: fix index overflow
11331         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11332         very large regular expressions.
11334         dfa: update commentary for previous change
11335         * NEWS: Mention the change.
11336         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11338 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11340         dfa: separate parse and compile phase
11341         ‘dfamust’ must be called after parsing and before tokens are
11342         reordered, but both are executed in the compilation phase.
11343         Token reordering was introduced in Gnulib commit
11344         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11345         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11346         * lib/dfa.c (dfaparse): Change it to global function.
11347         (dfacomp): If first argument is NULL, skip parse.
11348         * lib/dfa.h: (dfaparse): Add a prototype.
11350 2019-12-11  Bruno Haible  <bruno@clisp.org>
11352         unistd tests: Fix link error on MSVC.
11353         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11354         $(LIB_GETLOGIN).
11356 2019-12-11  Bruno Haible  <bruno@clisp.org>
11358         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11359         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11360         and POSIX substitutes are supported in C++ mode.
11361         * NEWS: Likewise.
11363 2019-12-11  Bruno Haible  <bruno@clisp.org>
11365         stddef: Fix compilation error in C++ mode on MSVC.
11366         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11367         instead, include <cstddef>.
11369 2019-12-11  Bruno Haible  <bruno@clisp.org>
11371         unistd: Fix compilation error in C++ mode on MSVC.
11372         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11373         does not have <unistd.h>.
11375 2019-12-11  Bruno Haible  <bruno@clisp.org>
11377         locale: Fix compilation error in C++ mode on MSVC.
11378         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11379         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11380         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11381         int_n_sep_by_space): Define as macros on MSVC.
11383 2019-12-11  Bruno Haible  <bruno@clisp.org>
11385         wchar: Fix compilation error in C++ mode on MSVC.
11386         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11388 2019-12-11  Bruno Haible  <bruno@clisp.org>
11390         pthread-thread: Fix compilation error in C++ mode on MSVC.
11391         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11392         _GL_CXXALIAS_RPL invocation.
11394 2019-12-08  Bruno Haible  <bruno@clisp.org>
11396         Fix compilation errors in C++ mode on Haiku.
11397         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11398         non-glibc systems.
11399         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11400         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11401         posix_spawnattr_setschedparam): Likewise.
11402         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11403         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11404         * lib/unistd.in.h (usleep): Likewise.
11406 2019-12-08  Bruno Haible  <bruno@clisp.org>
11408         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11409         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11410         * modules/fseeko (configure.ac-early): Require it instead of
11411         AC_FUNC_FSEEKO.
11412         * modules/ftello (configure.ac-early): Likewise.
11413         * modules/fflush (configure.ac-early): Likewise.
11415 2019-12-08  Bruno Haible  <bruno@clisp.org>
11417         Fix compilation error in C++ mode on HP-UX 11.
11418         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11419         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11421 2019-12-08  Bruno Haible  <bruno@clisp.org>
11423         Fix compilation errors on HP-UX 11/ia64.
11424         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11425         _GL_FUNCDECL_SYS.
11427 2019-12-08  Bruno Haible  <bruno@clisp.org>
11429         Fix compilation error in C++ mode on OpenBSD.
11430         * lib/signal.in.h (signal): Declare on OpenBSD.
11432 2019-12-08  Bruno Haible  <bruno@clisp.org>
11434         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11435         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11436         instead of #error.
11438 2019-12-08  Bruno Haible  <bruno@clisp.org>
11440         Fix compilation errors in C++ mode on FreeBSD.
11441         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11442         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11443         * lib/threads.in.h (thrd_exit): Likewise.
11444         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11446 2019-12-08  Bruno Haible  <bruno@clisp.org>
11448         Fix compilation errors in C++ mode on macOS and FreeBSD.
11449         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11450         or FreeBSD with clang, use the approach without C preprocessor macro.
11452 2019-12-07  Bruno Haible  <bruno@clisp.org>
11454         Fix compilation errors in C++ mode on AIX with xlclang++.
11455         Reported by Christian Biesinger <cbiesinger@google.com> in
11456         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11457         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11459 2019-12-07  Bruno Haible  <bruno@clisp.org>
11461         Document compilation error in C++ mode on NetBSD 8.0.
11462         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11464 2019-12-07  Bruno Haible  <bruno@clisp.org>
11466         Fix compilation errors in C++ mode on Solaris 10.
11467         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11468         to non-empty on Solaris with a non-GCC compiler.
11469         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11471 2019-12-07  Bruno Haible  <bruno@clisp.org>
11473         Reword NEWS entry.
11474         * NEWS: Reword the latest NEWS entry.
11476 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11478         Move xstrtol_fatal to a new xstrtol-error module.
11479         * lib/xstrtol.h: Stop including <getopt.h>.
11480         (xstrtol_fatal): Move ...
11481         * lib/xstrtol-error.h: ... here.  New file.
11482         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11483         * tests/test-xstrtol.c: Likewise.
11484         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11485         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11486         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11487         * modules/xstrtol-error: New file.
11488         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11489         * MODULES.html.sh: Add xstrtol-error.
11490         * NEWS: Document the change.
11492 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11494         nstrftime: better width support for %N, %z
11495         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11496         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11497         a new WIDTH parameter.
11498         (add, add1, cpy): Use these macros.
11499         (width_add): Do not treat digits == 0 as a special case,
11500         do not pad if padding is ‘-’, and do not use a negative width.
11501         (__strftime_internal): Redo formatting of nanoseconds and numeric
11502         timezones to avoid buffer misuse in unusual cases, and so that
11503         widths make more sense.  Add support for widths greater than 9 to
11504         the %N format; they are zero filled on the right.
11505         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11507 2019-12-05  Bruno Haible  <bruno@clisp.org>
11509         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11510         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11511         set REPLACE_ISFINITE to 1.
11512         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11513         REPLACE_ISINF to 1.
11514         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11515         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11516         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11517         * lib/threads.in.h (call_once): Likewise.
11518         * lib/iconv.in.h (iconv): Likewise.
11520 2019-12-05  Bruno Haible  <bruno@clisp.org>
11522         wchar: Add more C++ tests.
11523         Reported by Christian Biesinger <cbiesinger@google.com> in
11524         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11525         * tests/test-wchar-c++3.cc: New file.
11526         * modules/wchar-c++-tests (Files): Add it.
11527         (Makefile.am): Compile it.
11529 2019-12-05  Bruno Haible  <bruno@clisp.org>
11531         Add more C++ tests.
11533         assert-h: Add C++ tests.
11534         * tests/test-assert-h-c++.cc: New file.
11535         * tests/test-assert-h-c++2.cc: New file.
11536         * modules/assert-h-c++-tests: New file.
11537         * modules/assert-h-tests: New file.
11539         ctype: Add C++ tests.
11540         * tests/test-ctype-c++.cc: New file.
11541         * tests/test-ctype-c++2.cc: New file.
11542         * modules/ctype-c++-tests: New file.
11543         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11545         errno: Add C++ tests.
11546         * tests/test-errno-c++.cc: New file.
11547         * tests/test-errno-c++2.cc: New file.
11548         * modules/errno-c++-tests: New file.
11549         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11551         float: Add C++ tests.
11552         * tests/test-float-c++.cc: New file.
11553         * tests/test-float-c++2.cc: New file.
11554         * modules/float-c++-tests: New file.
11555         * modules/float-tests (Depends-on): Add float-c++-tests.
11557         inttypes: Add more C++ tests.
11558         * tests/test-inttypes-c++2.cc: New file.
11559         * modules/inttypes-c++-tests (Files): Add it.
11560         (Makefile.am): Compile it.
11562         limits-h: Add C++ tests.
11563         * tests/test-limits-h-c++.cc: New file.
11564         * tests/test-limits-h-c++2.cc: New file.
11565         * modules/limits-h-c++-tests: New file.
11566         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11568         stdarg: Add C++ tests.
11569         * tests/test-stdarg-c++.cc: New file.
11570         * tests/test-stdarg-c++2.cc: New file.
11571         * modules/stdarg-c++-tests: New file.
11572         * modules/stdarg-tests: New file.
11574         stdbool: Add C++ tests.
11575         * tests/test-stdbool-c++.cc: New file.
11576         * tests/test-stdbool-c++2.cc: New file.
11577         * modules/stdbool-c++-tests: New file.
11578         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11580         stddef: Add C++ tests.
11581         * tests/test-stddef-c++.cc: New file.
11582         * tests/test-stddef-c++2.cc: New file.
11583         * modules/stddef-c++-tests: New file.
11584         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11586         stdint: Add C++ tests.
11587         * tests/test-stdint-c++.cc: New file.
11588         * tests/test-stdint-c++2.cc: New file.
11589         * modules/stdint-c++-tests: New file.
11590         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11592         wchar: Add more C++ tests.
11593         * tests/test-wchar-c++2.cc: New file.
11594         * modules/wchar-c++-tests (Files): Add it.
11595         (Makefile.am): Compile it.
11597         wctype-h: Add more C++ tests.
11598         * tests/test-wctype-h-c++2.cc: New file.
11599         * modules/wctype-h-c++-tests (Files): Add it.
11600         (Makefile.am): Compile it.
11602 2019-12-04  Bruno Haible  <bruno@clisp.org>
11604         Fix compilation errors in C++ mode with xlclang++ on AIX.
11605         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11606         C++ mode on AIX.
11607         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11608         without C preprocessor macro.
11609         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11610         _GL_CXXALIAS_SYS.
11611         * lib/threads.in.h (thrd_exit): Likewise.
11613 2019-12-04  Bruno Haible  <bruno@clisp.org>
11615         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11616         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11617         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11619 2019-12-04  Bruno Haible  <bruno@clisp.org>
11621         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11622         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11623         _GL_CXXALIASWARN invocation on non-glibc systems.
11624         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11625         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11626         iswctype, towlower, towupper): Likewise.
11628 2019-12-03  Bruno Haible  <bruno@clisp.org>
11630         Avoid hassles caused by [[noreturn]] in C++.
11631         Reported by Christian Biesinger <cbiesinger@google.com> in
11632         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11633         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11634         * lib/_Noreturn.h: Likewise.
11636 2019-12-02  Bruno Haible  <bruno@clisp.org>
11638         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11639         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11640         LIBMULTITHREAD.
11641         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11642         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11643         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11644         gl_THREADLIB.
11645         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11647 2019-12-02  Bruno Haible  <bruno@clisp.org>
11649         Fix some more link errors with --enable-threads=isoc.
11650         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11651         * modules/pthread-rwlock (Depends-on): Likewise.
11653 2019-12-02  Bruno Haible  <bruno@clisp.org>
11655         Fix link errors with --enable-threads=posix on AIX.
11656         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11657         program with $(LIBTHREAD).
11658         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11659         program with $(LIBTHREAD).
11661 2019-12-02  Bruno Haible  <bruno@clisp.org>
11663         Fix link errors with --enable-threads=posix on AIX.
11664         * modules/mbrtowc (Link): New section.
11665         * modules/acl (Link): Likewise.
11666         * modules/argmatch (Link): Likewise.
11667         * modules/backup-rename (Link): Likewise.
11668         * modules/backupfile (Link): Likewise.
11669         * modules/closein (Link): Likewise.
11670         * modules/closeout (Link): Likewise.
11671         * modules/copy-file (Link): Likewise.
11672         * modules/csharpcomp (Link): Likewise.
11673         * modules/csharpexec (Link): Likewise.
11674         * modules/dfa (Link): Likewise.
11675         * modules/exclude (Link): Likewise.
11676         * modules/fnmatch (Link): Likewise.
11677         * modules/fnmatch-gnu (Link): Likewise.
11678         * modules/fnmatch-posix (Link): Likewise.
11679         * modules/glob (Link): Likewise.
11680         * modules/human (Link): Likewise.
11681         * modules/javacomp (Link): Likewise.
11682         * modules/javaexec (Link): Likewise.
11683         * modules/javaversion (Link): Likewise.
11684         * modules/mbfile (Link): Likewise.
11685         * modules/mbiter (Link): Likewise.
11686         * modules/mbmemcasecmp (Link): Likewise.
11687         * modules/mbmemcasecoll (Link): Likewise.
11688         * modules/mbrlen (Link): Likewise.
11689         * modules/mbscasecmp (Link): Likewise.
11690         * modules/mbscasestr (Link): Likewise.
11691         * modules/mbschr (Link): Likewise.
11692         * modules/mbscspn (Link): Likewise.
11693         * modules/mbsinit (Link): Likewise.
11694         * modules/mbslen (Link): Likewise.
11695         * modules/mbsncasecmp (Link): Likewise.
11696         * modules/mbsnlen (Link): Likewise.
11697         * modules/mbsnrtowcs (Link): Likewise.
11698         * modules/mbspbrk (Link): Likewise.
11699         * modules/mbspcasecmp (Link): Likewise.
11700         * modules/mbsrchr (Link): Likewise.
11701         * modules/mbsrtowcs (Link): Likewise.
11702         * modules/mbssep (Link): Likewise.
11703         * modules/mbsspn (Link): Likewise.
11704         * modules/mbsstr (Link): Likewise.
11705         * modules/mbstok_r (Link): Likewise.
11706         * modules/mbswidth (Link): Likewise.
11707         * modules/mbuiter (Link): Likewise.
11708         * modules/mkdir-p (Link): Likewise.
11709         * modules/propername (Link): Likewise.
11710         * modules/quote (Link): Likewise.
11711         * modules/quotearg (Link): Likewise.
11712         * modules/quotearg-simple (Link): Likewise.
11713         * modules/regex-quote (Link): Likewise.
11714         * modules/rpmatch (Link): Likewise.
11715         * modules/sh-quote (Link): Likewise.
11716         * modules/system-quote (Link): Likewise.
11717         * modules/trim (Link): Likewise.
11718         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11719         * modules/unistdio/ulc-fprintf (Link): Likewise.
11720         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11721         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11722         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11723         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11724         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11725         * modules/xfreopen (Link): Likewise.
11726         * modules/xmemcoll (Link): Likewise.
11727         * modules/yesno (Link): Likewise.
11728         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11729         * modules/argmatch-tests (Makefile.am): Likewise.
11730         * modules/closein-tests (Makefile.am): Likewise.
11731         * modules/copy-file-tests (Makefile.am): Likewise.
11732         * modules/dfa-tests (Makefile.am): Likewise.
11733         * modules/fnmatch-tests (Makefile.am): Likewise.
11734         * modules/glob-tests (Makefile.am): Likewise.
11735         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11736         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11737         * modules/mbrtowc-tests (Makefile.am): Likewise.
11738         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11739         * modules/mbscasestr-tests (Makefile.am): Likewise.
11740         * modules/mbschr-tests (Makefile.am): Likewise.
11741         * modules/mbscspn-tests (Makefile.am): Likewise.
11742         * modules/mbsinit-tests (Makefile.am): Likewise.
11743         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11744         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11745         * modules/mbspbrk-tests (Makefile.am): Likewise.
11746         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11747         * modules/mbsrchr-tests (Makefile.am): Likewise.
11748         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11749         * modules/mbsspn-tests (Makefile.am): Likewise.
11750         * modules/mbsstr-tests (Makefile.am): Likewise.
11751         * modules/quotearg-tests (Makefile.am): Likewise.
11752         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11753         * modules/readtokens-tests (Makefile.am): Likewise.
11754         * modules/regex-quote-tests (Makefile.am): Likewise.
11755         * modules/sh-quote-tests (Makefile.am): Likewise.
11756         * modules/system-quote-tests (Makefile.am): Likewise.
11757         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11758         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11759         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11760         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11761         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11762         * modules/yesno-tests (Makefile.am): Likewise.
11764 2019-12-02  Bruno Haible  <bruno@clisp.org>
11766         Simplify link sections.
11767         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11768         * modules/lock (Link): Likewise.
11769         * modules/cond (Link): Likewise.
11770         * modules/tls (Link): Likewise.
11771         * modules/yield (Link): Likewise.
11772         * modules/regex (Link): Likewise.
11773         * modules/localename (Link): Likewise.
11774         * modules/unicase/locale-language (Link): Likewise.
11775         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11777 2019-12-02  Bruno Haible  <bruno@clisp.org>
11779         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11780         * tests/test-thread_self.c (main): Disable test on AIX.
11782 2019-12-01  Bruno Haible  <bruno@clisp.org>
11784         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11785         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11786         gl_THREADLIB_EARLY_BODY.
11787         (gl_THREADLIB_EARLY_BODY): Invoke it.
11788         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11789         (gl_THREADLIB_BODY): Invoke it.
11790         (gl_PTHREADLIB): New macro.
11791         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11792         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11793         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11794         * modules/pthread-h (Files): Add threadlib.m4.
11795         (Depends-on): Remove threadlib.
11796         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11797         and _THREAD_SAFE here.
11798         (Link): Use LIBPTHREAD, not LIBTHREAD.
11799         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11800         LIBMULTITHREAD.
11801         * modules/pthread-once (Link): Likewise.
11802         * modules/pthread-mutex (Link): Likewise.
11803         * modules/pthread-rwlock (Link): Likewise.
11804         * modules/pthread-cond (Link): Likewise.
11805         * modules/pthread-tss (Link): Likewise.
11806         * modules/pthread-spin (Link): Likewise.
11807         * modules/pthread (Link): Likewise.
11808         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11809         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11810         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11811         test_pthread_once2_LDADD): Likewise.
11812         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11813         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11814         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11815         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11817 2019-12-01  Bruno Haible  <bruno@clisp.org>
11819         cond: State linking requirements.
11820         * modules/cond (Link): New section.
11822 2019-12-01  Bruno Haible  <bruno@clisp.org>
11824         threadlib: Remove unnecessary file (left over from 2019-07-06).
11825         * modules/threadlib (Files): Remove config.rpath.
11827 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11829         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11830         Reported by Dagobert Michelsen <dam@opencsw.org> in
11831         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11832         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11833         list of strings instead of one string.
11834         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11835         * pygnulib/GLImport.py (execute): Likewise.
11837 2019-11-27  Bruno Haible  <bruno@clisp.org>
11839         openpty, forkpty: Fix build error on Solaris 11.4.
11840         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11841         also in <termios.h>.
11842         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11843         of the function also in <termios.h>.
11844         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11845         * doc/glibc-functions/forkpty.texi: Likewise.
11847 2019-11-27  Bruno Haible  <bruno@clisp.org>
11849         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11850         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11851         --enable-threads=isoc and --enable-threads=isoc+posix.
11852         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11853         When both the ISO C and the POSIX threads API are available, choose
11854         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11855         --enable-threads=isoc+posix was specified. When only the ISO C threads
11856         API is available and --enable-threads=iso was specified, choose
11857         USE_ISOC_THREADS.
11858         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11859         USE_ISOC_AND_POSIX_THREADS.
11860         * lib/glthread/lock.c: Likewise.
11861         * lib/glthread/cond.h: Likewise.
11862         * lib/glthread/cond.c: Likewise.
11863         * lib/glthread/tls.h: Likewise.
11864         * lib/glthread/tls.c: Likewise.
11865         * lib/glthread/yield.h: Likewise.
11866         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11867         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11868         * lib/glthread/thread.c: Likewise.
11869         * lib/glthread/threadlib.c: Likewise.
11870         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11871         USE_ISOC_AND_POSIX_THREADS.
11872         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11873         USE_ISOC_AND_POSIX_THREADS.
11874         * tests/test-tls.c: Likewise.
11875         * tests/test-thread_create.c (main): Likewise.
11876         * tests/test-pthread-cond.c: Likewise.
11877         * tests/test-pthread-mutex.c: Likewise.
11878         * tests/test-pthread-once2.c: Likewise.
11879         * tests/test-pthread-rwlock.c: Likewise.
11880         * tests/test-pthread-tss.c: Likewise.
11881         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11882         USE_POSIX_THREADS.
11884 2019-11-24  Bruno Haible  <bruno@clisp.org>
11886         mbrtowc: Modernize autoconf test.
11887         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11888         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11889         try a UTF-8 locale.
11890         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11892 2019-11-24  Bruno Haible  <bruno@clisp.org>
11894         Fix errors in C++ mode on mingw.
11895         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11896         instead of _GL_CXXALIAS_SYS.
11897         * lib/signal.in.h (pthread_sigmask): Likewise.
11898         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11899         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11900         Likewise.
11901         * lib/wchar.in.h (btowc): Likewise.
11903 2019-11-24  Bruno Haible  <bruno@clisp.org>
11905         sys_time: Fix errors in C++ mode on mingw.
11906         * lib/sys_time.in.h (timeval): Restore the redirection
11907         '#define timeval rpl_timeval', for when the symbol timeval is being used
11908         outside the 'gnulib' namespace.
11909         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11910         'struct timeval'.
11912 2019-11-24  Bruno Haible  <bruno@clisp.org>
11914         iswctype: Fix errors in C++ mode on mingw.
11915         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11916         is 1.
11917         * lib/iswctype.c (iswctype): Add another implementation, for the
11918         GNULIB_defined_wint_t case.
11919         * modules/iswctype (configure.ac): Compile iswctype.c also if
11920         GNULIB_OVERRIDES_WINT_T is 1.
11922 2019-11-24  Bruno Haible  <bruno@clisp.org>
11924         windows-timedmutex: Fix errors in C++ mode on mingw.
11925         * lib/windows-timedmutex.h: Add closing brace.
11927 2019-11-24  Bruno Haible  <bruno@clisp.org>
11929         Fix errors in C++ mode on Cygwin.
11930         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11931         _GL_CXXALIAS_SYS.
11933 2019-11-24  Bruno Haible  <bruno@clisp.org>
11935         time_r: Fix for mingw (regression from 2019-11-16).
11936         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11937         AC_LINK_IFELSE test only if the function does not appear to exist.
11939 2019-11-24  Bruno Haible  <bruno@clisp.org>
11941         wcstok: Add tests.
11942         * tests/test-wcstok.c: New file.
11943         * modules/wcstok-tests: New file.
11945 2019-11-24  Bruno Haible  <bruno@clisp.org>
11947         wcstok: Work around wrong signature on native Windows.
11948         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11949         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11950         REPLACE_WCSTOK.
11951         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11952         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11953         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11954         * doc/posix-functions/wcstok.texi: Mention the problem.
11956 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11958         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11959         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11960         remove workaround for GCC bug 91450 as the bug should be fixed
11961         there too.
11963 2019-11-21  Bruno Haible  <bruno@clisp.org>
11965         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11966         Reported by Christian Biesinger <cbiesinger@google.com> in
11967         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11968         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11969         non-glibc systems.
11970         * lib/locale.in.h (localeconv, setlocale): Likewise.
11971         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11972         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11973         rint, round, trunc): Likewise.
11974         * lib/monetary.in.h (strfmon_l): Likewise.
11975         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11976         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11977         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11978         pthread_spin_destroy): Likewise.
11979         * lib/signal.in.h (raise, signal): Likewise.
11980         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11981         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11982         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11983         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11984         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11985         Likewise.
11986         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11987         Likewise.
11988         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11989         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11990         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11991         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11992         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11993         wcsftime): Likewise.
11994         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11996 2019-11-21  Bruno Haible  <bruno@clisp.org>
11998         Fix various errors in _GL_CXXALIAS_SYS invocations.
11999         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
12000         _GL_CXXALIAS_SYS.
12001         * lib/pthread.in.h (pthread_mutexattr_gettype,
12002         pthread_mutexattr_getrobust): Likewise.
12003         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
12004         * lib/sys_socket.in.h (recv, send): Likewise.
12005         * lib/unistd.in.h (getdtablesize): Likewise.
12006         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
12007         'struct timeval'.
12009 2019-11-21  Bruno Haible  <bruno@clisp.org>
12011         math tests: Update after 2019-08-28 change.
12012         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
12013         return type of 'bool', not 'int'.
12015 2019-11-21  Bruno Haible  <bruno@clisp.org>
12017         pthread-spin: Fix errors in C++ mode.
12018         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
12019         functions as nonexistent when <pthread.h> exists but does not define
12020         the pthread_spinlock_t type.
12022 2019-11-21  Bruno Haible  <bruno@clisp.org>
12024         pthread-mutex: Fix errors in C++ mode.
12025         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
12026         pthread_mutexattr_getrobust exists. If not, define
12027         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12028         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
12029         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
12030         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12031         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
12032         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
12033         definition.
12035 2019-11-19  Bruno Haible  <bruno@clisp.org>
12037         threads-h tests: Fix typo.
12038         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
12040 2019-11-19  Bruno Haible  <bruno@clisp.org>
12042         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
12043         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
12044         to 'const pthread_attr_t *'.
12045         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
12046         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
12048 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12050         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
12051         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
12052         work around GCC bug 91450 as the bug should be fixed there.
12054 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12056         glob: get closer to glibc glob.c
12057         Omit differences from glibc when the differences don’t matter.
12058         * lib/glob.c [_LIBC]: Include shlib-compat.h.
12059         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
12060         (glob_lstat): New function.
12061         (glob_in_dir): Use it.
12062         (GLOB_ATTRIBUTE): Define to empty if not already defined.
12063         Use changed.
12065 2019-11-18  Bruno Haible  <bruno@clisp.org>
12067         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
12068         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
12069         UINTPTR_MAX): Consider _WIN64.
12070         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
12071         a pointer.
12073 2019-11-18  Bruno Haible  <bruno@clisp.org>
12075         stdint: Fix value of WINT_MAX when we override wint_t.
12076         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
12077         when GNULIB_OVERRIDES_WINT_T is 1.
12079 2019-11-18  Bruno Haible  <bruno@clisp.org>
12081         vcs-to-changelog: New module.
12082         * modules/vcs-to-changelog: New file.
12083         * MODULES.html.sh (func_all_modules): Add it.
12085 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
12087         vcs-to-changelog: New script to generate ChangeLog-like output.
12088         Discussion:
12089         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
12090         * build-aux/vcs_to_changelog.py: New file.
12091         * build-aux/vcstocl/frontend_c.py: New file.
12092         * build-aux/vcstocl/misc_util.py: New file.
12093         * build-aux/vcstocl/vcs_git.py: New file.
12095 2019-11-18  Bruno Haible  <bruno@clisp.org>
12097         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
12098         Reported by Keith Marshall <keith@users.osdn.me> in
12099         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
12100         and <https://osdn.net/projects/mingw/ticket/39677>.
12101         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
12102         already been defined by mingw's <crtdefs.h>.
12104 2019-11-18  Bruno Haible  <bruno@clisp.org>
12106         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
12107         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
12108         conditionally enabled.
12110 2019-11-18  Bruno Haible  <bruno@clisp.org>
12112         gc: Mirror libgcrypt.m4 from libgcrypt.
12113         * config/srclistvars.sh (LIBGCRYPT): New variable.
12114         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
12116 2019-11-17  Bruno Haible  <bruno@clisp.org>
12118         locale, localename: Improve z/OS support.
12119         Reported by Daniel Richard G. in
12120         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
12121         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
12122         gl_LOCALE_H.
12123         (gl_LOCALE_H): Require it.
12124         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
12125         defined, don't even check for newlocale, duplocale, freelocale.
12126         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
12127         locale_t is not defined.
12129 2019-11-17  Bruno Haible  <bruno@clisp.org>
12131         havelib: Make libdirstems processing more flexible.
12132         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
12133         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
12134         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
12135         patch from 2017-02-19).
12136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
12137         libdirs, even when the first one exists as a directory.
12139 2019-11-17  Bruno Haible  <bruno@clisp.org>
12141         havelib: Match the bitness when searching for libraries.
12142         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
12143         acl_is_expected_elfclass.
12144         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
12145         file exists, in ELF, also test whether it has the ELF class that
12146         corresponds to the host's bitness.
12148 2019-11-17  Bruno Haible  <bruno@clisp.org>
12150         host-cpu-c-abi: Add support for unknown CPUs.
12151         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
12152         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
12153         32-bit or 64-bit.
12155 2019-11-17  Bruno Haible  <bruno@clisp.org>
12157         havelib: Remove redundant code.
12158         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
12159         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
12161 2019-11-17  Bruno Haible  <bruno@clisp.org>
12163         havelib: Fix a bug in dependency processing.
12164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
12165         of .la files, don't overwrite the value of additional_libdir for the
12166         next rounds.
12168 2019-11-16  Bruno Haible  <bruno@clisp.org>
12170         wctype-h: When overriding wint_t, override also the related functions.
12171         Reported by Christian Biesinger <cbiesinger@google.com> in
12172         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
12173         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
12174         REPLACE_ISWCNTRL to 1.
12175         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
12176         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
12177         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
12178         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
12179         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
12180         on mingw.
12181         * doc/posix-headers/wctype.texi: Likewise.
12183 2019-11-16  Bruno Haible  <bruno@clisp.org>
12185         time_r: Fix for mingw.
12186         Reported by Christian Biesinger <cbiesinger@google.com> in
12187         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
12188         * lib/time.in.h: On mingw, include <unistd.h>.
12189         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
12190         <time.h>. Test for localtime_r in a way that works when it is defined
12191         as an inline function.
12193 2019-11-13  Bruno Haible  <bruno@clisp.org>
12195         havelib: Revert last change.
12196         * build-aux/config.rpath: Revert last change. We can add msys2 support
12197         when it has been added to libtool.m4 upstream.
12199 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12201         config: add msys support
12202         Requested by Arnold Robbins in:
12203         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
12204         He also requested a change to config.guess, which I’ll forward
12205         upstream.
12206         * build-aux/ar-lib (func_file_conv):
12207         * build-aux/compile (func_file_conv):
12208         * build-aux/config.rpath (wl, with_gnu_ld)
12209         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
12210         Treat msys like cygwin.
12212 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12214         regex: now back in sync with glibc
12215         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
12216         regexec.c got merged into glibc and are now copies again.
12218 2019-10-27  Bruno Haible  <bruno@clisp.org>
12220         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
12221         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
12222         statement.
12223         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
12224         32-bit CPUs.
12226 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12228         timespec-add, timespec-sub: simplify
12229         * lib/timespec-add.c (timespec_add):
12230         * lib/timespec-sub.c (timespec_sub):
12231         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12232         work on unsigned integers.
12234 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12236         nstrftime: speed up integer overflow checking
12237         * lib/nstrftime.c: Include intprops.h.
12238         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
12239         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
12240         instead of doing it by hand.
12241         * modules/nstrftime (Depends-on): Add intprops.
12243         Port better to GCC under macOS
12244         Work around macOS header that has ‘#define __has_builtin(x) 0’
12245         when compiled by GCC.  Apple really, really doesn’t want you to
12246         use GCC, apparently.  Rroblem reported by Akim Demaille in:
12247         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
12248         The fix is to not trust __has_builtin when being compiled by
12249         recent-enough GCC.
12250         * lib/intprops.h (__has_builtin)
12251         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12252         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
12253         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
12254         Remove.  All uses removed.
12255         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
12256         directly, if defined and if not newer GCC.
12257         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
12258         New macro, that use __has_builtin directly, if defined and if
12259         not newer GCC.
12260         (assume): Use them.
12262 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
12264         maintainer-makefile: update rule for argmatch.
12265         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
12267 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
12269         bitset: let freeing functions accept NULL.
12270         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
12271         given NULL.
12272         * lib/bitset.h: Document that.
12273         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
12275 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12277         inttypes: use more-robust test for int range
12278         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
12279         Problem reported by Dagobert Michelsen in:
12280         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
12281         * lib/inttypes.in.h: Rely only on limits.h when checking
12282         int range.
12284 2019-10-15  Bruno Haible  <bruno@clisp.org>
12286         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
12287         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
12288         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
12289         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
12290         term_ostream_set_hyperlink): New functions.
12291         (term_styled_ostream_get_hyperlink_ref,
12292         term_styled_ostream_get_hyperlink_id,
12293         term_styled_ostream_set_hyperlink): New function aliases.
12295 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12297         update-copyright: use en dashes in .texi ranges
12298         * build-aux/update-copyright: Match year ranges like "1998--2019",
12299         which are used in the Autoconf manual.  Also, update ranges in
12300         .tex, .texi, and .texinfo files to use en dashes instead of
12301         hyphens.
12303 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12305         * config/srclist.txt: Remove posix/regex_internal.c for now.
12307 2019-10-13  Bruno Haible  <bruno@clisp.org>
12309         git-version-gen: Allow 'snapshot' as .tarball-version contents.
12310         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
12311         contents to the empty string.
12313 2019-10-12  Bruno Haible  <bruno@clisp.org>
12315         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
12316         * tests/test-intprops.c (main): Disable two more tests when using
12317         HP-UX cc.
12319 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12321         Simplify and regularize regex use of ‘assert’
12322         Also, tell GCC about the asserts even when compiling without
12323         debugging, to give it further optimization opportunities.
12324         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
12325         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
12326         (parse_expression, parse_bracket_exp):
12327         * lib/regex_internal.c (build_wcs_buffer)
12328         (build_wcs_upper_buffer, re_string_reconstruct)
12329         (re_string_context_at):
12330         * lib/regexec.c (re_search_stub, re_copy_regs)
12331         (re_search_internal, prune_impossible_nodes, check_matching)
12332         (check_halt_state_context, set_regs, sift_states_backward)
12333         (build_sifted_states, transit_state_mb, transit_state_bkref)
12334         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12335         (match_ctx_add_subtop):
12336         Use it instead of plain ‘assert’.
12338 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12340         regex: omit debug assignment when not debugging
12341         * lib/regexec.c (re_search_internal) [!DEBUG]:
12342         Remove unnecessary assignment.
12344         regex: tell compiler there’s at most 256 arcs out
12345         Partly this is to help the reader (and maybe help GCC);
12346         partly this is to pacify Coverity.
12347         * lib/regex_internal.h: Include verify.h.
12348         * lib/regexec.c (group_nodes_into_DFAstates):
12349         Tell the compiler that ndests cannot exceed SBC_MAX.
12350         * modules/regex (Depends-on): Add ‘verify’.
12352         regex: simplify by assuming C99
12353         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12354         temporarily.
12355         * lib/regex_internal.h (lock_define, re_match_context_t):
12356         Simplify by assuming C99 macros and const.
12357         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12358         initializers.  Remove unnecessary assignment, as mctx is now
12359         safely initialized earlier.
12361         regex: avoid copying of uninitialized storage
12362         * config/srclist.txt: Comment out regcomp.c temporarily.
12363         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12364         Initialize even when not checking for lint, as the behavior is
12365         arguably undefined otherwise and Coverity warns about it.
12367 2019-10-06  Bruno Haible  <bruno@clisp.org>
12369         access tests: Fix test failure when run as root.
12370         * tests/test-access.c: Include root-uid.h.
12371         (geteuid): Define fallback.
12372         (main): Don't expect that writing to a read-only file would fail when
12373         running as root. Also, remove the created files at the end.
12374         * modules/access-tests (Depends-on): Add root-uid.
12375         (configure.ac): Test whether geteuid exists.
12377 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12379         users.txt: add GNU nano
12380         Nano has been making use of gnulib since March 2017, version 2.8.0.
12382 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12384         bootstrap: simplify debugging of wget failures
12385         Problem reported by Tim Rühsen in:
12386         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12387         * build-aux/bootstrap (po_download_command_format):
12388         Invoke wget with -nv instead of -q, to make debugging easier.
12390 2019-09-29  Bruno Haible  <bruno@clisp.org>
12392         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12393         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12394         'const' attribute.
12396 2019-09-29  Bruno Haible  <bruno@clisp.org>
12398         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12399         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12401 2019-09-28  Bruno Haible  <bruno@clisp.org>
12403         Update comments that refer to POSIX.
12404         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12405         sentence about trailing slashes.
12406         * lib/fflush.c: Clarify the reasoning.
12407         * tests/test-fflush2.c: Cite the relevant sentence.
12409 2019-09-28  Bruno Haible  <bruno@clisp.org>
12411         access: Document limitations on Windows.
12412         Suggested by Zaretskii <eliz@gnu.org>.
12413         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12415 2019-09-28  Bruno Haible  <bruno@clisp.org>
12417         findprog-in: Fix comment.
12418         Reported by Eli Zaretskii <eliz@gnu.org>.
12419         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12420         condition.
12421         * lib/stat.c (rpl_stat): Fix typo in comment.
12422         * lib/utime.c (_gl_utimens_windows): Likewise.
12424 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12426         Update URLs and associated text
12427         (Thanks to Bruno Haible for proofreading this patch.)
12428         Prefer https: to http: in URLs where either will do, for the usual
12429         security reasons.  I also updated broken and/or moved URLs
12430         discovered during the process. In a few places I had to resort to
12431         archive.org, since I didn't find the originals elsewhere.
12433 2019-09-15  Paul Smith  <psmith@gnu.org>
12434             Bruno Haible  <bruno@clisp.org>
12436         findprog-in: Set errno when the search fails.
12437         * lib/findprog-in.c: Include <errno.h>.
12438         (find_in_given_path): Set errno before returning NULL.
12439         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12440         Define the term "slash".
12442 2019-09-15  Bruno Haible  <bruno@clisp.org>
12444         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12445         * modules/findprog (Depends-on): Add access.
12446         * modules/findprog-lgpl (Depends-on): Likewise.
12447         * modules/findprog-in (Depends-on): Likewise.
12449 2019-09-15  Bruno Haible  <bruno@clisp.org>
12451         access: Add tests.
12452         * tests/test-access.c: New file.
12453         * modules/access-tests: New file.
12455         access: New module.
12456         * lib/unistd.in.h (access): New declaration.
12457         * lib/access.c: New file.
12458         * m4/access.m4: New file.
12459         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12460         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12461         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12462         REPLACE_ACCESS.
12463         * modules/access: New file.
12464         * tests/test-unistd-c++.cc (access): Check signature.
12465         * doc/posix-functions/access.texi: Mention the new module.
12467 2019-09-15  Bruno Haible  <bruno@clisp.org>
12469         fcntl-h: Fix compilation error of creat.c on MSVC.
12470         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12471         defined.
12473 2019-09-15  Bruno Haible  <bruno@clisp.org>
12475         creat: Add tests.
12476         * tests/test-creat.c: New file, based on tests/test-open.h.
12477         * modules/creat-tests: New file.
12479         creat: New module.
12480         * lib/fcntl.in.h (creat): New declaration.
12481         * lib/creat.c: New file, based on lib/open.c.
12482         * m4/creat.m4: New file.
12483         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12484         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12485         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12486         * modules/open (Files): Add m4/open-slash.m4.
12487         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12488         REPLACE_CREAT.
12489         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12490         * modules/creat: New file.
12491         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12492         * doc/posix-functions/creat.texi: Mention the new module.
12494 2019-09-15  Bruno Haible  <bruno@clisp.org>
12496         open tests: Enhance test.
12497         * tests/test-open.h (test_open): Test the creation of an executable
12498         regular file. Also improve initial cleanup.
12500 2019-09-15  Bruno Haible  <bruno@clisp.org>
12502         intprops tests: Avoid build failure with HP-UX cc.
12503         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12504         "error 4018: Macro param too large after substitution - use -H option.".
12506 2019-09-14  Bruno Haible  <bruno@clisp.org>
12508         Make autoconf tests work with -Werror=implicit-function-declaration.
12509         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12510         towupper() declaration.
12511         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12512         declaration.
12514 2019-09-14  Bruno Haible  <bruno@clisp.org>
12516         findprog-in: Better mimic the system on native Windows.
12517         Reported by Paul Smith <psmith@gnu.org>.
12518         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12519         non-empty suffixes when the file name already contains a '.'.
12521 2019-09-10  Bruno Haible  <bruno@clisp.org>
12523         wctob: Fix autoconf test.
12524         Based on patch by Florian Weimer <fweimer@redhat.com>.
12525         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12527 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12529         xhash: provide hash_xinitialize.
12530         Suggested by Egor Pugin <egor.pugin@gmail.com>
12531         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12532         * modules/xhash, lib/xhash.c: New.
12533         * lib/hash.h (hash_xinitialize): New.
12535 2019-09-09  Bruno Haible  <bruno@clisp.org>
12537         findprog-in: Make exec optimization optional.
12538         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12539         (find_in_given_path): Add optimize_for_exec parameter.
12540         * lib/findprog-in.c (find_in_given_path): Likewise.
12542 2019-09-08  Bruno Haible  <bruno@clisp.org>
12544         Add option to assume the best, not the worst, when cross-compiling.
12545         Suggested by Jonas Termansen <sortie@maxsi.org>.
12546         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12547         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12548         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12549         lt_cv_sys_argz_works.
12550         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12551         ac_cv_func_calloc_0_nonnull.
12552         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12553         --enable-cross-guesses for gl_cv_func_realpath_works.
12554         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12555         gl_cv_func_cbrtl_ieee.
12556         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12557         gl_cv_func_ceil_ieee.
12558         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12559         gl_cv_func_ceilf_ieee.
12560         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12561         gl_cv_func_ceill_ieee.
12562         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12563         ac_cv_func_chown_works.
12564         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12565         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12566         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12567         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12568         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12569         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12570         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12571         gl_cv_func_expl_works.
12572         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12573         gl_cv_func_expm1_ieee.
12574         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12575         gl_cv_func_expm1l_works.
12576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12577         gl_cv_func_open_directory_works.
12578         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12579         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12580         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12581         gl_cv_func_fchownat_empty_filename_works.
12582         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12583         gl_cv_func_fdopendir_works.
12584         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12585         gl_cv_func_floor_ieee.
12586         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12587         gl_cv_func_floorf_ieee.
12588         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12589         gl_cv_func_fma_works.
12590         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12591         gl_cv_func_fmaf_works.
12592         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12593         gl_cv_func_fmal_works.
12594         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12595         gl_cv_func_fmod_ieee.
12596         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12597         gl_cv_func_fmodf_ieee.
12598         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12599         gl_cv_func_fmodl_ieee.
12600         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12601         gl_cv_func_fpurge_works.
12602         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12603         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12604         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12605         gl_cv_func_getcwd_null.
12606         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12608         gl_cv_func_working_getdelim.
12609         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12610         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12611         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12612         gl_cv_func_getgroups_works.
12613         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12614         am_cv_func_working_getline.
12615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12616         for gl_cv_func_getopt_gnu.
12617         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12618         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12619         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12620         gl_cv_func_hypot_ieee.
12621         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12622         gl_cv_func_hypotf_ieee.
12623         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12624         gl_cv_func_hypotl_ieee.
12625         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12626         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12627         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12628         gl_cv_func_link_works.
12629         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12630         gl_cv_func_linkat_slash.
12631         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12632         gl_cv_func_log_ieee.
12633         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12634         gl_cv_func_logf_ieee.
12635         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12636         gl_cv_func_logl_works.
12637         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12638         gl_cv_func_log10_ieee.
12639         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12640         gl_cv_func_log10f_ieee.
12641         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12642         gl_cv_func_log10l_works.
12643         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12644         gl_cv_func_log1p_ieee.
12645         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12646         gl_cv_func_log1pf_ieee.
12647         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12648         gl_cv_func_log1pl_ieee.
12649         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12650         gl_cv_func_log2_ieee.
12651         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12652         gl_cv_func_log2f_ieee.
12653         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12654         --enable-cross-guesses for
12655         gl_cv_func_lstat_dereferences_slashed_symlink.
12656         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12657         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12658         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12659         gl_cv_C_locale_sans_EILSEQ.
12660         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12661         gl_cv_func_memchr_works.
12662         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12663         gl_cv_func_memmem_works_always.
12664         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12665         gl_cv_func_memmem_works_fast.
12666         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12667         gl_cv_func_mkdir_trailing_slash_works,
12668         gl_cv_func_mkdir_trailing_dot_works.
12669         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12670         gl_cv_func_mkfifo_works.
12671         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12672         gl_cv_func_mknod_works.
12673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12674         gl_cv_func_working_mkstemp.
12675         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12676         gl_cv_func_working_mktime.
12677         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12678         gl_cv_func_modf_ieee.
12679         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12680         gl_cv_func_modff_ieee.
12681         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12682         gl_cv_func_modfl_ieee.
12683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12684         gl_cv_func_nanosleep.
12685         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12686         gl_cv_func_perror_works.
12687         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12688         gl_cv_func_printf_sizes_c99.
12689         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12690         gl_cv_func_printf_infinite.
12691         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12692         gl_cv_func_printf_infinite_long_double.
12693         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12694         gl_cv_func_printf_directive_a.
12695         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12696         gl_cv_func_printf_directive_f.
12697         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12698         gl_cv_func_printf_flag_zero.
12699         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12700         gl_cv_func_printf_enomem.
12701         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12702         gl_cv_func_snprintf_truncation_c99.
12703         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12704         gl_cv_func_snprintf_retval_c99.
12705         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12706         gl_cv_func_snprintf_directive_n.
12707         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12708         gl_cv_func_vsnprintf_zerosize_c99.
12709         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12710         gl_cv_func_pselect_detects_ebadf.
12711         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12712         Obey --enable-cross-guesses for
12713         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12714         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12715         gl_cv_func_ptsname_sets_errno.
12716         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12717         gl_cv_func_svid_putenv.
12718         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12719         gl_cv_func_readlink_works.
12720         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12721         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12722         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12723         gl_cv_func_re_compile_pattern_working.
12724         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12725         gl_cv_func_remainder_ieee.
12726         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12727         gl_cv_func_remainderf_ieee.
12728         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12729         gl_cv_func_remainderl_ieee.
12730         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12731         gl_cv_func_rintl_works.
12732         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12733         gl_cv_func_rmdir_works.
12734         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12735         gl_cv_func_round_ieee.
12736         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12737         gl_cv_func_roundf_ieee.
12738         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12739         gl_cv_func_roundl_ieee.
12740         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12741         gl_cv_func_select_detects_ebadf.
12742         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12743         gl_cv_func_setenv_works.
12744         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12745         gl_cv_func_unsetenv_works.
12746         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12747         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12748         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12749         gl_cv_func_sleep_works.
12750         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12751         gl_cv_func_stat_file_slash.
12752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12753         gl_cv_func_stpncpy.
12754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12755         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12756         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12757         gl_cv_func_strcasestr_linear.
12758         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12759         gl_cv_func_working_strerror.
12760         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12761         gl_cv_func_strerror_0_works.
12762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12763         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12764         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12765         gl_cv_func_strstr_works_always.
12766         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12767         gl_cv_func_strstr_linear.
12768         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12769         gl_cv_func_strtod_works.
12770         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12771         gl_cv_func_strtold_works.
12772         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12773         gl_cv_func_symlink_works.
12774         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12775         gl_cv_func_symlinkat_works.
12776         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12777         gl_cv_func_trunc_ieee.
12778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12779         gl_cv_func_truncf_ieee.
12780         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12781         gl_cv_func_truncl_ieee.
12782         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12783         gl_cv_func_tzset_clobber.
12784         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12785         gl_cv_func_ungetc_works.
12786         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12787         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12788         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12789         gl_cv_func_usleep_works.
12790         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12791         gl_cv_func_futimesat_works.
12792         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12793         gl_cv_func_working_utimes.
12794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12795         gl_cv_func_wcwidth_works.
12796         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12797         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12798         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12799         links for testing. Obey --enable-cross-guesses for
12800         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12801         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12803 2019-09-08  Bruno Haible  <bruno@clisp.org>
12805         Clarify that cross-compilation guesses are guesses.
12806         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12807         cross-compiling.
12809 2019-09-08  Bruno Haible  <bruno@clisp.org>
12811         chown: Fix configure output (regression from 2019-03-23).
12812         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12813         gl_cv_func_chown_follows_symlink variable.
12815 2019-09-08  Bruno Haible  <bruno@clisp.org>
12817         findprog-in: New module.
12818         Suggested by Paul Smith <psmith@gnu.org>.
12819         * lib/findprog.h (find_in_given_path): New declaration.
12820         * lib/findprog-in.c: New file, based on lib/findprog.c.
12821         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12822         * modules/findprog-in: New file.
12824 2019-09-08  Bruno Haible  <bruno@clisp.org>
12826         findprog: Remove unused dependency.
12827         * modules/findprog (Depends-on): Remove strdup.
12829 2019-09-08  Bruno Haible  <bruno@clisp.org>
12831         findprog: Remove test that is obsolete since 2006-04-24.
12832         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12834 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12836         bitset: style changes
12837         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12838         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12839         xzalloc to xcalloc.
12840         Suggested by Paul Eggert.
12842 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12844         bitset: check memory allocation
12845         Reported by 江 祖铭 (Zu-Ming Jiang).
12846         With help from Paul Eggert.
12847         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12848         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12849         instead of realloc.
12850         When shrinking, accept failures.
12851         * lib/bitset/vector.c (vbitset_resize): Likewise.
12853 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12855         scratch_buffer: sync from glibc
12856         * config/srclist.txt: Add the scratch_buffer source
12857         code from glibc, since these should be in sync.
12858         Autoupdate.
12860 2019-09-07  Bruno Haible  <bruno@clisp.org>
12862         doc: Update for glibc 2.30.
12863         * doc/glibc-functions/gettid.texi: New file.
12864         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12865         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12866         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12867         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12868         * doc/glibc-functions/sem_clockwait.texi: New file.
12869         * doc/glibc-functions/tgkill.texi: New file.
12870         * doc/glibc-functions/twalk_r.texi: New file.
12871         * doc/gnulib.texi: Include them.
12872         (Glibc semaphore.h): New section.
12873         * doc/pastposix-functions/h_errno.texi: Update.
12874         * doc/posix-functions/*.texi: Likewise.
12876 2019-09-06  Bruno Haible  <bruno@clisp.org>
12878         symlink tests: Avoid test failure on Linux with Lustre file system.
12879         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12880         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12881         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12883 2019-09-01  Bruno Haible  <bruno@clisp.org>
12885         gitsub.sh: Add support for shallow-cloning of subdirectories.
12886         * top/gitsub.sh (func_usage): Document allowed git options with
12887         'git pull'.
12888         (func_pull): Accept GIT_OPTIONS argument.
12889         (pull): Parse git options before complaining about too many arguments.
12890         Pass the git options to func_pull.
12892 2019-08-29  Bruno Haible  <bruno@clisp.org>
12894         lock: Fix cross-compilation guesses.
12895         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12896         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12897         platforms.
12899 2019-08-28  Bruno Haible  <bruno@clisp.org>
12901         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12902         Reported by Martin Storsjö <martin@martin.st> in
12903         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12904         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12905         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12906         files from GCC 6 or newer, use an override through '#define', because
12907         the inline definitions in the platform's <cmath> cannot be overridden
12908         in another way.
12910 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12912         Revert macOS INT_MULTIPLY_WRAPV patch
12913         Problem reported by Bruno Haible in:
12914         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12915         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12916         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12917         Go back to working around the Clang bug on macOS.
12919 2019-08-27  Bruno Haible  <bruno@clisp.org>
12921         libtool-next-version: Fix error output.
12922         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12923         name.
12925 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12927         Speed up INT_MULTIPLY_WRAPV on macOS
12928         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12929         Mattias Engdegård says it’s safe to assume the relevant library
12930         is always available there.
12931         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12932         New temporary internal macro.
12933         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12934         No need to work around the Clang bug on macOS.
12936 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12938         intprops.h, verify.h: port better to clang
12939         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12940         with Clang.  Problem reported privately by Mattias Engdegård.
12941         Also, insulate intprops.h and verify.h better against each other’s
12942         definitions of __has_builtin on non-Clang hosts.
12943         * lib/intprops.h (__has_builtin): Define a temporary substitute
12944         if __has_builtin is not already defined.
12945         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12946         New temporary internal macros.
12947         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12948         Now two separate macros, replacing the old
12949         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12950         __builtin_mul_overflow is like the rest.  All uses changed.
12951         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12952         Adjust to above changes.
12953         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12954         longer relevant.  All uses changed.
12955         * lib/verify.h (__has_builtin): Treat like intprops.h,
12956         so that the two .h files do not collide with each other.
12957         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12958         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12960 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12962         intprops: say why not Clang __builtin_add_overflow
12963         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12964         Mention Clang in comment, responding to a query from
12965         Mattias Engdegård.
12967 2019-08-24  Bruno Haible  <bruno@clisp.org>
12969         doc: Document most of the files outside of modules.
12970         * doc/gnulib.texi (Build Infrastructure Files,
12971         Release Management Files): New chapters.
12973 2019-08-24  Bruno Haible  <bruno@clisp.org>
12975         bootstrap: Keep in sync with the 'gettext' module.
12976         Reported by Assaf Gordon in
12977         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12978         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12979         * build-aux/po/remove-potcdate.sin: Likewise.
12981 2019-08-24  Bruno Haible  <bruno@clisp.org>
12983         crypto/gc-sha512: Add tests.
12984         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12985         * modules/crypto/gc-sha512-tests: New file.
12987         crypto/gc-sha256: Add tests.
12988         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12989         * modules/crypto/gc-sha256-tests: New file.
12991         crypto/gc-sha256, crypto/gc-sha512: New modules.
12992         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12993         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12994         (MAX_DIGEST_SIZE): Set to 64.
12995         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12996         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12997         (gc_sha256, gc_sha512): New functions.
12998         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12999         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
13000         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
13002 2019-08-24  Bruno Haible  <bruno@clisp.org>
13004         crypto/gc-sha1 tests: Improve output when the test fails.
13005         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
13006         output.
13008 2019-08-24  Bruno Haible  <bruno@clisp.org>
13010         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
13011         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
13012         LIBGCRYPT_HAS_MD_SM3.
13013         * lib/gc-libgcrypt.c: Include sm3.h.
13014         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
13015         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
13016         implementation if libgcrypt does not support SM3.
13018 2019-08-24  Bruno Haible  <bruno@clisp.org>
13020         crypto/gc-md2: Optimize and clarify code.
13021         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
13022         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
13023         is not needed.
13025 2019-08-24  Bruno Haible  <bruno@clisp.org>
13027         crypto/gc-md2: Add comment.
13028         * lib/gc-libgcrypt.c: Add comment.
13030 2019-08-24  Bruno Haible  <bruno@clisp.org>
13032         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
13033         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
13034         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
13035         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
13036         variable.
13038 2019-08-24  Bruno Haible  <bruno@clisp.org>
13040         crypto/gc: Fix link error with --with-libgcrypt.
13041         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
13042         AC_LIB_HAVE_LINKFLAGS invocation.
13044 2019-08-24  Bruno Haible  <bruno@clisp.org>
13046         crypto/gc: Access the module indicators correctly.
13047         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
13048         * lib/gc-libgcrypt.c: Likewise.
13050 2019-08-24  Bruno Haible  <bruno@clisp.org>
13052         crypto/gc: Fix configuration with --with-libgcrypt.
13053         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
13054         * modules/crypto/gc (Files): Add it.
13055         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
13057 2019-08-24  Bruno Haible  <bruno@clisp.org>
13059         Remove unused file.
13060         * m4/stat-macros.m4: Remove file.
13062 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13064         New strip-trailing-space option for srclist-update
13065         * config/srclist-update (fixfile): Support new option.
13066         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
13067         Use it.
13069 2019-08-20  Eric Blake  <eblake@redhat.com>
13071         accept4: Support SOCK_NONBLOCK, if defined
13072         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
13074         accept4: Fix compilation when native accept4() exists.
13075         Reported by Richard W.M. Jones <rjones@redhat.com> in
13076         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
13077         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
13079 2019-08-18  Bruno Haible  <bruno@clisp.org>
13081         Defeat -flto GCC optimization in math autoconf tests.
13082         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
13083         at <https://savannah.gnu.org/bugs/?56109>.
13084         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
13085         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
13086         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13087         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13088         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13089         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
13090         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13091         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13092         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13093         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13094         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13095         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13097 2019-08-17  Bruno Haible  <bruno@clisp.org>
13099         windows-spin: Implement declared functions.
13100         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13101         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
13102         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
13103         name.
13105 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13107         intprops: port to Oracle Developer Studio 12.6
13108         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
13109         typos that were in a section not compiled by GCC.
13111 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13113         intprops: support uchar, ushort _WRAPV dests
13114         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
13115         when __builtin_add_overflow etc. and _Generic are not used.
13116         (_GL_INT_OP_WRAPV): Use it to support destinations that
13117         are unsigned char or unsigned short, even in compilers
13118         that lack __typeof__ and are not C11-compatible.
13120         intprops: pacify picky GCC
13121         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
13122         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
13123         possibly-incorrect result.
13124         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
13125         about (A) used as a boolean, when A is an expression like 3 * 4.
13127         intprops: support unsigned *_WRAPV results
13128         Add support for unsigned, unsigned long, and unsigned long long
13129         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
13130         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
13131         bug with unsigned inputs reported by Eli Zaretskii in:
13132         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
13133         * config/srclist.txt: Break the glibc connection for intprops.h
13134         temporarily, while more testing is done in Gnulib-using apps.
13135         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13136         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
13137         Support unsigned results no narrower than unsigned int.  Report
13138         overflow correctly if some arguments are unsigned.
13139         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
13140         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
13141         the right thing with narrow args.
13142         (_GL_INT_OP_CALC1): Remove.  All callers removed.
13143         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
13144         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
13145         * tests/test-intprops.c: Check for bugs and test new behavior.
13147 2019-08-14  Bruno Haible  <bruno@clisp.org>
13149         get_progname_of: New module.
13150         * lib/get_progname_of.h: New file.
13151         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
13152         * lib/getprogname.c (getprogname): Tweak coding style.
13153         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
13154         * modules/get_progname_of: New file.
13156 2019-08-14  Bruno Haible  <bruno@clisp.org>
13158         get_ppid_of: New module.
13159         * lib/get_ppid_of.h: New file.
13160         * lib/get_ppid_of.c: New file.
13161         * modules/get_ppid_of: New file.
13163 2019-08-13  Bruno Haible  <bruno@clisp.org>
13165         libtextstyle-optional tests: Support the NO_COLOR environment variable.
13166         * tests/test-libtextstyle.c (main): Do not emit styling when the
13167         environment variable NO_COLOR is set.
13169 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13171         verify: improve diagnostic quality in recent GCC
13172         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
13173         useful line number containing the top-level caller of the macro.
13174         So, bring back the older way of issuing a diagnostic containing
13175         the top-level call’s arg, so that it is easier to diagnose
13176         ‘verify’ failures with recent GCC.
13177         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
13178         Bring back DIAGNOSTIC arg.  All callers changed.
13179         (verify): Just use _GL_VERIFY.
13181 2019-08-11  Bruno Haible  <bruno@clisp.org>
13183         localcharset: Add more aliases for OS/2.
13184         Based on patch by KO Myung-Hun <komh78@gmail.com> in
13185         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
13186         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
13188 2019-08-10  Eric Blake  <eblake@redhat.com>
13190         configmake: Update advice on usage.
13191         * modules/configmake (Include): No longer necessary to include
13192         last, since configmake.h itself worries about collision avoidance.
13194 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
13196         parse-datetime: fix 'T' military timezone handling
13197         * lib/parse-datetime.y (zone):
13198         follow-up to the previous commit: the 'T' case is handled outside the
13199         conversion table (used as either military timezone UTC-7 or ISO8601
13200         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
13201         timezone letters.
13203 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13205         parse-datetime: fix military timezone letters
13206         Problem and trivial fix reported by Neil Hoggarth in:
13207         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
13208         * lib/parse-datetime.y (military_table):
13209         Do it the right way, not the RFC 822 way.
13211 2019-08-08  Eric Blake  <eblake@redhat.com>
13213         configmake: Avoid namespace pollution issue on mingw.
13214         * modules/configmake (Makefile.am): If the project uses
13215         <winsock2.h>, include that header before defining DATADIR.
13217 2019-07-28  Bruno Haible  <bruno@clisp.org>
13219         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
13220         * tests/test-mbrtowc.c (main): Fix expected value of wc.
13222 2019-07-24  Bruno Haible  <bruno@clisp.org>
13224         pthread-h: Fix definitions of types and macros on mingw.
13225         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
13226         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
13227         not in use.
13228         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
13229         'pthread-once' is not in use.
13230         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
13231         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
13232         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
13233         in use.
13234         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
13235         Define also when module 'pthread-rwlock' is not in use.
13236         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
13237         also when module 'pthread-cond' is not in use.
13238         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
13239         'pthread-tss' is not in use.
13240         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
13241         use.
13243 2019-07-24  Simon Josefsson  <simon@josefsson.org>
13245         crypto/gc: Cope with libgcrypt without SM3.
13246         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
13248 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13250         backupfile: fix resource leak on memory failure
13251         Problem found by Coverity (CID 1484214).
13252         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
13254 2019-07-22  Bruno Haible  <bruno@clisp.org>
13256         Avoid missing-declarations warning in various tests.
13257         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
13258         test6, test_optional, test7, test8, test9, test10, test11, test12,
13259         test13, test14, test15, test_fun): Declare static.
13260         * tests/test-cnd.c (test_cnd_wait): Likewise.
13261         * tests/test-cond.c (test_cond): Likewise.
13263 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13265         pthread tests: Avoid missing-declarations warning.
13266         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
13268 2019-07-19  Bruno Haible  <bruno@clisp.org>
13270         parse-datetime: Avoid warnings from bison versions >= 3.3.
13271         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
13272         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
13274 2019-07-19  Bruno Haible  <bruno@clisp.org>
13276         parse-datetime: Require Bison 2.4 or newer.
13277         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
13278         Code taken from gettext's intl.m4.
13279         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
13280         of YACC.
13282 2019-07-19  Bruno Haible  <bruno@clisp.org>
13284         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
13285         * lib/areadlink-with-size.c: Include <string.h>.
13286         * lib/areadlinkat-with-size.c: Likewise.
13287         * lib/xgethostname.c: Likewise.
13288         * lib/xgetdomainname.c: Likewise.
13290 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
13292         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
13293         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
13294         "%pure-parser".  The former is available since Bison 2.3b (2008),
13295         while the latter is marked as obsolete since version 3.4 (May 2019).
13297 2019-07-16  Bruno Haible  <bruno@clisp.org>
13299         update-copyright: Make it work again (regression from 2019-06-15).
13300         Reported by Brian C. Lane <bcl@redhat.com>.
13301         * build-aux/update-copyright: Add back the -0777, -p, -i options.
13303 2019-07-14  Bruno Haible  <bruno@clisp.org>
13305         doc: Update info about <pthread.h>.
13306         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
13307         of 'pthread'.
13309 2019-07-14  Bruno Haible  <bruno@clisp.org>
13311         pthread_sigmask tests: Use new multithread modules.
13312         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
13313         glthread/thread.h.
13314         (main_thread, killer_thread): Change type to pthread_t.
13315         (main): Update accordingly.
13316         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
13317         thread.
13319 2019-07-14  Bruno Haible  <bruno@clisp.org>
13321         pthread-tss: Add tests.
13322         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
13323         tests/test-tss.c.
13324         * modules/pthread-tss-tests: New file.
13326 2019-07-14  Bruno Haible  <bruno@clisp.org>
13328         pthread-cond: Add tests.
13329         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13330         tests/test-cnd.c.
13331         * modules/pthread-cond-tests: New file.
13333 2019-07-14  Bruno Haible  <bruno@clisp.org>
13335         pthread-rwlock: Add tests.
13336         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13337         * modules/pthread-rwlock-tests: New file.
13339 2019-07-14  Bruno Haible  <bruno@clisp.org>
13341         pthread-mutex: Add tests.
13342         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13343         tests/test-mtx.c.
13344         * modules/pthread-mutex-tests: New file.
13346 2019-07-14  Bruno Haible  <bruno@clisp.org>
13348         pthread-once: Add tests.
13349         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13350         tests/test-call_once.c.
13351         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13352         tests/test-mtx.c.
13353         * modules/pthread-once-tests: New file.
13355 2019-07-14  Bruno Haible  <bruno@clisp.org>
13357         pthread-thread: Add tests.
13358         * tests/test-pthread-thread.c: New file, based on
13359         tests/test-thread_create.c and tests/test-thrd_create.c.
13360         * modules/pthread-thread-tests: New file.
13362 2019-07-14  Bruno Haible  <bruno@clisp.org>
13364         pthread: Turn into a convenience module.
13365         * lib/pthread.in.h: Remove declarations for extern inline functions.
13366         * lib/pthread.c: Remove file.
13367         * modules/pthread (Files): Remove it.
13368         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13369         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13370         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13371         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13372         GNULIB_PTHREAD.
13373         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13375 2019-07-14  Bruno Haible  <bruno@clisp.org>
13377         pthread-spin: New module.
13378         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13379         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13380         inline definitions.
13381         * lib/pthread-spin.c: New file.
13382         * m4/pthread-spin.m4: New file.
13383         * modules/pthread-spin: New file.
13384         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13385         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13386         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13387         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13388         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13390 2019-07-14  Bruno Haible  <bruno@clisp.org>
13392         pthread-tss: New module.
13393         * lib/pthread-tss.c: New file.
13394         * m4/pthread-tss.m4: New file.
13395         * modules/pthread-tss: New file.
13396         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13397         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13398         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13399         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13401 2019-07-14  Bruno Haible  <bruno@clisp.org>
13403         pthread-cond: New module.
13404         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13405         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13406         * lib/pthread-cond.c: New file.
13407         * m4/pthread-cond.m4: New file.
13408         * modules/pthread-cond: New file.
13409         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13410         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13411         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13412         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13413         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13414         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13415         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13416         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13418 2019-07-14  Bruno Haible  <bruno@clisp.org>
13420         pthread-rwlock: New module.
13421         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13422         * m4/pthread-rwlock.m4: New file.
13423         * modules/pthread-rwlock: New file.
13424         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13425         and the Android problem.
13426         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13427         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13428         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13429         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13430         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13431         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13432         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13433         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13434         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13435         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13437 2019-07-14  Bruno Haible  <bruno@clisp.org>
13439         pthread-mutex: New module.
13440         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13441         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13442         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13443         pthread_mutex_unlock): Remove inline definitions.
13444         * lib/pthread-mutex.c: New file.
13445         * m4/pthread-mutex.m4: New file.
13446         * modules/pthread-mutex: New file.
13447         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13448         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13449         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13450         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13451         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13452         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13453         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13454         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13455         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13456         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13457         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13458         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13460 2019-07-14  Bruno Haible  <bruno@clisp.org>
13462         pthread-once: New module.
13463         * lib/pthread-once.c: New file.
13464         * m4/pthread-once.m4: New file.
13465         * modules/pthread-once: New file.
13466         * doc/posix-functions/pthread_once.texi: Mention the new module.
13468 2019-07-14  Bruno Haible  <bruno@clisp.org>
13470         pthread-thread: New module.
13471         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13472         inline definitions.
13473         * lib/pthread-thread.c: New file.
13474         * m4/pthread-thread.m4: New file.
13475         * modules/pthread-thread: New file.
13476         * doc/posix-functions/pthread_create.texi: Mention the new module.
13477         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13478         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13479         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13480         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13481         * doc/posix-functions/pthread_self.texi: Likewise.
13482         * doc/posix-functions/pthread_equal.texi: Likewise.
13483         * doc/posix-functions/pthread_detach.texi: Likewise.
13484         * doc/posix-functions/pthread_join.texi: Likewise.
13485         * doc/posix-functions/pthread_exit.texi: Likewise.
13487 2019-07-14  Bruno Haible  <bruno@clisp.org>
13489         pthread-h: Prepare for adding new modules.
13490         * lib/pthread.in.h: Define the types and macros for each of the
13491         facilities separately.
13492         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13493         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13494         HAVE_PTHREAD_PROCESS_SHARED.
13495         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13496         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13497         HAVE_PTHREAD_PROCESS_SHARED.
13498         * modules/pthread-h (Makefile.am): Substitute
13499         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13500         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13502 2019-07-14  Bruno Haible  <bruno@clisp.org>
13504         pthread-h: Add declarations of essential pthread functions.
13505         * lib/pthread.in.h: Include snippets.
13506         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13507         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13508         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13509         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13510         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13511         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13512         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13513         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13514         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13515         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13516         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13517         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13518         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13519         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13520         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13521         pthread_key_create, pthread_setspecific, pthread_getspecific,
13522         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13523         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13524         declarations.
13525         (pthread_mutex_timedlock): Move declaration.
13526         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13527         declared.
13528         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13529         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13530         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13531         HAVE_* and REPLACE_* variables for the new functions.
13532         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13533         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13534         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13535         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13536         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13537         variables for the new functions. Split the sed script, to avoid the
13538         limit of 99 commands of HP-UX sed.
13539         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13541 2019-07-14  Bruno Haible  <bruno@clisp.org>
13543         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13544         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13545         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13546         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13547         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13548         * modules/pthread-h (Depends-on): Add threadlib.
13549         (Link): Change to $(LIBTHREAD).
13550         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13551         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13553 2019-07-14  Bruno Haible  <bruno@clisp.org>
13555         pthread-h: Add C++ tests.
13556         * tests/test-pthread-c++.cc: New file.
13557         * modules/pthread-h-c++-tests: New file.
13559 2019-07-14  Bruno Haible  <bruno@clisp.org>
13561         pthread-h: Add tests.
13562         * tests/test-pthread.c: New file.
13563         * modules/pthread-h-tests: New file.
13565 2019-07-14  Bruno Haible  <bruno@clisp.org>
13567         pthread-h: New module.
13568         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13569         is 1.
13570         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13571         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13572         <pthread.h> pollutes the namespace; instead, prepare for generating a
13573         pthread.h always. Substitute HAVE_PTHREAD_H here.
13574         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13575         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13576         * modules/pthread-h: New file, based on modules/pthread.
13577         * modules/pthread: Rely on 'pthread-h'.
13578         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13579         Update.
13580         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13581         pthread.
13583 2019-07-14  Bruno Haible  <bruno@clisp.org>
13585         sched_yield: New module.
13586         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13587         (sched_yield): New declaration.
13588         * lib/sched_yield.c: New file.
13589         * m4/sched_yield.m4: New file.
13590         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13591         provide a replacement sched.h always. Test whether sched_yield is
13592         declared.
13593         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13594         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13595         (Makefile.am): Provide a replacement sched.h always. Substitute
13596         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13597         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13598         * modules/sched_yield: New file.
13599         * doc/posix-functions/sched_yield.texi: Mention the new module.
13601 2019-07-14  Bruno Haible  <bruno@clisp.org>
13603         windows-spin: New module.
13604         * lib/windows-spin.h: New file.
13605         * lib/windows-spin.c: New file.
13606         * modules/windows-spin: New file.
13608 2019-07-14  Bruno Haible  <bruno@clisp.org>
13610         windows-timedrwlock: New module.
13611         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13612         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13613         windows-cond.c.
13614         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13615         redefinition conflict with windows-timedrwlock.h.
13616         * modules/windows-timedrwlock: New file.
13618 2019-07-14  Bruno Haible  <bruno@clisp.org>
13620         windows-rwlock: New module.
13621         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13622         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13623         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13624         windows-initguard.h.
13625         (gl_rwlock_t): Define using glwthread_rwlock_t.
13626         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13627         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13628         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13629         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13630         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13631         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13632         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13633         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13634         glthread_rwlock_destroy_func): Remove declarations.
13635         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13636         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13637         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13638         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13639         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13640         functions.
13641         * modules/windows-rwlock: New file.
13642         * modules/lock (Depends-on): Add windows-rwlock.
13644 2019-07-14  Bruno Haible  <bruno@clisp.org>
13646         windows-thread: Add support for creating a thread in detached state.
13647         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13648         (glwthread_thread_create): Add attr argument.
13649         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13650         * lib/glthread/thread.h (glthread_create): Update.
13651         * lib/thrd.c (thrd_create): Update.
13653 2019-07-14  Bruno Haible  <bruno@clisp.org>
13655         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13656         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13657         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13658         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13659         * lib/windows-mutex.h: Update.
13660         * lib/windows-recmutex.h: Likewise.
13661         * lib/windows-timedmutex.h: Likewise.
13662         * lib/windows-timedrecmutex.h: Likewise.
13663         * lib/windows-cond.h: Likewise.
13664         * lib/glthread/lock.h: Likewise.
13665         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13666         lib/windows-spinlock.h.
13667         * modules/windows-recmutex (Files): Likewise.
13668         * modules/windows-timedmutex (Files): Likewise.
13669         * modules/windows-timedrecmutex (Files): Likewise.
13670         * modules/windows-cond (Files): Likewise.
13671         * modules/threads-h (Files): Likewise.
13673 2019-07-14  Bruno Haible  <bruno@clisp.org>
13675         doc: Fix info about pthread API in HP-UX.
13676         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13678 2019-07-14  Bruno Haible  <bruno@clisp.org>
13680         threads-h: Fix generation of threads.h.
13681         * modules/threads-h (Makefile.am): Insert the required header file
13682         snippets.
13684 2019-07-09  Bruno Haible  <bruno@clisp.org>
13686         striconveh test: Fix a compilation failure when iconv is not available.
13687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13688         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13689         HAVE_ICONV.
13691 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13693         argmatch: adjust columns for help2man.
13694         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13695         requires column 20 or more, return 20.
13697 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13699         areadlink-with-size: avoid realloc when size==0
13700         * lib/areadlink-with-size.c (areadlink_with_size):
13701         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13702         Reallocate at the end to the actual size, to avoid memory waste,
13703         as suggested by Bruno Haible.  But when the guessed size is zero -
13704         useful when the size is unknown - do the initial small readlink
13705         into the stack, to avoid that realloc in the usual case.
13707 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13709         areadlink-with-size: guess a buffer size with 0 size
13710         The size is usually taken from st_size, which can be zero,
13711         resulting in inefficient operation.
13712         Instead let zero select an initial memory allocation
13713         of 128 bytes, which most symlinks fit within.
13714         * lib/areadlink-with-size.c (areadlink_with_size):
13715         Start with a 128 byte buffer, for SIZE == 0.
13716         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13718 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13720         Replace manually crafted hex regexes with [:xdigit:]
13721         * build-aux/gitlog-to-changelog (parse_amend_file)
13722         (git_dir_option):
13723         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13724         This patch is backported from Emacs (Bug#36167).
13726 2019-07-06  Bruno Haible  <bruno@clisp.org>
13728         error: Fix documentation.
13729         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13730         module provides.
13731         * doc/glibc-functions/error_message_count.texi: Likewise.
13732         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13733         * doc/glibc-functions/error_print_progname.texi: Likewise.
13735 2019-07-06  Bruno Haible  <bruno@clisp.org>
13737         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13738         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13739         and older is unsupported.
13740         * doc/**/*.texi: Update.
13742 2019-07-06  Bruno Haible  <bruno@clisp.org>
13744         doc: Remove documentation of Linux libc5 as a supported platform.
13745         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13746         to Linux libc5.
13747         * doc/posix-functions/iswalpha.texi: Likewise.
13748         * doc/posix-functions/iswblank.texi: Likewise.
13749         * doc/posix-functions/iswcntrl.texi: Likewise.
13750         * doc/posix-functions/iswdigit.texi: Likewise.
13751         * doc/posix-functions/iswgraph.texi: Likewise.
13752         * doc/posix-functions/iswlower.texi: Likewise.
13753         * doc/posix-functions/iswprint.texi: Likewise.
13754         * doc/posix-functions/iswpunct.texi: Likewise.
13755         * doc/posix-functions/iswspace.texi: Likewise.
13756         * doc/posix-functions/iswupper.texi: Likewise.
13757         * doc/posix-functions/iswxdigit.texi: Likewise.
13758         * doc/posix-functions/snprintf.texi: Likewise.
13759         * doc/posix-functions/vsnprintf.texi: Likewise.
13761 2019-07-06  Bruno Haible  <bruno@clisp.org>
13763         doc: Remove documentation of Tandem/NSK as a supported platform.
13764         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13765         Tandem/NSK.
13766         * doc/**/*.texi: Update.
13768 2019-07-06  Bruno Haible  <bruno@clisp.org>
13770         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13771         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13772         and older is unsupported.
13773         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13774         Mac OS X 10.4 and older.
13775         * doc/posix-functions/asinl.texi: Likewise.
13776         * doc/posix-functions/atanl.texi: Likewise.
13777         * doc/posix-functions/cosl.texi: Likewise.
13778         * doc/posix-functions/expl.texi: Likewise.
13779         * doc/posix-functions/frexpl.texi: Likewise.
13780         * doc/posix-functions/gettimeofday.texi: Likewise.
13781         * doc/posix-functions/logl.texi: Likewise.
13782         * doc/posix-functions/mkstemp.texi: Likewise.
13783         * doc/posix-functions/sinl.texi: Likewise.
13784         * doc/posix-functions/sqrtl.texi: Likewise.
13785         * doc/posix-functions/tanl.texi: Likewise.
13786         * doc/posix-functions/wcswidth.texi: Likewise.
13787         * doc/**/*.texi: Update.
13789 2019-07-06  Bruno Haible  <bruno@clisp.org>
13791         doc: Remove documentation of AIX 4 as a supported platform.
13792         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13793         unsupported.
13794         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13795         workarounds.
13796         * doc/posix-functions/strnlen.texi: Likewise.
13797         * doc/posix-headers/inttypes.texi: Likewise.
13798         * doc/**/*.texi: Update.
13800 2019-07-06  Bruno Haible  <bruno@clisp.org>
13802         doc: Remove documentation of HP-UX 10 as a supported platform.
13803         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13804         unsupported.
13805         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13806         workarounds.
13807         * doc/posix-functions/gmtime_r.texi: Likewise.
13808         * doc/posix-functions/localtime_r.texi: Likewise.
13809         * doc/posix-functions/mkstemp.texi: Likewise.
13810         * doc/**/*.texi: Update.
13812 2019-07-06  Bruno Haible  <bruno@clisp.org>
13814         doc: Remove documentation of Interix 3.5 as a supported platform.
13815         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13816         unsupported.
13817         * doc/posix-functions/select.texi: Don't mention Interix specific
13818         workarounds.
13819         * doc/posix-headers/signal.texi: Likewise.
13820         * doc/**/*.texi: Update.
13822 2019-07-06  Bruno Haible  <bruno@clisp.org>
13824         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13825         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13826         unsupported.
13827         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13828         workarounds.
13829         * doc/posix-functions/nl_langinfo.texi: Likewise.
13830         * doc/posix-functions/remainder.texi: Likewise.
13831         * doc/posix-functions/towlower.texi: Likewise.
13832         * doc/posix-functions/towupper.texi: Likewise.
13833         * doc/posix-functions/vsnprintf.texi: Likewise.
13834         * doc/posix-functions/wcscat.texi: Likewise.
13835         * doc/posix-functions/wcschr.texi: Likewise.
13836         * doc/posix-functions/wcscmp.texi: Likewise.
13837         * doc/posix-functions/wcscpy.texi: Likewise.
13838         * doc/posix-functions/wcscspn.texi: Likewise.
13839         * doc/posix-functions/wcslen.texi: Likewise.
13840         * doc/posix-functions/wcsncat.texi: Likewise.
13841         * doc/posix-functions/wcsncmp.texi: Likewise.
13842         * doc/posix-functions/wcsncpy.texi: Likewise.
13843         * doc/posix-functions/wcspbrk.texi: Likewise.
13844         * doc/posix-functions/wcsrchr.texi: Likewise.
13845         * doc/posix-functions/wcsspn.texi: Likewise.
13846         * doc/posix-headers/langinfo.texi: Likewise.
13847         * doc/posix-headers/signal.texi: Likewise.
13848         * doc/posix-headers/wchar.texi: Likewise.
13849         * doc/posix-headers/wctype.texi: Likewise.
13850         * doc/**/*.texi: Update.
13852 2019-07-05  Bruno Haible  <bruno@clisp.org>
13854         doc: Remove documentation of OSF/1 as supported platform.
13855         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13856         unsupported.
13857         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13858         workarounds.
13859         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13860         * doc/glibc-functions/ptsname_r.texi: Likewise.
13861         * doc/posix-functions/ceil.texi: Likewise.
13862         * doc/posix-functions/ceilf.texi: Likewise.
13863         * doc/posix-functions/ceill.texi: Likewise.
13864         * doc/posix-functions/fchdir.texi: Likewise.
13865         * doc/posix-functions/floor.texi: Likewise.
13866         * doc/posix-functions/floorf.texi: Likewise.
13867         * doc/posix-functions/fmod.texi: Likewise.
13868         * doc/posix-functions/fmodf.texi: Likewise.
13869         * doc/posix-functions/fmodl.texi: Likewise.
13870         * doc/posix-functions/log.texi: Likewise.
13871         * doc/posix-functions/logf.texi: Likewise.
13872         * doc/posix-functions/logl.texi: Likewise.
13873         * doc/posix-functions/log10.texi: Likewise.
13874         * doc/posix-functions/log10f.texi: Likewise.
13875         * doc/posix-functions/log10l.texi: Likewise.
13876         * doc/posix-functions/log2.texi: Likewise.
13877         * doc/posix-functions/log2f.texi: Likewise.
13878         * doc/posix-functions/log2l.texi: Likewise.
13879         * doc/posix-functions/mbrtowc.texi: Likewise.
13880         * doc/posix-functions/recv.texi: Likewise.
13881         * doc/posix-functions/recvfrom.texi: Likewise.
13882         * doc/posix-functions/remainder.texi: Likewise.
13883         * doc/posix-functions/remainderf.texi: Likewise.
13884         * doc/posix-functions/remainderl.texi: Likewise.
13885         * doc/posix-functions/round.texi: Likewise.
13886         * doc/posix-functions/roundf.texi: Likewise.
13887         * doc/posix-functions/roundl.texi: Likewise.
13888         * doc/posix-functions/send.texi: Likewise.
13889         * doc/posix-functions/sendto.texi: Likewise.
13890         * doc/posix-functions/setenv.texi: Likewise.
13891         * doc/posix-functions/snprintf.texi: Likewise.
13892         * doc/posix-functions/tcgetsid.texi: Likewise.
13893         * doc/posix-functions/trunc.texi: Likewise.
13894         * doc/posix-functions/truncf.texi: Likewise.
13895         * doc/posix-functions/truncl.texi: Likewise.
13896         * doc/posix-functions/ttyname_r.texi: Likewise.
13897         * doc/posix-functions/unsetenv.texi: Likewise.
13898         * doc/posix-functions/wcsrtombs.texi: Likewise.
13899         * doc/posix-headers/sys_select.texi: Likewise.
13900         * doc/posix-headers/wchar.texi: Likewise.
13901         * doc/posix-headers/wctype.texi: Likewise.
13902         * doc/**/*.texi: Update.
13904 2019-07-05  Bruno Haible  <bruno@clisp.org>
13906         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13907         * doc/**/*.texi: Update.
13909 2019-07-05  Bruno Haible  <bruno@clisp.org>
13911         doc: Remove documentation of Solaris 8 and older as supported platforms.
13912         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13913         unsupported.
13914         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13915         workarounds.
13916         * doc/posix-functions/memcmp.texi: Likewise.
13917         * doc/posix-functions/rename.texi: Likewise.
13918         * doc/posix-functions/tzset.texi: Likewise.
13919         * doc/posix-headers/wctype.texi: Likewise.
13920         * doc/**/*.texi: Update.
13922 2019-07-05  Bruno Haible  <bruno@clisp.org>
13924         doc: Remove documentation of Interix 3.5 as a supported platform.
13925         * doc/**/*.texi: Update.
13927 2019-07-05  Bruno Haible  <bruno@clisp.org>
13929         doc: Remove documentation of BeOS as a supported platform.
13930         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13931         unsupported.
13932         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13933         * doc/posix-functions/getdelim.texi: Likewise.
13934         * doc/**/*.texi: Update.
13936 2019-07-05  Bruno Haible  <bruno@clisp.org>
13938         thread, lock, cond, tls: Remove support for Pth threads.
13939         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13940         --enable-threads=pth any more.
13941         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13943         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13944         threads and ISO C11 threads.
13945         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13946         * lib/glthread/lock.h: Likewise.
13947         * lib/glthread/lock.c: Likewise.
13948         * lib/glthread/cond.h: Likewise.
13949         * lib/glthread/cond.c: Likewise.
13950         * lib/glthread/tls.h: Likewise.
13951         * lib/glthread/tls.c: Likewise.
13952         * lib/glthread/yield.h: Likewise.
13953         * lib/regex_internal.h: Likewise.
13954         * tests/test-thread_create.c: Likewise.
13955         * tests/test-lock.c: Likewise.
13956         * tests/test-cond.c: Likewise.
13957         * tests/test-tls.c: Likewise.
13958         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13959         (main): Sleep without calling gl_thread_yield.
13961 2019-07-05  Bruno Haible  <bruno@clisp.org>
13963         thread, lock, cond, tls: Remove support for old Solaris threads.
13964         Solaris >= 2.5.1 has POSIX threads.
13965         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13966         --enable-threads=solaris any more.
13967         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13968         * lib/glthread/thread.c: Update comment.
13969         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13970         * lib/glthread/lock.h: Likewise.
13971         * lib/glthread/lock.c: Likewise.
13972         * lib/glthread/cond.h: Likewise.
13973         * lib/glthread/cond.c: Likewise.
13974         * lib/glthread/tls.h: Likewise.
13975         * lib/glthread/tls.c: Likewise.
13976         * lib/glthread/yield.h: Likewise.
13977         * lib/regex_internal.h: Likewise.
13978         * tests/test-thread_create.c: Likewise.
13979         * tests/test-lock.c: Likewise.
13980         * tests/test-cond.c: Likewise.
13981         * tests/test-tls.c: Likewise.
13983 2019-07-05  Bruno Haible  <bruno@clisp.org>
13985         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13986         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13987         needed size is equal to the allocated size.
13988         * lib/getcwd.c (__getcwd): Likewise.
13990 2019-07-05  Bruno Haible  <bruno@clisp.org>
13992         xgetdomainname: Don't return an excessive memory allocation.
13993         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13994         before returning it.
13996 2019-07-05  Bruno Haible  <bruno@clisp.org>
13998         xgethostname: Don't return an excessive memory allocation.
13999         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
14000         returning it.
14002 2019-07-05  Bruno Haible  <bruno@clisp.org>
14004         areadlinkat-with-size: Don't return an excessive memory allocation.
14005         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
14006         before returning it.
14008 2019-07-05  Bruno Haible  <bruno@clisp.org>
14010         areadlink-with-size: Don't return an excessive memory allocation.
14011         Reported by Andreas Dilger <adilger@whamcloud.com>.
14012         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
14013         before returning it.
14015 2019-07-03  Bruno Haible  <bruno@clisp.org>
14017         renameatu: Fix test failure on MSVC.
14018         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
14019         empty string.
14021 2019-07-03  Bruno Haible  <bruno@clisp.org>
14023         mbrtowc: Fix invalid use of mbtowc() on MSVC.
14024         * lib/mbrtowc.c: Include glthread/lock.h.
14025         (mbtowc_lock): New variable.
14026         (mbrtowc): Treat UTF-8 encoding without locking. For the other
14027         encodings, explicitly reset the internal state of mbtowc, and protect
14028         this through a lock.
14029         * modules/mbrtowc (Depends-on): Add lock.
14031 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
14033         argmatch: don't define _ in the header.
14034         Reported by Jim Meyering.
14035         * lib/argmatch.h (N_, _): Don't define.
14036         Use gettext instead.
14037         * lib/argmatch.h (_): Define.
14038         * tests/test-argmatch.c (N_): Define.
14040 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14042         verify: document ‘assume’ better
14043         * lib/verify.h: Reword doc (Bug#36370).
14045 2019-07-02  Bruno Haible  <bruno@clisp.org>
14047         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
14048         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
14049         "CPutf8".
14050         * lib/nl_langinfo.c (ctype_codeset): Likewise.
14052 2019-07-02  Bruno Haible  <bruno@clisp.org>
14054         getcwd: Fix crash when invoked with size = 0 on MSVC.
14055         * lib/getcwd.c: Include msvc-inval.h.
14056         (getcwd_nothrow): New function/macro.
14057         (getcwd_system): New macro.
14058         (__getcwd): Use it instead of getcwd.
14059         * modules/getcwd (Depends-on): Add msvc-inval.
14060         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
14062 2019-07-02  Bruno Haible  <bruno@clisp.org>
14064         nonblocking-pipe tests: Fix test failure on MSVC.
14065         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
14066         native Windows.
14068 2019-07-02  Bruno Haible  <bruno@clisp.org>
14070         usleep: Implement with millisecond resolution on native Windows.
14071         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
14072         * doc/pastposix-functions/usleep.texi: Update accordingly.
14074 2019-07-02  Bruno Haible  <bruno@clisp.org>
14076         lstat tests: Fix test failure on MSVC.
14077         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
14078         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14080 2019-07-02  Bruno Haible  <bruno@clisp.org>
14082         stat tests: Fix test failure on MSVC.
14083         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
14084         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14086 2019-07-02  Bruno Haible  <bruno@clisp.org>
14088         getaddrinfo tests: Fix test failure on MSVC.
14089         * tests/test-getaddrinfo.c: Include sockets.h.
14090         (main): Invoke gl_sockets_startup.
14091         * modules/getaddrinfo-tests (Depends-on): Add sockets.
14093 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
14095         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
14096         * lib/poll.c: Call Windows native select() with Windows native timeval.
14098 2019-06-30  Bruno Haible  <bruno@clisp.org>
14100         argmatch: Fix compilation errors.
14101         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
14102         * tests/test-argmatch.c (main): Update after last-minute function names
14103         change.
14105 2019-06-30  Bruno Haible  <bruno@clisp.org>
14107         Include <stdlib.h> when needed.
14108         * lib/cnd.c: Include <stdlib.h>, needed for abort().
14109         * lib/fcntl.c: Likewise.
14110         * lib/mbscasestr.c: Likewise.
14111         * lib/mbssep.c: Likewise.
14112         * lib/mbsstr.c: Likewise.
14113         * lib/openat.c: Include <stdlib.h>, needed for free().
14114         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
14115         abort().
14117 2019-06-30  Bruno Haible  <bruno@clisp.org>
14119         Include <stdlib.h> when needed.
14120         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
14121         * lib/faccessat.c: Likewise.
14122         * lib/fchmodat.c: Likewise.
14123         * lib/fchownat.c: Likewise.
14124         * lib/fstatat.c: Likewise.
14125         * lib/mkfifoat.c: Likewise.
14126         * lib/mknodat.c: Likewise.
14127         * lib/readlinkat.c: Likewise.
14128         * lib/symlinkat.c: Likewise.
14129         * lib/utimensat.c: Likewise.
14130         * lib/mkdirat.c: Likewise. Include also the specification header.
14132 2019-06-30  Bruno Haible  <bruno@clisp.org>
14134         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
14135         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
14136         from gl_PREREQ_SYS_H_SOCKET.
14137         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
14138         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
14139         gl_PREREQ_SYS_H_WS2TCPIP.
14140         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
14141         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
14142         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
14144 2019-06-30  Bruno Haible  <bruno@clisp.org>
14146         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
14147         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
14148         REPLACE_INET_NTOP to 1 always.
14149         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
14150         REPLACE_INET_PTON to 1 always.
14152 2019-06-30  Bruno Haible  <bruno@clisp.org>
14154         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
14155         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
14156         not REPLACE_INET_NTOP.
14158 2019-06-30  Bruno Haible  <bruno@clisp.org>
14160         poll: Add comment.
14161         * lib/poll.c: Add comment about WSAPoll.
14163 2019-06-30  Bruno Haible  <bruno@clisp.org>
14165         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
14166         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
14167         * lib/poll.in.h: Include <winsock2.h>.
14168         (POLL*, pollfd): Override on native Windows.
14169         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14170         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
14171         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14173 2019-06-28  Bruno Haible  <bruno@clisp.org>
14175         accept4: Fix compilation error on OpenIndiana.
14176         Reported by Michal Nowak <mnowak@startmail.com>
14177         via Mark H Weaver <mhw@netris.org>.
14178         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
14179         whether it exists as a function.
14181 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14183         strverscmp: sync from glibc
14184         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
14185         comments, include libc-config.h, define __strverscmp to be
14186         strverscmp, and don’t assume types line uint8_t and int8_t that
14187         that C99 doesn’t guarantee.
14188         [!_LIBC]: Include libc-config.h; define __strverscmp.
14189         Include stdint.h.
14190         (__strverscmp): Assume C99.  Use uint_least8_t
14191         and int_least8_t instead of unsigned char and signed char.
14192         * modules/strverscmp (Depends-on): Add libc-config, stdint.
14194 2019-06-25  Bruno Haible  <bruno@clisp.org>
14196         tss tests: Add tests for destructors and races.
14197         * tests/test-tss.c (worker_thread): Fix typo in debug message.
14198         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
14199         functions.
14200         (main): Invoke them.
14201         * modules/tls-tests (Depends-on): Add mtx.
14203 2019-06-25  Bruno Haible  <bruno@clisp.org>
14205         tls tests: Add tests for destructors and races.
14206         * tests/test-tls.c: Include glthread/lock.h.
14207         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
14208         functions.
14209         (main): Invoke them.
14210         * modules/tls-tests (Depends-on): Add lock.
14212 2019-06-25  Bruno Haible  <bruno@clisp.org>
14214         windows-tls: Implement TLS key destructors for native Windows.
14215         * lib/windows-tls.h (glwthread_tls_process_destructors): New
14216         declaration.
14217         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
14218         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
14219         (dtor_table_init_once, dtor_table_lock: New variables.
14220         (struct dtor): New type.
14221         (dtor_table, dtors_count, dtors_used, dtors_allocated,
14222         dtor_processing_threads): New variables.
14223         (dtor_table_initialize, dtor_table_ensure_initialized,
14224         dtor_table_shrink_used, glwthread_tls_process_destructors): New
14225         functions.
14226         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
14227         handle non-NULL destructors.
14228         * modules/windows-tls (Depends-on): Add windows-once.
14229         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
14230         Use the functions declared in windows-tls.h.
14231         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
14232         GLWTHREAD_DESTRUCTOR_ITERATIONS.
14233         * lib/windows-thread.c: Include windows-tls.h.
14234         (wrapper_func, glwthread_thread_exit): Invoke
14235         glwthread_tls_process_destructors.
14236         * modules/windows-thread (Depends-on): Add windows-tls.
14238 2019-06-25  Bruno Haible  <bruno@clisp.org>
14240         threadlib: Avoid autoconf warning "was expanded before it was required".
14241         * modules/threadlib (configure.ac): Require gl_THREADLIB.
14243 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
14245         argmatch: remove duplicate const qualifier
14246         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
14248 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14250         unistd: stddef.h and sys/types.h namespace cleanup
14251         * lib/unistd.in.h [__GLIBC__]:
14252         Do not include stddef.h or sys/types.h.
14253         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
14254         supposed to declare off_t and ssize_t.  Problem found when looking
14255         at why @GNULIB_PWRITE@ was different from the newly-added
14256         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
14258 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14260         maintainer-makefile: restore portability to non-GNU awks
14261         Reported by Tim Rühsen.
14262         * top/maint.mk (AWK): New variable.  Use it.
14263         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
14265 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14267         Document setvbuf _IOLBF problem
14268         * doc/posix-functions/setvbuf.texi (setvbuf):
14269         Document MS-Windows portability problem with _IOLBF.
14271         Document lseek SEEK_DATA/SEEK_HOLE
14272         * doc/posix-functions/lseek.texi (lseek):
14273         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
14275 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14277         argmatch: put all the docs member last.
14278         Reported by Bruno Haible.
14279         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
14280         member before the docs done.
14281         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
14283 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
14285         argmatch: add support to generate the usage message.
14286         * lib/argmatch.c: Move some #includes and gettext support to...
14287         * lib/argmatch.h: here.
14288         (ARGMATCH_DEFINE_GROUP): New macro.
14289         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
14290         (argmatch_backup_group): New.
14291         (CHECK): New.
14292         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
14293         argmatch_backup_argument and argmatch_backup_usage.
14294         * modules/argmatch: We depend on c99.
14295         * doc/argmatch.texi (Recognizing Option Arguments): New.
14296         * doc/gnulib.texi: Use it.
14298 2019-06-21  Bruno Haible  <bruno@clisp.org>
14300         thrd: Add comment.
14301         * lib/thrd.c (pthread_main_func): Add comment.
14303 2019-06-21  Bruno Haible  <bruno@clisp.org>
14305         threads-h: Define 'thread_local' if and only if it actually works.
14306         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
14307         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
14308         Oracle Solaris Studio C. Compile a simple program, to see whether
14309         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
14310         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
14311         * lib/threads.in.h (thread_local): Undefine if it does not work.
14312         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
14313         (Link): Mention LIBTHREADLOCAL.
14314         * tests/test-threads.c: Don't check that thread_local is defined.
14315         * tests/test-thread_local.c: New file.
14316         * modules/threads-h-tests (Files): Add it and macros.h.
14317         (Depends-on): Add thrd and stdint.
14318         (configure.ac): Test whether 'alarm' is declared.
14319         (Makefile.am): Arrange to build and link test-thread_local.
14320         * doc/posix-headers/threads.texi: Mention the platforms that don't
14321         support 'thread_local'.
14323 2019-06-20  Bruno Haible  <bruno@clisp.org>
14325         threads-h: Simplify link dependencies.
14326         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14327         Don't set LTLIBSTDTHREAD.
14328         * modules/thrd (Link): Simplify accordingly.
14329         * modules/mtx (Link): Likewise.
14330         * modules/cnd (Link): Likewise.
14331         * modules/tss (Link): Likewise.
14332         * modules/threads (Link): Likewise.
14334 2019-06-20  Bruno Haible  <bruno@clisp.org>
14336         threads-h: Fix link error on FreeBSD 11.
14337         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14338         also with -lpthread.
14340 2019-06-20  Bruno Haible  <bruno@clisp.org>
14342         threadlib: Fix typo (regression from today).
14343         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14345 2019-06-20  Bruno Haible  <bruno@clisp.org>
14347         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14348         * lib/windows-thread.c: Include <errno.h>.
14349         * lib/windows-tls.c: Likewise.
14351 2019-06-20  Bruno Haible  <bruno@clisp.org>
14353         tss tests: Small improvement.
14354         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14356 2019-06-20  Bruno Haible  <bruno@clisp.org>
14358         threads: New module.
14359         * modules/threads: New file.
14361 2019-06-20  Bruno Haible  <bruno@clisp.org>
14363         tss: Add tests.
14364         * tests/test-tss.c: New file, based on tests/test-tls.c.
14365         * modules/tss-tests: New file.
14367 2019-06-20  Bruno Haible  <bruno@clisp.org>
14369         cnd: Add tests.
14370         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14371         * modules/cnd-tests: New file.
14373 2019-06-20  Bruno Haible  <bruno@clisp.org>
14375         mtx: Add tests.
14376         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14377         * tests/test-call_once.c: New file, based on tests/test-once.c.
14378         * modules/mtx-tests: New file.
14380 2019-06-20  Bruno Haible  <bruno@clisp.org>
14382         thrd: Add tests.
14383         * tests/test-thrd_create.c: New file, based on
14384         tests/test-thread_create.c.
14385         * tests/test-thrd_current.c: New file, based on
14386         tests/test-thread_self.c.
14387         * modules/thrd-tests: New file.
14389 2019-06-20  Bruno Haible  <bruno@clisp.org>
14391         tss: New module.
14392         * lib/tss.c: New file.
14393         * modules/tss: New file.
14394         * doc/posix-functions/tss_create.texi: Mention the new module.
14395         * doc/posix-functions/tss_set.texi: Likewise.
14396         * doc/posix-functions/tss_get.texi: Likewise.
14397         * doc/posix-functions/tss_delete.texi: Likewise.
14399 2019-06-20  Bruno Haible  <bruno@clisp.org>
14401         cnd: New module.
14402         * lib/cnd.c: New file.
14403         * modules/cnd: New file.
14404         * doc/posix-functions/cnd_init.texi: Mention the new module.
14405         * doc/posix-functions/cnd_wait.texi: Likewise.
14406         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14407         * doc/posix-functions/cnd_signal.texi: Likewise.
14408         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14409         * doc/posix-functions/cnd_destroy.texi: Likewise.
14411 2019-06-20  Bruno Haible  <bruno@clisp.org>
14413         mtx: New module.
14414         * lib/mtx.c: New file.
14415         * modules/mtx: New file.
14416         * doc/posix-functions/call_once.texi: Mention the new module.
14417         * doc/posix-functions/mtx_init.texi: Likewise.
14418         * doc/posix-functions/mtx_lock.texi: Likewise.
14419         * doc/posix-functions/mtx_trylock.texi: Likewise.
14420         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14421         * doc/posix-functions/mtx_unlock.texi: Likewise.
14422         * doc/posix-functions/mtx_destroy.texi: Likewise.
14424 2019-06-20  Bruno Haible  <bruno@clisp.org>
14426         thrd: New module.
14427         * lib/thrd.c: New file.
14428         * m4/thrd.m4: New file.
14429         * modules/thrd: New file.
14430         * doc/posix-functions/thrd_current.texi: Mention the new module.
14431         * doc/posix-functions/thrd_detach.texi: Likewise.
14432         * doc/posix-functions/thrd_equal.texi: Likewise.
14433         * doc/posix-functions/thrd_exit.texi: Likewise.
14434         * doc/posix-functions/thrd_sleep.texi: Likewise.
14435         * doc/posix-functions/thrd_yield.texi: Likewise.
14436         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14437         AIX bug.
14438         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14439         AIX and Solaris bugs.
14441 2019-06-20  Bruno Haible  <bruno@clisp.org>
14443         threads-h: Add tests.
14444         * tests/test-threads.c: New file.
14445         * modules/threads-h-tests: New file.
14446         * tests/test-threads-c++.cc: New file.
14447         * modules/threads-h-c++-tests: New file.
14449 2019-06-20  Bruno Haible  <bruno@clisp.org>
14451         threads-h: New module.
14452         * lib/threads.in.h: New file.
14453         * m4/threads.m4: New file.
14454         * m4/yield.m4 (gl_YIELD): Update comment.
14455         * modules/threads-h: New file.
14456         * modules/yields (configure.ac): Use AC_REQUIRE.
14457         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14458         bugs.
14460 2019-06-20  Bruno Haible  <bruno@clisp.org>
14462         windows-thread: New module.
14463         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14464         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14465         * lib/glthread/thread.h: Include windows-thread.h.
14466         (gl_thread_t): Define using glwthread_thread_t.
14467         (glthread_create): Define using glwthread_thread_create.
14468         (glthread_join): Define using glwthread_thread_join.
14469         (gl_thread_self): Define using glwthread_thread_self.
14470         (gl_thread_exit): Define using glwthread_thread_exit.
14471         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14472         gl_thread_exit_func): Remove declarations.
14473         * lib/glthread/thread.c (self_key): Remove variable.
14474         (do_init_self_key, init_self_key): Remove functions.
14475         (struct gl_thread_struct): Remove type.
14476         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14477         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14478         functions.
14479         * modules/windows-thread: New file.
14480         * modules/thread (Depends-on): Add windows-thread.
14482 2019-06-20  Bruno Haible  <bruno@clisp.org>
14484         windows-tls: New module.
14485         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14486         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14487         * lib/glthread/tls.h: Include windows-tls.h.
14488         (gl_tls_key_t): Define using glwthread_tls_key_t.
14489         * modules/windows-tls: New file.
14490         * modules/tls (Depends-on): Add windows-tls.
14492 2019-06-20  Bruno Haible  <bruno@clisp.org>
14494         windows-cond: New module.
14495         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14496         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14497         * lib/glthread/cond.h: Include windows-cond.h.
14498         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14499         (gl_cond_t): Define using glwthread_cond_t.
14500         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14501         (glthread_cond_init): Define using glwthread_cond_init.
14502         (glthread_cond_wait): Define using glwthread_cond_wait.
14503         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14504         (glthread_cond_signal): Define using glwthread_cond_signal.
14505         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14506         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14507         (glthread_cond_init_func, glthread_cond_wait_func,
14508         glthread_cond_timedwait_func, glthread_cond_signal_func,
14509         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14510         declarations.
14511         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14512         types.
14513         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14514         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14515         glthread_cond_init_func, glthread_cond_wait_func,
14516         glthread_cond_timedwait_func, glthread_cond_signal_func,
14517         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14518         functions.
14519         * modules/windows-cond: New file.
14520         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14522 2019-06-20  Bruno Haible  <bruno@clisp.org>
14524         windows-timedrecmutex: New module.
14525         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14526         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14527         * modules/windows-timedrecmutex: New file.
14529 2019-06-20  Bruno Haible  <bruno@clisp.org>
14531         windows-timedmutex: New module.
14532         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14533         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14534         * modules/windows-timedmutex: New file.
14536 2019-06-20  Bruno Haible  <bruno@clisp.org>
14538         windows-recmutex: New module.
14539         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14540         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14541         * lib/glthread/lock.h: Include windows-recmutex.h.
14542         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14543         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14544         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14545         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14546         (glthread_recursive_lock_unlock): Define using
14547         glwthread_recmutex_unlock.
14548         (glthread_recursive_lock_destroy): Define using
14549         glwthread_recmutex_destroy.
14550         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14551         glthread_recursive_lock_unlock_func,
14552         glthread_recursive_lock_destroy_func): Remove declarations.
14553         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14554         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14555         glthread_recursive_lock_destroy_func): Remove functions.
14556         * modules/windows-recmutex: New file.
14557         * modules/lock (Depends-on): Add windows-recmutex.
14559 2019-06-20  Bruno Haible  <bruno@clisp.org>
14561         windows-mutex: New module.
14562         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14563         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14564         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14565         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14566         (gl_spinlock_t): Remove type.
14567         (gl_lock_t): Define using glwthread_mutex_t.
14568         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14569         (glthread_lock_init): Define using glwthread_mutex_init.
14570         (glthread_lock_lock): Define using glwthread_mutex_lock.
14571         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14572         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14573         (glthread_lock_init_func, glthread_lock_lock_func,
14574         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14575         declarations.
14576         Use glwthread_spinlock_t instead of gl_spinlock_t.
14577         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14578         GLWTHREAD_SPINLOCK_INIT.
14579         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14580         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14581         functions.
14582         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14583         gl_spinlock_t.
14584         * modules/windows-mutex: New file.
14585         * modules/lock (Depends-on): Add windows-mutex.
14587 2019-06-20  Bruno Haible  <bruno@clisp.org>
14589         windows-once: New module.
14590         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14591         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14592         * lib/glthread/lock.h: Include windows-once.h.
14593         (gl_once_t): Define using glwthread_once_t.
14594         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14595         (glthread_once): Define using glwthread_once.
14596         (glthread_once_func): Remove declaration.
14597         * lib/glthread/lock.c (glthread_once_func): Remove function.
14598         * modules/windows-once: New file.
14599         * modules/lock (Depends-on): Add windows-once.
14601 2019-06-20  Bruno Haible  <bruno@clisp.org>
14603         lock, cond: Avoid possible counter wraparound on Windows.
14604         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14605         field of the guard unchanged if it was already positive.
14606         (glthread_rwlock_rdlock_func): Likewise.
14607         (glthread_rwlock_wrlock_func): Likewise.
14608         (glthread_recursive_lock_lock_func): Likewise.
14609         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14610         (glthread_cond_timedwait_func): Likewise.
14612 2019-06-20  Bruno Haible  <bruno@clisp.org>
14614         cond: Make glthread_cond_timedwait more reliable on Windows.
14615         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14616         condition variable before looking at the current time.
14618 2019-06-20  Bruno Haible  <bruno@clisp.org>
14620         pthread_mutex_timedlock: New module.
14621         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14622         new declaration.
14623         * lib/pthread_mutex_timedlock.c: New file.
14624         * m4/pthread_mutex_timedlock.m4: New file.
14625         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14626         whether pthread_mutex_timedlock is declared.
14627         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14628         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14629         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14630         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14631         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14632         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14633         * modules/pthread_mutex_timedlock: New file.
14634         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14635         module.
14637 2019-06-20  Bruno Haible  <bruno@clisp.org>
14639         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14640         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14641         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14642         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14643         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14644         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14645         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14646         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14647         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14648         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14650 2019-06-20  Bruno Haible  <bruno@clisp.org>
14652         tls tests: Small improvements.
14653         * tests/test-tls.c: Include <stdint.h>.
14654         (worker_thread): Avoid gcc warning on 64-bit mingw.
14655         (test_tls): Pass a different id to each thread.
14656         * modules/tls-tests (Depends-on): Add stdint.
14658 2019-06-20  Bruno Haible  <bruno@clisp.org>
14660         cond tests: Simplify.
14661         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14663 2019-06-20  Bruno Haible  <bruno@clisp.org>
14665         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14666         * tests/test-lock.c (test_once): Don't reference fire_signal if
14667         !ENABLE_LOCKING.
14669 2019-06-19  Bruno Haible  <bruno@clisp.org>
14671         nanosleep: Relicense under LGPLv2+.
14672         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14673         * modules/nanosleep (License): Change to LGPLv2+.
14675 2019-06-19  Bruno Haible  <bruno@clisp.org>
14677         Reorder pieces of header in perl scripts.
14678         The desired order is
14679         - Prologue part 1 (2 lines with #!)
14680         - Program short description
14681         - Copyright and license notice
14682         - Written-by notice
14683         - Program short description (optional)
14684         - Program long description (optional)
14685         - Prologue part 2
14686         - Time stamp
14687         - Code
14688         Reported by Paul Eggert.
14689         * build-aux/announce-gen: Reorder header.
14690         * build-aux/gitlog-to-changelog: Likewise.
14691         * build-aux/useless-if-before-free: Likewise.
14692         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14693         description.
14694         * build-aux/update-copyright: Likewise. Add short description. Bump
14695         time-stamp-line-limit to 200.
14697 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14699         verify-tests: work around xlc bug
14700         Problem reported by Bruno Haible in:
14701         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14702         * tests/test-verify.c (item): Move the arithmetic inside the
14703         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14705 2019-06-16  Bruno Haible  <bruno@clisp.org>
14707         Restore Emacs time-stamp hook applicability.
14708         Reported by Darshit Shah <darnir@gnu.org>.
14709         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14710         * build-aux/announce-gen: Likewise.
14711         * build-aux/gitlog-to-changelog: Likewise.
14712         * build-aux/prefix-gnulib-mk: Likewise.
14713         * build-aux/update-copyright: Likewise.
14715 2019-06-15  Bruno Haible  <bruno@clisp.org>
14717         Fix scripts to have valid executable format on Alpine Linux.
14718         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14719         Idea by Paul Eggert.
14720         * build-aux/useless-if-before-free: Use a prologue that starts with
14721         '#!/bin/sh'.
14722         * build-aux/announce-gen: Likewise.
14723         * build-aux/gitlog-to-changelog: Likewise.
14724         * build-aux/prefix-gnulib-mk: Likewise.
14725         * build-aux/update-copyright: Likewise.
14726         * tests/test-update-copyright.sh: Update test program accordingly.
14728 2019-06-10  Bruno Haible  <bruno@clisp.org>
14730         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14731         Reported by Nikita Ermakov <arei@altlinux.org> in
14732         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14733         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14734         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14736 2019-06-10  Bruno Haible  <bruno@clisp.org>
14738         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14739         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14740         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14741         a copy of the path argument.
14742         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14743         it.
14745 2019-06-10  Bruno Haible  <bruno@clisp.org>
14747         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14748         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14749         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14750         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14751         a copy of the path argument.
14752         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14753         it.
14755 2019-06-10  Bruno Haible  <bruno@clisp.org>
14757         posix_spawn_file_actions_addfchdir: Add tests.
14758         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14759         * tests/test-posix_spawn5.c: New file.
14760         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14762 2019-06-10  Bruno Haible  <bruno@clisp.org>
14764         posix_spawn_file_actions_addfchdir: New module.
14765         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14766         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14767         union member 'fchdir_action'.
14768         * lib/spawn_faction_addfchdir.c: New file.
14769         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14770         * m4/posix_spawn_faction_addfchdir.m4: New file.
14771         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14772         'posix_spawn_file_actions_addfchdir' is present and whether
14773         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14774         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14775         posix_spawn_file_actions_addfchdir is declared.
14776         (gl_SPAWN_H_DEFAULTS): Initialize
14777         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14778         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14779         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14780         * modules/spawn (Makefile.am): Substitute
14781         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14782         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14783         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14784         * modules/posix_spawn_file_actions_addfchdir: New file.
14785         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14786         signature.
14787         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14788         * doc/posix-functions/posix_spawnp.texi: Likewise.
14789         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14790         Likewise.
14792 2019-06-10  Bruno Haible  <bruno@clisp.org>
14794         doc: Document existence of posix_spawn_file_actions_addchdir module.
14795         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14796         the posix_spawn_file_actions_addchdir module.
14798 2019-06-10  Bruno Haible  <bruno@clisp.org>
14800         posix_spawn-internal: Fix module description.
14801         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14802         from here...
14803         * modules/posix_spawnp (configure.ac): ... and here...
14804         * modules/posix_spawn-internal (configure.ac): ... to here.
14806 2019-06-10  Bruno Haible  <bruno@clisp.org>
14808         doc: Update and improve documentation of glibc functions.
14809         This is a series of commits that
14810         - updates the documentation to the state of glibc 2.29,
14811         - adds references to Linux man pages and glibc documentation,
14812         - marks Linux specific functions as such.
14813         These are the commits:
14814         doc: Update after removal of crypt functions from glibc 2.28.
14815         doc: Remove mention of function vm86 (does not exist on x86_64).
14816         doc: Remove mention of functions that are gone from glibc.
14817         doc: Mention that glibc no longer provides h_errno.
14818         doc: Mention the availability of specific functions in glibc versions.
14819         doc: Mention eaccess.
14820         doc: Add references to Linux man pages.
14821         doc: Add references to glibc documentation.
14822         doc: Mention inotify_* functions.
14823         doc: Mention ppoll.
14824         doc: Mention sched_getcpu.
14825         doc: Mention sync_file_range.
14826         doc: Mention epoll_pwait.
14827         doc: Mention eventfd, eventfd_read, eventfd_write.
14828         doc: Mention signalfd.
14829         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14830         doc: Mention epoll_create1.
14831         doc: Mention getauxval.
14832         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14833         doc: Mention nextdown, nextup.
14834         doc: Mention more ISO TS 18661-1 <math.h> functions.
14835         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14836         doc: Mention getrandom, getentropy.
14837         doc: Mention strfromf, strfromd, strfroml.
14838         doc: Mention preadv2, pwritev2.
14839         doc: Mention copy_file_range.
14840         doc: Mention memfd_create.
14841         doc: Mention mlock2.
14842         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14843         doc: Mention more ISO TS 18661-1 <math.h> functions.
14844         doc: Mention renameat2.
14845         doc: Mention statx.
14846         doc: Mention the ISO C11 multithreading header and functions.
14847         doc: Mention getcpu.
14848         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14849         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14850         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14851         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14852         doc: Some glibc functions also exist on Solaris 11.
14853         doc: Some glibc functions also exist on Solaris 11.4.
14854         doc: Some glibc functions also exist on FreeBSD.
14855         doc: Some glibc functions also exist on BeOS.
14856         doc: Some glibc functions also exist on Haiku.
14857         doc: Mark functions which exist only on Linux.
14858         doc: Mark functions which exist only on Linux and illumos.
14860 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14862         copy-file: fix typo
14863         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14865         copy-file-range: simplify into a stub
14866         Based on a comment by Florian Weimer in:
14867         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14868         It turns out that Emacs (which will use this module) won’t need an
14869         emulation and I suspect other programs won’t either, because these
14870         programs will need to fall back on read+write anyway.  Perhaps I
14871         am wrong and other programs will be able to use an emulation; if
14872         so, this patch can be reverted.
14873         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14874         Just call it copy_file_range.
14875         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14876         Check via AC_LINK_IFELSE.
14877         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14879 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14881         copy-file: prefer copy_file_range
14882         * lib/copy-file.c: Do not include xalloc.h.
14883         (qcopy_file_preserving): Allocate a buffer only if
14884         copy_file_range does not suffice.  If the allocation fails
14885         don't give up; just use a small stack-based buffer.
14886         Prefer copy_file_range if it works.
14887         * modules/copy-file (Depends-on): Add copy-file-range.
14888         Remove xalloc.
14890         copy-file-range: new module
14891         * MODULES.html.sh: Add copy-file-range.
14892         * lib/copy-file-range.c, m4/copy-file-range.m4:
14893         * modules/copy-file-range: New files.
14894         * lib/unistd.in.h (copy_file_range): Declare.
14895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14896         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14897         * modules/unistd (unistd.h): Substitute them.
14899 2019-05-28  Bruno Haible  <bruno@clisp.org>
14901         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14902         Reported by KO Myung-Hun <komh78@gmail.com> in
14903         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14904         * lib/binary-io.h (__gl_setmode_check): Remove function.
14905         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14906         * lib/binary-io.c (__gl_setmode_check): Remove function.
14907         (set_binary_mode): Define here on DJGPP and EMX. Inline
14908         __gl_setmode_check. In case of a tty, don't return an error code.
14910 2019-05-28  James Youngman  <jay@gnu.org>
14912         dirent-safer: Make opendir_safer usable from C++.
14913         * lib/dirent-safer.h: use extern "C".
14915 2019-05-28  James Youngman  <jay@gnu.org>
14917         canonicalize: Make canonicalize_filename_mode usable from C++.
14918         * lib/canonicalize.h: use extern "C".
14920 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14922         prefix-gnulib-mk: Fix CPPFLAGS migration.
14923         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14924         _a part of the library name.
14926 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14928         flexmember: update comments again
14929         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14931         flexmember: update comment
14932         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14934 2019-05-20  Bruno Haible  <bruno@clisp.org>
14936         setlocale: Improve fallback on macOS.
14937         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14938         invocation.
14939         (locales_with_principal_territory): New array.
14940         (langcmp, get_main_locale_with_same_language): New functions.
14941         (locales_with_principal_language): New array.
14942         (terrcmp, get_main_locale_with_same_territory): New functions.
14943         (rpl_setlocale): When setlocale_single failed, try again with a locale
14944         that is more likely to exist. Don't warn if the environment variable
14945         SETLOCALE_VERBOSE is not set.
14947 2019-05-19  Bruno Haible  <bruno@clisp.org>
14949         localename: Fix default on macOS.
14950         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14951         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14952         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14953         HAVE_CFLOCALECOPYCURRENT.
14954         * lib/localename.h (gl_locale_name_default): Update.
14956 2019-05-19  Karl Berry  <karl@freefriends.org>
14958         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14959         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14960         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14962 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14964         maintainer-makefile: catch uses of $< in non-implicit rules
14965         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14967 2019-05-18  Bruno Haible  <bruno@clisp.org>
14969         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14970         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14971         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14972         gl_use_threads accordingly.
14974 2019-05-18  Bruno Haible  <bruno@clisp.org>
14976         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14977         Reported by Tim Rühsen in
14978         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14979         and Michele Locati in
14980         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14982         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14983         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14984         in use and regardless which threads API is chosen.
14986 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14988         close-stream, closein, closeout: simplify
14989         I noticed this opportunity for simplification while drafting a
14990         new, related module that I haven’t had time to finish yet.
14991         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14992         * modules/close-stream (Files): Remove m4/close-stream.m4.
14993         (configure.ac): Omit gl_CLOSE_STREAM.
14994         * modules/closein (Files): Remove m4/closein.m4
14995         (configure.ac): Omit gl_CLOSEIN.
14996         * modules/closeout (Files): Remove m4/closeout.m4.
14997         (configure.ac): Omit gl_CLOSEOUT.
14999 2019-05-12  Bruno Haible  <bruno@clisp.org>
15001         libtool-next-version: New program.
15002         * build-aux/libtool-next-version: New file.
15004 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
15005             Bruno Haible  <bruno@clisp.org>
15007         version-etc: Ease translation.
15008         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
15009         URLs and formatting newlines out of translatable string.
15011 2019-05-11  Bruno Haible  <bruno@clisp.org>
15013         gnupload: Explain how to create symlinks.
15014         * build-aux/gnupload (usage): Add an example that creates symlinks.
15016 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15018         fpucw: port to gcc -pedantic
15019         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
15020         Use __extension__ if using ({ ... }).
15022         crypto/af_alg: port to strict C compilers
15023         * lib/af_alg.c: Include af_alg.h regardless, so that the
15024         compilation unit is nonempty.
15026 2019-05-10  Bruno Haible  <bruno@clisp.org>
15028         base64: Avoid false positive warning from Coverity.
15029         Reported by Kamil Dudka <kdudka@redhat.com>.
15030         Idea by Paul Eggert.
15031         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
15032         '& 0x3f' to the array index expressions. This convinces Coverity that
15033         there is no out-of-bounds array reference, regardless of the input.
15035 2019-05-09  Bruno Haible  <bruno@clisp.org>
15037         gettext: Update to gettext 0.20.
15038         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
15039         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
15040         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
15041         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
15042         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
15043         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
15044         (configure.ac): Request infrastructure compatible with gettext 0.20.
15045         * m4/glibc2.m4: Remove file.
15046         * m4/intdiv0.m4: Remove file.
15047         * m4/intl.m4: Remove file.
15048         * m4/intldir.m4: Remove file.
15049         * m4/intmax.m4: Remove file.
15050         * m4/printf-posix.m4: Remove file.
15051         * m4/uintmax_t.m4: Remove file.
15052         * m4/gettext.m4: Update from gettext 0.20.
15053         * m4/po.m4: Likewise.
15055 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15057         verify: remove verify_true
15058         * NEWS: Mention this.
15059         * lib/verify.h (verify_true): Remove.
15060         * tests/test-verify.c (item): Test verify_expr, not verify_true.
15062         Support C2X and C++17 static_assert
15063         C2X and C++17 finally added support for a simple, single-argument
15064         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
15065         doing back in 2005.  Implement static_assert on older platforms.
15066         The only remaining advantage of ‘verify’ is a shorter name.
15067         * doc/posix-headers/assert.texi (assert.h):
15068         * doc/verify.texi (Compile-time Assertions):
15069         Modernize for C2X and C++17.
15070         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
15071         New macros.
15072         (_GL_HAVE__STATIC_ASSERT): Remove.
15073         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
15074         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
15075         string.  All callers changed.
15076         (_GL_VERIFY): Require 3 or more args, of which only the first 2
15077         are used.  All callers changed.
15078         (_Static_assert): Allow either 1 or 2 args, and define if
15079         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
15080         !_GL_HAVE__STATIC_ASSERT.
15081         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
15082         of defining if !_GL_HAVE_STATIC_ASSERT.
15083         (verify_expr, verify): Don’t bother trying to copy the expression
15084         into the diagnostic, since 1-argument static_assert doesn’t.
15085         (verify): Prefer 1-argument _Static_assert if it works.
15086         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
15088 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15090         Fix _GL_HAVE__STATIC_ASSERT typo
15091         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
15092         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
15094 2019-05-05  Bruno Haible  <bruno@clisp.org>
15096         wcwidth: Ensure width 1, not 2, for ambiguous characters.
15097         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
15098         via Akim Demaille <akim.demaille@gmail.com>.
15099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
15100         en_US.UTF-8 locale, since that is more likely to be present than an
15101         fr_FR.UTF-8 locale.
15102         * tests/test-wcwidth.c (main): Check the width of U+2202.
15103         * doc/posix-functions/wcwidth.texi: Mention the issue.
15105 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15107         Port manywarnings to GCC 9
15108         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
15109         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
15110         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
15111         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
15112         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
15113         --help=warnings output.
15114         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
15115         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
15116         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
15118 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15120         Sync lib/mktime-internal.h from glibc
15121         * config/srclist.txt: Add entry for lib/mktime-internal.h.
15122         * lib/mktime-internal.h: Autoupdate.
15124 2019-04-28  Bruno Haible  <bruno@clisp.org>
15126         tls tests: Prevent that the test takes too long.
15127         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
15128         (main): Let the test fail if it takes more than 10 minutes.
15129         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
15131 2019-04-27  Bruno Haible  <bruno@clisp.org>
15133         lock tests: Prevent that the test takes too long.
15134         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
15135         (main): Let the test fail if it takes more than 10 minutes.
15136         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
15138 2019-04-27  Bruno Haible  <bruno@clisp.org>
15140         localename: Fix crash on mingw (regression from 2018-11-23).
15141         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
15142         locale name that is null.
15144 2019-04-27  Bruno Haible  <bruno@clisp.org>
15146         Fix gcc warnings on 64-bit mode mingw.
15147         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
15148         * lib/gl_array_list.c: Likewise.
15149         * lib/gl_array_map.c: Likewise.
15150         * lib/gl_array_set.c: Likewise.
15151         * lib/gl_carray_list.c: Likewise.
15152         * lib/gl_sublist.c: Likewise.
15153         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
15154         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
15155         * lib/gl_hash_map.c (uintptr_t): Likewise.
15156         * lib/gl_hash_set.c (uintptr_t): Likewise.
15157         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
15158         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
15159         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
15160         * lib/iconv.c (uintptr_t): Likewise.
15161         * lib/iconv_close.c (uintptr_t): Likewise.
15162         * tests/test-lock.c: Include <stdint.h>.
15163         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
15164         'long'.
15165         * modules/clean-temp (Depends-on): Add stdint.
15166         * modules/array-list (Depends-on): Likewise.
15167         * modules/array-map (Depends-on): Likewise.
15168         * modules/array-set (Depends-on): Likewise.
15169         * modules/carray-list (Depends-on): Likewise.
15170         * modules/sublist (Depends-on): Likewise.
15171         * modules/lock-tests (Depends-on): Likewise.
15173 2019-04-27  Bruno Haible  <bruno@clisp.org>
15175         error: Tweak indentation.
15176         * lib/error.c: Correct indentation.
15178 2019-04-27  Bruno Haible  <bruno@clisp.org>
15180         term-style-control: Fix gcc warning on mingw.
15181         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
15182         of i.
15184 2019-04-26  Bruno Haible  <bruno@clisp.org>
15186         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
15187         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
15189 2019-04-26  Bruno Haible  <bruno@clisp.org>
15191         relocatable-prog: Fix gcc warning on mingw.
15192         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
15193         on EMX.
15195 2019-04-02  Bruno Haible  <bruno@clisp.org>
15197         gitsub.sh: New file.
15198         * top/gitsub.sh: New file.
15200 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
15202         argmatch: use void* for raw memory pointers
15203         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
15204         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
15205         to "values", keep char* for strings.
15207 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
15209         prefix-gnulib-mk: fix the support for gnulib-po
15210         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
15211         Don't touch HAVE_* variables.
15212         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
15214 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
15216         di-set: allow free with 'ino_map' being NULL.
15217         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
15218         is NULL.  Bug introduced in commit 3703dbbe88dd.
15219         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
15220         as a test.
15222 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
15224         * lib/str-two-way.h: Fix comment typo.
15226 2019-04-13  Bruno Haible  <bruno@clisp.org>
15228         x-to-1: Restore ability to use original calling convention.
15229         * build-aux/x-to-1.in: Add comments. Accept the original form of
15230         HELP2MAN argument as well as the form expected since 2012-12-12.
15232 2019-04-13  Bruno Haible  <bruno@clisp.org>
15234         x-to-1: Avoid failure due to missing perl modules.
15235         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
15236         needs are installed.
15238 2019-04-13  Bruno Haible  <bruno@clisp.org>
15240         openmp-init: New module.
15241         * modules/openmp-init: New file.
15242         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
15243         the changes from 2019-04-09.
15245 2019-04-12  Bruno Haible  <bruno@clisp.org>
15247         signbit: Fix compilation error when gnulib's math.h exists twice.
15248         * lib/math.in.h (GNULIB_defined_signbit): New macro.
15250 2019-04-12  Bruno Haible  <bruno@clisp.org>
15252         openmp: Fix compilation error on platforms without OpenMP.
15253         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
15255 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
15257         mountlist: make parsing /proc/self/mountinfo more robust
15258         Cater for the following issues with mountinfo parsing (the first
15259         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
15260         in <https://bugs.gnu.org/35137>).
15261         1. The fields source, target, mntroot and fstype may contain characters
15262         like '\r'; sscanf(3) fails to read such values with the %s format
15263         specifier because it would stop at such characters.
15264         Example: "mount -t tmpfs tmpfs /foo^Mbar".
15265         The only true separator in that file is the ' ' character.
15266         2. The source field may be an empty string, which happens e.g. with
15267         "mount -t tmpfs '' /target".
15268         3. The fstype field may contain mangled characters as well which need
15269         unescaping.
15270         * lib/mountlist.c (terminate_at_blank): Add utility function.
15271         (read_file_system_list): In the block trying to read the mountinfo file,
15272         avoid using sscanf(3) with %s format; instead, parse the above fields
15273         separated by spaces one by one.
15274         This also handles the case when the source field is an empty string.
15275         Unescape the fstype field.
15277 2019-04-09  Bruno Haible  <bruno@clisp.org>
15279         openmp: Add workaround for 32-bit programs on AIX.
15280         * lib/omp.in.h: New file.
15281         * lib/omp-init.c: New file, based on lib/nproc.c.
15282         * m4/omp_h.m4: New file.
15283         * modules/openmp (Files): Add them.
15284         (Depends-on): Add include_next, c-ctype, setenv.
15285         (configure.ac): Invoke gl_OMP_H.
15286         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
15287         (Include): Mention <omp.h>.
15289 2019-04-09  Bruno Haible  <bruno@clisp.org>
15291         nproc: Fix return value for privileged processes.
15292         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
15293         getpid().
15295 2019-04-07  Bruno Haible  <bruno@clisp.org>
15297         Add copyright notices in several files.
15298         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
15299         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
15300         * lib/libunistring.valgrind: Likewise.
15301         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
15302         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
15303         * lib/memchr.valgrind: Likewise.
15304         * lib/memchr2.valgrind: Likewise.
15305         * lib/rawmemchr.valgrind: Likewise.
15306         * lib/relocatable.valgrind: Likewise.
15307         * lib/strchrnul.valgrind: Likewise.
15309 2019-03-25  Bruno Haible  <bruno@clisp.org>
15311         term-style-control tests: Fix link error.
15312         Reported by Tom G. Christensen in
15313         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
15314         * modules/term-style-control-tests (Makefile.am): Link
15315         test-term-style-control-hello and test-term-style-control-yes against
15316         LIBINTL.
15318 2019-03-24  Bruno Haible  <bruno@clisp.org>
15320         term-style-control: Add tests.
15321         * tests/test-term-style-control-hello.c: New file.
15322         * tests/test-term-style-control-yes.c: New file.
15323         * modules/term-style-control-tests: New file.
15325         term-style-control: New module.
15326         * lib/term-style-control.h: New file, based on libtextstyle's
15327         term-ostream.oo.h and term-ostream.oo.c.
15328         * lib/term-style-control.c: New file, based on libtextstyle's
15329         term-ostream.oo.c.
15330         * modules/term-style-control: New file.
15332 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15334         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15335         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15336         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15338 2019-03-23  Bruno Haible  <bruno@clisp.org>
15340         Support cross-compilation to musl libc.
15341         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15342         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15343         musl libc.
15344         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15345         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15346         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15347         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15348         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15349         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15350         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15351         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15352         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15353         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15354         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15355         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15356         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15357         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15358         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15359         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15360         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15361         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15362         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15363         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15364         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15365         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15366         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15367         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15369         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15370         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15371         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15372         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15373         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15374         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15375         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15376         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15377         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15378         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15379         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15380         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15381         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15382         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15383         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15384         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15385         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15386         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15387         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15388         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15389         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15390         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15391         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15392         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15393         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15394         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15395         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15396         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15397         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15398         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15399         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15400         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15401         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15402         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15403         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15404         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15406         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15407         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15408         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15409         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15410         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15411         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15412         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15413         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15414         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15415         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15416         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15417         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15418         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15419         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15420         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15423 2019-03-23  Bruno Haible  <bruno@clisp.org>
15425         posix_spawn_file_actions_*: Document musl libc bugs.
15426         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15427         the bug.
15428         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15429         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15430         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15431         cross-compiling to a musl system, guess no.
15432         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15433         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15435 2019-03-23  Bruno Haible  <bruno@clisp.org>
15437         futimens: Document musl libc bug.
15438         * doc/posix-functions/futimens.texi: Mention the bug.
15439         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15440         cross-compiling, guess no on glibc and musl systems.
15442 2019-03-23  Bruno Haible  <bruno@clisp.org>
15444         Clarify that cross-compilation guesses are guesses.
15445         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15446         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15447         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15448         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15449         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15450         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15451         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15452         gl_cv_glob_lists_symlinks.
15453         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15454         'guessing ' to ac_cv_func_malloc_0_nonnull.
15455         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15456         'guessing ' to ac_cv_func_realloc_0_nonnull.
15457         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15458         'guessing ' to gl_cv_func_poll.
15459         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15460         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15461         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15463 2019-03-23  Bruno Haible  <bruno@clisp.org>
15465         strtold: Fix typo.
15466         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15468 2019-03-23  Bruno Haible  <bruno@clisp.org>
15470         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15471         Reported by Akim Demaille.
15472         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15473         [[noreturn]] would not work, use _Noreturn instead.
15475 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15477         libtextstyle-optional: Fix compiler warnings.
15478         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15479         as unused.
15481 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15483         bitset: fix memory leaks
15484         Reported by Bruno Haible.
15485         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15486         * lib/bitset/vector.c (vbitset_free): New.
15487         (vbitset_vtable): Use it.
15489 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15491         bitset: minor changes
15492         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15493         * lib/bitset/table.c: Formatting changes.
15494         Remove useless braces.
15495         Prefer using else in cascades of if/else-if with returns.
15496         * lib/bitset/vector.c: Reduce scopes.
15498 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15500         bitset: expose bitset_resize
15501         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15502         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15503         (main): Use a variable bitset as reference, since fixed does not support resize.
15505 2019-03-19  Bruno Haible  <bruno@clisp.org>
15507         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15508         Reported by Akim Demaille.
15509         * doc/noreturn.texi: New file.
15510         * doc/gnulib.texi: Include it.
15512 2019-03-19  Bruno Haible  <bruno@clisp.org>
15514         doc: Document how to use 'static inline'.
15515         * doc/static-inline.texi: New file.
15516         * doc/gnulib.texi: Include it.
15518 2019-03-19  Bruno Haible  <bruno@clisp.org>
15520         libtextstyle-optional: Add tests.
15521         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15522         adhoc-tests/hello.c.
15523         * tests/test-libtextstyle-default.css: New file, copied from
15524         libtextstyle's adhoc-tests/hello-default.css.
15525         * modules/libtextstyle-optional-tests: New file.
15527         libtextstyle-optional: New module.
15528         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15529         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15530         * modules/libtextstyle-optional: New file.
15532 2019-03-19  Bruno Haible  <bruno@clisp.org>
15534         c-stack: Make signal handlers more reliable.
15535         * lib/c-stack.c (progname): New variable.
15536         (die): Use it.
15537         (c_stack_action): Initialize it.
15538         (segv_handler): Save and restore errno.
15540 2019-03-19  Bruno Haible  <bruno@clisp.org>
15542         Help making signal handlers more reliable.
15543         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15544         _GL_ASYNC_SAFE into config.h.
15545         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15546         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15547         argument.
15548         * lib/fatal-signal.c (action_t, uninstall_handlers,
15549         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15550         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15551         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15552         _GL_ASYNC_SAFE.
15553         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15554         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15556 2019-03-18  Bruno Haible  <bruno@clisp.org>
15558         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15559         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15560         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15562 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15564         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15565         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15566         GCC 4.8.
15568 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15570         fts: minor simplification
15571         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15573 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15575         bitset, timevar: Depend on c99.
15576         Reported by Bruno Haible.
15577         * modules/bitset, modules/timevar (Depends-on): Add c99.
15579 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15581         bitset: a bit (...) more tests
15582         * tests/test-bitset.c (check_attributes): Check zero and ones.
15584 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15586         bitset: fix overflows.
15587         Reported by Bruno Haible.
15588         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15589         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15590         the bit in the array of bitset_word, so be sure to take its modulo
15591         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15592         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15594 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15596         bitset: style changes.
15597         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15598         Formatting changes.
15599         (tbitset_list): Reduce scopes.
15601 2019-03-16  Bruno Haible  <bruno@clisp.org>
15603         fatal-signal: Pass the signal number to the action.
15604         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15605         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15606         (fatal_signal_handler): Pass the signal number to the action.
15607         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15608         signal number as parameter.
15609         (create_temp_dir): Update.
15610         * lib/wait-process.c (cleanup_slaves_action): New function.
15611         (register_slave_subprocess): Update at_fatal_signal invocation.
15612         * NEWS: Mention the change.
15614 2019-03-16  Bruno Haible  <bruno@clisp.org>
15616         fatal-signal: Add function that lists the fatal signals.
15617         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15618         * lib/fatal-signal.c (get_fatal_signals): New function.
15620 2019-03-14  Bruno Haible  <bruno@clisp.org>
15622         isatty: Make it return true in Cygwin consoles on native Windows.
15623         * lib/isatty.c: Include <string.h>.
15624         (GetProcAddress): New macro.
15625         (GetNamedPipeClientProcessIdFuncType): New type.
15626         (GetNamedPipeClientProcessIdFunc): New variable.
15627         (QueryFullProcessImageNameFuncType): New type.
15628         (QueryFullProcessImageNameFunc): New variable.
15629         (initialized): New variable.
15630         (initialize): New function.
15631         (IsCygwinConsoleHandle): New function.
15632         (isatty): Invoke it.
15633         * doc/posix-functions/isatty.texi: Mention the issue.
15635 2019-03-14  Bruno Haible  <bruno@clisp.org>
15637         all: Update URLs to msdn.microsoft.com.
15638         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15639         was moved to docs.microsoft.com.
15641 2019-03-13  Bruno Haible  <bruno@clisp.org>
15643         gnulib-tool: Clarify the coding style.
15644         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15645         * gnulib-tool: Add comment about coding style.
15647 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15649         strtod: fix clash with strtold
15650         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15651         * lib/strtod.c (compute_minus_zero, minus_zero):
15652         Simplify by remving the macro / external variable,
15653         and having just a function.  User changed.  This avoids
15654         the need for an external variable that might clash.
15656 2019-03-10  Bruno Haible  <bruno@clisp.org>
15658         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15659         Reported by Eli Zaretskii <eliz@gnu.org>.
15660         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15662         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15664 2019-03-10  Bruno Haible  <bruno@clisp.org>
15666         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15667         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15668         is in use.
15669         * tests/test-printf-posix2.c: Likewise.
15671 2019-03-10  Bruno Haible  <bruno@clisp.org>
15673         uninorm tests: Free allocated memory.
15674         * tests/uninorm/test-u32-normalize-big.h
15675         (struct normalization_test_file): Remove 'const' from allocated member.
15676         (free_normalization_test_file): New declaration.
15677         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15678         memory.
15679         (free_normalization_test_file): New function.
15680         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15681         'struct normalization_test_file' contents.
15682         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15683         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15684         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15686 2019-03-10  Bruno Haible  <bruno@clisp.org>
15688         di-set: Fix memory leak.
15689         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15690         not free().
15692 2019-03-10  Bruno Haible  <bruno@clisp.org>
15694         tests: Free allocated memory.
15695         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15696         * tests/test-astrxfrm.c (main): Free allocated memory.
15697         * tests/test-bitset.c (compare, check_attributes): Free allocated
15698         bitsets.
15699         * tests/test-filenamecat.c (main): Free allocated memory.
15700         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15701         * tests/test-freadptr.c (main): Likewise.
15702         * tests/test-freadptr2.c (main): Free allocated memory.
15703         * tests/test-freadseek.c (main): Likewise.
15704         * tests/test-gc-arcfour.c (main): Close allocated context.
15705         * tests/test-gc-arctwo.c (main): Likewise.
15706         * tests/test-gc-des.c (main): Close all allocated contexts.
15707         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15708         * tests/test-pipe-filter-ii1.c (main): Likewise.
15709         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15710         allocated file actions.
15711         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15712         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15713         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15714         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15715         * tests/test-strfmon_l.c (main): Free allocated locales.
15716         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15717         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15718         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15719         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15720         * tests/unistr/test-chr.h (main): Free input32.
15721         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15723 2019-03-10  Bruno Haible  <bruno@clisp.org>
15725         tests: Prepare for using valgrind.
15726         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15727         * tests/*/*.sh: Likewise.
15728         * tests/test-freadptr.c (main): Update accordingly.
15729         * tests/test-freadseek.c (main): Likewise.
15731 2019-03-09  Bruno Haible  <bruno@clisp.org>
15733         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15734         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15735         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15736         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15737         before exiting.
15739 2019-03-09  Jim Meyering  <meyering@fb.com>
15741         test-userspec.c: don't print NULL
15742         * tests/test-userspec.c (main): A test release of gcc,
15743         9.0.1 20190310, warned that this test would attempt to
15744         print a NULL pointer via a %s printf format.  Fix that
15745         and remove the unnecessary preceding "!diag" conjunct.
15746         Also add a comment.
15748 2019-03-03  Bruno Haible  <bruno@clisp.org>
15750         getloadavg: Write NULL for the null pointer.
15751         Reported by Michal Privoznik <mprivozn@redhat.com>.
15752         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15754 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15756         alloca, tsearch-tests: Write NULL for the null pointer.
15757         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15758         * tests/test-tsearch.c (mangle_tree): Likewise.
15760 2019-03-09  Bruno Haible  <bruno@clisp.org>
15762         strfmon_l: Fix -fsanitize=address finding.
15763         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15764         <string.h>.
15765         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15766         (directive_t, directives_t): New types.
15767         (fmon_parse): New function.
15768         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15769         format string. Consume 'long double' arguments in places where the
15770         format string indicates so.
15771         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15773 2019-03-09  Bruno Haible  <bruno@clisp.org>
15775         crypto/des: Fix undefined behaviour.
15776         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15777         shift operations on 'int'.
15779 2019-03-09  Bruno Haible  <bruno@clisp.org>
15781         Fix undefined behaviour.
15782         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15783         'unsigned int', to avoid shift operations on 'int'.
15784         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15785         * tests/test-count-leading-zeros.c (main): Use a random number that has
15786         as many bits as TYPE, not only 2*15 or 2*31 bits.
15787         * tests/test-count-trailing-zeros.c (main): Likewise.
15788         * tests/test-count-one-bits.c (main): Likewise.
15789         * tests/test-memmem.c: Don't include "null-ptr.h".
15790         (main): Use zerosize_ptr() instead of null_ptr().
15791         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15793 2019-03-08  Bruno Haible  <bruno@clisp.org>
15795         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15796         Reported by Jeffrey Walton <noloader@gmail.com>.
15797         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15798         invoke memset with a zero size.
15799         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15800         Likewise.
15801         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15802         Adjust accordingly.
15804 2019-03-08  Bruno Haible  <bruno@clisp.org>
15806         unistr/*, uniconv/*: Fix undefined behaviour.
15807         Reported by Jeffrey Walton <noloader@gmail.com>.
15808         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15809         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15810         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15811         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15813 2019-03-08  Bruno Haible  <bruno@clisp.org>
15815         unistr/u8-cmp: Fix undefined behaviour.
15816         Reported by Jeffrey Walton <noloader@gmail.com>.
15817         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15819 2019-03-08  Bruno Haible  <bruno@clisp.org>
15821         unictype/numeric: Fix undefined behaviour.
15822         Reported by Jeffrey Walton <noloader@gmail.com>.
15823         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15824         on shift overflow, caught by "gcc -fsanitize=undefined".
15825         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15826         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15827         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15829 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15831         git-version-gen: fix --version copyright year
15832         * build-aux/git-version-gen, build-aux/move-if-change (version):
15833         --version output copyright year is now taken from script year,
15834         so that it no longer needs to be updated by hand.
15836 2019-03-04  Bruno Haible  <bruno@clisp.org>
15838         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15839         This approach supports relocatable installation of shared libraries
15840         which depend on other shared libraries from the same package.
15841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15842         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15843         wrapper around the original LIBTOOL.
15844         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15845         token '@loader_path' instead of '$ORIGIN'.
15846         * build-aux/libtool-reloc: New file.
15847         * modules/relocatable-prog (Files): Add it.
15848         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15849         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15850         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15851         Makefile.am, not in configure.ac.
15853 2019-03-04  Bruno Haible  <bruno@clisp.org>
15855         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15856         * build-aux/install-reloc: Revert change.
15857         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15859 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15861         nstrftime: support the ‘+’ flag
15862         * lib/nstrftime.c (add, __strftime_internal):
15863         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15864         (__strftime_internal): New arg ‘width’.  All uses changed.
15865         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15867 2019-02-24  Bruno Haible  <bruno@clisp.org>
15869         relocatable-prog: Improve verbose output.
15870         * build-aux/install-reloc (func_verbose): Escape characters that would
15871         be interpreted by the shell.
15873 2019-02-24  Bruno Haible  <bruno@clisp.org>
15875         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15876         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15877         "sys/stat.h".
15878         * lib/lstat.c: Likewise.
15879         * lib/fstat.c: Likewise.
15880         * lib/fstatat.c: Likewise.
15882 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15884         long-options: add parse_gnu_standard_options_only
15885         Discussed in https://bugs.gnu.org/33468 .
15887         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15888         (parse_gnu_standard_options_only): Add function to process
15889         the GNU default options --help and --version and fail for
15890         any other unknown long or short option. See
15891         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15892         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15893         * modules/long-options (depends-on): Add stdbool, exitfail.
15894         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15895         syntax-check rule, add new function name.
15897 2019-02-23  Bruno Haible  <bruno@clisp.org>
15899         relocatable-prog: Update documentation.
15900         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15901         the recent changes.
15903 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15905         nstrftime: tweak arg order
15906         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15907         All callers changed.  Suggested by TAMUKI Shoichi in:
15908         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15910 2019-02-23  Bruno Haible  <bruno@clisp.org>
15912         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15913         Reported by Paul Smith <psmith@gnu.org>.
15914         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15915         (func_relativize): New function, from gnulib-tool.
15916         Handle mode 'macosx' through invocations of 'otool' and
15917         'install_name_tool'.
15918         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15919         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15920         'install-reloc' invocation with mode 'macosx'.
15922 2019-02-23  Bruno Haible  <bruno@clisp.org>
15924         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15926         Hurd with glibc >= 2.27.
15928 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15930         nstrftime: merge glibc strftime changes
15931         This incorporates:
15932         2019-02-11 Fix a few whitespace arrangement inconsistencies
15933         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15934         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15935         2019-01-11 strftime: use the "L_" macro with character literals
15936         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15937         callers changed.  Default width of %Ey is now 2.  This is needed
15938         for proper handling of Japanese dates starting on 2019-05-01.
15940 2019-02-19  Bruno Haible  <bruno@clisp.org>
15942         relocatable-prog: Use $ORIGIN trick on more platforms.
15943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15944         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15945         Solaris >= 10, Haiku. But don't use it on Android.
15946         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15947         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15949 2019-02-19  Bruno Haible  <bruno@clisp.org>
15951         progreloc: Speed up executable lookup on various platforms.
15952         * lib/progreloc.c: Include <errno.h>.
15953         (safe_read, full_read): New functions.
15954         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15955         prefer the information from the /proc file system to a PATH search.
15957 2019-02-19  Bruno Haible  <bruno@clisp.org>
15959         progreloc: Simplify code for Android.
15960         * lib/progreloc.c (executable_fd): Don't define on Android.
15961         (maybe_executable, find_executable): Don't use executable_fd on Android.
15963 2019-02-15  Bruno Haible  <bruno@clisp.org>
15965         gnulib-tool: Support --import with just a few tests, not --with-tests.
15966         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15967         'inctests' when generating files; use 'inctests' only for computing the
15968         transitive closure.
15970 2019-02-14  Bruno Haible  <bruno@clisp.org>
15972         gnulib-tool: Improve handling of multiple --local-dir options.
15973         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15974         options work.
15975         * gnulib-tool (func_path_prepend): Remove function.
15976         (func_path_foreach): Make IFS handling more robust.
15977         (local_gnulib_path): Collect --local-dir values using func_path_append,
15978         not func_path_prepend.
15979         (func_determine_path_separator): Make IFS handling more robust.
15980         (func_lookup_file_cb): New function.
15981         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15982         func_lookup_local_file. Apply the patches in the reverse order of their
15983         origin in $local_gnulib_path.
15984         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15985         * NEWS: Mention that the first --local-dir option is the one with
15986         highest priority.
15988 2019-02-10  Bruno Haible  <bruno@clisp.org>
15990         libtextstyle: New module.
15991         * m4/libtextstyle.m4: New file.
15992         * modules/libtextstyle: New file.
15994 2019-02-05  Bruno Haible  <bruno@clisp.org>
15996         declared.sh: Fix bug with variables of pointer type.
15997         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15998         before the symbol to be omitted if the preceding character is a '*'.
16000 2019-02-04  Bruno Haible  <bruno@clisp.org>
16002         Add script for running tests under valgrind.
16003         * build-aux/run-test: New file, from GNU libunistring.
16004         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
16005         as well.
16007 2019-02-04  Bruno Haible  <bruno@clisp.org>
16009         declared.sh: Fix --version output.
16010         * build-aux/declared.sh (func_version): Update package name.
16012 2019-02-03  Bruno Haible  <bruno@clisp.org>
16014         Add script for determining the set of symbols to export from a library.
16015         * build-aux/declared.sh: New file, from GNU libunistring.
16016         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
16017         Mention it.
16019 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16021         vla: add commentary about VLA_ELEMS
16022         * lib/vla.h (VLA_ELEMS): Add commentary,
16023         some inspired by Bruno Haible’s proposal in:
16024         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
16026         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
16027         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
16028         assume the C99 signatures for strtod and strtold.  Programs that
16029         require stricter adherence to C99 should also use the strtod and
16030         strtold modules as needed, and we no longer need the
16031         HAVE_C99_STRTOLD macro.
16032         * NEWS: Mention this.
16033         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
16034         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
16035         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
16036         (Files): Remove m4/c-strtod.m4.
16037         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
16038         exists.
16040 2019-02-02  Bruno Haible  <bruno@clisp.org>
16042         fma: Improve code style.
16043         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
16045 2019-02-02  Colin Watson  <cjwatson@debian.org>
16047         *-map tests: Fix compilation error.
16048         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
16049         * tests/test-hash_map.c: Likewise.
16050         * tests/test-linkedhash_map.c: Likewise.
16052 2019-01-31  Bruno Haible  <bruno@clisp.org>
16054         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
16055         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
16056         GNULIB_defined_strtold_function): New macros.
16057         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
16058         (STRTOD): Ignore HAVE_C99_STRTOLD.
16059         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
16060         deemed buggy. But do use it on platforms where uselocale exists and is
16061         usable.
16062         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
16063         deemed buggy. On platforms where uselocale exists and is usable, use
16064         uselocale and strtod/strtold.
16065         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
16066         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
16067         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
16068         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
16069         (Depends-on): Add strtod.
16070         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
16071         (Depends-on): Add strtold.
16073 2019-01-31  Bruno Haible  <bruno@clisp.org>
16075         strtod, strtold: Use the locale's decimal point.
16076         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
16077         (decimal_point_char): New function, copied from lib/vasnprintf.c.
16078         (parse_number): Add a radixchar argument. Use it instead of '.'.
16079         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
16080         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
16081         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
16082         * tests/test-strtod1.c: New file.
16083         * tests/test-strtod1.sh: New file.
16084         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
16085         locale-fr.m4 and its dependencies.
16086         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16087         (Makefile.am): Arrange to compile test-strtod1.c and run
16088         test-strtod1.sh.
16089         * tests/test-strtold1.c: New file.
16090         * tests/test-strtold1.sh: New file.
16091         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
16092         locale-fr.m4 and its dependencies.
16093         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16094         (Makefile.am): Arrange to compile test-strtold1.c and run
16095         test-strtold1.sh.
16097 2019-01-31  Bruno Haible  <bruno@clisp.org>
16099         strtod, strtold tests: Simplify tests.
16100         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
16101         * tests/test-strtold.c (main): Likewise.
16103 2019-01-31  Bruno Haible  <bruno@clisp.org>
16105         strtod, strtold: Avoid unnecessary rounding errors.
16106         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
16107         decimal to DOUBLE conversion.
16109 2019-01-31  Bruno Haible  <bruno@clisp.org>
16111         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
16112         * lib/strtod.c (STRTOD): When there is an extra character after the
16113         exponent marker 'p', reparse the number.
16114         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
16115         * doc/posix-functions/strtold.texi: Likewise.
16117 2019-01-29  Bruno Haible  <bruno@clisp.org>
16119         strtold: Add tests.
16120         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
16121         * modules/strtold-tests: New file.
16123 2019-01-29  Bruno Haible  <bruno@clisp.org>
16125         strtold: New module.
16126         * lib/stdlib.in.h (strtold): New declaration.
16127         * lib/strtold.c: New file.
16128         * lib/strtod.c: Consider USE_LONG_DOUBLE.
16129         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
16130         USE_LDEXP): New macros.
16131         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
16132         USE_LONG_DOUBLE.
16133         (underlying_strtod): Remove function. Replace with some macros.
16134         Re-add the code for a missing underlying function that was removed on
16135         2013-02-19.
16136         * m4/strtold.m4: New file.
16137         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
16138         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
16139         REPLACE_STRTOLD.
16140         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
16141         REPLACE_STRTOLD.
16142         * modules/strtold: New file.
16143         * doc/posix-functions/strtold.texi: Document the new module.
16145 2019-01-29  Bruno Haible  <bruno@clisp.org>
16147         strtod: Fix compilation error on IRIX 6.5.
16148         * modules/strtod (Depends-on): Add 'math'.
16150 2019-01-28  Bruno Haible  <bruno@clisp.org>
16152         Fix build error when building a shared libunistring on Android.
16153         * tests/uninorm/test-nfc.c (n): Don't define on Android.
16154         (main): Add 'volatile', to defeat a GCC optimization that would
16155         eliminate the reference.
16156         * tests/uninorm/test-nfd.c (n): Don't define on Android.
16157         (main): Add 'volatile', to defeat a GCC optimization that would
16158         eliminate the reference.
16159         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
16160         (main): Add 'volatile', to defeat a GCC optimization that would
16161         eliminate the reference.
16162         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
16163         (main): Add 'volatile', to defeat a GCC optimization that would
16164         eliminate the reference.
16166 2019-01-27  Bruno Haible  <bruno@clisp.org>
16168         Avoid build errors due to wrong references between modules.
16169         * lib/uninorm/canonical-decomposition.c: Include
16170         "uninorm/decomposition-table.h", not "decomposition-table.h".
16171         * lib/uninorm/decomposition.c: Likewise.
16172         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
16173         not "decompose-internal.h".
16174         * lib/uninorm/u16-normalize.c: Likewise.
16175         * lib/uninorm/u32-normalize.c: Likewise.
16176         * lib/uninorm/uninorm-filter.c: Likewise.
16177         * lib/uninorm/nfkc.c: Likewise.
16178         * lib/uninorm/nfkd.c: Likewise.
16179         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
16180         "caseprop.h".
16181         * lib/unicase/u8-ct-totitle.c: Likewise.
16182         * lib/unicase/u8-prefix-context.c: Likewise.
16183         * lib/unicase/u8-suffix-context.c: Likewise.
16184         * lib/unicase/u16-casemap.c: Likewise.
16185         * lib/unicase/u16-ct-totitle.c: Likewise.
16186         * lib/unicase/u16-prefix-context.c: Likewise.
16187         * lib/unicase/u16-suffix-context.c: Likewise.
16188         * lib/unicase/u32-casemap.c: Likewise.
16189         * lib/unicase/u32-ct-totitle.c: Likewise.
16190         * lib/unicase/u32-prefix-context.c: Likewise.
16191         * lib/unicase/u32-suffix-context.c: Likewise.
16192         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
16193         "unicasemap.h".
16194         * lib/unicase/u8-toupper.c: Likewise.
16195         * lib/unicase/u8-ct-tolower.c: Likewise.
16196         * lib/unicase/u8-ct-toupper.c: Likewise.
16197         * lib/unicase/u16-tolower.c: Likewise.
16198         * lib/unicase/u16-toupper.c: Likewise.
16199         * lib/unicase/u16-ct-tolower.c: Likewise.
16200         * lib/unicase/u16-ct-toupper.c: Likewise.
16201         * lib/unicase/u32-tolower.c: Likewise.
16202         * lib/unicase/u32-toupper.c: Likewise.
16203         * lib/unicase/u32-ct-tolower.c: Likewise.
16204         * lib/unicase/u32-ct-toupper.c: Likewise.
16205         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
16206         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
16207         * lib/unicase/u16-ct-casefold.c: Likewise.
16208         * lib/unicase/u32-ct-casefold.c: Likewise.
16210 2019-01-27  Bruno Haible  <bruno@clisp.org>
16212         gperf: Fix error when this module is required by some test module.
16213         * modules/gperf (Applicability): Set to 'all'.
16215 2019-01-27  Bruno Haible  <bruno@clisp.org>
16217         tmpfile: Add support for Android.
16218         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
16219         works.
16220         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
16221         Android.
16222         * modules/tmpfile (Depends-on): Add 'stdbool'.
16223         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
16224         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
16226 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
16228         bitsetv: allow free on NULL.
16229         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
16231 2019-01-27  Bruno Haible  <bruno@clisp.org>
16233         test-framework-sh: Improve maintainability.
16234         * tests/init.sh: Clarify what belongs together. Reorder definitions.
16236 2019-01-27  Bruno Haible  <bruno@clisp.org>
16238         tests: Don't assume that /tmp exists.
16239         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
16240         * tests/test-copy-acl-1.sh: Likewise.
16241         * tests/test-file-has-acl-1.sh: Likewise.
16242         * tests/test-copy-file-1.sh: Likewise.
16244 2019-01-27  Bruno Haible  <bruno@clisp.org>
16246         tests: Accommodate a shell that is not in /bin/sh.
16247         * tests/init.sh (setup_): Set srcdir and builddir.
16248         (BOURNE_SHELL): New variable.
16249         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
16250         * modules/file-has-acl-tests (Depends-on): Likewise.
16251         * modules/copy-file-tests (Depends-on): Likewise.
16252         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
16253         scripts through $BOURNE_SHELL.
16254         * tests/test-set-mode-acl-2.sh: Likewise.
16255         * tests/test-copy-acl-1.sh: Likewise.
16256         * tests/test-copy-acl-2.sh: Likewise.
16257         * tests/test-file-has-acl-1.sh: Likewise.
16258         * tests/test-file-has-acl-2.sh: Likewise.
16259         * tests/test-copy-file-1.sh: Likewise.
16260         * tests/test-copy-file-2.sh: Likewise.
16261         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
16262         invoker.
16263         * tests/test-copy-acl.sh (builddir): Likewise.
16264         * tests/test-file-has-acl.sh (builddir): Likewise.
16265         * tests/test-copy-file.sh (builddir): Likewise.
16266         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
16267         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
16268         * tests/test-vc-list-files-git.sh: Likewise.
16270 2019-01-27  Bruno Haible  <bruno@clisp.org>
16272         tests: Fix some "unused variable" warnings.
16273         * tests/test-fts.c (fts_dealloc): Remove unused variable.
16274         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
16275         * tests/test-striconveh.c (main): Move some variable into the
16276         '#if HAVE_ICONV'.
16277         * tests/test-striconveha.c (main): Likewise.
16278         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16279         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16280         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16281         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
16282         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16283         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16284         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16285         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16286         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16287         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
16288         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
16289         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
16290         * tests/test-tsearch.c (main): Move some variable into the
16291         '#if HAVE_INITSTATE'.
16293 2019-01-27  Bruno Haible  <bruno@clisp.org>
16295         unigbrk/uc-grapheme-breaks: Fix build failure.
16296         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
16297         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
16299 2019-01-27  Bruno Haible  <bruno@clisp.org>
16301         mountlist: Merge two .m4 files.
16302         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
16303         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
16304         * m4/ls-mntd-fs.m4: Remove file.
16305         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
16307 2019-01-27  Bruno Haible  <bruno@clisp.org>
16309         tests: Enable Linux specific tests on Android.
16310         * tests/test-flock.c (main): Treat Android like Linux.
16311         * tests/test-openat-safer.c (main): Likewise.
16313 2019-01-27  Bruno Haible  <bruno@clisp.org>
16315         relocatable-prog: Use Linux code on Android.
16316         * lib/progreloc.c: Treat Android like Linux.
16318 2019-01-26  Bruno Haible  <bruno@clisp.org>
16320         getloadavg: Add support for Android.
16321         * lib/getloadavg.c: Treat Android like Linux.
16323 2019-01-26  Bruno Haible  <bruno@clisp.org>
16325         vma-iter: Add support for Android.
16326         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16327         * lib/vma-iter.c: Treat Android like Linux.
16328         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16330 2019-01-26  Bruno Haible  <bruno@clisp.org>
16332         fts: Optimize on Android.
16333         * lib/fts.c: Treat Android like Linux.
16335 2019-01-26  Bruno Haible  <bruno@clisp.org>
16337         fts: Add support for Android.
16338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16339         defined by this module and the ones in libc.
16340         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16342 2019-01-26  Bruno Haible  <bruno@clisp.org>
16344         mountlist: Use Linux code on Android.
16345         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16346         (unescape_tab, read_file_system_list): Enable Linux code on Android
16347         as well.
16348         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16349         and endmntent.
16350         * modules/mountlist (Depends-on): Add 'getline'.
16352 2019-01-26  Bruno Haible  <bruno@clisp.org>
16354         localename tests: Fix test failure on Android.
16355         * modules/localename-tests (Depends-on): Add 'setlocale'.
16357 2019-01-26  Bruno Haible  <bruno@clisp.org>
16359         mountlist: Port better to Android.
16360         * lib/mountlist.c (MOUNTED): Redefine on Android.
16361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16362         Android.
16364 2019-01-26  Bruno Haible  <bruno@clisp.org>
16366         striconveh: Fix use of uninitialized iconv_t.
16367         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16368         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16369         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16371 2019-01-26  Bruno Haible  <bruno@clisp.org>
16373         nonblocking-socket-tests: Fix test failure on Android 4.3.
16374         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16375         also on Android.
16377 2019-01-26  Bruno Haible  <bruno@clisp.org>
16379         sh-filename: Add support for Android 4.3.
16380         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16382 2019-01-26  Bruno Haible  <bruno@clisp.org>
16384         ptsname_r: Work around bug on Android 4.3.
16385         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16386         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16387         correct.
16388         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16389         is defined, just fix the return value.
16390         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16391         The behaviour of musl libc is nothing to be "fixed", since it is
16392         compliant with the next POSIX standard.
16394 2019-01-26  Bruno Haible  <bruno@clisp.org>
16396         ttyname_r: Work around bug on Android 4.3.
16397         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16398         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16399         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16400         * doc/posix-functions/ttyname.texi: Likewise.
16402 2019-01-25  Bruno Haible  <bruno@clisp.org>
16404         getprogname: Port to Android 4.3.
16405         * lib/getprogname.c (getprogname): On Android, take only the last
16406         component of __progname.
16408 2019-01-25  Bruno Haible  <bruno@clisp.org>
16410         wcrtomb: Work around bug on Android 4.3.
16411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16412         the C locale.
16413         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16414         which does not have the 'wctomb' function.
16415         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16416         * tests/test-wcrtomb.c (main): Accept argument '5'.
16417         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16419 2019-01-25  Bruno Haible  <bruno@clisp.org>
16421         setlocale: Work around bug on Android 4.3.
16422         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16423         the "C" locale.
16424         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16425         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16427 2019-01-24  Bruno Haible  <bruno@clisp.org>
16429         memchr: Work around bug on Android <= 5.0.
16430         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16431         * doc/posix-functions/memchr.texi: Mention the Android bug.
16433 2019-01-24  Bruno Haible  <bruno@clisp.org>
16435         random: Fix compilation error on Android 4.3.
16436         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16437         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16438         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16439         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16440         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16442         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16443         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16444         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16445         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16446         REPLACE_INITSTATE, REPLACE_SETSTATE.
16447         * doc/posix-functions/random.texi: Correct the description of the
16448         situation on Android.
16449         * doc/posix-functions/srandom.texi: Likewise.
16450         * doc/posix-functions/rand.texi: Likewise.
16451         * doc/posix-functions/srand.texi: Likewise.
16453 2019-01-24  Bruno Haible  <bruno@clisp.org>
16455         mbtowc: Fix compilation error on Android 4.3.
16456         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16457         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16458         HAVE_MBTOWC.
16459         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16460         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16461         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16462         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16463         * doc/posix-functions/mbtowc.texi: Mention the change.
16465 2019-01-24  Bruno Haible  <bruno@clisp.org>
16467         fdatasync: Fix compilation error on Android 4.3.
16468         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16469         test whether fdatasync() exists.
16471 2019-01-24  Bruno Haible  <bruno@clisp.org>
16473         unlinkat: Fix compilation error on Android 4.3.
16474         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16475         also on Android.
16476         * doc/posix-functions/unlinkat.texi: Mention the issue.
16478 2019-01-24  Bruno Haible  <bruno@clisp.org>
16480         renameat: Fix compilation error on Android 4.3.
16481         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16482         * doc/posix-functions/renameat.texi: Mention the issue.
16484 2019-01-24  Bruno Haible  <bruno@clisp.org>
16486         fchownat: Fix compilation error on Android 4.3.
16487         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16488         use.
16489         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16490         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16491         * doc/posix-functions/fchownat.texi: Mention the issue.
16493 2019-01-23  Bruno Haible  <bruno@clisp.org>
16495         gnulib-tool: Support running testdirs on Android.
16496         * build-aux/test-driver.diff: New file.
16497         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16498         build-aux/test-driver after running automake.
16500 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16502         relocatable-prog: avoid warnings from Automake
16503         * modules/relocatable-prog: Don't declare PHONY dependencies in
16504         Automake conditionals.
16506 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16508         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16509         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16511 2019-01-23  Bruno Haible  <bruno@clisp.org>
16513         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16514         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16515         preceding -Wl,--as-needed option. Don't check whether the linker
16516         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16518 2019-01-23  Bruno Haible  <bruno@clisp.org>
16520         thread: Force linking with -lpthread, even when --as-needed is in use.
16521         Reported by Richard W.M. Jones <rjones@redhat.com> in
16522         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16523         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16525 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16526             Bruno Haible  <bruno@clisp.org>
16528         relocatable: avoid compiler warnings (-Wshadow)
16529         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16530         to avoid name collisions with global variables.
16532 2019-01-22  Bruno Haible  <bruno@clisp.org>
16534         vasnprintf: Don't use %n on Android.
16535         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16536         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16537         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16539 2019-01-22  Bruno Haible  <bruno@clisp.org>
16541         *printf: Support cross-compilation to Android.
16542         * m4/printf.m4: Add cross-compilation guesses for Android.
16544 2019-01-21  Bruno Haible  <bruno@clisp.org>
16546         diacrit: Mark deprecated.
16547         * modules/diacrit (Status, Notice): Mark as deprecated.
16548         * NEWS: Mention it.
16550 2019-01-20  Bruno Haible  <bruno@clisp.org>
16552         rintl: Override broken implementation on NetBSD.
16553         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16554         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16555         REPLACE_RINTL.
16556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16557         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16558         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16559         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16561 2019-01-20  Bruno Haible  <bruno@clisp.org>
16563         log10l: Work around inaccurate implementation on NetBSD.
16564         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16565         * lib/log10l.c: Comment out too simplistic override.
16566         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16568 2019-01-20  Bruno Haible  <bruno@clisp.org>
16570         logl: Work around inaccurate implementation on NetBSD.
16571         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16572         * lib/logl.c: Comment out unused code.
16573         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16575 2019-01-20  Bruno Haible  <bruno@clisp.org>
16577         expm1l: Work around inaccurate implementation on NetBSD.
16578         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16579         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16580         REPLACE_EXPM1L.
16581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16582         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16583         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16584         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16586 2019-01-20  Bruno Haible  <bruno@clisp.org>
16588         expl: Work around inaccurate implementation on NetBSD.
16589         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16590         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16591         REPLACE_EXPL.
16592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16593         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16594         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16595         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16597 2019-01-20  Bruno Haible  <bruno@clisp.org>
16599         exp2l: Work around inaccurate implementation on NetBSD.
16600         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16601         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16603 2019-01-20  Bruno Haible  <bruno@clisp.org>
16605         floor, floorl: Avoid autoconf warnings.
16606         * modules/floor (configure.ac): Use AC_REQUIRE.
16607         * modules/floorl (configure.ac): Likewise.
16609 2019-01-20  Bruno Haible  <bruno@clisp.org>
16611         Defeat current GCC optimizations in math autoconf tests.
16612         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16613         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16614         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16615         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16616         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16617         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16618         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16619         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16620         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16621         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16622         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16623         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16624         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16625         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16626         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16627         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16628         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16629         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16630         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16631         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16632         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16633         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16634         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16635         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16636         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16637         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16638         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16639         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16640         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16641         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16642         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16643         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16644         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16646         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16647         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16648         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16649         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16651 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16653         gettext: support disabling use of VLAs
16654         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16656 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16658         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16659         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16661 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16663         fcntl: Fix syntax error (regression from 2018-10-05).
16664         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16666 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16668         relocatable: improve documentation.
16669         * doc/relocatable-maint.texi (Supporting Relocation): For
16670         substitutions performed by config.status, we need more variables
16671         (for instance datarootdir defaults to '${prefix}/share' so we need
16672         prefix).
16674 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16676         backup: update dependencies
16677         * modules/backup-rename (Depends-on): It now depends on opendirat
16678         instead of opendir.  It also uses stdint, and xalloc-oversized.
16679         But no longer dirfd.
16680         * modules/backupfile (Depends-on): Add xalloc-oversized.
16682 2019-01-13  Bruno Haible  <bruno@clisp.org>
16684         getcwd: Fix test failure when building on a Linux 9p file system.
16685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16686         EINVAL from mkdir like ENAMETOOLONG.
16687         * tests/test-getcwd.c (test_long_name): Likewise.
16689 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16691         Fix typos found by codespell.
16692         * lib/*.[hc]: Fix typos in comments.
16693         * pygnulib/*.py: Fix typos in error messages and comments.
16695 2019-01-12  Bruno Haible  <bruno@clisp.org>
16697         doc: Fix documentation about container data types.
16698         Reported by Werner Lemberg <wl@gnu.org>.
16699         * doc/containers.texi (Container data types): Fix typo.
16701 2019-01-10  Bruno Haible  <bruno@clisp.org>
16703         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16704         Reported by Reuben Thomas <rrt@sc3d.org>.
16705         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16707 2019-01-06  Bruno Haible  <bruno@clisp.org>
16709         maintainer-makefile: Make the configure.ac section optional.
16710         * top/maint.mk (GREP, SED): Define if not defined.
16712 2019-01-06  Bruno Haible  <bruno@clisp.org>
16714         localename: Assume setlocale function.
16715         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16716         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16718 2019-01-06  Bruno Haible  <bruno@clisp.org>
16720         doc: Add documentation about container data types.
16721         * doc/containers.texi: New file.
16722         * doc/gnulib.texi (Particular Modules): Include it.
16724 2019-01-06  Bruno Haible  <bruno@clisp.org>
16726         doc: Update documentation about 'progname' module.
16727         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16728         title. Rewrite.
16729         * doc/gnulib.texi (Particular Modules): Update.
16731 2019-01-06  Bruno Haible  <bruno@clisp.org>
16733         doc: Document the xstdopen and *-safer modules.
16734         * doc/xstdopen.texi: New file.
16735         * doc/gnulib.texi (Particular Modules): Include it.
16737 2019-01-06  Bruno Haible  <bruno@clisp.org>
16739         xstdopen: Add tests.
16740         * tests/test-xstdopen.c: New file.
16741         * tests/test-xstdopen.sh: New file.
16742         * modules/xstdopen-tests: New file.
16744         xstdopen: New module.
16745         * lib/xstdopen.h: New file.
16746         * lib/xstdopen.c: New file.
16747         * modules/xstdopen: New file.
16749 2019-01-06  Bruno Haible  <bruno@clisp.org>
16751         stdopen: Fix compilation error with IRIX cc.
16752         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16754 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16756         xfreopen need not include stdio--.h
16757         * lib/xfreopen.c: Do not include stdio--.h.
16759         xfreopen need not depend on freopen-safer
16760         * modules/xfreopen (Depends-on):
16761         Depend on freopen, not freopen-safer.
16763         stdopen: modernize and simplify
16764         * lib/stdopen.c: Update copyright date
16765         Do not include sys/types.h; no longer needed these days.
16766         (stdopen): Use C99-style decl in loop.  Return int errno
16767         value, rather than just a bool.  Do not worry about fd mismatches,
16768         since the caller cares only if 0, 1, 2 are occupied.
16769         * lib/stdopen.h: No need to include <stdbool.h>.
16770         * m4/stdopen.m4: Remove.
16771         * modules/stdopen: New file.
16773         stdopen: copy from last use in coreutils
16774         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16775         New files, taken from their last commit in coreutils
16776         2007-07-23T12:35:58Z!jim@meyering.net
16777         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16779 2019-01-05  Bruno Haible  <bruno@clisp.org>
16781         argp: Don't pass an invalid argument to dgettext().
16782         Reported by He X <xw897002528@gmail.com>.
16783         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16784         dgettext().
16786 2019-01-05  Bruno Haible  <bruno@clisp.org>
16788         argp: Don't pass an invalid argument to dgettext().
16789         Reported by He X <xw897002528@gmail.com>.
16790         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16791         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16792         dgettext().
16794 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16796         stdioext: port to newer 32-bit Android
16797         Problem reported by Tom Yan in:
16798         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16799         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16800         (fp_) [__ANDROID__]: Use it.
16802 2019-01-04  Bruno Haible  <bruno@clisp.org>
16804         lock: Fix link error with --enable-threads=pth.
16805         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16806         Mark as weak.
16808 2019-01-04  Bruno Haible  <bruno@clisp.org>
16810         Fix link errors in unit tests.
16811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16812         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16813         * modules/array-map-tests (Makefile.am): Link test-array_map against
16814         libintl.
16815         * modules/array-set-tests (Makefile.am): Link test-array_set against
16816         libintl.
16817         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16818         libintl.
16819         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16820         libintl.
16821         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16822         against libintl.
16823         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16824         against libintl.
16826 2019-01-04  Bruno Haible  <bruno@clisp.org>
16828         Fix incorrect 'Link' sections.
16829         * modules/regex (Link): Mention the link requirement of module 'lock'.
16830         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16832 2019-01-04  Bruno Haible  <bruno@clisp.org>
16834         Fix some 'Link' sections.
16835         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16836         dependency.
16837         * modules/getaddrinfo (Link): Likewise.
16839 2019-01-04  Bruno Haible  <bruno@clisp.org>
16841         Remove redundant 'Link' sections.
16842         * modules/canon-host (Link): Remove section.
16843         * modules/timevar (Link): Likewise.
16845 2019-01-04  Bruno Haible  <bruno@clisp.org>
16847         Remove incorrect 'Link' sections.
16848         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16849         the dependencies instead.
16850         * modules/crypto/md5 (Link): Likewise.
16851         * modules/crypto/sha1 (Link): Likewise.
16852         * modules/crypto/sha256 (Link): Likewise.
16853         * modules/crypto/sha512 (Link): Likewise.
16854         * modules/faccessat (Link): Likewise.
16855         * modules/fdutimensat (Link): Likewise.
16856         * modules/iconv_open-utf (Link): Likewise.
16857         * modules/propername (Link): Likewise.
16858         * modules/qacl (Link): Likewise.
16859         * modules/unicodeio (Link): Likewise.
16860         * modules/utimecmp (Link): Likewise.
16861         * modules/utimensat (Link): Likewise.
16862         * modules/xstriconv (Link): Likewise.
16863         * modules/xstriconveh (Link): Likewise.
16865 2019-01-04  Bruno Haible  <bruno@clisp.org>
16867         gnulib-tool: New option --extract-recursive-link-directive.
16868         * gnulib-tool (func_usage): Document the new options
16869         --extract-recursive-dependencies, --extract-recursive-link-directive.
16870         (func_verify_module): Document output variables.
16871         (func_get_dependencies_recursively): New function.
16872         (func_get_link_directive_recursively): New function.
16873         Use them to implement the new options
16874         --extract-recursive-dependencies, --extract-recursive-link-directive.
16875         * doc/gnulib-tool.texi (Link-time requirements): New section.
16877 2019-01-04  Bruno Haible  <bruno@clisp.org>
16879         Clarify meaning of 'Link' section in module description.
16880         * doc/gnulib.texi (Module description): Clarify the meaning of the
16881         'Link' section versus the one of the dependencies.
16882         * NEWS: Mention the change.
16884 2019-01-04  Bruno Haible  <bruno@clisp.org>
16886         pselect: Fix module description.
16887         * modules/pselect (Link): Put one link option per line.
16889 2019-01-04  Bruno Haible  <bruno@clisp.org>
16891         cosl: Fix module description.
16892         * modules/cosl (Link): Fix typo.
16893         * modules/mathl (configure.ac): Likewise.
16895 2019-01-04  Bruno Haible  <bruno@clisp.org>
16897         c-xvasprintf: Fix module dependencies.
16898         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16900 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16902         bootstrap: die when some submodules are not initialized
16903         * build-aux/bootstrap: Make sure all submodules are initialized.
16905 2019-01-04  Bruno Haible  <bruno@clisp.org>
16907         bitsetv: Fix module dependencies.
16908         * lib/bitsetv.c: Include xalloc.h.
16909         * modules/bitsetv (Depends-on): Add 'xalloc'.
16911 2019-01-04  Bruno Haible  <bruno@clisp.org>
16913         xmemdup0: Remove redundant code.
16914         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16916 2019-01-04  Bruno Haible  <bruno@clisp.org>
16918         backupfile: Fix module dependencies.
16919         * modules/backupfile (Depends-on): Add 'xalloc'.
16921 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16923         bitset, crypto/gc: fix conflicts with Solaris 11
16924         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16925         avoid clash with Solaris 11 <sys/bitset.h>.
16926         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16927         with Solaris 11 <xorg/gc.h>.
16929 2019-01-04  Bruno Haible  <bruno@clisp.org>
16931         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16932         Reported by Andy Fiddaman <andy@omniosce.org>.
16933         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16935 2019-01-03  Eric Blake  <eblake@redhat.com>
16937         maintainer-makefile: fix typo in previous patch
16938         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16939         of Roman's work.
16941 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16943         maintainer-makefile: prefer $(GREP) over grep
16944         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16945         defined.
16946         * top/maint.mk: Use it everywhere.
16948         maintainer-makefile: split long argument lines
16949         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16950         it would be too long for exec limits on BSD.
16952 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16954         mkfifo: bring back HAVE_MKFIFO macro
16955         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16956         Problem reported by Andrew Janke in:
16957         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16959 2018-12-21  Bruno Haible  <bruno@clisp.org>
16961         Assume Autoconf >= 2.63.
16962         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16963         versions < 2.60.
16965 2018-12-21  Bruno Haible  <bruno@clisp.org>
16967         memcmp: Mention the clang bug.
16968         * tests/test-memcmp.c: Add comment about a known test failure.
16969         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16971 2018-12-20  Jim Meyering  <meyering@fb.com>
16973         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16974         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16975           echo '123-x'|LC_ALL=C grep -E '.\bx'
16976         The goal is to revert the first, but reverting it requires to restore
16977         the function deleted in the second. I ran this to restore the deleted
16978         function:
16979           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16980             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16981             | patch -R -p1
16982         * lib/dfa.c (charclass_context): Restore deleted function.
16983         Reverting the primary commit removes this change:
16984         dfa: Simplify a building state
16985         * lib/dfa.c (build_state): Simplify a building state.
16987 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16989         version-etc: allow zero authors
16990         * lib/version-etc.c (version_etc_arn): If no authors are given,
16991         omit authorship info instead of dumping core.
16993 2018-12-19  Bruno Haible  <bruno@clisp.org>
16995         lchown tests: Be more permissive regarding errno values.
16996         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16997         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16998         alternative to ENOSYS.
16999         * modules/lchown-tests (Depends-on): Add 'errno'.
17000         * modules/fchownat-tests (Depends-on): Likewise.
17002 2018-12-18  Bruno Haible  <bruno@clisp.org>
17004         duplocale: Avoid test failure on AIX 7.
17005         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
17006         (configure.ac): Invoke gt_FUNC_USELOCALE.
17007         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
17008         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
17009         works.
17011 2018-12-18  Bruno Haible  <bruno@clisp.org>
17013         localename: Fix test failure on AIX 7.
17014         Reported by Assaf Gordon in
17015         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
17016         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
17017         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
17018         instead of ac_cv_func_uselocale.
17019         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
17020         HAVE_USELOCALE.
17021         * lib/localename-table.h: Likewise.
17022         * lib/localename-table.c: Likewise.
17023         * tests/test-localename.c: Likewise.
17024         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
17026 2018-12-18  Bruno Haible  <bruno@clisp.org>
17028         localename: Update comments regarding Cygwin.
17029         * lib/localename.c: Update comment.
17030         * doc/posix-functions/uselocale.texi: Update platforms list.
17031         * doc/posix-functions/newlocale.texi: Likewise.
17032         * doc/posix-functions/duplocale.texi: Likewise.
17033         * doc/posix-functions/freelocale.texi: Likewise.
17035 2018-12-16  Bruno Haible  <bruno@clisp.org>
17037         c-stack: Fix for Linux/sparc.
17038         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
17039         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
17041 2018-12-16  Bruno Haible  <bruno@clisp.org>
17043         localename: Avoid test failure on some glibc systems.
17044         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
17045         Unset environment variables that might disturb the first setlocale call,
17046         and verify that this setlocale call succeeds.
17048 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
17050         random: Fix build error on native Windows (regression from 2018-06-21).
17051         * lib/random.c (__srandom, __initstate, __setstate, __random,
17052         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
17053         to the symbols without '__' prefix.
17055 2018-12-16  Bruno Haible  <bruno@clisp.org>
17057         obstack, libc-config: Support HP-UX cc in C99 mode.
17058         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
17059         compiler, even when in C99 mode.
17060         * lib/cdefs.h (__flexarr): Likewise.
17061         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
17063 2018-12-16  Bruno Haible  <bruno@clisp.org>
17065         localename: Fix test failure on OpenBSD >= 6.2.
17066         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
17067         locale system. Define HAVE_FAKE_LOCALES in this case.
17068         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
17069         HAVE_USELOCALE.
17070         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
17071         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
17072         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
17073         platforms list.
17074         * doc/posix-functions/newlocale.texi: Likewise.
17075         * doc/posix-functions/duplocale.texi: Update platforms list.
17076         * doc/posix-functions/freelocale.texi: Likewise.
17078 2018-12-16  Bruno Haible  <bruno@clisp.org>
17080         duplocale tests: Re-enable the test on platforms without <monetary.h>.
17081         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
17082         of the test, on platforms without <monetary.h>.
17084 2018-12-16  Bruno Haible  <bruno@clisp.org>
17086         localename: Update comments.
17087         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
17089 2018-12-15  Jim Meyering  <meyering@fb.com>
17091         regex: fix indentation
17092         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
17094 2018-12-15  Bruno Haible  <bruno@clisp.org>
17096         openat-safer tests: Avoid test failure on NetBSD 8.
17097         * tests/test-openat-safer.c (main): Execute a Linux specific test only
17098         on Linux.
17100 2018-12-15  Jim Meyering  <meyering@fb.com>
17102         regex: work around a bug in glibc-2.27 and prior
17103         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
17104         assertion for /0|()0|\1|0/.
17105         * tests/test-regex.c (main): Add the same test here.
17107 2018-12-15  Bruno Haible  <bruno@clisp.org>
17109         localename: Fix use of uninitialized shell variable.
17110         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
17111         gt_cv_locale_solaris114 always before use. Remove assignment without
17112         effect.
17114 2018-12-15  Bruno Haible  <bruno@clisp.org>
17116         dfa tests: Avoid test failure on Alpine Linux.
17117         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
17118         command found on Alpine Linux.
17120 2018-12-15  Jim Meyering  <meyering@fb.com>
17122         dfa: avoid new warnings from gcc
17123         These would prevent building with -Werror and a Dec snapshot of gcc.
17124         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
17125         Rename each inner instance to "p".
17126         (charclass_context): Remove unused static function.
17128 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17130         mkdir-p: improve diagnostic for FUSE mounts
17131         Problem reported by Niklas Hambüchen in:
17132         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
17133         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
17134         errno to mkdir errno if the stat errno is likely more interesting.
17136 2018-12-14  Bruno Haible  <bruno@clisp.org>
17138         hash-map: Add tests.
17139         * tests/test-hash_map.c: New file.
17140         * modules/hash-map-tests: New file.
17142         linkedhash-map: Add tests.
17143         * tests/test-linkedhash_map.c: New file.
17144         * modules/linkedhash-map-tests: New file.
17146         array-map: Add tests.
17147         * tests/test-array_map.c: New file.
17148         * modules/array-map-tests: New file.
17150         xmap: New module.
17151         * lib/gl_xmap.h: New file.
17152         * lib/gl_xmap.c: New file.
17153         * modules/xmap: New file.
17155         hash-map: New module.
17156         * lib/gl_hash_map.h: New file.
17157         * lib/gl_hash_map.c: New file.
17158         * modules/hash-map: New file.
17160         linkedhash-map: New module.
17161         * lib/gl_linkedhash_map.h: New file.
17162         * lib/gl_linkedhash_map.c: New file.
17163         * lib/gl_anyhash1.h: Update comments.
17164         * lib/gl_anyhash2.h: Likewise.
17165         * modules/linkedhash-map: New file.
17167         array-map: New module.
17168         * lib/gl_array_map.h: New file.
17169         * lib/gl_array_map.c: New file.
17170         * modules/array-map: New file.
17172         map: New module.
17173         * lib/gl_map.h: New file.
17174         * lib/gl_map.c: New file.
17175         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
17176         conflict with gl_map.h.
17177         * modules/map: New file.
17179 2018-12-13  Bruno Haible  <bruno@clisp.org>
17181         select tests: Avoid test failure on Cygwin.
17182         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
17184 2018-12-13  Bruno Haible  <bruno@clisp.org>
17186         localtime-buffer: Avoid endless recursion in localtime and gmtime.
17187         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
17189 2018-12-13  Bruno Haible  <bruno@clisp.org>
17191         localeconv tests: Avoid test failure on Cygwin.
17192         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
17193         'mon_grouping' tests.
17195 2018-12-11  Bruno Haible  <bruno@clisp.org>
17197         omap: Don't dispose the old value when the function returns it.
17198         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
17199         here.
17200         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17201         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17202         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
17203         here.
17205         array-omap, avltree-omap, rbtree-omap: Tweak style.
17206         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
17207         false.
17208         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
17210         rbtree-omap: Add tests.
17211         * tests/test-rbtree_omap.c: New file.
17212         * modules/rbtree-omap-tests: New file.
17214         avltree-omap: Add tests.
17215         * tests/test-avltree_omap.c: New file.
17216         * modules/avltree-omap-tests: New file.
17218         array-omap: Add tests.
17219         * tests/test-array_omap.c: New file.
17220         * modules/array-omap-tests: New file.
17222         xomap: New module.
17223         * lib/gl_xomap.h: New file.
17224         * lib/gl_xomap.c: New file.
17225         * modules/xomap: New file.
17227         rbtree-omap: New module.
17228         * lib/gl_rbtree_omap.h: New file.
17229         * lib/gl_rbtree_omap.c: New file.
17230         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
17231         Parameterize.
17232         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
17233         * modules/rbtree-omap: New file.
17234         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
17235         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
17237         avltree-omap: New module.
17238         * lib/gl_avltree_omap.h: New file.
17239         * lib/gl_avltree_omap.c: New file.
17240         * lib/gl_avltree_ordered.h: Code moved to here from
17241         lib/gl_avltree_oset.c. Parameterize.
17242         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
17243         * lib/gl_anytree_omap.h: New file.
17244         * modules/avltree-omap: New file.
17245         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
17246         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
17248         array-omap: New module.
17249         * lib/gl_array_omap.h: New file.
17250         * lib/gl_array_omap.c: New file.
17251         * modules/array-omap: New file.
17253         omap: New module.
17254         * lib/gl_omap.h: New file.
17255         * lib/gl_omap.c: New file.
17256         * modules/omap: New file.
17258 2018-12-11  Bruno Haible  <bruno@clisp.org>
17260         hash-set, linkedhash-set: Reduce code duplication.
17261         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
17262         lib/gl_anyhash_set1.h.
17263         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
17264         lib/gl_anyhash_set2.h. Parameterize.
17265         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
17266         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
17267         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
17268         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
17269         * lib/gl_rbtreehash_list.c: Likewise.
17270         * lib/gl_linkedhash_list.c: Likewise.
17271         (hash_resize_after_add): Remove function.
17272         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
17273         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
17274         * gl_hash_set.c: Likewise.
17275         * modules/avltreehash-list (Files, Makefile.am): Update file list.
17276         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
17277         * modules/linkedhash-list (Files, Makefile.am): Likewise.
17278         * modules/linkedhash-set (Files, Makefile.am): Likewise.
17279         * modules/hash-set (Files, Makefile.am): Likewise.
17281 2018-12-11  Bruno Haible  <bruno@clisp.org>
17283         array-set: Optimize.
17284         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
17285         outside the loop, not inside the loop.
17287 2018-12-11  Bruno Haible  <bruno@clisp.org>
17289         times: Fix tests.
17290         * tests/test-times.c (doublecmp): Implement a total order.
17292 2018-12-11  Bruno Haible  <bruno@clisp.org>
17294         array-set, linkedhash-set, hash-set: Fix tests.
17295         * tests/test-array_set.c (cmp_objects_in_array): New function.
17296         (check_equals): Use it.
17297         * tests/test-hash_set.c: Likewise.
17298         * tests/test-linkedhash_set.c: Likewise.
17300 2018-12-08  Bruno Haible  <bruno@clisp.org>
17302         Fix comments.
17303         * lib/gl_list.h (gl_list_free): Clarify what it does.
17304         * lib/gl_oset.h (gl_oset_free): Likewise.
17305         * lib/gl_set.h (gl_set_free): Likewise.
17306         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
17307         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
17308         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
17309         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
17311 2018-12-03  Bruno Haible  <bruno@clisp.org>
17313         hash-set: Add tests.
17314         * tests/test-hash_set.c: New file.
17315         * modules/hash-set-tests: New file.
17317         linkedhash-set: Add tests.
17318         * tests/test-linkedhash_set.c: New file.
17319         * modules/linkedhash-set-tests: New file.
17321         array-set: Add tests.
17322         * tests/test-array_set.c: New file.
17323         * modules/array-set-tests: New file.
17325         xset: New module.
17326         * lib/gl_xset.h: New file.
17327         * lib/gl_xset.c: New file.
17328         * modules/xset: New file.
17330         hash-set: New module.
17331         * lib/gl_hash_set.h: New file.
17332         * lib/gl_hash_set.c: New file.
17333         * modules/hash-set: New file.
17335         linkedhash-set: New module.
17336         * lib/gl_linkedhash_set.h: New file.
17337         * lib/gl_linkedhash_set.c: New file.
17338         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17339         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17340         * lib/gl_anyhash_primes.h: New file, extracted from
17341         lib/gl_anyhash_list2.h.
17342         * lib/gl_anyhash_list2.h: Include it.
17343         (primes, next_prime): Remove definitions.
17344         * modules/linkedhash-set: New file.
17345         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17346         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17347         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17348         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17349         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17350         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17352         array-set: New module.
17353         * lib/gl_array_set.h: New file.
17354         * lib/gl_array_set.c: New file.
17355         * modules/array-set: New file.
17357         set: New module.
17358         * lib/gl_set.h: New file.
17359         * lib/gl_set.c: New file.
17360         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17361         gl_set.h.
17362         * modules/set: New file.
17364 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17366         bison: don't force the Yacc mode
17367         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17368         errors when Bison features are used in the grammar file.  Some of
17369         these features (such as %expect) were flagged non-yacc recently.  Most
17370         of the time, -y is actually used to please Automake's ylwrap which
17371         expects the output to be y.tab.c.
17372         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17374 2018-12-01  Bruno Haible  <bruno@clisp.org>
17376         gnupload: Document short options.
17377         * build-aux/gnupload (usage): Document the short options.
17379 2018-11-28  Ben Elliston  <bje@gnu.org>
17381         gnupload: Support option -h as alias of --help.
17382         * build-aux/gnupload: Support -h.
17384 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17386         memrchr: port better to clang
17387         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17388         longword *, to pacify clang -Wcast-align (Bug#33544).
17390 2018-11-29  Eric Blake  <eblake@redhat.com>
17392         docs: mention printf %m considerations
17393         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17394         is not portable, and is easy enough to work around.
17395         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17396         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17397         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17398         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17399         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17400         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17401         * doc/posix-functions/printf.texi (printf): Likewise.
17402         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17403         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17404         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17405         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17406         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17407         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17408         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17409         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17410         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17411         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17412         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17413         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17415 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17417         bitset: rename ebitset/expandable.* as tbitset/table.*
17418         See
17419         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17420         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17421         * lib/bitset/table.h, lib/bitset/table.c: these.
17422         Rename all the ebitset* symbols as tbitset*.
17423         Adjust dependencies.
17425 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17427         bitset: check the operations
17428         * tests/test-bitset.c (bitset_random): New.
17429         Use it.
17430         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17432 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17434         bitset: properly use false/true instead of 0/1 for Booleans
17435         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17436         0/1, as Booleans.
17438 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17440         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17441         For consistency with the name of the file.
17442         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17443         * lib/bitset/stats.c, lib/bitset/vector.c
17444         (BITSET_VARRAY): Rename as...
17445         (BITSET_VECTOR): this.
17447 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17449         strerror_r-posix: memmove, not memcpy
17450         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17451         since the source and destination might overlap in the call
17452         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17453         Simplify.
17455 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17457         bitsetv: new module
17458         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17460 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17462         bitset: add tests and doc
17463         First stabs at providing a documentation and test for the bitset
17464         module.
17465         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17467 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17469         bitset: new module
17470         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17471         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17472         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17473         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17474         * lib/bitset/vector.h, modules/bitset:
17475         New.
17477 2018-11-23  Bruno Haible  <bruno@clisp.org>
17479         localename: Fix gettext test failures on mingw.
17480         * lib/localename.c (gl_locale_name_posix): Convert the result of
17481         gl_locale_name_environ to XPG syntax.
17483 2018-11-23  Karl Berry  <karl@freefriends.org>
17485         * config/srclistvars.txt,
17486         * config/srclist.txt: remove all gettext references;
17487         the gettext maintainers will sync as needed.
17489 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17491         mktime: add libc-config dependency
17492         I missed this when we synced from glibc.
17493         * modules/mktime (Depends-on): Add libc-config.
17495 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17497         longlong: fix comment typo
17498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17500 2018-11-11  Bruno Haible  <bruno@clisp.org>
17502         havelib: Remove the need to include asm-underscore.m4.
17503         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17504         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17505         gl_HOST_CPU_C_ABI.
17506         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17507         (Depends-on): Remove host-cpu-c-abi.
17509 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17511         parse-datetime: simplify test for mktime failure
17512         * lib/parse-datetime.y (mktime_ok): Simplify.
17513         Remove args TZ and T; no longer needed.  Callers changed.
17515         posixtm: simplify test for mktime failure
17516         * lib/posixtm.c (posixtime): Simplify.
17518         nstrftime: simplify test for mktime failure
17519         * lib/nstrftime.c (__strftime_internal): Simplify.
17521 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17523         gnulib-common.m4: port _Noreturn to C++
17524         Problem reported by Akim Demaille in:
17525         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17526         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17527         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17528         version.
17529         * lib/_Noreturn.h: Match gnulib-common.
17531 2018-10-30  Bruno Haible  <bruno@clisp.org>
17533         gnu-make: Fix for NetBSD 8 'make'.
17534         Reported by Reuben Thomas in
17535         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17536         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17537         output, ignoring exit codes.
17539 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17541         maintainer-makefile: fix syntax-check rule for "same.h"
17542         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17543         for 'same_nameat', too.
17545 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17547         havelib: fix nested ‘configure’ chatter
17548         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17549         AC_CACHE_CHECK calls, which resulted in confusing output like
17550         “checking for the common suffixes of directories in the library
17551         search path... checking for 64-bit host... no lib,lib”.
17553         backupfile: tweak for better code
17554         * lib/backupfile.c: Sort include directives, and remove
17555         unnecessary <limits.h> include.
17556         (FALLTHROUGH): New macro, copied from other modules.
17557         (backupfile_internal): Use it to avoid code duplication.
17558         This lets GCC 8.2.1 generate better code by inlining the
17559         call to check_extension.
17561 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17563         backupfile: new dir_fd args
17564         New module opendirat with code taken from fts.
17565         Use this module to let backupfile use a directory file descriptor.
17566         * NEWS: Document the incompatible change.
17567         * lib/backup-find.c (find_backup_file_name):
17568         * lib/backup-rename.c (backup_file_rename):
17569         New arg DIR_FD.
17570         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17571         (SIZE_MAX): Remove.
17572         Include opendirat.h rather than dirent--.h.
17573         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17574         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17575         (backupfile_internal): New arg DIR_FD.  All callers changed.
17576         * lib/fts.c: Include opendirat.h.
17577         (opendirat): Move to opendirat.c.
17578         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17579         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17580         Add opendirat.
17581         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17582         Add opendirat.
17584 2018-10-23  Bruno Haible  <bruno@clisp.org>
17586         localename: Simplify support for per-thread locales on Solaris 11.4.
17587         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17588         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17589         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17590         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17591         specific code.
17592         * lib/localename-table.h: Update comments.
17593         * lib/localename-table.c: Update comments.
17594         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17595         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17596         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17597         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17598         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17599         HAVE_NAMELESS_LOCALES here.
17600         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17601         m4/intlsolaris.m4.
17602         * modules/gettext (Files): Likewise.
17604 2018-10-22  Bruno Haible  <bruno@clisp.org>
17606         std-gnu11: Support Autoconf versions < 2.64.
17607         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17608         when _AC_DO_LIMIT does not exist.
17610 2018-10-22  Bruno Haible  <bruno@clisp.org>
17612         Assume Autoconf >= 2.63.
17613         * DEPENDENCIES: Mention the requirement.
17615         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17616         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17617         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17618         * m4/onceonly.m4: Remove file.
17620         * m4/openmp.m4: Remove file.
17621         * modules/openmp (Files): Remove m4/openmp.m4.
17623         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17624         htmldir, dvidir, pdfdir, psdir, localedir.
17625         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17627         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17628         Autoconf < 2.60.
17629         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17630         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17632         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17633         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17634         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17636         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17637         exists.
17638         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17640         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17641         Autoconf < 2.61.
17643         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17644         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17645         Autoconf >= 2.52.
17647         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17648         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17649         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17651 2018-10-22  Bruno Haible  <bruno@clisp.org>
17653         Assume Automake >= 1.11.
17654         * m4/configmake.m4: Update comments.
17655         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17656         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17657         of 'eval'.
17658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17659         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17660         requires Automake >= 1.11.
17662 2018-10-22  Bruno Haible  <bruno@clisp.org>
17664         localename: Fix typo in comment.
17665         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17667 2018-10-22  Bruno Haible  <bruno@clisp.org>
17669         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17670         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17672 2018-10-21  Bruno Haible  <bruno@clisp.org>
17674         locale: Ease integration with GNU libintl.
17675         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17676         GNULIB_defined_freelocale): New macros.
17678 2018-10-21  Bruno Haible  <bruno@clisp.org>
17680         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17681         * lib/localename-table.h: New file, extracted from lib/localename.c.
17682         * lib/localename-table.c: Likewise.
17683         * lib/localename.c: Include localename-table.h.
17684         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17685         locale_hash_function instead of pointer_hash.
17686         * modules/localename (Files): Add lib/localename-table.h,
17687         lib/localename-table.c.
17688         (lib_SOURCES): Add localename-table.c.
17689         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17690         for Solaris 11.4 locale system only on Solaris. Test for it
17691         independently whether getlocalename_l exists.
17692         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17693         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17694         HAVE_NAMELESS_LOCALES.
17695         * modules/gettext (Files): Add m4/intlsolaris.m4.
17697 2018-10-21  Bruno Haible  <bruno@clisp.org>
17699         Small update from gettext.
17700         * m4/intl.m4: Update from gettext:
17701         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17702         mode on AIX.
17703         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17704         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17706 2018-10-16  Bruno Haible  <bruno@clisp.org>
17708         mountlist: Remove support for Cray with UNICOS 9.
17709         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17710         MOUNTED_LISTMNTENT.
17711         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17713 2018-10-16  Bruno Haible  <bruno@clisp.org>
17715         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17717         STAT_STATFS2_FS_DATA.
17718         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17719         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17720         MOUNTED_GETMNT.
17721         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17722         * lib/getloadavg.c (decstation): Remove definition and case.
17723         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17724         * lib/getgroups.c: Likewise.
17725         * doc/posix-functions/getgroups.texi: Likewise.
17726         * lib/time.in.h: Update comments.
17728 2018-10-16  Bruno Haible  <bruno@clisp.org>
17730         getloadavg: Remove support for ConvexOS.
17731         * lib/getloadavg.c: Remove convex case.
17733 2018-10-16  Bruno Haible  <bruno@clisp.org>
17735         getloadavg: Remove support for Sony NEWS.
17736         * lib/getloadavg.c: Remove sony_news case.
17738 2018-10-16  Bruno Haible  <bruno@clisp.org>
17740         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17741         * lib/fsusage.c: Remove _SEQUENT_ case.
17742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17743         * lib/mountlist.c: Don't test for MNTTABNAME.
17744         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17745         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17746         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17747         * lib/stat-size.h: Don't mention the Sequent bug.
17748         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17750 2018-10-16  Bruno Haible  <bruno@clisp.org>
17752         fsusage: Remove support for AIX 3.
17753         * lib/fsusage.c: Remove code for AIX 3.
17754         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17756 2018-10-16  Bruno Haible  <bruno@clisp.org>
17758         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17759         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17760         * lib/fsusage.c: Remove code for AIX PS/2.
17761         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17762         * lib/getloadavg.c: Likewise.
17764 2018-10-16  Bruno Haible  <bruno@clisp.org>
17766         getloadavg: Remove support for HP-UX on m68k.
17767         * lib/getloadavg.c: Remove hp9000s300 case.
17769 2018-10-16  Bruno Haible  <bruno@clisp.org>
17771         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17772         * lib/fsusage.c: Remove DOLPHIN case.
17773         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17774         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17776 2018-10-16  Bruno Haible  <bruno@clisp.org>
17778         getloadavg: Remove support for Alliant FX/2800.
17779         * lib/getloadavg.c: Remove alliant case.
17781 2018-10-16  Bruno Haible  <bruno@clisp.org>
17783         getloadavg: Remove support for tek4300.
17784         * lib/getloadavg.c: Remove tek4300 case.
17786 2018-10-16  Bruno Haible  <bruno@clisp.org>
17788         getloadavg: Remove support for Ardent.
17789         * lib/getloadavg.c: Remove ardent case.
17791 2018-10-16  Bruno Haible  <bruno@clisp.org>
17793         mountlist: Remove support for SVR2.
17794         Reported by Andrew Borodin <aborodin@vmail.ru> in
17795         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17796         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17798         MOUNTED_FREAD.
17800 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17802         libc-config: merge from glibc
17803         * lib/cdefs.h (__glibc_has_attribute): New macro.
17805         regex: depend on libc-config
17806         * modules/regex (Depends-on): Add libc-config.
17807         This is needed after the recent autoupdate from glibc.
17809 2018-10-14  Bruno Haible  <bruno@clisp.org>
17811         localename: Add support for per-thread locales on Solaris 11.4.
17812         * lib/locale.in.h (newlocale, freelocale): New declarations.
17813         (duplocale): Declare also when the 'localename' module requests it.
17814         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17815         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17816         (struniq): Update.
17817         (struct locale_categories_names, struct locale_hash_node): New types.
17818         (LOCALE_HASH_TABLE_SIZE): New constant.
17819         (locale_hash_table, locale_lock): New variables.
17820         (pointer_hash, get_locale_t_name): New functions.
17821         (newlocale, duplocale, freelocale): New overridden functions.
17822         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17823         * m4/intlsolaris.m4: New file.
17824         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17825         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17826         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17827         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17828         declared.
17829         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17830         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17831         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17832         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17833         * modules/localename (Files): Add intlsolaris.m4.
17834         (Depends-on): Add 'locale'.
17835         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17836         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17837         the signatures.
17839 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17841         timevar: use gethrxtime to get wall clock time
17842         clock_gettime is not portable.  gethrxtime takes the best available
17843         option to get the wall clock time, including clock_gettime (monotonic
17844         clock), and gettime (non monotonic).
17845         Also, using xtime_t instead of float preserves the precision.
17846         Suggested by Bruno Haible.
17847         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17848         * modules/timevar (Depends-on): We need gethrxtime.
17849         We no longer use times().
17850         (Link): Update.
17851         * lib/timevar.h (timevar_time_def): Use xtime_t.
17852         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17853         (timevar_print): Instead of checking whether the timings themselves
17854         are large enough for the timevar to be printed, check the percentages.
17856 2018-10-14  Bruno Haible  <bruno@clisp.org>
17858         wcsnrtombs: Work around Solaris 11.4 bug.
17859         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17860         macro.
17861         (gl_FUNC_WCSNRTOMBS): Invoke it.
17862         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17864 2018-10-14  Bruno Haible  <bruno@clisp.org>
17866         mbsnrtowcs: Work around Solaris 11.4 bug.
17867         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17868         macro.
17869         (gl_FUNC_MBSNRTOWCS): Invoke it.
17870         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17872 2018-10-14  Bruno Haible  <bruno@clisp.org>
17874         doc: Update for Solaris 11.4.
17875         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17876         mention Solaris 11.4.
17877         * m4/printf.m4: Update comments about Solaris.
17878         * m4/log.m4: Likewise.
17879         * m4/log10.m4: Likewise.
17880         * m4/logb.m4: Likewise.
17881         * m4/logbf.m4: Likewise.
17882         * m4/logbl.m4: Likewise.
17883         * m4/rename.m4: Likewise.
17884         * m4/wcrtomb.m4: Likewise.
17885         * m4/hostent.m4: Likewise.
17886         * m4/servent.m4: Likewise.
17888 2018-10-14  Bruno Haible  <bruno@clisp.org>
17890         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17891         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17892         pointer.
17893         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17894         pointer.
17895         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17896         pointer.
17897         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17898         pointer.
17899         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17900         pointer.
17902 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17904         bootstrap: fix wget command for po files.
17905         * build-aux/bootstrap (po_download_command_format): Fix comment,
17906         and adjust callers.
17908 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17910         timevar: improve the output format
17911         Suggested by Bruno Haible.
17912         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17913         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17914         wall, since its resolution is much higher.
17916 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17918         timevar: expect that getrusage is available.
17919         Don't keep both times and getrusage as backend: both are guaranteed by
17920         gnulib, a single one suffices.  Using getrusage is open to possibly
17921         tracking other types of resources in the future.
17922         * modules/timevar (Depends-on): Add getrusage.
17923         (configure.ac): Remove gl_TIMEVAR.
17924         (Files): Remove m4/timevar.m4.
17925         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17926         * lib/timevar.h (timevar_enabled): Clarify documentation.
17927         * lib/timevar.c: Remove all the code about times.
17928         Remove all the CPP guards about getrusage: expect it to be present
17929         (courtesy of gnulib).
17931 2018-10-12  Bruno Haible  <bruno@clisp.org>
17933         mountlist: Improve support for Solaris in 64-bit mode.
17934         Reported by David Wood <David.Wood@deshaw.com> in
17935         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17936         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17937         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17938         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17940 2018-10-12  Bruno Haible  <bruno@clisp.org>
17942         mountlist: Add support for Minix.
17943         Reported by Assaf Gordon in
17944         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17945         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17946         AC_CHECK_FUNCS to check for 'getmntinfo'.
17947         * lib/mountlist.c: Update comments.
17949 2018-10-12  Bruno Haible  <bruno@clisp.org>
17951         Make better use of Autoconf.
17952         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17953         * m4/manywarnings.m4: Likewise.
17954         * m4/manywarnings-c++.m4: Likewise.
17955         * m4/socklen.m4: Likewise.
17956         * m4/sockpfaf.m4: Likewise.
17957         * m4/stdarg.m4: Likewise.
17958         * m4/visibility.m4: Likewise.
17959         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17960         indentation.
17961         * m4/ls-mntd-fs.m4: Likewise.
17963 2018-10-11  Bruno Haible  <bruno@clisp.org>
17965         mountlist: Modernize platform lists.
17966         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17967         platforms, deemphasizing the obsolete ones.
17968         * lib/mountlist.c: Likewise.
17970 2018-10-11  Bruno Haible  <bruno@clisp.org>
17972         getprogname: Add support for 32-bit programs on HP-UX.
17973         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17974         try the similar functions 32-bit programs on 64-bit HP-UX.
17976 2018-10-11  Bruno Haible  <bruno@clisp.org>
17978         getprogname: Work around program name truncation when possible.
17979         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17980         possibly use pst_cmd instead.
17982 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17984         fts: cleanup after FTS_NOATIME removal
17985         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17986         (FTS_STOP): Shrink to minimal values.  We don’t need to
17987         worry about binary compatibility in Gnulib, and the old way
17988         of doing things had a hole in the user options that caused
17989         FTS_OPTIONMASK to not work as desired.
17991 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17993         fts: remove FTS_NOATIME
17994         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17995         We cannot guarantee that O_NOATIME works: e.g. openat fails
17996         with EPERM if the effective user ID of the caller does not match
17997         the owner of the file and the caller is not privileged.
17998         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17999         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
18000         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
18001         (FTS_OPTIONMASK): Adjust.
18002         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
18003         (fd_ring_check): Likewise.
18005 2018-10-08  Bruno Haible  <bruno@clisp.org>
18007         csharpcomp*, csharpexec*: Remove support for pnet.
18008         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
18009         HAVE_CSCC.
18010         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
18011         Don't test HAVE_CSCC.
18012         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
18013         (compile_csharp_class): Don't invoke it.
18014         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
18015         HAVE_ILRUN.
18016         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
18017         Don't test HAVE_ILRUN.
18018         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
18019         (execute_csharp_program): Don't invoke it.
18020         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
18021         any more.
18023 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
18025         renameatu: prefer renameat2 to syscall
18026         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
18027         Use renameat2 instead of syscall (Bug#32796).
18028         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
18030 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18032         bootstrap, gnulib-tool: use https instead of insecure rsync
18033         * build-aux/bootstrap (download_po_files, po_download_command_format):
18034         Don't try using rsync; always use wget over https to fetch PO files.
18035         * gnulib-tool (func_import): Likewise.
18036         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18038 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18040         bootstrap, gnulib-tool: correct the translations wget command
18041         * build-aux/bootstrap (po_download_command_format2): Restrict
18042         recursion to a single level.
18043         * gnulib-tool (func_import): Likewise.
18044         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18046 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18048         doc: the gnulib snapshots are not maintained
18049         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
18051 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18053         timevar: add to lib_SOURCES
18054         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
18056 2018-10-07  Bruno Haible  <bruno@clisp.org>
18058         dirent: Update documentation.
18059         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
18061 2018-10-05  Bruno Haible  <bruno@clisp.org>
18063         strpbrk: Make it possible to namespace the defined symbol.
18064         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
18066 2018-10-05  Bruno Haible  <bruno@clisp.org>
18068         strcspn: Make it possible to namespace the defined symbol.
18069         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
18071 2018-10-05  Bruno Haible  <bruno@clisp.org>
18073         raise: Make it possible to namespace the defined symbol.
18074         * lib/raise.c (raise): Undefine only after the replacement function has
18075         been defined.
18076         (raise): Renamed from rpl_raise.
18077         (raise_nothrow): Move to the end of the compilation unit.
18079 2018-10-05  Bruno Haible  <bruno@clisp.org>
18081         memcmp: Make it possible to namespace the defined symbol.
18082         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
18084 2018-10-05  Bruno Haible  <bruno@clisp.org>
18086         explicit_bzero: Make it possible to namespace the defined symbol.
18087         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
18088         glibc.
18090 2018-10-05  Bruno Haible  <bruno@clisp.org>
18092         mkdir-p: Depend on 'mkdir'.
18093         * modules/mkdir-p (Depends-on): Add 'mkdir'.
18095 2018-10-05  Bruno Haible  <bruno@clisp.org>
18097         tempname: Depend on 'mkdir'.
18098         Reported by Maarten Bosmans <mkbosmans@gmail.com>
18099         at <https://savannah.gnu.org/bugs/?33379>.
18100         * modules/tempname (Depends-on): Add 'mkdir'.
18102 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
18104         timevar: rely on gnulib modules for time portability.
18105         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
18106         * m4/timevar.m4: Don't check for clock_t and struct tms,
18107         guaranteed by gnulib.
18108         * lib/timevar.h: Use extern "C" protection.
18109         Include <stdio.h> for FILE.
18110         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
18111         they are guaranteed by gnulib.
18112         Remove uses of clock as (now useless) fallback.
18114 2018-10-04  Bruno Haible  <bruno@clisp.org>
18116         sh-filename: New module.
18117         * m4/sh-filename.m4: New file.
18118         * modules/sh-filename: New file.
18119         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
18120         "/bin/sh".
18121         * tests/test-posix_spawn1.c (main): Likewise.
18122         * tests/test-posix_spawn2.c (main): Likewise.
18123         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
18124         is_envjavac_gcj43): Likewise.
18125         * lib/javaexec.c (execute_java_class): Likewise.
18126         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
18127         * modules/posix_spawnp-tests (Depends-on): Likewise.
18128         * modules/javacomp (Depends-on): Likewise.
18129         * modules/javaexec (Depends-on): Likewise.
18131 2018-10-04  Bruno Haible  <bruno@clisp.org>
18133         spawn-pipe tests: Avoid test failure on native Windows.
18134         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
18135         that fd 2 is closed.
18137 2018-10-04  Bruno Haible  <bruno@clisp.org>
18139         fcntl: Make it possible to namespace the defined symbol.
18140         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
18141         been defined.
18142         (fcntl): Renamed from rpl_fcntl.
18143         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
18144         from fcntl.
18145         (klibc_fcntl): Move to the end of the compilation unit.
18147 2018-10-02  Bruno Haible  <bruno@clisp.org>
18149         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
18150         * tests/test-vasnprintf.c (test_function): Change the test added on
18151         2018-09-23 to check only the 18 most significant digits.
18153         vasnprintf tests: Avoid test failure on Cygwin.
18154         * tests/test-vasnprintf.c (test_function): Change the test added on
18155         2018-09-23 to check only the 42 most significant digits.
18157 2018-10-01  Bruno Haible  <bruno@clisp.org>
18159         mkostemp, mkostemps: Update documentation.
18160         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
18161         * doc/glibc-functions/mkostemps.texi: Likewise.
18163 2018-10-01  Tom Tromey  <tom@tromey.com>
18165         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
18166         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
18167         on OS X.
18169 2018-09-30  Pádraig Brady  <P@draigBrady.com>
18171         hmac-*: refactor to remove repetitive code
18172         * lib/hmac.c: A new parameterized single implementation.
18173         * lib/hmac-md5.c: Define parameters and include implementation.
18174         * lib/hmac-sha1.c: Likewise.
18175         * lib/hmac-sha256.c: Likewise.
18176         * lib/hmac-sha512.c: Likewise.
18177         * modules/crypto/hmac-md5: Reference the new implementation file.
18178         * modules/crypto/hmac-sha1: Likewise.
18179         * modules/crypto/hmac-sha256: Likewise.
18180         * modules/crypto/hmac-sha512: Likewise.
18181         * tests/test-hmac-md5.c: Refactor common code to a single function.
18182         * tests/test-hmac-sha1.c: Likewise.
18183         * tests/test-hmac-sha256.c: Likewise.
18184         * tests/test-hmac-sha512.c: Likewise.
18186 2018-09-30  Zhang Qing  <zhangqingl@126.com>
18188         hmac-sha512: fix hash for keys > blocksize (128 bytes)
18189         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
18190         key length to that output by sha512, not the blocksize.
18191         Otherwise uninitialized data from the stack
18192         is used when computing the hash.
18193         * tests/test-hmac-sha512.c: Add a shortened key test case.
18194         Reported at https://github.com/coreutils/gnulib/pull/5
18196 2018-09-30  Bruno Haible  <bruno@clisp.org>
18198         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
18199         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
18200         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
18201         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
18202         'unsigned int' before comparison with an unsigned value.
18204 2018-09-30  Bruno Haible  <bruno@clisp.org>
18206         grantpt: Remove unnecessary dependency.
18207         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
18209 2018-09-30  Bruno Haible  <bruno@clisp.org>
18211         timevar: Small tweaks.
18212         * lib/timevar.h: Fix comments. Add parameter names to function
18213         declarations.
18214         * lib/timevar.c: Include timevar.h immediately after config.h.
18215         * lib/timevar.def: Fix comments.
18216         * modules/timevar (Maintainer): List Akim Demaille.
18218 2018-09-30  Bruno Haible  <bruno@clisp.org>
18220         timevar: Include documentation in gnulib manual.
18221         * doc/timevar.texi: Change node and section name to 'Profiling of
18222         program phases'.
18223         In the code snippets, tweak the #includes and use GNU coding style.
18224         * doc/gnulib.texi: Include timevar.texi.
18226 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
18228         timevar: import from Bison.
18229         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
18230         New files.
18231         * lib/timevar.def: New file.
18232         * doc/timevar.texi: New file.
18234 2018-09-26  Bruno Haible  <bruno@clisp.org>
18236         javacomp-script, javacomp: Add preliminary support for Java 12..17.
18237         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
18238         * lib/javacomp.c (default_target_version): Likewise.
18240 2018-09-26  Bruno Haible  <bruno@clisp.org>
18242         javacomp-script, javacomp: Add support for Java 11.
18243         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
18244         target-version 11.
18245         * lib/javaversion.h: Update comments.
18246         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18247         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18248         TARGET_VERSION_BOUND, target_version_index,
18249         corresponding_classfile_version): Accept source_version 11 and
18250         target_version 11.
18251         * lib/javacomp.h: Update comments accordingly.
18253 2018-09-23  Bruno Haible  <bruno@clisp.org>
18255         vasnprintf: Fix heap memory overrun bug.
18256         Reported by Ben Pfaff <blp@cs.stanford.edu> in
18257         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
18258         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
18259         memory.
18260         * tests/test-vasnprintf.c (test_function): Add another test.
18262 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18264         maint: mktime.c now shared with glibc
18265         * config/srclist.txt: intprops.h, timegm.c and mktime.c
18266         are now the same in Gnulib and glibc.
18268         mktime: fix _LIBC typo
18269         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
18271 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18273         dfa: optimization for state merge
18274         * lib/dfa.c (merge2): New function.
18275         (merge_nfa_state): Use it.
18277 2018-09-18  Jim Meyering  <meyering@fb.com>
18279         dfa: trivial comment fix: s/is/if/
18280         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
18282 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18284         dfa: use more-informative function name
18285         * lib/dfa.c (maybe_disable_superset_dfa):
18286         Rename from dfautf8noss.  Use change.
18288         dfa: tweak allocation performance
18289         * lib/dfa.c (merge_nfa_state, dfaoptimize):
18290         Prefer ptrdiff_t for indexes some more.
18291         Use char for flags, as it’s wide enough.
18292         Allocate queue and flags together, with one malloc call.
18293         No need to use xnmalloc since the multiplication and
18294         addition cannot overflow (it’s already been checked by
18295         earlier allocation).  Prefer memset to open-coding.
18297         dfa: prune states as we go
18298         * lib/dfa.c (prune): Remove.
18299         dfa: reorder enum for efficiency
18300         (merge_nfa_state): Prune as we go instead of at the end.
18301         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
18303         * lib/dfa.c (END): Now -1 again.  Reorder other elements
18304         of the enumeration to make it easier for GCC to generate
18305         efficient code by using fewer comparisons to check for
18306         ranges of values.
18307         (atom): Take advantage of the reordering.
18309 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18311         dfa: optimize alternation in NFA
18312         Even when similar states exist in alternation, the DFA treats them
18313         as separate items, which may complicate the transition in NFA and
18314         cause slowdown.  This change assembles the states into one.  For
18315         example, ab|ac is changed into a(b|c).  This change speeds-up
18316         matching for many branched patterns.  For example, grep speeds up
18317         more than 30× in:
18319           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
18320           time -p env LC_ALL=C grep -vf in in
18322         * lib/dfa.c (prune): New function.
18323         (merge_nfa_state): New function.  It merges similar NFA states.
18324         (dfaoptimize): New function.  It seeks merged and removed nodes.
18325         (dfaanalyze): Call new function.
18326         (dfautf8noss): Change name from dfaoptimize because of addition of new
18327         function.
18328         (dfacomp): Update caller.
18330         dfa: simplify initial state
18331         Simplifying the initial state enables easier optimization of the NFA.
18332         * lib/dfa.c (enum token): Add new element BEG.
18333         (prtok): Adjust due to adding element BEG.
18334         (dfaparse): Put BEG at a head of tokens.
18335         (state_index): Adjust due to adding element BEG.
18336         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18337         build initial state.
18338         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18340 2018-09-18  Bruno Haible  <bruno@clisp.org>
18342         file-has-acl: Fix test failure on Cygwin 2.9.
18343         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18344         * lib/acl-internal.h: Likewise.
18345         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18346         * lib/acl-internal.c: Update comments regarding Cygwin.
18347         * lib/acl_entries.c: Likewise.
18348         * lib/file-has-acl.c: Likewise.
18349         (file_has_acl): For Cygwin, use a different way to determine whether
18350         the "default" ACL of a directory is nontrivial.
18351         * lib/get-permissions.c: Update comments regarding Cygwin.
18352         * lib/set-permissions.c: Likewise.
18354 2018-09-18  Bruno Haible  <bruno@clisp.org>
18356         stat-time tests: Fix test failure on Cygwin.
18357         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18359 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18361         doc: OS X 10.11 lacked ns time functions
18362         According to <https://github.com/zeromq/libzmq/issues/2175>,
18363         nanosecond-resolution timestamp functions were introduced
18364         in macOS 10.12, so document the last version (OS X 10.11)
18365         where they were absent.
18367         gettime: nanotime never existed
18368         Problem reported by Bruno Haible in:
18369         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18370         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18371         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18373 2018-09-18  Bruno Haible  <bruno@clisp.org>
18375         doc: Update statement about target platforms.
18376         Reported by Simon Sobisch.
18377         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18378         restrictions on MSVC versions.
18380 2018-09-18  Bruno Haible  <bruno@clisp.org>
18382         posix_spawn tests: Fix link error on 64-bit Cygwin.
18383         * tests/test-posix_spawn1.c (environ): Remove declaration.
18384         * tests/test-posix_spawn2.c (environ): Likewise.
18385         * tests/test-posix_spawn3.c (environ): Likewise.
18386         * tests/test-posix_spawn4.c (environ): Likewise.
18387         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18388         * modules/posix_spawnp-tests (Depends-on): Likewise.
18390 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18392         timespec: new function current_timespec
18393         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18394         and don’t worry about it failing on a CLOCK_REALTIME arg.
18395         POSIX requires it to succeed and I don’t know of any
18396         counterexamples where the fallbacks would work.
18397         (current_timespec): New function, taken from Emacs.  It is more
18398         convenient than gettime, and can help register allocation.
18399         * lib/timespec.h: Include arg-nonnull.h.
18400         (current_timespec): New declaration.
18401         (gettime, settime): Declare args to be nonnull.
18402         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18404 2018-09-16  Bruno Haible  <bruno@clisp.org>
18406         setlocale: Improve locale handling on macOS 10.12 or newer.
18407         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18408         gl_locale_name_canonicalize.
18409         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18410         and LC_MESSAGES.
18411         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18413 2018-09-16  Bruno Haible  <bruno@clisp.org>
18415         Update list of locale names with scripts on macOS.
18416         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18417         match Mac OS X 10.13 and recent glibc.
18419 2018-09-16  Bruno Haible  <bruno@clisp.org>
18421         gettext: Use newer macOS APIs when possible.
18422         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18423         CFLocaleCopyPreferredLanguages.
18425 2018-09-16  Bruno Haible  <bruno@clisp.org>
18427         localename: Revisit macOS specific code.
18428         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18429         Fix comments about Mac OS X versions.
18431 2018-09-15  Bruno Haible  <bruno@clisp.org>
18433         setlocale: Improve support for locales not supported by libc.
18434         Reported by Dapeng Gao <peter@dpgao.cc> at
18435         <https://savannah.gnu.org/bugs/?54479>.
18436         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18437         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18438         to be set is not supported by libc: Emit warnings instead of failing.
18440 2018-09-15  Bruno Haible  <bruno@clisp.org>
18442         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18443         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18444         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18445         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18447         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18448         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18449         * doc/glibc-functions/strcasestr.texi: Likewise.
18451 2018-09-14  Bruno Haible  <bruno@clisp.org>
18453         doc: Fix bottom of top-level page.
18454         Reported by Akim Demaille <akim.demaille@gmail.com> in
18455         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18456         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18457         mode.
18458         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18459         accordingly.
18461 2018-09-12  Bruno Haible  <bruno@clisp.org>
18463         Add test case from a recent glibc bug.
18464         * tests/test-strstr.c (main): Add test of long needle.
18465         * tests/test-strcasestr.c (main): Likewise.
18466         * tests/test-c-strstr.c (main): Likewise.
18467         * tests/test-c-strcasestr.c (main): Likewise.
18468         * tests/test-memmem.c (main): Likewise.
18470 2018-09-12  Bruno Haible  <bruno@clisp.org>
18472         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18473         * tests/test-c-strstr.c (main): Add the same tests here as well.
18475 2018-09-12  Bruno Haible  <bruno@clisp.org>
18477         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18478         * tests/test-memmem.c (main): Free haystack.
18479         * tests/test-strcasestr.c (main): Likewise.
18480         * tests/test-c-strcasestr.c (main): Likewise.
18482 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18484         xstrtol: fix missing-TYPE_SIGNED typo
18485         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18487 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18489         timespec: fix resolution confusion
18490         In normal usage, clock resolution is given in seconds, but the
18491         code was mistakenly using inverse seconds and calling it
18492         “resolution”.  Fix this, partly by renaming two identifiers.
18493         The old names will be kept for a bit, to ease transition.
18494         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18495         New constants, replacing TIMESPEC_RESOLUTION and
18496         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18497         All uses changed.
18499 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18501         mktime: simplify in prep for glibc merge
18502         * lib/mktime.c, lib/timegm.c [_LIBC]:
18503         Include mktime-internal.h (a small file just for glibc)
18504         instead of using a typedef.
18506 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18508         intprops: minor clarification of code
18509         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18510         Use _GL_INT_CONVERT rather than reinventing it.
18512 2018-09-07  Bruno Haible  <bruno@clisp.org>
18514         Fix a comment.
18515         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18517 2018-09-07  Bruno Haible  <bruno@clisp.org>
18519         posix_spawn_file_actions_addchdir: Add tests.
18520         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18521         * tests/test-posix_spawn4.c: New file.
18522         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18524 2018-09-07  Bruno Haible  <bruno@clisp.org>
18526         posix_spawn_file_actions_addchdir: New module.
18527         Suggested by Eric Blake in
18528         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18529         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18530         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18531         union member 'chdir_action'.
18532         * lib/spawn_faction_addchdir.c: New file.
18533         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18534         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18535         HAVE_WORKING_POSIX_SPAWN.
18536         * lib/spawn_faction_adddup2.c: Likewise.
18537         * lib/spawn_faction_addopen.c: Likewise.
18538         * m4/posix_spawn_faction_addchdir.m4: New file.
18539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18540         'posix_spawn_file_actions_addchdir' is present and whether
18541         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18542         instead of HAVE_WORKING_POSIX_SPAWN.
18543         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18544         posix_spawn_file_actions_addchdir is declared.
18545         (gl_SPAWN_H_DEFAULTS): Initialize
18546         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18547         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18548         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18549         * modules/spawn (Makefile.am): Substitute
18550         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18551         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18552         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18553         * modules/posix_spawn_file_actions_addchdir: New file.
18554         * modules/posix_spawn_file_actions_addclose (Depends-on,
18555         configure.ac): Test also REPLACE_POSIX_SPAWN.
18556         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18557         configure.ac): Likewise.
18558         * modules/posix_spawn_file_actions_addopen (Depends-on,
18559         configure.ac): Likewise.
18560         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18561         signature.
18562         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18563         * doc/posix-functions/posix_spawnp.texi: Likewise.
18565 2018-09-06  Bruno Haible  <bruno@clisp.org>
18567         stddef: Override max_align_t on NetBSD 8.0/x86.
18568         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18569         the value of __alignof__ (max_align_t).
18570         * doc/posix-headers/stddef.texi: Mention the issue.
18572 2018-09-06  Bruno Haible  <bruno@clisp.org>
18574         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18575         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18576         system fcntl.
18577         * doc/posix-functions/fcntl.texi: Document the issue.
18579 2018-09-06  Bruno Haible  <bruno@clisp.org>
18581         count-trailing-zeros tests: Rely on limits-h module.
18582         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18583         definition.
18584         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18586 2018-09-06  Bruno Haible  <bruno@clisp.org>
18588         count-leading-zeros tests: Rely on limits-h module.
18589         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18590         definition.
18591         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18593 2018-09-06  Bruno Haible  <bruno@clisp.org>
18595         count-one-bits tests: Rely on limits-h module.
18596         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18597         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18599 2018-09-06  Bruno Haible  <bruno@clisp.org>
18601         xstrtoll: Rely on limits-h module.
18602         * lib/xstrtol.c: Don't include intprops.h.
18603         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18604         * modules/xstrtol (Depends-on): Remove 'intprops'.
18605         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18607 2018-09-06  Bruno Haible  <bruno@clisp.org>
18609         strtoll, strtoull: Rely on limits-h module.
18610         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18611         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18612         * modules/strtoll (Depends-on): Add limits-h.
18613         * modules/strtoull (Depends-on): Likewise.
18615 2018-09-06  Bruno Haible  <bruno@clisp.org>
18617         intprops tests: Fix compilation error with pre-C99 compiler.
18618         * tests/test-intprops.c (verify_stmt): New macro.
18619         (VERIFY, main): Use it.
18621 2018-09-06  Bruno Haible  <bruno@clisp.org>
18623         limits-h: Provide numerical limits macros.
18624         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18625         IRIX and for GCC.
18626         (WORD_BIT, LONG_BIT): Define.
18627         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18628         <limits.h> does not define LLONG_MAX or WORD_BIT.
18629         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18630         TYPE_MAXIMUM): New macros, from intprops.h.
18631         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18632         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18633         provides.
18635 2018-09-05  Bruno Haible  <bruno@clisp.org>
18637         fcntl: Don't access nonexistent optional argument.
18638         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18639         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18640         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18641         don't consume an argument. For actions that take an 'int' argument,
18642         consume an 'int' argument.
18644 2018-09-05  Eric Blake  <eblake@redhat.com>
18646         doc: mention environ pitfall
18647         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18648         environ is a glibc extension.
18650 2018-09-03  Bruno Haible  <bruno@clisp.org>
18652         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18653         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18654         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18655         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18656         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18657         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18659 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18661         mktime: fix unlikely race+overflow bug
18662         Problem reported by Alexandre Oliva in:
18663         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18664         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18665         to avoid an unlikely race if the compiler delays a load and
18666         if this cascades into a signed integer overflow.
18668 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18670         mktime, timegm: simplify glibc time64_t
18671         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18672         Now long int, not time_t, since long int is the longstanding type
18673         for this in glibc and there is no need to change it even if time_t
18674         becomes 64 bits - even int would do, though this would be a change
18675         to the glibc generated code.  When this change is merged into
18676         glibc, it should simplify the time_t vs time64_t situation.
18678         mktime, timegm: simplify merge to glibc
18679         Move code around to make a merge to glibc easier to audit.
18680         This should not change behavior.
18681         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18682         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18683         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18684         simplify later conditionals; default the others to zero.  In uses
18685         of these conditionals, explicitly spell out how _LIBC affects
18686         things, so it’s easier to review from a glibc viewpoint.
18687         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18688         compartmentalize tzset issues.  Move system-dependent tzsettish
18689         code here from mktime.
18690         (mktime): Move tzsettish code to my_tzset, and move
18691         localtime_offset to within mktime so that it doesn’t
18692         need a separate ifdef.
18694 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18696         intprops: avoid evaluation of some expressions
18697         This makes EXPR_SIGNED (e) easier to use, as it no longer
18698         evaluates the expression E.  Formerly, E was required to be free
18699         of side effects.
18700         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18701         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18702         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18704 2018-08-23  Bruno Haible  <bruno@clisp.org>
18706         getcwd: Add cross-compilation guesses.
18707         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18708         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18709         Based on a patch by Paul Eggert.
18710         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18711         guesses for all GNU systems.
18713 2018-08-19  Bruno Haible  <bruno@clisp.org>
18715         glob-h: Formalize side effects from other modules.
18716         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18717         * m4/glob.m4 (gl_GLOB): Invoke it.
18719         fnmatch-h: Formalize side effects from other modules.
18720         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18721         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18723         limits-h: Formalize side effects from other modules.
18724         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18725         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18727 2018-08-19  Bruno Haible  <bruno@clisp.org>
18729         getpass: Move declaration to <unistd.h>.
18730         * lib/unistd.in.h (getpass): New declaration.
18731         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18732         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18733         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18734         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18735         On glibc systems, don't set REPLACE_GETPASS to 1.
18736         * modules/getpass (Depends-on): Add 'unistd'.
18737         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18738         (Include): Specify <unistd.h> instead of "getpass.h".
18739         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18740         (configure.ac): Sync with the configure.ac section of modules/getpass.
18741         (Include): Specify <unistd.h> instead of "getpass.h".
18742         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18743         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18744         REPLACE_GETPASS.
18745         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18746         REPLACE_GETPASS.
18747         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18748         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18749         and musl.
18750         * NEWS: Mention the change.
18752 2018-08-19  Bruno Haible  <bruno@clisp.org>
18754         glob: Fix over-optimization due to attribute __nonnull__.
18755         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18757 2018-08-19  Bruno Haible  <bruno@clisp.org>
18759         glob: Fix another compilation error when glob.h is not replaced.
18760         Reported by Reuben Thomas <rrt@sc3d.org> in
18761         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18762         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18763         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18765 2018-08-18  Bruno Haible  <bruno@clisp.org>
18767         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18768         Reported by Reuben Thomas <rrt@sc3d.org> in
18769         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18770         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18771         in config.h.
18773 2018-08-18  Bruno Haible  <bruno@clisp.org>
18775         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18776         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18777         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18778         Solution proposed by Eli Zaretskii.
18779         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18780         * lib/gettimeofday.c (GetProcAddress): Likewise.
18781         * lib/link.c (GetProcAddress): Likewise.
18782         * lib/physmem.c (GetProcAddress): Likewise.
18783         * lib/poll.c (GetProcAddress): Likewise.
18784         * lib/select.c (GetProcAddress): Likewise.
18785         * lib/stat-w32.c (GetProcAddress): Likewise.
18787 2018-08-18  Bruno Haible  <bruno@clisp.org>
18789         glob: Fix another compilation error when glob.h is not replaced.
18790         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18791         * lib/globfree.c: Include <libc-config.h>.
18793 2018-08-18  Bruno Haible  <bruno@clisp.org>
18795         glob: Fix compilation error when glob.h is not replaced.
18796         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18797         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18798         * lib/glob_pattern_p.c: Include <libc-config.h>.
18799         * modules/glob (Depends-on): Add libc-config.
18801 2018-08-18  Bruno Haible  <bruno@clisp.org>
18803         scratch_buffer: Add tests.
18804         * tests/test-scratch-buffer.c: New file.
18805         * modules/scratch_buffer-tests: New file.
18807 2018-08-18  Bruno Haible  <bruno@clisp.org>
18809         scratch_buffer: Fix include file.
18810         Reported by Reuben Thomas <rrt@sc3d.org> in
18811         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18812         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18813         double-inclusion guard.
18815 2018-08-18  Bruno Haible  <bruno@clisp.org>
18817         glob-h: Revert Paul Eggert's revert.
18818         * m4/glob_h.m4: Revert to previous state.
18819         * modules/glob-h: Likewise.
18821 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18823         glob-h: always build glob.h
18824         This works around a problem reported by Reuben Thomas in:
18825         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18826         This workaround always builds glob.h, even on platforms that
18827         do not need it; perhaps this could be improved someday.
18828         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18829         is always created now.
18830         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18832 2018-08-13  Bruno Haible  <bruno@clisp.org>
18834         monetary: Simplify m4 code.
18835         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18836         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18838 2018-08-13  Bruno Haible  <bruno@clisp.org>
18840         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18841         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18842         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18843         and by Paul J. Lucas <paul@lucasmail.org> in
18844         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18845         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18847 2018-08-11  Bruno Haible  <bruno@clisp.org>
18849         setlocale: Trivial simplification.
18850         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18852 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18854         verify: port 'assume' to traditional tools
18855         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18856         and other tools that use /*NOTREACHED*/ comments.
18858 2018-08-10  Bruno Haible  <bruno@clisp.org>
18860         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18861         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18862         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18863         'fnmatch-gnu' is in use.
18865 2018-08-07  Bruno Haible  <bruno@clisp.org>
18867         glob-h: Add tests.
18868         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18869         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18870         tests/test-glob-h.c.
18871         * modules/glob-h-tests: New file.
18872         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18873         conditions.
18874         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18875         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18877 2018-08-07  Bruno Haible  <bruno@clisp.org>
18879         glob-h: New module.
18880         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18881         replacements.
18882         * lib/glob.c: Include <config.h>.
18883         * m4/glob_h.m4: New file.
18884         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18885         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18886         REPLACE_GLOB_PATTERN_P as appropriate.
18887         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18888         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18889         * modules/glob-h: New file.
18890         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18891         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18892         lstat, sys_stat. Change conditions.
18893         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18894         REPLACE_GLOB_PATTERN_P. Set module indicator.
18895         (Makefile.am): Remove code that is moved to glob-h.
18896         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18897         * modules/posixcheck (Depends-on): Add glob-h.
18899 2018-08-06  Bruno Haible  <bruno@clisp.org>
18901         Force generation of substitute .h file when C++ support is enabled.
18902         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18903         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18904         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18905         FNMATCH_H to non-empty.
18906         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18907         ICONV_H to non-empty.
18908         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18909         MONETARY_H to non-empty.
18910         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18911         non-empty.
18913 2018-08-06  Bruno Haible  <bruno@clisp.org>
18915         fnmatch-h: Fix test compilation error on mingw (regression from today).
18916         * lib/fnmatch.in.h: Fix conditions.
18918 2018-08-06  Bruno Haible  <bruno@clisp.org>
18920         sys_resource: Relicense under LGPLv2+.
18921         John Malmberg's approval is in
18922         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18923         * modules/sys_resource (License): Change to LGPLv2+.
18925 2018-08-06  Bruno Haible  <bruno@clisp.org>
18927         fnmatch-h: Add tests.
18928         * tests/test-fnmatch-h.c: New file.
18929         * modules/fnmatch-h-tests: New file.
18930         * tests/test-fnmatch-h-c++.cc: New file.
18931         * modules/fnmatch-h-c++-tests: New file.
18933 2018-08-06  Bruno Haible  <bruno@clisp.org>
18935         fnmatch-h: New module.
18936         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18937         replacements.
18938         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18939         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18940         'posixcheck' warning.
18941         * m4/fnmatch_h.m4: New file.
18942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18943         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18944         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18945         as appropriate.
18946         * modules/fnmatch-h: New file.
18947         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18948         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18949         conditions.
18950         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18951         indicator.
18952         (Makefile.am): Remove code that is moved to fnmatch-h.
18953         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18954         REPLACE_FNMATCH.
18955         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18956         * modules/posixcheck (Depends-on): Add fnmatch-h.
18958 2018-08-06  Bruno Haible  <bruno@clisp.org>
18960         Enable more C++ tests.
18961         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18962         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18963         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18964         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18965         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18967 2018-08-06  Bruno Haible  <bruno@clisp.org>
18969         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18970         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18971         getopt.h.
18972         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18974 2018-08-05  Bruno Haible  <bruno@clisp.org>
18976         utime-h: Generate header file when module 'posixcheck' is in use.
18977         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18978         UTIME_H to non-empty.
18980 2018-08-05  Bruno Haible  <bruno@clisp.org>
18982         monetary: Generate header file when module 'posixcheck' is in use.
18983         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18984         use, set MONETARY_H to non-empty.
18986 2018-08-05  Bruno Haible  <bruno@clisp.org>
18988         iconv-h: Generate header file when module 'posixcheck' is in use.
18989         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18990         set ICONV_H to non-empty.
18992 2018-08-05  Bruno Haible  <bruno@clisp.org>
18994         Optimize the "checking whether ... is declared without a macro" checks.
18995         Suggested by Paul Eggert in
18996         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18997         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18998         Gnulib module 'posixcheck' is not in use.
19000 2018-08-05  Bruno Haible  <bruno@clisp.org>
19002         iconv-h: Enable 'posixcheck' warnings.
19003         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
19004         iconv_open.
19005         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
19007 2018-08-05  Bruno Haible  <bruno@clisp.org>
19009         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
19010         * m4/extern-inline.m4: Add more comments.
19011         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
19012         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
19013         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
19015 2018-08-04  Bruno Haible  <bruno@clisp.org>
19017         New module 'posixcheck'.
19018         * modules/posixcheck: New file.
19019         * m4/posixcheck.m4: New file.
19020         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
19021         (Which modules?): Reference it.
19023 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
19025         dfa: fix memory leak
19026         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
19028 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19030         ieee754-h: new module
19031         It looks like Emacs can use this for some NaN processing.
19032         Emacs uses it only on double NaNs so it should be safe.
19033         * MODULES.html.sh (func_all_modules): Add ieee754-h.
19034         * config/srclist.txt: Mention ieee754.h in a comment.
19035         * doc/glibc-headers/ieee754.texi (ieee754.h):
19036         Gnulib now has a substitute that should work
19037         except for long double and for non-IEEE platforms.
19038         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
19039         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
19041 2018-07-27  Bruno Haible  <bruno@clisp.org>
19043         iswcntrl: Mention minor problem on macOS.
19044         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
19046 2018-07-26  Colin Watson  <cjwatson@debian.org>
19048         bootstrap, gnulib-tool: fix translations rsync
19049         Previously, we created files such as $pobase/Makefile.in.in and then the
19050         subsequent rsync would immediately delete them.
19051         * build-aux/bootstrap (po_download_command_format): Avoid deleting
19052         non-.po files in target directory when rsyncing translations.
19053         * gnulib-tool (func_import): Likewise.
19054         * pygnulib/GLImport.py (GLImport.execute): Likewise.
19056 2018-07-25  Jim Meyering  <meyering@fb.com>
19058         bootstrap: reinstate definition fo gnulib_mk.
19059         That variable is used at least by cppi.
19060         * build-aux/bootstrap (gnulib_mk): Restore definition.
19061         This reverts the deletion from v0.1-1844-gc66dba9ba.
19063 2018-07-23  Bruno Haible  <bruno@clisp.org>
19065         doc: For module names, use texinfo markup @code{} or @samp{}.
19066         * doc/alloca.texi: Mark gnulib module names with @code.
19067         * doc/alloca-opt.texi: Likewise.
19068         * doc/quote.texi: Likewise.
19069         * doc/posix-functions/freopen.texi: Likewise.
19070         * doc/posix-functions/open.texi: Likewise.
19071         * doc/posix-functions/readlink.texi: Likewise.
19072         * doc/posix-functions/readlinkat.texi: Likewise.
19073         * doc/posix-functions/stdout.texi: Likewise.
19074         * doc/posix-functions/stderr.texi: Likewise.
19075         * doc/posix-functions/unlink.texi: Likewise.
19076         * doc/posix-functions/unlinkat.texi: Likewise.
19077         * doc/posix-functions/utime.texi: Likewise.
19078         * doc/posix-functions/utimensat.texi: Likewise.
19079         * doc/posix-functions/utimes.texi: Likewise.
19080         * doc/posix-headers/stdint.texi: Likewise.
19081         * doc/glibc-functions/futimesat.texi: Likewise.
19082         * doc/glibc-functions/lutimes.texi: Likewise.
19083         * doc/glibc-functions/memmem.texi: Likewise.
19085 2018-07-23  Werner LEMBERG  <wl@gnu.org>
19087         doc: Avoid some overfull lines in the TeX output.
19088         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
19089         @example.
19090         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
19091         newline before the long URL.
19092         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
19093         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
19094         Add line breaks in code snippets.
19096 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19098         hard-locale: simplify by removing hard-locale.m4
19099         * m4/hard-locale.m4: Remove.
19100         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
19101         (configure.ac): Do not call gl_HARD_LOCALE.
19103         gnulib-tool: limit line length for git send-email
19104         * gnulib-tool (func_import): Break actioncmd log line
19105         into multiple lines.
19107 2018-07-16  Bruno Haible  <bruno@clisp.org>
19109         ffs: Ensure declaration on mingw.
19110         Reported by Daniel P. Berrangé <berrange@redhat.com>
19111         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
19112         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
19113         also declared.
19115 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19117         regex-tests: add dependency
19118         * modules/regex-tests (Depends-on): Add gettext-h.
19119         This is needed given the recent changes to regex,
19120         which no longer depends on gettext-h.
19122 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19124         regex: now in sync with glibc
19125         * config/srclist.txt: Gnulib and glibc regex code
19126         are synchronized again.
19128 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19130         renameatu: rename from renameat2
19131         It's looking like Glibc will add a renameat2 function
19132         that is incompatible with Gnulib renameat2; see:
19133         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
19134         To help avoid future confusion, rename renameat2 to something else.
19135         Use the name 'renameatu', as the Gnulib function is close to the
19136         Glibc function.  Perhaps someday there will also be a renameat2
19137         Gnulib module, which mimicks the future glibc renameat2, but that
19138         can wait as nobody seems to need such a module now.
19139         * NEWS: Mention this.
19140         * lib/renameatu.c: Rename from lib/renameat2.c.
19141         * lib/renameatu.h: Rename from lib/renameat2.h.
19142         * modules/renameatu: Rename from modules/renameat2.
19143         * modules/renameatu-tests: Rename from modules/renameat2-tests.
19144         All uses of "renameat2" in identifiers or file name
19145         changed to "renameatu", except for two instances in
19146         lib/renameatu.c that deal with the Linux kernel's
19147         renameat2 syscall.
19149 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19151         gnulib-tool: minor tweaks for --gnu-make
19152         * gnulib-tool: Do not allow --gnu-make in test modes,
19153         since they all require automake.
19154         (func_emit_lib_Makefile_am): Don’t emit automake comment
19155         if --gnu-make.
19157         regex: work around conditional-dependencies glitch
19158         * modules/regex (Depends-on): Add langinfo.
19159         Without this change, I had problems building an experimental
19160         version of GNU Emacs.  The symptom of the bug was a message
19161         ‘./configure: line 12726: test: =: unary operator expected’.
19162         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
19163         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
19164         was unset.  Although gl_FUNC_NL_LANGINFO has
19165         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
19166         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
19167         --conditional-dependencies sometimes arranges for the
19168         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
19169         code.  Since the regex code includes <langinfo.h> it should be
19170         depending on the langinfo module anyway, and this happens to work
19171         around the bug, so install that as a workaround for now.  To
19172         reproduce the original problem, run the following shell script on
19173         the version of Gnulib just before this patch was installed.
19174                 rm -fr foo
19175                 mkdir foo
19176                 cat >foo/configure.ac <<'EOF'
19177                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
19178                 gl_EARLY
19179                 gl_INIT
19180                 AC_OUTPUT
19181                 EOF
19182                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
19183                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
19184                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
19185                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
19186                 cd foo
19187                 aclocal -I m4
19188                 autoconf
19189                 ./configure --with-included-regex
19191 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19193         wchar: fix bug when checking for ‘inline’
19194         I discovered this when looking into using the regex module
19195         with Emacs.
19196         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
19197         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
19198         conftest1.c and conftest2.c but these files were not created.
19199         As far as I can see, this check never worked and nobody reported
19200         it until now, which is a bit worrisome.
19202 2018-06-30  Jim Meyering  <meyering@fb.com>
19204         bootstrap: s/--option val/--option=val/
19205         * build-aux/bootstrap (gnulib_tool_options): Change the
19206         spelling of "--option val" pairs to "--option=val", for
19207         aesthetics, and also so that this file no longer triggers
19208         a common help2man syntax-check warning when copied into
19209         projects like grep, gzip, etc.
19211 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19213         manywarnings: omit -Wswitch-default
19214         This should make things more consistent, as we already ignore
19215         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
19216         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
19217         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
19218         Add -Wswitch-default.
19219         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
19220         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19221         Remove -Wswitch-default.
19223         regex: revert most trimming
19224         Problems reported by Bruno Haible in:
19225         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
19226         * modules/regex (Depends-on): Add lock, memcmp, memmove,
19227         and wctype back in.  lock because regex users shouldn’t
19228         need to know that regex needs locking, and the rest because
19229         gnulib-tool should ordinarily ignore them anyway.
19231 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19233         regex: trim module dependencies
19234         * modules/regex (Depends-on): Remove gettext-h and lock,
19235         since the regex code should work OK without these modules,
19236         and Emacs uses it that way.  Also remove memcmp, memmove,
19237         and wctype, as these modules are obsolete and should not be
19238         needed any more.
19240 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19242         regex: glibc does not use intprops.h
19243         Maybe we can talk glibc into using intprops.h someday, but
19244         now doesn’t seem to be a good time.
19245         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
19246         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
19247         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
19249 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
19251         regex: port to recently proposed glibc regex merge
19252         This patch is inspired by Adhemerval Zanella's recent proposal
19253         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
19254         to merge glibc and Gnulib regex.  It aims to simplify the merge on
19255         the glibc side, without keeping Gnulib portable.
19256         * lib/regex.h: Fix a problem with glibc installed-header checking,
19257         as follows:
19258         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
19259         (_Restrict_arr_): Prefer __restrict_arr if defined,
19260         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
19261         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
19262         (build_wcs_upper_buffer, build_upper_buffer)
19263         (re_string_translate_buffer, re_string_context_at):
19264         Move decls here from lib/regex_internal.h, for glibc internal tests.
19265         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
19266         glibc BZ #18496.
19267         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
19268         -Wunused-value.
19269         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
19270         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19271         (bitset_mask): Now static inline, and without any __attribute__
19272         ((unused)) decoration, for glibc internal tests.
19274 2018-06-25  Bruno Haible  <bruno@clisp.org>
19276         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
19277         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
19278         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
19279         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
19280         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
19281         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
19282         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
19283         / -lthread / -lpth does not get optimized away by a preceding
19284         --as-needed option.
19286 2018-06-25  Bruno Haible  <bruno@clisp.org>
19288         Continue to use spaces for indentation, not tabs.
19289         * MODULES.html.sh: Untabify.
19290         * doc/regex.texi: Likewise.
19291         * lib/acl-internal.c: Likewise.
19292         * lib/dfa.c: Likewise.
19293         * lib/exclude.c: Likewise.
19294         * lib/exclude.h: Likewise.
19295         * lib/get-permissions.c: Likewise.
19296         * lib/gettimeofday.c: Likewise.
19297         * lib/parse-datetime.y: Likewise.
19298         * lib/pselect.c: Likewise.
19299         * lib/set-permissions.c: Likewise.
19300         * lib/time.in.h: Likewise.
19301         * m4/canonicalize.m4: Likewise.
19302         * m4/gc.m4: Likewise.
19303         * m4/gnulib-common.m4: Likewise.
19304         * m4/pthread_sigmask.m4: Likewise.
19305         * m4/vararrays.m4: Likewise.
19306         * tests/test-digest.h: Likewise.
19307         * tests/test-fcntl-h.c: Likewise.
19308         * tests/test-timespec.c: Likewise.
19309         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
19311 2018-06-25  Bruno Haible  <bruno@clisp.org>
19313         manywarnings: Don't enable -Wjump-misses-init warnings by default.
19314         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
19315         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
19316         -Wjump-misses-init.
19318 2018-06-25  Jim Meyering  <meyering@fb.com>
19320         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
19321         * lib/acl-internal.h (free_permission_context): Remove that
19322         attribute directive.  Otherwise, it would provoke this from GCC 9:
19323         lib/acl-internal.h:300:3: error: 'const' attribute on function \
19324           returning 'void' [-Werror=attributes]
19326 2018-06-24  Jim Meyering  <meyering@fb.com>
19328         parse-datetime: accommodate gcc-4.8.5
19329         Bruno Haible reported the build failure in
19330         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19331         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19332         on declaration of new local.
19334 2018-06-24  Bruno Haible  <bruno@clisp.org>
19336         af_alg: Fail in continuable manner on Linux/powerpc64le.
19337         Reported by Assaf Gordon <assafgordon@gmail.com>
19338         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19339         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19340         byte send() as the first round.
19342 2018-06-24  Bruno Haible  <bruno@clisp.org>
19344         af_alg: Fix state of stream after sendfile() succeeds.
19345         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19346         the stream is correctly positioned afterwards.
19347         * modules/crypto/af_alg (Depends-on): Add fflush.
19348         * tests/test-digest.h (test_digest_on_files): Verify that after the
19349         operation the stream is positioned at end of file.
19351 2018-06-24  Jim Meyering  <meyering@fb.com>
19353         canon-host: take GCC9's advice rather than ignoring warning
19354         Pádraig Brady suggested not to ignore this GCC9 advice.
19355         * lib/canon-host.c: Undo preceding change.
19356         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19358         parse-datetime.y: avoid spurious GCC 9 warning
19359         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19360         a function local prior to the first "goto fail".  The prior use would
19361         evoke this:
19362         parse-datetime.y: In function 'parse_datetime2':
19363         parse-datetime.y:1791:19: error: jump skips variable initialization \
19364           [-Werror=jump-misses-init]
19365         parse-datetime.y:2385:2: note: label 'fail' defined here
19366         parse-datetime.y:188:43: note: '({anonymous})' declared here
19367         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19369         canon-host.c: avoid spurious GCC 9 warning
19370         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19372         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19373         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19374         * m4/manywarnings.m4: Remove them.
19375         Otherwise, building coreutils, I would see this:
19376         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19377         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19378         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19379           which is also used by default
19380         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19382 2018-06-24  Bruno Haible  <bruno@clisp.org>
19384         af_alg tests: Add another test.
19385         * tests/test-digest.h (test_digest_on_files): Also check a large file
19386         with a skipped header.
19387         * tests/test-md5.c: Include macros.h.
19388         * tests/test-sha1.c: Likewise.
19389         * tests/test-sha256.c: Likewise.
19390         * tests/test-sha512.c: Likewise.
19391         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19392         * modules/crypto/sha1-tests (Files): Likewise.
19393         * modules/crypto/sha256-tests (Files): Likewise.
19394         * modules/crypto/sha512-tests (Files): Likewise.
19396 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19398         maint: clarify comments about sticky EOF
19399         * lib/af_alg.c: Be more direct that we can't
19400         assume stickiness of EOF for portability reasons.
19401         * lib/md5.c: Clarify that this isn't just a glibc issue.
19402         * lib/sha1.c: Likewise.
19403         * lib/sha256.c: Likewise.
19404         * lib/sha512.c: Likewise.
19406 2018-06-24  Bruno Haible  <bruno@clisp.org>
19408         af_alg: Comment and style improvements.
19409         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19410         (afalg_buffer, afalg_stream): Improve comments.
19412 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19414         af_alg: disable kernel hash functions by default
19415         All the kernel routines were seen to be significantly slower
19416         with these relatively recent components on an i3-2310M system:
19417           kernel-4.10.6-200.fc25.x86_64
19418           openssl-1.0.2m-1.fc25.x86_64
19419         sha1 was nearly twice as slow in the kernel for example.
19420         Further considerations why this should not be the default, at:
19421         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19423         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19424         * m4/gl-openssl.m4: Tweak accordingly.
19426 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19428         af_alg: avoid hangs when reading from streams
19429         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19430         and thus avoid doing a fread() when feof() is set.
19431         * lib/md5.c: Ensure feof() is called before fread().
19432         * lib/sha1.c: Likewise.
19433         * lib/sha256.c: Likewise.
19434         * lib/sha512.c: Likewise.
19436 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19438         af_alg: fix error handling when hash not returned
19439         * lib/af_alg.c (afalg_stream): Handle the case where we've
19440         successfully written data to the kernel in the read/write loop,
19441         but the kernel doesn't respond with the hash.
19443 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19445         libc-config: merge from glibc
19446         * lib/cdefs.h (__inline, __restrict):
19447         Copy from current glibc.  This fixes glibc bug 17721,
19448         which Gnulib had already fixed in a different way.
19449         (__nonnull): Lessen the distance from glibc by using the
19450         glibc definition inside an ‘#ifndef __nonnull’.
19451         (__attribute_nonstring__): New macro, copied from
19452         current glibc.
19453         * lib/libc-config.h (__attribute_nonstring__): New undef.
19454         (__restrict): Remove; workaround no longer needed.
19455         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19456         support more compilers than the glibc __inline can.
19458 2018-06-24  Bruno Haible  <bruno@clisp.org>
19460         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19461         * lib/mbrtowc.c (enc_t): New enum type.
19462         (locale_enc, locale_enc_cached): New functions.
19463         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19464         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19465         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19466         instead.
19467         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19468         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19469         * modules/wcwidth (configure.ac): Invoke it.
19471 2018-06-24  Bruno Haible  <bruno@clisp.org>
19473         wchar-single: Fix test failure in wcwidth tests.
19474         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19475         skip the tests in the C locale.
19477 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19479         crypto: mention --without-linux-crypto in --with-openssl --help
19480         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19481         routines take precedence in --with-openssl help output.
19483 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19485         wchar-single: a new module to enable optimizations in wchar replacements
19486         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19487         GNULIB_WCHAR_SINGLE is enabled.
19488         * lib/wcwidth.c (wcwidth): Likewise.
19490 2018-06-23  Bruno Haible  <bruno@clisp.org>
19492         libc-config: Fix conflict with FreeBSD include files.
19493         * lib/cdefs.h (__nonnull): Remove definition.
19494         * lib/libc-config.h (__nonnull): Remove undefinition.
19496 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19498         random_r: do not crash if state is unaligned
19499         Problem reported by Bruce Korb in:
19500         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19501         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19502         with 'cc -O2 -xmemalign=8s'.
19503         * lib/random_r.c: Include string.h, for memcpy.
19504         (get_int32, set_int32): New functions.
19505         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19506         Use them to avoid assumption that state pointer is aligned.
19507         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19508         * tests/test-random_r.c (test_failed): New function.
19509         (main): Use it, to test for alignment bugs.
19511         random_r: omit unnecessary include
19512         * lib/random_r.c: Do not include limits.h.
19514         random, random_r: merge from glibc
19515         * lib/random.c, lib/random_r.c:
19516         Include libc-config.h if !_LIBC, not config.h unilaterally.
19517         * lib/random.c:
19518         Do not include stdint.h or time.h; not needed.
19519         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19520         (unsafe_state): Rename from generator.  All uses changed.
19521         Use C99-style initializers.
19522         (__random, __srandom, __initstate, __setstate): Rename from
19523         non-underscored version, but define it to non-underscored version
19524         on Gnulib.  Add a lock.
19525         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19526         Likewise.
19527         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19528         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19529         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19530         (__random_r): Use uint32 to fix glibc bug 17343.
19531         * modules/random, modules/random_r (Depends-on): Add libc-config.
19532         Depend on stdint only if $HAVE_RANDOM = 0.
19534 2018-06-19  Jim Meyering  <meyering@fb.com>
19536         README-release: also run any check-very-expensive tests
19537         * top/README-release: Adjust instructions so they run the
19538         check-very-expensive tests when there is such a target.
19540 2018-06-18  Bruno Haible  <bruno@clisp.org>
19542         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19543         * m4/pthread_rwlock_rdlock.m4: Add comment.
19544         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19545         are reader-preferring in glibc.
19546         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19547         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19549 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19551         crypto: use byteswap
19552         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19553         * lib/sm3.c: Include <byteswap.h>.
19554         (SWAP): Use its macros rather than reinventing the wheel.
19555         * modules/crypto/md4, modules/crypto/md5-buffer:
19556         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19557         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19558         (Depends-on): Add byteswap.
19560 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19562         gendocs.sh: fix support for legacy --texi2html
19563         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19564         to the default makeinfo invocation.
19565         Reported by Bruce Korb
19567 2018-06-17  Bruno Haible  <bruno@clisp.org>
19569         gettext po infrastructure: Update from current gettext git.
19570         Reported by Akim Demaille <akim@lrde.epita.fr>.
19571         * build-aux/po/Makefile.in.in: Update from current gettext git.
19572         * build-aux/po/remove-potcdate.sin: Likewise.
19573         * config/srclist.txt: Temporarily disable sync for these files.
19575 2018-06-17  Bruno Haible  <bruno@clisp.org>
19577         getloadavg: Return 0 on Windows without Cygwin.
19578         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19580 2018-06-17  Paul Smith  <psmith@gnu.org>
19582         getloadavg: Allow building on Windows without Cygwin
19583         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19584         * m4/getloadavg.m4: Check for unistd.h.
19586 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19588         Port crypto/af_alg to GCC 4.8.4
19589         Problem reported by Peter Simons in:
19590         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19591         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19593 2018-05-27  Colin Watson  <cjwatson@debian.org>
19595         bootstrap: document source fetching in --help
19596         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19598 2018-04-09  Colin Watson  <cjwatson@debian.org>
19600         bootstrap: allow non-submodule control of gnulib
19601         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19602         bootstrap.conf when fetching gnulib using "git clone" or via
19603         GNULIB_SRCDIR.
19605 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19607         crypto: omit stream ops Emacs doesn’t need
19608         * lib/md5.c (md5_stream):
19609         * lib/sha1.c (sha1_stream):
19610         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19611         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19612         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19613         defined.  Emacs needs this, as it does not use the stream
19614         operations and doesn’t need all the af_alg stuff we’ve recently
19615         added.  Perhaps a similar change is needed to the other crypto
19616         modules, but this patch changes only those needed for Emacs.
19617         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19618         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19619         New modules, used by Emacs.
19620         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19621         * modules/crypto/sha512: Rewrite to depend on the new modules.
19623 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19625         fts: avoid a memory leak edge case
19626         * lib/fts.c (fts_open): Set an appropriate fts_level
19627         so that an immediate fts_close() will free the allocation.
19628         * tests/test-fts.c (fts_dealloc): Add a test case which
19629         will trigger under valgrind or address sanitizer.
19630         Fixes https://bugs.gnu.org/31439
19632 2018-05-20  Bruno Haible  <bruno@clisp.org>
19634         wcwidth tests: Fix link error.
19635         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19636         $(LIBUNISTRING).
19638 2018-05-20  Bruno Haible  <bruno@clisp.org>
19640         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19641         * modules/regex (Files): Add m4/glibc21.m4.
19643 2018-05-20  Bruno Haible  <bruno@clisp.org>
19645         localcharset: Optimize.
19646         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19647         platforms where these don't matter. This reduces the table size,
19648         which in turn reduces the lookup time.
19650 2018-05-19  Bruno Haible  <bruno@clisp.org>
19652         localcharset: Map the locale encodings found in newer OSes.
19653         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19654         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19655         IRIX 6.5, Minix 3.3.
19656         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19658 2018-05-19  Bruno Haible  <bruno@clisp.org>
19660         localcharset: Move mapping tables into the code. Use a binary search.
19661         * lib/localcharset.h: Document the GNU canonical names for character
19662         encodings here.
19663         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19664         relocatable.h, configmake.h.
19665         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19666         macros.
19667         (charset_aliases): Remove variable.
19668         (get_charset_aliases): Remove function.
19669         (struct table_entry): New type.
19670         (alias_table, locale_table): New constants.
19671         (locale_charset): Use the alias_table or locale_table to get the
19672         canonicalized encoding name.
19673         * lib/config.charset: Remove file.
19674         * lib/ref-add.sin: Remove file.
19675         * lib/ref-del.sin: Remove file.
19676         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19677         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19678         * modules/localcharset (Notice): Remove.
19679         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19680         glibc21.m4.
19681         (Depends-on): Remove configmake.
19682         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19683         (Makefile.am): Simplify.
19684         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19686 2018-05-19  Bruno Haible  <bruno@clisp.org>
19688         localcharset: Add a manual test.
19689         * tests/test-localcharset.c: New file.
19690         * modules/localcharset-tests: New file.
19692 2018-05-19  Bruno Haible  <bruno@clisp.org>
19694         localcharset: Remove support for obsolete platforms.
19695         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19696         Mac OS X 10.2. Comment out dubious entry for Solaris.
19698 2018-05-19  Jim Meyering  <meyering@fb.com>
19700         gnupload: adjust comment
19701         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19702         more likely we'll remove the just-added code in a year or two.
19704 2018-05-19  Bruno Haible  <bruno@clisp.org>
19706         gnupload: Fix "gpg-agent is not available in this session" error.
19707         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19709 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19711         crypto/af_alg: fix --help
19712         * m4/af_alg.m4: Avoid spurious newline in --help output.
19714 2018-05-13  Bruno Haible  <bruno@clisp.org>
19716         nl_langinfo: Fix compilation error on Android.
19717         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19718         INT_CURR_SYMBOL, etc. only if these items are defined.
19720 2018-05-13  Bruno Haible  <bruno@clisp.org>
19722         truncate: Fix compilation error on Android.
19723         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19724         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19725         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19726         HAVE_TRUNCATE.
19727         * modules/truncate: Likewise.
19728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19729         not HAVE_TRUNCATE.
19730         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19731         HAVE_TRUNCATE.
19732         * doc/posix-functions/truncate.texi: Mention the issue.
19734 2018-05-13  Bruno Haible  <bruno@clisp.org>
19736         pthread: Fix compilation error on Android.
19737         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19738         recursive inclusion of this file.
19740 2018-05-13  Bruno Haible  <bruno@clisp.org>
19742         posix_spawn: Fix compilation error on Android.
19743         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19744         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19745         (posix_spawn_file_actions_t): Consider also the case
19746         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19748 2018-05-13  Bruno Haible  <bruno@clisp.org>
19750         tsearch: Move from K&R C to ANSI C.
19751         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19753 2018-05-13  Bruno Haible  <bruno@clisp.org>
19755         tsearch: Fix compilation error on Android.
19756         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19757         is 0.
19758         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19759         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19760         GNULIB_defined_tsearch is true.
19761         (twalk): Define only if GNULIB_defined_twalk is true.
19762         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19763         is 0.
19764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19765         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19766         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19768 2018-05-13  Bruno Haible  <bruno@clisp.org>
19770         imaxdiv: Fix compilation error on Android.
19771         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19772         is not defined.
19773         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19774         HAVE_DECL_IMAXDIV, is 0.
19775         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19776         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19778 2018-05-13  Bruno Haible  <bruno@clisp.org>
19780         Support selective inclusion mechanism of recent mingw.org header files.
19781         Reported by Eli Zaretskii <eliz@gnu.org>.
19782         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19783         __need_ssize_t, or __need_time_t is defined, just include the system's
19784         <sys/types.h>.
19785         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19786         include the system's <locale.h>.
19788 2018-05-13  Bruno Haible  <bruno@clisp.org>
19790         Avoid compilation error due to 'mmap' on Android.
19791         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19792         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19793         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19794         Undefine on Android.
19796 2018-05-13  Bruno Haible  <bruno@clisp.org>
19798         Add cross-compilation guesses for Linux systems without glibc.
19799         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19801         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19802         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19803         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19804         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19805         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19806         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19807         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19808         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19809         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19810         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19811         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19812         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19813         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19814         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19815         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19816         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19818 2018-05-13  Bruno Haible  <bruno@clisp.org>
19820         getpagesize: Fix compilation error on Android.
19821         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19822         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19823         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19824         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19825         HAVE_GETPAGESIZE accordingly.
19826         * modules/getcwd (Files): Add m4/getpagesize.m4.
19828 2018-05-13  Bruno Haible  <bruno@clisp.org>
19830         tcgetsid: Fix compilation error on Android.
19831         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19832         AC_CHECK_FUNC.
19834 2018-05-13  Bruno Haible  <bruno@clisp.org>
19836         getpass: Fix configure test for Android.
19837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19838         AC_CHECK_FUNC.
19840 2018-05-13  Bruno Haible  <bruno@clisp.org>
19842         ffs: Fix compilation error on Android.
19843         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19845 2018-05-13  Bruno Haible  <bruno@clisp.org>
19847         mkfifo: Fix compilation error on Android.
19848         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19849         AC_CHECK_FUNC.
19851 2018-05-13  Bruno Haible  <bruno@clisp.org>
19853         c-strtod: Fix configure test for Android.
19854         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19855         AC_CHECK_FUNC.
19857 2018-05-13  Bruno Haible  <bruno@clisp.org>
19859         random: Fix compilation error on Android.
19860         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19861         AC_CHECK_FUNC.
19863 2018-05-13  Bruno Haible  <bruno@clisp.org>
19865         grantpt: Fix compilation error on Android.
19866         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19867         AC_CHECK_FUNC.
19869 2018-05-13  Bruno Haible  <bruno@clisp.org>
19871         stdioext: Fix compilation errors with newer Android headers.
19872         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19873         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19874         fallbacks for Android.
19875         * lib/fpending.c: Update comments.
19876         * lib/fpurge.c: Likewise.
19877         * lib/freadable.h: Likewise.
19878         * lib/freadable.c: Likewise.
19879         * lib/freadahead.c: Likewise.
19880         * lib/freading.h: Likewise.
19881         * lib/freadptr.c: Likewise.
19882         * lib/fseterr.c: Likewise.
19883         * lib/fwritable.h: Likewise.
19884         * lib/fwritable.c: Likewise.
19885         * lib/fwriting.h: Likewise.
19886         * lib/fwriting.c: Likewise.
19888 2018-05-13  Bruno Haible  <bruno@clisp.org>
19890         doc: Add info about Android versions 2.0 to 8.1.
19891         * doc/**/*.texi: Add info about functions in all released versions of
19892         Bionic.
19894 2018-05-12  Bruno Haible  <bruno@clisp.org>
19896         fseeko: On mingw, don't use the hidden function _fseeki64.
19897         Reported by Eli Zaretskii <eliz@gnu.org>.
19898         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19899         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19901 2018-05-12  Bruno Haible  <bruno@clisp.org>
19903         glob: Choose 'dirent_type' in a way that works better on mingw.
19904         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19905         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19907 2018-05-12  Bruno Haible  <bruno@clisp.org>
19909         execute, spawn-pipe: Avoid warning about redefining 'close'.
19910         Reported by Eli Zaretskii <eliz@gnu.org>.
19911         * lib/execute.c: Undefine 'close' before redefining it.
19912         * lib/spawn-pipe.c: Likewise.
19914 2018-05-12  Bruno Haible  <bruno@clisp.org>
19916         nanosleep: Avoid test failure on mingw when it has nanosleep.
19917         Reported by Eli Zaretskii <eliz@gnu.org>.
19918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19919         If it does not exist, use a simpler test program that does not call
19920         alarm().
19922 2018-05-10  Bruno Haible  <bruno@clisp.org>
19924         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19925         Reported by Devin Hussey <husseydevin@gmail.com>.
19926         Based on a patch by Paul Eggert.
19927         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19928         as witness of libpthread.
19929         * lib/glthread/cond.h (pthread_in_use): Likewise.
19930         * lib/glthread/thread.h (pthread_in_use): Likewise.
19931         * lib/glthread/tls.h (pthread_in_use): Likewise.
19933 2018-05-10  Bruno Haible  <bruno@clisp.org>
19935         cond tests: Fix compilation error on Solaris.
19936         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19937         macro.
19939 2018-05-10  Bruno Haible  <bruno@clisp.org>
19941         doc: Add partial info about Android 4.3.
19942         * doc/*-functions/*.texi: Add info about functions that were added
19943         to Bionic between Android 4.3 and Android 9.0.
19945 2018-05-10  Bruno Haible  <bruno@clisp.org>
19947         doc: Add info about Android 9.0.
19948         * doc/**/*.texi: Add info about functions and headers in Bionic from
19949         Android 9.0.
19951 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19953         af_alg: fix my typo in afalg_buffer
19954         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19955         (afalg_stream): Simplify and avoid the need for a runtime test
19956         at the end.
19958         af_alg: recover better from crypto failures
19959         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19960         input stream is seekable, by repositioning the stream back to
19961         where it was, possibly by just calling sendfile with an offset
19962         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19963         cases, which lets our callers try again with user-mode code.
19964         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19965         instead of on fflush and lseek.
19967         af_alg: distiguish I/O errors better
19968         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19969         not -EIO, if it’s OK for the caller to try again with user-mode code.
19970         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19971         some other error number) if fflush fails, as the caller should not
19972         try again that case.
19974         af_alg: avoid gotos
19975         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19976         gotos, as they were a source of unreliability and made the code a
19977         bit harder to follow.
19979         af_alg: don’t leak file descriptors into children
19980         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19981         This code should be compiled only on recent GNU/Linux platforms
19982         so we shouldn’t have to also depend on the accept4 module.
19984         af_alg: coalesce socket creation
19985         * lib/af_alg.c (alg_socket): New function.
19986         (afalg_buffer, afalg_stream): Use it.  This avoids some
19987         code duplication and gotos.
19989         af_alg: fix file descriptor leak
19990         * lib/af_alg.c (afalg_stream): Close leak.
19992         af_alg: Pacify --enable-gcc-warnings on GCC 8
19993         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19994         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19996 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19998         af_alg: Pacify --enable-gcc-warnings
19999         Problem reported by Assaf Gordon in:
20000         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
20001         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
20002         gcc -Wjump-misses-init.
20003         * lib/sha512.c (shaxxx_stream): Now static.
20005 2018-05-06  Bruno Haible  <bruno@clisp.org>
20007         af_alg: Add ability to use Linux kernel crypto API on data in memory.
20008         * lib/af_alg.h (afalg_buffer): New declaration.
20009         * lib/af_alg.c (afalg_buffer): New function.
20011 2018-05-06  Bruno Haible  <bruno@clisp.org>
20013         af_alg: Avoid warnings.
20014         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
20015         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
20017 2018-05-06  Bruno Haible  <bruno@clisp.org>
20019         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
20020         * tests/bench-digest.h: New file.
20021         * tests/bench-md5.c: New file.
20022         * tests/bench-sha1.c: New file.
20023         * tests/bench-sha224.c: New file.
20024         * tests/bench-sha256.c: New file.
20025         * tests/bench-sha384.c: New file.
20026         * tests/bench-sha512.c: New file.
20027         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
20028         tests/bench-digest.h.
20029         (Depends-on): Add getrusage, gettimeofday.
20030         (Makefile.am): Add variables to build bench-md5.
20031         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
20032         tests/bench-digest.h.
20033         (Depends-on): Add getrusage, gettimeofday.
20034         (Makefile.am): Add variables to build bench-sha1.
20035         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
20036         tests/bench-sha256.c, tests/bench-digest.h.
20037         (Depends-on): Add getrusage, gettimeofday.
20038         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
20039         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
20040         tests/bench-sha512.c, tests/bench-digest.h.
20041         (Depends-on): Add getrusage, gettimeofday.
20042         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
20044 2018-05-06  Bruno Haible  <bruno@clisp.org>
20046         af_alg: Fix a resource leak.
20047         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
20048         New local variable 'result'.
20050 2018-05-06  Bruno Haible  <bruno@clisp.org>
20052         af_alg: Fix bug with streams that are not at position 0.
20053         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
20054         assume that the stream is positioned at position 0.
20055         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
20056         of the stream.
20057         * lib/md5.h (md5_stream): Likewise.
20058         * lib/sha1.h (sha1_stream): Likewise.
20059         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
20060         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
20061         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
20063         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
20064         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
20065         stream that is not positioned at the beginning.
20067 2018-05-06  Bruno Haible  <bruno@clisp.org>
20069         af_alg: Add configure option to enable/disable use of Linux crypto API.
20070         Suggested by Assaf Gordon <assafgordon@gmail.com>.
20071         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
20072         USE_LINUX_CRYPTO_API.
20073         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
20074         * lib/af_alg.c: Likewise.
20076 2018-05-06  Bruno Haible  <bruno@clisp.org>
20078         Followup to 'af_alg: New module.'.
20079         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
20080         * modules/crypto/sha1 (Depends-on): Likewise.
20081         * modules/crypto/sha256 (Depends-on): Likewise.
20082         * modules/crypto/sha512 (Depends-on): Likewise.
20084 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20086         crypto/{md5,sha1,sha256,sha512}: simplify
20087         * lib/md5.c (md5_stream):
20088         * lib/sha1.c (sha1_stream):
20089         * lib/sha256.c (shaxxx_stream):
20090         Simplify, partly by assuming C99.
20091         * lib/sha256.c (shaxxx_stream):
20092         New function, which implements both sha256 and sha224.
20093         Simplify, partly by assuming C99.
20094         (sha256_stream, sha224_stream):
20095         Use it to avoid code duplication, removing a FIXME.
20096         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
20097         Likewise.
20099         af_alg: Improve comments.
20100         * lib/af_alg.h: Use imperatives and tighten up wording.
20102 2018-05-05  Bruno Haible  <bruno@clisp.org>
20104         af_alg: Improve comments.
20105         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
20107 2018-05-05  Bruno Haible  <bruno@clisp.org>
20109         af_alg: New module.
20110         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
20111         * lib/af_alg.c: Include "af_alg.h" before the other header files.
20112         * lib/md5.c: Include "af_alg.h" unconditionally.
20113         (md5_stream): Invoke afalg_stream unconditionally.
20114         * lib/sha1.c: Include "af_alg.h" unconditionally.
20115         (sha1_stream): Invoke afalg_stream unconditionally.
20116         * lib/sha256.c: Include "af_alg.h" unconditionally.
20117         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
20118         * lib/sha512.c: Include "af_alg.h" unconditionally.
20119         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
20120         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
20121         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
20122         * modules/crypto/af_alg: New file.
20123         * modules/crypto/md5 (Files): Remove files that are now in the
20124         'crypto/af_alg' module.
20125         (Depends-on): Add crypto/af_alg.
20126         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20127         (Makefile.am): Don't mention af_alg.c here.
20128         * modules/crypto/sha1 (Files): Remove files that are now in the
20129         'crypto/af_alg' module.
20130         (Depends-on): Add crypto/af_alg.
20131         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20132         (Makefile.am): Don't mention af_alg.c here.
20133         * modules/crypto/sha256 (Files): Remove files that are now in the
20134         'crypto/af_alg' module.
20135         (Depends-on): Add crypto/af_alg.
20136         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20137         (Makefile.am): Don't mention af_alg.c here.
20138         * modules/crypto/sha512 (Files): Remove files that are now in the
20139         'crypto/af_alg' module.
20140         (Depends-on): Add crypto/af_alg.
20141         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20142         (Makefile.am): Don't mention af_alg.c here.
20144 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20146         crypto tests: pacify GCC
20147         * tests/test-digest.h (test_digest_on_files):
20148         Don’t assume digest size fits in int (!).
20150         af_alg: minor style improvements
20151         * lib/af_alg.c (afalg_stream): Prefer C99 style
20152         decl-after-statement, since we’re already assuming C99.  Clarify
20153         by strengthening the bind test and omit unnecessary assignment.
20155 2018-05-05  Bruno Haible  <bruno@clisp.org>
20157         af_alg: Fix bug on empty files.
20158         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
20159         stream is empty.
20161 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20163         sys-limits.h: new file for crypto and safe I/O
20164         * lib/af_alg.c: Include sys-limits.h.
20165         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
20166         (afalg_stream): Also reject negative sizes for sendfile; they
20167         should not happen and the code is a bit cleaner and faster this way.
20168         * lib/safe-read.c: Include sys-limits.h.
20169         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
20170         * lib/sys-limits.h: New file, with values and commentary derived
20171         from the old safe-read.c and from GNU Emacs sysdep.c.
20172         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
20173         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
20174         Add lib/sys-limits.h to Files section.
20176 2018-05-05  Bruno Haible  <bruno@clisp.org>
20178         af_alg: Improve function signature.
20179         * lib/af_alg.h (afalg_stream): Swap second and third argument.
20180         * lib/af_alg.c (afalg_stream): Likewise.
20181         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
20183 2018-05-05  Bruno Haible  <bruno@clisp.org>
20185         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
20186         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
20187         * modules/crypto/sha1 (Depends-on): Likewise.
20188         * modules/crypto/sha256 (Depends-on): Likewise.
20189         * modules/crypto/sha512 (Depends-on): Likewise.
20191 2018-05-05  Bruno Haible  <bruno@clisp.org>
20193         crypto/{md5,sha1,sha256,sha512}: Fix module description.
20194         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
20195         * modules/crypto/sha1 (Depends-on): Likewise.
20196         * modules/crypto/sha256 (Depends-on): Likewise.
20197         * modules/crypto/sha512 (Depends-on): Likewise.
20199 2018-05-05  Bruno Haible  <bruno@clisp.org>
20201         af_alg: Add documentation.
20202         * lib/af_alg.h: Add comments.
20204 2018-05-05  Bruno Haible  <bruno@clisp.org>
20206         sha512: Add tests.
20207         * tests/test-sha512.c: New file.
20208         * modules/crypto/sha512-tests: New file.
20210 2018-05-05  Bruno Haible  <bruno@clisp.org>
20212         sha256: Add tests.
20213         * tests/test-sha256.c: New file.
20214         * modules/crypto/sha256-tests: New file.
20216 2018-05-05  Bruno Haible  <bruno@clisp.org>
20218         sha1 tests: Add test for sha1_stream.
20219         * tests/test-sha1.c: Include test-digest.h.
20220         (main): Invoke test_digest_on_files on 'sha1_stream'.
20221         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
20223 2018-05-05  Bruno Haible  <bruno@clisp.org>
20225         md5 tests: Add test for md5_stream.
20226         * tests/test-digest.h: New file.
20227         * tests/test-md5.c: Include test-digest.h.
20228         (main): Invoke test_digest_on_files on 'md5_stream'.
20229         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
20231 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20233         md5sum: Use AF_ALG when available.
20234         * lib/md5.c: Include af_alg.h.
20235         (md5_stream): Use afalg_stream when available.
20236         * modules/crypto/md5 (Files): Add the af_alg files.
20237         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20238         (Makefile.am): Add af_alg.c.
20240 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20242         sha512sum: Use AF_ALG when available.
20243         * lib/sha512.c: Include af_alg.h.
20244         (sha512_stream, sha384_stream): Use afalg_stream when available.
20245         * modules/crypto/sha512 (Files): Add the af_alg files.
20246         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20247         (Makefile.am): Add af_alg.c.
20249 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20251         sha256sum: Use AF_ALG when available.
20252         * lib/sha256.c: Include af_alg.h.
20253         (sha256_stream, sha224_stream): Use afalg_stream when available.
20254         * modules/crypto/sha256 (Files): Add the af_alg files.
20255         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20256         (Makefile.am): Add af_alg.c.
20258 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20260         sha1sum: Use AF_ALG when available.
20261         * lib/af_alg.h: New file.
20262         * lib/af_alg.c: New file.
20263         * lib/sha1.c: Include af_alg.h.
20264         (sha1_stream): Use afalg_stream when available.
20265         * m4/linux-if-alg.m4: New file.
20266         * modules/crypto/sha1 (Files): Add the new files.
20267         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20268         (Makefile.am): Add af_alg.c.
20270 2018-05-05  Bruno Haible  <bruno@clisp.org>
20272         all: Replace more http URLs by https URLs.
20273         * lib/localename.c: Use https: URL.
20274         * lib/timespec.h: Likewise.
20276 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20278         maint: port more modules to GCC 8
20279         * lib/dirname.h (base_name):
20280         * lib/exclude.h (new_exclude):
20281         * lib/xstrndup.h (xstrndup):
20282         Add malloc attribute.
20283         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
20284         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
20285         This pacifies GCC 8.
20286         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20287         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
20289 2018-05-03  Bruno Haible  <bruno@clisp.org>
20291         Simplify code. Drop support for Borland C++ on Windows.
20292         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
20293         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
20294         'defined _WIN32'.
20295         * lib/canonicalize-lgpl.c: Likewise.
20296         * lib/classpath.c: Likewise.
20297         * lib/clean-temp.c: Likewise.
20298         * lib/csharpexec.c: Likewise.
20299         * lib/ctime.c: Likewise.
20300         * lib/dosname.h: Likewise.
20301         * lib/dup2.c: Likewise.
20302         * lib/errno.in.h: Likewise.
20303         * lib/error.c: Likewise.
20304         * lib/euidaccess.c: Likewise.
20305         * lib/execute.c: Likewise.
20306         * lib/fcntl.in.h: Likewise.
20307         * lib/fcntl.c: Likewise.
20308         * lib/filename.h: Likewise.
20309         * lib/findprog.c: Likewise.
20310         * lib/flock.c: Likewise.
20311         * lib/fopen.c: Likewise.
20312         * lib/freopen.c: Likewise.
20313         * lib/fstat.c: Likewise.
20314         * lib/fsync.c: Likewise.
20315         * lib/gc-gnulib.c: Likewise.
20316         * lib/get-rusage-data.c: Likewise.
20317         * lib/getaddrinfo.c: Likewise.
20318         * lib/getdelim.c: Likewise.
20319         * lib/getdtablesize.c: Likewise.
20320         * lib/gethostname.c: Likewise.
20321         * lib/getlogin.c: Likewise.
20322         * lib/getlogin_r.c: Likewise.
20323         * lib/getopt.c: Likewise.
20324         * lib/getpagesize.c: Likewise.
20325         * lib/getpass.c: Likewise.
20326         * lib/getrusage.c: Likewise.
20327         * lib/gettimeofday.c: Likewise.
20328         * lib/glob.c: Likewise.
20329         * lib/inttypes.in.h: Likewise.
20330         * lib/isapipe.c: Likewise.
20331         * lib/javaexec.c: Likewise.
20332         * lib/link.c: Likewise.
20333         * lib/localcharset.c: Likewise.
20334         * lib/localename.h: Likewise.
20335         * lib/localename.c: Likewise.
20336         * lib/localtime.c: Likewise.
20337         * lib/lseek.c: Likewise.
20338         * lib/mbsinit.c: Likewise.
20339         * lib/mkdir.c: Likewise.
20340         * lib/msvc-nothrow.h: Likewise.
20341         * lib/nanosleep.c: Likewise.
20342         * lib/nl_langinfo.c: Likewise.
20343         * lib/nonblocking.c: Likewise.
20344         * lib/nproc.c: Likewise.
20345         * lib/open.c: Likewise.
20346         * lib/openpty.c: Likewise.
20347         * lib/pathmax.h: Likewise.
20348         * lib/pipe-filter-aux.c: Likewise.
20349         * lib/pipe-filter-gi.c: Likewise.
20350         * lib/pipe-filter-ii.c: Likewise.
20351         * lib/pipe.c: Likewise.
20352         * lib/pipe2.c: Likewise.
20353         * lib/poll.c: Likewise.
20354         * lib/popen.c: Likewise.
20355         * lib/posix_openpt.c: Likewise.
20356         * lib/printf-parse.c: Likewise.
20357         * lib/progreloc.c: Likewise.
20358         * lib/putenv.c: Likewise.
20359         * lib/read.c: Likewise.
20360         * lib/relocatable.c: Likewise.
20361         * lib/rename.c: Likewise.
20362         * lib/same-inode.h: Likewise.
20363         * lib/secure_getenv.c: Likewise.
20364         * lib/select.c: Likewise.
20365         * lib/sethostname.c: Likewise.
20366         * lib/setlocale.c: Likewise.
20367         * lib/sigaction.c: Likewise.
20368         * lib/sigprocmask.c: Likewise.
20369         * lib/sleep.c: Likewise.
20370         * lib/spawn-pipe.h: Likewise.
20371         * lib/spawn-pipe.c: Likewise.
20372         * lib/spawni.c: Likewise.
20373         * lib/stat-time.h: Likewise.
20374         * lib/stat-w32.c: Likewise.
20375         * lib/stat.c: Likewise.
20376         * lib/stdio.in.h: Likewise.
20377         * lib/stdio-impl.h: Likewise.
20378         * lib/stdio-read.c: Likewise.
20379         * lib/stdio-write.c: Likewise.
20380         * lib/stdlib.in.h: Likewise.
20381         * lib/strerror_r.c: Likewise.
20382         * lib/strftime-fixes.c: Likewise.
20383         * lib/sys_stat.in.h: Likewise.
20384         * lib/sys_types.in.h: Likewise.
20385         * lib/sys_wait.in.h : Likewise.
20386         * lib/system-quote.h: Likewise.
20387         * lib/system-quote.c: Likewise.
20388         * lib/tmpdir.c: Likewise.
20389         * lib/tzset.c: Likewise.
20390         * lib/uname.c: Likewise.
20391         * lib/unistd.in.h: Likewise.
20392         * lib/utime.in.h: Likewise.
20393         * lib/utime.c: Likewise.
20394         * lib/utimecmp.c: Likewise.
20395         * lib/utimens.c: Likewise.
20396         * lib/vasnprintf.c: Likewise.
20397         * lib/vma-iter.h: Likewise.
20398         * lib/vma-iter.c: Likewise.
20399         * lib/wait-process.c: Likewise.
20400         * lib/wcsftime.c: Likewise.
20401         * lib/wctype.in.h: Likewise.
20402         * lib/write.c: Likewise.
20403         * tests/nap.h: Likewise.
20404         * tests/test-cloexec.c: Likewise.
20405         * tests/test-dup-safer.c: Likewise.
20406         * tests/test-dup2.c: Likewise.
20407         * tests/test-dup3.c: Likewise.
20408         * tests/test-fcntl.c: Likewise.
20409         * tests/test-get-rusage-data.c: Likewise.
20410         * tests/test-getaddrinfo.c: Likewise.
20411         * tests/test-getlogin.h: Likewise.
20412         * tests/test-isatty.c: Likewise.
20413         * tests/test-localename.c: Likewise.
20414         * tests/test-mbrtowc-w32.c: Likewise.
20415         * tests/test-nonblocking.c: Likewise.
20416         * tests/test-nonblocking-pipe-main.c: Likewise.
20417         * tests/test-nonblocking-socket-main.c: Likewise.
20418         * tests/test-nonblocking-socket.h: Likewise.
20419         * tests/test-pipe.c: Likewise.
20420         * tests/test-pipe2.c: Likewise.
20421         * tests/test-poll.c: Likewise.
20422         * tests/test-pthread_sigmask1.c: Likewise.
20423         * tests/test-select.h: Likewise.
20424         * tests/test-sethostname2.c: Likewise.
20425         * tests/test-sigprocmask.c: Likewise.
20426         * tests/test-spawn-pipe-child.c: Likewise.
20427         * tests/test-stat-time.c: Likewise.
20428         * tests/test-system-quote-main.c: Likewise.
20429         * tests/test-utimens-common.h: Likewise.
20430         * tests/test-wcrtomb-w32.c: Likewise.
20431         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20432         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20433         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20434         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20435         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20437         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20438         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20439         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20440         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20441         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20442         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20443         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20444         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20445         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20448 2018-05-02  Bruno Haible  <bruno@clisp.org>
20450         localename: Fix test failures on mingw.
20451         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20452         native Windows.
20453         (gl_locale_name_posix): Move code specific to native Windows here.
20454         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20455         Accept result without charset suffix, as it appears on mingw.
20457 2018-04-28  Paul Smith  <psmith@gnu.org>
20459         bootstrap: Avoid gnulib operations if not needed
20460         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20461         Set $gnulib_extra_files early so it can be overridden in .conf.
20462         Remove redundant --import flag from $gnulib_tool_options.
20463         Set $use_gnulib to false if no gnulib modules or files are needed.
20464         If $use_gnulib is false, don't do anything related to gnulib.
20465         A lot of this is just whitespace (indentation) changes.
20467 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20469         manywarnings: port to GCC 8.0
20470         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20471         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20472         fact that the GCC help message now mentions operands for
20473         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20474         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20475         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20476         and -Wunused-const-variable.
20477         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20478         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20479         -Wmissing-attributes, -Wmultistatement-macros,
20480         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20481         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20483 2018-04-24  Bruno Haible  <bruno@clisp.org>
20485         sys_socket: Make SO_REUSEPORT available across platforms.
20486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20487         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20488         * doc/posix-headers/sys_socket.texi: Mention the issue.
20489         * tests/test-poll.c (SO_REUSEPORT): Remove.
20490         * tests/test-select.h: Include <sys/socket.h>.
20491         (SO_REUSEPORT): Remove.
20492         * modules/select-tests (Depends-on): Add 'sys_socket'.
20494 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20496         localcharset: short-circuit the search for an alias on a Mac
20497         * lib/localcharset.c (get_charset_aliases): Add a tautological
20498         UTF-8 entry to speed up the search for this case.
20499         Most machines default to a UTF-8 locale nowadays, so begin the
20500         list of aliases with a dummy UTF-8 entry so it will be found
20501         immediately and a time-consuming search through the rest of
20502         the list is avoided.
20504 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20506         fts: add comment
20507         * lib/fts.c (fts_build): Explain why ==, not >.
20508         See remark by Bernhard Voelker in:
20509         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20511         fts: fix bug in find across filesystems
20512         This fixes a bug I introduced last summer.
20513         Problem reported by Kamil Dudka in:
20514         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20515         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20516         (leaf_optimization):
20517         New arg for file descriptor.  All callers changed.
20518         (fts_build): Check for whether inodes should be sorted
20519         before closing the directory.
20521 2018-04-07  Bruno Haible  <bruno@clisp.org>
20523         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20524         Reported by Genki Sky <sky@genki.is>.
20525         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20526         version 0.9.10 or newer.
20527         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20528         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20529         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20530         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20531         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20533 2018-04-07  Bruno Haible  <bruno@clisp.org>
20535         execute: Update comment.
20536         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20538 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20540         fts: treat CIFS like NFS
20541         Problem reported by Kamil Dudka in:
20542         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20543         * lib/fts.c (S_MAGIC_CIFS): New macro.
20544         (dirent_inode_sort_may_be_useful, leaf_optimization):
20545         Treat CIFS like NFS.
20547 2018-03-28  Bruno Haible  <bruno@clisp.org>
20549         c-stack: Fix possible build failure on some platforms.
20550         * lib/c-stack.c (die): Define whenever this function is referenced.
20552 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20554         time_rz: fix workaround for Mac OS X 10.6 infloop
20555         Problems reported by Charles A. Roelli (Bug#27736#117).
20556         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20557         Also, discard output, which clutters the 'configure' log.
20559 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20561         havelib: port to Solaris 10 /bin/sh
20562         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20563         instead of '! test EXPR'.
20565 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20567         time_rz: work around Mac OS X 10.6 infloop
20568         * doc/posix-functions/localtime.texi:
20569         * doc/posix-functions/localtime_r.texi: Mention the bug.
20570         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20571         better to fix localtime and localtime_r instead, but that would be
20572         more work and is not needed to fix the Emacs problem.
20573         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20575 2018-03-24  Jim Meyering  <meyering@fb.com>
20577         test-version-etc.sh: don't use diff directly: use init.sh's compare
20578         We'd rather not sacrifice readable "diff -u" output even for
20579         "diff -c" output (not supported by busybox) or for even less
20580         readable ed-style "diff" output.  So use init.sh's compare function
20581         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20582         Remove "./" from invocation of test-version-etc, so we use path.
20583         And s/diff/compare/.
20584         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20585         to get init.sh.
20586         Prompted by Eric Blake's comments in
20587         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20589 2018-03-24  Bruno Haible  <bruno@clisp.org>
20591         javacomp-script, javacomp: Add support for Java 10.
20592         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20593         target-version 10.
20594         * lib/javaversion.h: Update comments.
20595         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20596         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20597         TARGET_VERSION_BOUND, target_version_index,
20598         corresponding_classfile_version): Accept source_version 10 and
20599         target_version 10.
20600         * lib/javacomp.h: Update comments accordingly.
20602 2018-03-24  Bruno Haible  <bruno@clisp.org>
20604         javacomp-script, javacomp: Update comments.
20605         * m4/javacomp.m4: Update comments regarding gcj.
20606         * lib/javacomp.h: Likewise.
20608 2018-03-24  Bruno Haible  <bruno@clisp.org>
20610         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20611         * lib/javaversion.h: Update comments.
20612         * lib/javacomp.h: Likewise.
20613         * lib/javacomp.c (default_target_version, source_version_index,
20614         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20615         "1.9".
20616         (TARGET_VERSION_BOUND): Bump to 9.
20617         (target_version_index, corresponding_classfile_version): Recognize "9"
20618         instead of "1.9".
20619         (get_source_version_for_javac): New function.
20620         (is_envjavac_nongcj_usable, is_javac_usable): Add
20621         source_version_for_javac argument.
20622         (compile_java_class): Determine and pass source_version_for_javac.
20623         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20624         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20625         appropriate.
20627 2018-03-23  Jim Meyering  <meyering@fb.com>
20629         test-version-etc.sh: port to diff without -c
20630         * tests/test-version-etc.sh: Don't use diff's -c option.
20631         This caused spurious test failure on Alpine Linux, which
20632         uses busybox's diff. Reported by Assaf Gordon in
20633         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20635 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20637         c-stack: port to recent GCC build
20638         Problem reported by The Fireplace (Bug#30913).
20639         * lib/c-stack.c (die): Define only if used.
20641 2018-03-20  Bruno Haible  <bruno@clisp.org>
20643         euidaccess: Port to native Windows.
20644         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20645         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20647 2018-03-19  Bruno Haible  <bruno@clisp.org>
20649         javacomp: Add support for Java 7, 8, 9.
20650         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20651         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20652         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20653         and target_version 1,7, 1.8, 1.9.
20654         * lib/javacomp.h: Update comments accordingly.
20656 2018-03-19  Bruno Haible  <bruno@clisp.org>
20658         javacomp-script: Add support for Java 9.
20659         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20660         target-version 1.9.
20662 2018-03-16  Bruno Haible  <bruno@clisp.org>
20664         glob: Don't compile replacements on recent glibc systems.
20665         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20666         REPLACE_GLOB is 0, include the system's <glob.h> and use
20667         _GL_CXXALIAS_SYS.
20668         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20669         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20670         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20671         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20672         Remove snippet/warn-on-use.
20673         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20674         (Makefile.am): Create glob.h always. Update list of substitutions in
20675         glob.h. Don't depend on $(WARN_ON_USE_H).
20677 2018-03-16  Bruno Haible  <bruno@clisp.org>
20679         glob: Fix link error on native Windows.
20680         * modules/glob (Depends-on): Add 'lstat'.
20682 2018-03-15  Bruno Haible  <bruno@clisp.org>
20684         glob: Fix compilation error in C++ mode.
20685         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20687 2018-03-15  Bruno Haible  <bruno@clisp.org>
20689         host-cpu-c-abi: Support for RISC-V CPU.
20690         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20691         riscv32 and riscv64 ABIs.
20692         References:
20693         https://github.com/riscv/riscv-toolchain-conventions
20694         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20695         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20697 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20699         fflush: be more paranoid about libio.h change
20700         Suggested by Eli Zaretskii in:
20701         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20702         * lib/fbufmode.c (fbufmode):
20703         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20704         (disable_seek_optimization, rpl_fflush):
20705         * lib/fpending.c (__fpending):
20706         * lib/fpurge.c (fpurge):
20707         * lib/freadable.c (freadable):
20708         * lib/freadahead.c (freadahead):
20709         * lib/freading.c (freading):
20710         * lib/freadptr.c (freadptr):
20711         * lib/freadseek.c (freadptrinc):
20712         * lib/fseeko.c (fseeko):
20713         * lib/fseterr.c (fseterr):
20714         * lib/fwritable.c (fwritable):
20715         * lib/fwriting.c (fwriting):
20716         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20718 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20720         maint: write-file-hooks -> before-save-hook
20721         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20722         it's time to use the recommended replacement.
20723         Problem reported by Glenn Morris in:
20724         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20725         * build-aux/announce-gen, build-aux/bootstrap:
20726         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20727         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20728         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20729         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20730         * build-aux/update-copyright, build-aux/useless-if-before-free:
20731         * build-aux/vc-list-files:
20732         Update hook usage for files where Gnulib is the canonical source.
20734 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20736         binary-io: pacify gcc -Wunused-parameter
20737         Problem reported by Reuben Thomas in:
20738         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20739         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20740         Use _GL_UNUSED where appropriate.
20742         fflush: adjust to glibc 2.28 libio.h removal
20743         Problem reported by Daniel P. Berrangé in:
20744         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20745         * lib/fbufmode.c (fbufmode):
20746         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20747         (disable_seek_optimization, rpl_fflush):
20748         * lib/fpending.c (__fpending):
20749         * lib/fpurge.c (fpurge):
20750         * lib/freadable.c (freadable):
20751         * lib/freadahead.c (freadahead):
20752         * lib/freading.c (freading):
20753         * lib/freadptr.c (freadptr):
20754         * lib/freadseek.c (freadptrinc):
20755         * lib/fseeko.c (fseeko):
20756         * lib/fseterr.c (fseterr):
20757         * lib/fwritable.c (fwritable):
20758         * lib/fwriting.c (fwriting):
20759         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20760         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20761         Define if not already defined.
20763 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20765         environ: fix link error on 32-bit Cygwin
20766         Problem reported for GNU Emacs by Ken Brown in:
20767         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20768         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20770 2018-02-24  Bruno Haible  <bruno@clisp.org>
20772         mbrtowc tests: Fix regression on glibc.
20773         Reported by Bernhard Voelker.
20774         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20776 2018-02-24  Bruno Haible  <bruno@clisp.org>
20778         striconveha, uniconv/*: Avoid test failures on musl libc.
20779         * tests/iconvsupport.c: New file.
20780         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20781         does not support the ISO-2022-JP-2 encoding.
20782         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20783         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20784         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20785         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20786         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20787         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20788         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20789         (Makefile.am): Link test-striconveha with iconvsupport.o.
20790         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20791         tests/iconvsupport.c.
20792         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20793         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20794         tests/iconvsupport.c.
20795         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20796         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20797         tests/iconvsupport.c.
20798         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20799         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20800         tests/iconvsupport.c.
20801         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20802         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20803         tests/iconvsupport.c.
20804         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20805         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20806         tests/iconvsupport.c.
20807         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20809 2018-02-24  Bruno Haible  <bruno@clisp.org>
20811         localename: Add support for musl libc.
20812         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20813         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20814         on Linux platforms which define NL_LOCALE_NAME.
20816 2018-02-24  Bruno Haible  <bruno@clisp.org>
20818         mbrtowc tests: Don't make assumptions about the charset the C locale.
20819         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20820         particular mapping in the C locale.
20822 2018-02-24  Bruno Haible  <bruno@clisp.org>
20824         ptsname_r: Don't expect that this function sets errno.
20825         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20826         from ptsname_r().
20827         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20829 2018-02-23  Bruno Haible  <bruno@clisp.org>
20831         xmalloca: pacify gcc -Wbad-function-cast
20832         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20834 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20836         nl_langinfo: pacify gcc -Wunused-function
20837         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20838         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20839         this case.  Without this change, I got a diagnostic when building
20840         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20842         same: pacify gcc -Wunused-variable
20843         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20844         Omit unused variable.
20846         malloca: pacify gcc -Wbad-function-cast
20847         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20848         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20849         To pacify GCC, I had to cast alloca’s result to some type other
20850         than void * before casting that to uintptr_t.
20852 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20854         utimecmp: new function utimecmpat
20855         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20856         Do not include utimens.h.
20857         (utimecmpat): New function, generalizing utimecmp.
20858         (utimecmp): Now a thin layer around utimecmpat.
20859         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20860         utimensat instead of on lstat and utimens.
20862         same: new function same_nameat
20863         * lib/same.c: Include fcntl.h.
20864         * lib/same.c (same_nameat): New function, generalizing same_name.
20865         (same_name): Now a thin layer around same_nameat.
20866         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20867         * modules/same (Depends-on): Depend on fstatat, openat.
20869 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20871         warnings: Add support for Objective C.
20872         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20873         macro.
20875 2018-02-17  Bruno Haible  <bruno@clisp.org>
20877         lock: Fix test-once1 crash on FreeBSD11.
20878         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20879         'pthread_create', not 'pthread_cancel'.
20881 2018-02-17  Bruno Haible  <bruno@clisp.org>
20883         lock: Add test of gl_once.
20884         * tests/test-once.c: New file.
20885         * modules/lock-tests (Files): Add it.
20886         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20888 2018-02-17  Bruno Haible  <bruno@clisp.org>
20890         thread: Fix compilation error on IRIX.
20891         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20892         needed; include it outside the C++ extern "C" {} block.
20893         * doc/posix-headers/pthread.texi: Mention the problem with
20894         pthread_atfork on IRIX.
20896 2018-02-04  Bruno Haible  <bruno@clisp.org>
20898         nl_langinfo: Override the system's nl_langinfo() when needed.
20899         Reported by Jim Meyering.
20900         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20901         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20903 2018-02-04  Bruno Haible  <bruno@clisp.org>
20905         signal-h, monetary, strings: Fix build failure in some cases.
20906         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20907         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20908         as delimiter in sed command, not '|'.
20909         * modules/monetary (Makefile.am): Likewise.
20910         * modules/strings (Makefile.am): Likewise.
20912 2018-02-03  Jim Meyering  <meyering@fb.com>
20914         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20915         * top/maint.mk (sc_file_system): Don't complain about
20916         "/proc/filesystems".
20918 2018-02-03  Bruno Haible  <bruno@clisp.org>
20920         stdlib: Fix compilation error on OpenIndiana.
20921         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20922         <sys/time.h>.
20923         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20924         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20926 2018-02-03  Bruno Haible  <bruno@clisp.org>
20928         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20929         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20930         and use $EGREP instead of 'grep -E'.
20931         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20932         'grep -E'.
20934 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20936         malloca: Add a compile-time verification.
20937         * lib/malloca.c (small_t): Verify that it is wide enough.
20938         * modules/malloca (Depends-on): Add verify.
20940 2018-02-02  Bruno Haible  <bruno@clisp.org>
20942         malloca: Add an argument check.
20943         Suggested by Paul Eggert.
20944         * lib/malloca.c (freea): Check against an invalid argument.
20946 2018-02-02  Bruno Haible  <bruno@clisp.org>
20948         localename: Add support for OpenIndiana.
20949         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20950         Solaris 11 variants with uselocale() but without getlocalename_l().
20952 2018-02-02  Bruno Haible  <bruno@clisp.org>
20954         malloca, xmalloca: Make multithread-safe.
20955         Reported by Florian Weimer <fweimer@redhat.com>.
20956         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20957         * lib/malloca.h (malloca): In the stack allocation case, return a
20958         pointer that is a multiple of 2 * sa_alignment_max.
20959         (sa_increment): Remove enum item.
20960         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20961         a pointer that is a multiple of 2 * sa_alignment_max.
20962         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20963         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20964         HASH_TABLE_SIZE, mmalloca_results): Remove.
20965         (small_t): New type.
20966         (mmalloca, free): Rewritten.
20967         * lib/malloca.valgrind: Remove file.
20968         * modules/malloca (Files): Remove it.
20969         (Depends-on): Remove verify.
20971 2018-01-31  Bruno Haible  <bruno@clisp.org>
20973         environ: Fix link error on 64-bit Cygwin.
20974         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20975         __declspec(dllimport) attribute.
20976         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20978 2018-01-30  Bruno Haible  <bruno@clisp.org>
20980         get-rusage-data: Add support for Minix 3.
20981         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20983 2018-01-30  Bruno Haible  <bruno@clisp.org>
20985         vma-iter: Add support for Minix 3.
20986         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20987         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20989 2018-01-27  Bruno Haible  <bruno@clisp.org>
20991         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20992         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20993         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20994         _HPUX_ALT_XOPEN_SOCKET_API.
20995         * modules/accept (Depends-on): Add 'extensions'.
20996         * modules/getpeername (Depends-on): Likewise.
20997         * modules/getsockname (Depends-on): Likewise.
20998         * modules/getsockopt (Depends-on): Likewise.
20999         * modules/recvfrom (Depends-on): Likewise.
21000         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
21001         * doc/posix-functions/getpeername.texi: Likewise.
21002         * doc/posix-functions/getsockname.texi: Likewise.
21003         * doc/posix-functions/getsockopt.texi: Likewise.
21004         * doc/posix-functions/recvfrom.texi: Likewise.
21006 2018-01-27  Bruno Haible  <bruno@clisp.org>
21008         getsockname tests: More tests.
21009         * tests/test-getsockname.c (open_server_socket): New function, mostly
21010         copied from test-poll.c.
21011         (main): Check that getsockname fills in addr.
21012         * modules/getsockname-tests (Depends-on): Add the necessary
21013         dependencies.
21014         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
21016 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21018         manywarnings: fix maintainer comment
21019         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
21020         it does not mistakenly think that ‘-1)’ is an option.
21022 2018-01-26  Bruno Haible  <bruno@clisp.org>
21024         langinfo: Fix last commit.
21025         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21026         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
21028 2018-01-24  Bruno Haible  <bruno@clisp.org>
21030         langinfo, nl_langinfo: Add support for alternative month names.
21031         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
21032         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
21033         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
21034         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
21035         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
21036         * doc/posix-functions/nl_langinfo.texi: Likewise.
21038 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21040         Merge strftime.c changes from glibc
21041         This incorporates:
21042         2017-11-14 [BZ #10871] Implement alternative month names
21043         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
21044         2017-06-20 Use locale_t, not __locale_t, throughout glibc
21045         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
21046         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
21047         Use locale_t, not __locale_t.
21048         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
21049         (__strftime_internal): Add support for alternate months.
21051 2018-01-23  Bruno Haible  <bruno@clisp.org>
21053         doc: Mention another prerequisite for using Gnulib.
21054         Reported at <https://stackoverflow.com/questions/48378214/>.
21055         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
21056         AC_CONFIG_HEADERS.
21058 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
21060         build: GuixSD doesn't have /bin/bash
21061         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
21063 2018-01-21  Bruno Haible  <bruno@clisp.org>
21065         Avoid test failures on Microsoft Windows Subsystem for Linux.
21066         * tests/test-fcntl.c (main): Allow a different errno.
21067         * tests/test-rename.h (test_rename): Likewise.
21068         * tests/test-renameat.c (main): Likewise.
21069         * tests/test-renameat2.c (main): Likewise.
21071 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21073         filenamecat: make base a suffix of result
21074         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
21075         (mfile_name_concat): Always make BASE a suffix of the result, as
21076         cp expects this.  To implement this, separate with '.' instead of
21077         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
21078         * tests/test-filenamecat.c (main): Adjust tests to match
21079         current behavior.  Check that BASE_IN_RESULT points to
21080         a copy of BASE and is a suffix of the resultk, and that DIR
21081         is a prefix of the result that is no longer than the prefix
21082         indicated by BASE_IN_RESULT.
21084 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
21086         update-copyright: Handle use of ©
21087         * build-aux/update-copyright ($circle_c_re): Update regex to
21088         handle use of © in headers.
21090 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
21092         Fix -Wundef warning in user-included header lib/cdefs.h.
21093         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
21095 2018-01-04  Bruno Haible  <bruno@clisp.org>
21097         pthread_sigmask: Avoid compilation error on mingw.
21098         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21099         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
21100         macro.
21102 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21104         test-framework-sh: ‘ps -ef’, not ‘ps ef’
21105         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
21106         Suggested by Bob Proulx (Bug#29968).
21107         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
21109 2018-01-02  Eric Blake  <eblake@redhat.com>
21111         stat-time: silence -Wunused-parameter regression
21112         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21113         Prefer attribute over cast-to-void.
21114         (stat_time_normalize): Mark st as potentially unused.
21116 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21118         test-framework-sh: avoid netstat
21119         Problem reported by Kristýna Streitová (Bug#29947).
21120         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
21121         deprecated on SuSE and it's not that important anyway.
21123 2018-01-01  Jim Meyering  <meyering@fb.com>
21125         update-copyright: add code to handle more special cases
21126         After running "make update-copyright" this year, five files
21127         required additional manual changes.  Automate those adjustments
21128         for next year.
21129         * Makefile (_year_and_prev): Define.
21130         (update-copyright): Add perl commands to induce this year's post-
21131         update-copyright adjustments.
21133 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21135         version-etc: new year
21136         * build-aux/gendocs.sh (version):
21137         * doc/gendocs_template:
21138         * doc/gendocs_template_min:
21139         * doc/gnulib.texi:
21140         * lib/version-etc.c (COPYRIGHT_YEAR):
21141         Update copyright dates by hand in templates and the like.
21143         maint: fix 'make update-copyright'
21144         * Makefile (update-copyright): Adjust to 2016-11-23 change
21145         to config/srclist-update, which changed the format of srclist.txt.
21147 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21149         chdir-safer: remove this module
21150         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
21151         * NEWS: Document removal.
21152         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
21153         * modules/chdir-safer: Remove these files.
21155 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
21157         Add cross-compilation results for GNU/Hurd.
21158         * m4/calloc.m4: Add GNU/Hurd guess.
21159         * m4/cbrtl.m4: Likewise.
21160         * m4/ceil.m4: Likewise.
21161         * m4/ceilf.m4: Likewise.
21162         * m4/ceill.m4: Likewise.
21163         * m4/chown.m4: Likewise.
21164         * m4/duplocale.m4: Likewise.
21165         * m4/exp2l.m4: Likewise.
21166         * m4/expm1.m4: Likewise.
21167         * m4/fchdir.m4: Likewise.
21168         * m4/floor.m4: Likewise.
21169         * m4/floorf.m4: Likewise.
21170         * m4/fmod.m4: Likewise.
21171         * m4/fmodf.m4: Likewise.
21172         * m4/fmodl.m4: Likewise.
21173         * m4/getcwd.m4: Likewise.
21174         * m4/getgroups.m4: Likewise.
21175         * m4/gettimeofday.m4: Likewise.
21176         * m4/hypot.m4: Likewise.
21177         * m4/hypotf.m4: Likewise.
21178         * m4/hypotl.m4: Likewise.
21179         * m4/link-follow.m4: Likewise.
21180         * m4/link.m4: Likewise.
21181         * m4/linkat.m4: Likewise.
21182         * m4/log.m4: Likewise.
21183         * m4/log10.m4: Likewise.
21184         * m4/log10f.m4: Likewise.
21185         * m4/log1p.m4: Likewise.
21186         * m4/log1pf.m4: Likewise.
21187         * m4/log1pl.m4: Likewise.
21188         * m4/log2.m4: Likewise.
21189         * m4/log2f.m4: Likewise.
21190         * m4/logf.m4: Likewise.
21191         * m4/lstat.m4: Likewise.
21192         * m4/malloc.m4: Likewise.
21193         * m4/mbrlen.m4: Likewise.
21194         * m4/mbrtowc.m4: Likewise.
21195         * m4/mkdir.m4: Likewise.
21196         * m4/mkfifo.m4: Likewise.
21197         * m4/mknod.m4: Likewise.
21198         * m4/mkstemp.m4: Likewise.
21199         * m4/modf.m4: Likewise.
21200         * m4/modff.m4: Likewise.
21201         * m4/modfl.m4: Likewise.
21202         * m4/printf.m4: Likewise.
21203         * m4/pselect.m4: Likewise.
21204         * m4/ptsname.m4: Likewise.
21205         * m4/putenv.m4: Likewise.
21206         * m4/readlink.m4: Likewise.
21207         * m4/realloc.m4: Likewise.
21208         * m4/remainder.m4: Likewise.
21209         * m4/remainderf.m4: Likewise.
21210         * m4/remainderl.m4: Likewise.
21211         * m4/rmdir.m4: Likewise.
21212         * m4/round.m4: Likewise.
21213         * m4/roundf.m4: Likewise.
21214         * m4/roundl.m4: Likewise.
21215         * m4/select.m4: Likewise.
21216         * m4/setenv.m4: Likewise.
21217         * m4/signbit.m4: Likewise.
21218         * m4/sleep.m4: Likewise.
21219         * m4/stat.m4: Likewise.
21220         * m4/strerror.m4: Likewise.
21221         * m4/strtok_r.m4: Likewise.
21222         * m4/symlink.m4: Likewise.
21223         * m4/symlinkat.m4: Likewise.
21224         * m4/trunc.m4: Likewise.
21225         * m4/truncf.m4: Likewise.
21226         * m4/truncl.m4: Likewise.
21227         * m4/tzset.m4: Likewise.
21228         * m4/ungetc.m4: Likewise.
21229         * m4/usleep.m4: Likewise.
21230         * m4/wcwidth.m4: Likewise.
21232 2017-12-28  Bruno Haible  <bruno@clisp.org>
21234         gnulib-tool: Make --conditional-dependencies work better.
21235         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
21236         * gnulib-tool (Options): Don't reject the combination of
21237         --conditional-dependencies with --with-tests.
21238         (func_emit_autoconf_snippets): Add argument referenceable_modules.
21239         Don't reference $modules.
21240         (func_import, func_create_testdir): Pass it.
21242 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21244         regex: use re_malloc etc. consistently
21245         Problem and original patch reported by Arnold Robbins in:
21246         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
21247         * lib/regcomp.c (re_comp):
21248         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
21249         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
21251 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
21252             Paul Eggert  <eggert@cs.ucla.edu>
21254         glob: Silence warning about void pointer arithmetic.
21255         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21256         arithmetic.
21258 2017-12-15  Bruno Haible  <bruno@clisp.org>
21260         spawn-pipe: Silence a clang warning.
21261         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21262         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
21263         in this file.
21265 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21267         explicit_bzero: port to macOS + Clang 9.0.0
21268         Problem reported by Marcus Johnson (Bug#29658).
21269         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
21270         Don’t use asm.
21272 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21274         doc: Improve explanation of supporting relocatable libraries.
21275         * doc/relocatable-maint.texi (Supporting Relocation): Explain
21276         properly how to build the relocatable module for
21277         libraries. (Method and example code from Bruno Haible.)
21279 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21281         doc: Use better texinfo tags in a few cases.
21282         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
21283         instead of @samp in a few places.
21285 2017-12-11  Bruno Haible  <bruno@clisp.org>
21287         unistr/base: Update comment.
21288         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
21290 2017-12-10  Pádraig Brady  <P@draigBrady.com>
21292         test-faccessat.c: unlink temp file to avoid subsequent test failure
21293         * tests/test-faccessat.c: Remove the file to avoid failure
21294         to open the file on subsequent runs due to being created
21295         with no permissions.
21297 2017-12-10  Bruno Haible  <bruno@clisp.org>
21299         doc: New sect. "Modifying the build rules of a Gnulib import directory".
21300         * doc/gnulib-tool.texi (Modified build rules): New node.
21302 2017-12-10  Bruno Haible  <bruno@clisp.org>
21304         doc: Tweak wording.
21305         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
21306         "binaries".
21308 2017-12-05  Sam Steingold  <sds@gnu.org>
21309             Bruno Haible  <bruno@clisp.org>
21311         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
21312         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
21313         AC_EGREP_CPP pattern.
21315 2017-12-03  Bruno Haible  <bruno@clisp.org>
21317         all: Replace more http URLs by https URLs.
21318         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
21319         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
21320         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
21321         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
21323 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21325         Port better to CentOS 5
21326         Problems reported by Tom G. Christensen in:
21327         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21328         * doc/glibc-functions/strverscmp.texi (strverscmp):
21329         Document strverscmp bug with glibc 2.9 and earlier.
21330         * doc/posix-functions/tzset.texi (tzset):
21331         Document that TZ with angle brackets is POSIX-2001 and later.
21332         * tests/test-nstrftime.c: Include unistd.h.
21333         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21334         (TZ): Use it to skip tests with angle brackets in TZ,
21335         for older systems.
21337         stat: add missing module dependencies
21338         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21339         Add stat-time.
21341 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21343         stat: fix compilation failure on macOS Sierra
21344         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21345         https://savannah.gnu.org/bugs/?52546
21346         * lib/stat.c: Add missing include of stat-time.h.
21348 2017-11-28  Jim Meyering  <meyering@fb.com>
21350         test-faccessat.c: correct BASE definition to avoid parallel test failure
21351         * tests/test-faccessat.c (BASE): Define using this file's name, not
21352         that of test-lstat.c.  Using the latter caused this test to fail
21353         sometimes when run concurrently with test-lstat.
21355 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21357         unicase: fix VPATH build
21358         * modules/unicase/special-casing (Makefile.am): Ensure that the
21359         base directory is created when generating
21360         unicase/special-casing.h.
21362 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21364         libunistring: update to Unicode 9.0.0
21365         * lib/gen-uni-tables.c (fill_properties): Recognize
21366         Sentence_Terminal and Prepended_Concatenation_Mark.
21367         (is_property_default_ignorable_code_point): Exclude U+08E2.
21368         (fill_arabicshaping): Allow missing whitespace when parsing;
21369         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21370         (output_blocks): Increase the element size of the level1 table to
21371         accommodate more blocks.
21372         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21373         Update each class according to the standard.
21374         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21375         E_Base_GAZ characters.
21376         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21377         Glue_After_Zwj, and E_Base_GAZ characters.
21378         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21379         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21380         enum value.
21381         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21382         value.
21383         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21384         LBP_ZWJ, LBP_EB, and LBP_EM.
21385         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21386         enum value.
21387         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21388         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21389         declaration.
21390         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21391         (uniwbrk_table): Implement WB14.
21392         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21393         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21394         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21395         uc-is-grapheme-break.
21396         * modules/unigbrk/uc-grapheme-breaks: New module.
21397         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21398         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21399         enum value.
21400         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21401         * lib/unigbrk/u-grapheme-breaks.h: New file.
21402         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21403         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21404         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21405         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21406         29.
21407         * tests/unigbrk/test-uc-gbrk-prop.c
21408         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21409         GBP_GAZ, and GBP_EBG.
21410         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21411         * tests/unigbrk/test-uc-is-grapheme-break.c
21412         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21413         GBP_GAZ, and GBP_EBG.
21414         (main): Skip unsupported rules involving 3 or more characters,
21415         namely GB10, GB12, and GB13.
21416         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21417         * all generated files under lib/uni* and tests/uni*: Regenerate.
21418         * all the affected modules: Bump version.
21420 2017-11-26  Bruno Haible  <bruno@clisp.org>
21422         strfmon_l: Fix compilation error with glibc 2.5.
21423         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21424         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21425         * lib/monetary.in.h: Include also <locale.h>.
21427 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21429         posixtm: remove PDS_LEADING_YEAR
21430         This changes the API slightly, in a hopefully-innocuous way.
21431         Without this change the code had undefined behavior when a
21432         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21433         Problem reported by Pádraig Brady in:
21434         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21435         * NEWS: Mention this.
21436         * lib/posixtm.c (posix_time_parse): Treat the absence of
21437         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21438         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21439         present, but define it as zero, for compatibility with existing
21440         source code).  All other PDS_* values moved up.
21441         * tests/test-posixtm.c (LY): New macro.
21442         (T): Use it.  Do not expect a particular numeric encoding
21443         for PDS_CENTURY etc.
21445 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21447         stat: work around Solaris bug with tv_nsec < 0
21448         * doc/posix-functions/fstat.texi (fstat):
21449         * doc/posix-functions/fstatat.texi (fstatat):
21450         * doc/posix-functions/lstat.texi (lstat):
21451         * doc/posix-functions/stat.texi (stat):
21452         Mention Solaris 11 bug.
21453         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21454         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21455         * lib/lstat.c (rpl_lstat):
21456         * lib/stat.c (rpl_stat):
21457         Normalize resulting timestamps.
21458         * lib/fstatat.c (normal_fstatat): New function.
21459         (rpl_fstatat): Use it.
21460         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21461         (stat_time_normalize): New function.
21462         * m4/fstat.m4 (gl_FUNC_FSTAT):
21463         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21464         * m4/lstat.m4 (gl_FUNC_LSTAT):
21465         * m4/stat.m4 (gl_FUNC_STAT):
21466         Replace on Solaris.
21467         * modules/fstat (Depends-on):
21468         * modules/fstatat (Depends-on):
21469         Add stat-time.
21470         * modules/stat-time (Depends-on): Add errno, intprops.
21472 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21474         regex: merge from glibc
21475         * lib/regcomp.c (init_word_char): Add comments.
21477 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21479         regex: merge from glibc
21480         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21481         * lib/regex_internal.h (internal_function): Remove.
21482         All uses removed.
21484 2017-11-20  Bruno Haible  <bruno@clisp.org>
21486         crypto/gc-sm3: Fix buffer overrun.
21487         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21488         Reported by Coverity.
21490 2017-11-12  Jim Meyering  <meyering@fb.com>
21492         maint: shorten https://lists.gnu.org/archive/html/... links
21493         Each /archive/html/ part can be replace with /r/.
21494         Run this to induce the change:
21495         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21496         * ChangeLog: Perform that substitution.
21497         * Makefile: Likewise.
21498         * STATUS-libposix: Likewise.
21499         * build-aux/bootstrap: Likewise.
21500         * doc/maintain.texi: Likewise.
21501         * gnulib-tool: Likewise.
21502         * lib/allocator.h: Likewise.
21503         * lib/argp-ba.c: Likewise.
21504         * lib/argp-pv.c: Likewise.
21505         * lib/canon-host.c: Likewise.
21506         * lib/canonicalize-lgpl.c: Likewise.
21507         * lib/float.in.h: Likewise.
21508         * lib/fstat.c: Likewise.
21509         * lib/getdelim.c: Likewise.
21510         * lib/getprogname.c: Likewise.
21511         * lib/glthread/thread.h: Likewise.
21512         * lib/intprops.h: Likewise.
21513         * lib/mbsrtowcs-state.c: Likewise.
21514         * lib/safe-read.c: Likewise.
21515         * lib/signal.in.h: Likewise.
21516         * lib/stat.c: Likewise.
21517         * lib/stdbool.in.h: Likewise.
21518         * lib/stdio-impl.h: Likewise.
21519         * lib/stdio.in.h: Likewise.
21520         * lib/sysexits.in.h: Likewise.
21521         * lib/timespec.h: Likewise.
21522         * lib/wcsrtombs-state.c: Likewise.
21523         * m4/alloca.m4: Likewise.
21524         * m4/extern-inline.m4: Likewise.
21525         * m4/fstatat.m4: Likewise.
21526         * m4/gnulib-common.m4: Likewise.
21527         * m4/lib-ignore.m4: Likewise.
21528         * m4/printf.m4: Likewise.
21529         * m4/regex.m4: Likewise.
21530         * m4/stat-size.m4: Likewise.
21531         * m4/std-gnu11.m4: Likewise.
21532         * m4/stdbool.m4: Likewise.
21533         * m4/sys_types_h.m4: Likewise.
21534         * m4/threadlib.m4: Likewise.
21535         * m4/vararrays.m4: Likewise.
21536         * pygnulib/GLImport.py: Likewise.
21537         * tests/test-exp.h: Likewise.
21538         * tests/test-exp2.h: Likewise.
21539         * tests/test-expm1.h: Likewise.
21540         * tests/test-fflush2.c: Likewise.
21541         * tests/test-getopt_long.h: Likewise.
21542         * tests/test-intprops.c: Likewise.
21543         * tests/test-log.h: Likewise.
21544         * tests/test-log10.h: Likewise.
21545         * tests/test-log1p.h: Likewise.
21546         * tests/test-log2.h: Likewise.
21547         * tests/test-printf-posix.h: Likewise.
21548         * tests/test-regex.c: Likewise.
21549         * tests/test-snprintf-posix.h: Likewise.
21550         * tests/test-sprintf-posix.h: Likewise.
21551         * tests/test-stdalign.c: Likewise.
21552         * tests/test-stdbool.c: Likewise.
21553         * tests/test-vasnprintf-posix.c: Likewise.
21554         * tests/test-vasprintf-posix.c: Likewise.
21555         * top/maint.mk: Likewise.
21557 2017-11-12  Bruno Haible  <bruno@clisp.org>
21559         faccessat: Make the last change more robust.
21560         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21561         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21563 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21565         faccessat: port to macOS (Bug#29231)
21566         macOS faccessat has the same bug that lstat does: if the file
21567         name ends in '/' it ignores the trailing slash.
21568         Problem reported for Emacs by Vincent Zhang.
21569         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21570         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21571         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21572         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21573         Include "unistd.h" after defining it.
21574         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21575         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21576         Handle in the usual way.
21577         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21578         lstat dereferences symlinks, since faccessat is likely to
21579         have the same problem.
21580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21581         * modules/faccessat (Depends-on): Add fstatat.
21582         Depend if REPLACE_FACCESSAT is 1, too.
21583         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21584         * modules/faccessat-tests (Depends-on): Add symlink.
21585         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21586         * tests/test-faccessat.c (main): Test for the bug.
21588 2017-11-11  Bruno Haible  <bruno@clisp.org>
21590         getprogname: Fix compilation error on IRIX.
21591         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21592         'namesize'.
21594 2017-11-11  Bruno Haible  <bruno@clisp.org>
21596         year2038: Tweak last patch.
21597         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21599 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21601         year2038: be more insistent about 64-bit time_t
21602         Applications requiring access to arbitrary files should not be
21603         built with 32-bit time_t on hosts that have 64-bit timestamps,
21604         as this can lead to real trouble at runtime.
21605         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21606         Check on all systems, not just MinGW.  Use a heuristic involving
21607         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21608         output a failure or just a warning, to make it more likely that
21609         builders will select 64-bit time_t.
21611 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21613         havelib: fix typo in previous change
21614         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21616         Don’t use AC_EGREP_CPP if affected by CFLAGS
21617         * m4/float_h.m4 (gl_FLOAT_H):
21618         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21619         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21620         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21621         * m4/year2038.m4 (gl_YEAR2038):
21622         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21623         likely to be affected by the choice of CFLAGS, since CFLAGS are
21624         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21625         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21627         fstatat: pacify GCC on unusual platform
21628         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21629         Omit, as it’s unused in this case.
21631 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21633         timespec: prefer ‘assume’ to ‘assure’
21634         This avoids some runtime tests.  The rest of the module makes
21635         similar assumptions and there is little point to testing here.
21636         * lib/timespec.h: Include verify.h instead of assure.h.
21637         (timespec_cmp): Use ‘assume’, not ‘assure’.
21638         Also, remove an unnecessary cast to ‘int’, as lots of other
21639         code in this module now causes -Wconversion to complain, and
21640         this is a problem with -Wconversion not with the code.
21642         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21644         Port recent gnulib-tool change to Dash
21645         * gnulib-tool (func_create_testdir): Don't assume that the shell
21646         retokenizes after expanding "$@" inside the call to
21647         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21649 2017-10-27  Jim Meyering  <meyering@fb.com>
21651         timespec.h: use "assure" to avoid a spurious warning
21652         * lib/timespec.h: Include "assure.h" and use it to help
21653         gcc7's -Wstrict-overflow avoid a false positive warning
21654         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21655         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21656         * modules/timespec (Depends-on): Add assure.
21658 2017-10-29  Bruno Haible  <bruno@clisp.org>
21660         Avoid several test failures with traditional locales on Haiku.
21661         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21662         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21663         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21664         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21665         LOCALE_ZH_CN=none.
21667 2017-10-29  Bruno Haible  <bruno@clisp.org>
21669         strerror_r-posix: Fix behaviour and test failure on Haiku.
21670         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21671         are positive. Work around return value 0 instead of ERANGE on Haiku.
21672         For unknown error numbers, use a format string consistent with perror().
21673         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21674         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21675         are positive.
21677 2017-10-29  Bruno Haible  <bruno@clisp.org>
21679         get-rusage-data: Avoid crash on Haiku.
21680         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21682 2017-10-29  Bruno Haible  <bruno@clisp.org>
21684         get-rusage-as: Avoid crash on Haiku.
21685         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21687 2017-10-29  Bruno Haible  <bruno@clisp.org>
21689         ilogbl: Ensure replacement on Haiku.
21690         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21691         REPLACE_ILOGBL if ilogbl does not work.
21692         (gl_FUNC_ILOGBL_WORKS): New macro.
21693         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21695         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21696         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21697         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21699 2017-10-29  Bruno Haible  <bruno@clisp.org>
21701         expl: Ensure replacement on Haiku.
21702         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21703         zero.
21704         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21706 2017-10-29  Bruno Haible  <bruno@clisp.org>
21708         math: Fix test failure on Haiku.
21709         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21710         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21711         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21712         * doc/posix-headers/math.texi: Mention the Haiku problem.
21714 2017-10-29  Bruno Haible  <bruno@clisp.org>
21716         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21717         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21718         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21720 2017-10-29  Bruno Haible  <bruno@clisp.org>
21722         crypto/*: Verify that the header file is self-contained.
21723         * tests/test-gc-*.c: Include the module's header file immediately after
21724         <config.h>.
21725         * tests/test-hmac-*.c: Likewise.
21726         * tests/test-arcfour.c: Likewise.
21727         * tests/test-arctwo.c: Likewise.
21728         * tests/test-des.c: Likewise.
21729         * tests/test-md2.c: Likewise.
21730         * tests/test-md4.c: Likewise.
21731         * tests/test-md5.c: Likewise.
21732         * tests/test-rijndael.c: Likewise.
21733         * tests/test-sha1.c: Likewise.
21734         * tests/test-sm3.c: Likewise.
21736 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21737             Bruno Haible  <bruno@clisp.org>
21739         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21740         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21742 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21744         New module: crypto/gc-sm3
21745         * lib/gc.h: Declare SM3-related stuffs.
21746         * lib/gc-gnulib.c: Support sm3 in internal functions.
21747         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21748         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21749         * modules/crypto/gc-sm3: Define gc-sm3 module.
21750         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21751         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21752         * MODULES.html.sh: List gc-sm3 module.
21754 2017-10-29  Bruno Haible  <bruno@clisp.org>
21756         random, random_r: Mention different prototypes on Haiku.
21757         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21758         * doc/glibc-functions/random_r.texi: Likewise.
21759         * doc/glibc-functions/initstate_r.texi: Likewise.
21760         * doc/glibc-functions/setstate_r.texi: Likewise.
21762 2017-10-28  Bruno Haible  <bruno@clisp.org>
21764         posix_spawn: Avoid spurious message in configure output.
21765         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21766         'cmp' command.
21768 2017-10-28  Bruno Haible  <bruno@clisp.org>
21770         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21771         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21772         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21774 2017-10-28  Bruno Haible  <bruno@clisp.org>
21776         ioctl: Override non-POSIX declaration on Haiku.
21777         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21778         * lib/sys_ioctl.in.h: Add comment about Haiku.
21779         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21780         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21782 2017-10-28  Bruno Haible  <bruno@clisp.org>
21784         crypto/sm3: Add overview documentation to the .h file.
21785         * lib/sm3.h: Add comments.
21787 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21789         New module: crypto/sm3
21790         This new module can be used to compute SM3 message digest of files or
21791         memory blocks according to the specification GM/T 004-2012
21792         Cryptographic Hash Algorithm SM3, published by State Cryptography
21793         Administration, China.
21794         The official SM3 cryptographic hash algorithm specification is
21795         available at
21796         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21797         * lib/sm3.h: Declare the APIs of sm3 module.
21798         * lib/sm3.c: Implement SM3 hash algorithm.
21799         * m4/sm3.m4: m4 file for sm3 module.
21800         * modules/crypto/sm3: Define sm3 module.
21801         * tests/test-sm3.c: Implement SM3 test case.
21802         * modules/crypto/sm3-tests: Define sm3 test module.
21803         * MODULES.html.sh: List sm3 module.
21805 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21807         gc-libgcrypt: fix undefined enum type in switch statement
21808         Resolve the following build failure:
21809         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21810         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21811         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21812              case 0:
21813              ^~~~
21814         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21815         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21817 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21819         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21820         Resolve the following build failure:
21821         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21822         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21823         in signedness [-Werror=pointer-sign]
21824             digest = gcry_md_read (ctx->gch, 0);
21825                    ^
21826         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21828 2017-10-26  Bruno Haible  <bruno@clisp.org>
21830         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21831         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21832         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21834 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21836         glob: fix another heap buffer overflow
21837         Problem reported by Tim Rühsen in:
21838         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21839         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21841 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21843         quotearg: pacify compiler re unsigned
21844         * lib/quotearg.c (quotearg_n_options):
21845         Rewrite to avoid diagnostic from overly-picky compiler.
21846         Problem reported by Sami Kerola in:
21847         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21849         glob: fix heap buffer overflow
21850         * lib/glob.c (glob): Fix off-by-one error introduced into
21851         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21852         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21853         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21854         Fix suggested by Bruno Haible.
21856 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21858         glob: pacify fuzzer for mempcpy
21859         Problem reported by Tim Rühsen in:
21860         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21861         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21863 2017-10-12  Bruno Haible  <bruno@clisp.org>
21865         doc: Fix syntax error (regression from 2017-10-03).
21866         * doc/posix-functions/strncpy.texi: Fix syntax error.
21868 2017-10-12  Bruno Haible  <bruno@clisp.org>
21870         doc: Update for Solaris 11.3.
21871         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21872         mention Solaris 11.3.
21873         * m4/log2.m4: Fix comments.
21874         * m4/log2f.m4: Likewise.
21875         * m4/printf.m4: Update comments.
21876         * m4/rename.m4: Likewise.
21877         * m4/strncat.m4: Likewise.
21879         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21881 2017-10-10  Bruno Haible  <bruno@clisp.org>
21883         doc: Improve doc about ioctl.
21884         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21885         prototype.
21887 2017-10-09  Bruno Haible  <bruno@clisp.org>
21889         wcwidth: Don't use obsolete syntax of 'test'.
21890         Reported by Eric Blake.
21891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21892         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21894 2017-10-09  Bruno Haible  <bruno@clisp.org>
21896         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21897         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21898         and Daniel P. Berrange <berrange@redhat.com>.
21899         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21900         on glibc systems. The getopt-pfx-core.h file declares exactly what
21901         unistd.h needs, nothing more.
21903 2017-10-08  Bruno Haible  <bruno@clisp.org>
21905         vma-iter: Improve support for FreeBSD.
21906         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21907         vma_iterate.
21908         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21910 2017-10-08  Bruno Haible  <bruno@clisp.org>
21912         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21913         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21915 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21917         test-framework-sh: Fix 'invalid path dir' error.
21918         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21919         separator between a drive letter and directory parts.
21920         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21921         treated as an invalid path dir.
21922         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21923         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21924         instead of hard coded ':'.
21926 2017-10-07  Bruno Haible  <bruno@clisp.org>
21928         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21929         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21930         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21931         (rof_open): On Linux, do multiple read() calls and make sure
21932         MIN_LEFTOVER bytes are left when read() returns.
21934 2017-10-07  Bruno Haible  <bruno@clisp.org>
21936         vma-iter: Improve support for GNU/Hurd.
21937         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21938         API, not the /proc file system.
21940 2017-10-07  Bruno Haible  <bruno@clisp.org>
21942         test-framework-sh: Don't require bash on Windows and OS/2.
21943         Reported by KO Myung-Hun.
21944         * tests/test-init.sh: Use 'shopt' only when running in bash.
21946 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21948         wcwidth: check a macro version of wcwidth () as well
21949         * lib/wchar.in.h: Revert commit from 2016-01-14.
21950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21952 2017-10-06  Bruno Haible  <bruno@clisp.org>
21954         getopt-posix: Clarify copyright header.
21955         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21956         * lib/getopt-pfx-core.h: Likewise.
21957         * lib/getopt-pfx-ext.h: Likewise.
21958         * lib/getopt-cdefs.in.h: Likewise.
21960 2017-10-03  Bruno Haible  <bruno@clisp.org>
21962         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21963         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21964         gl_HOST_CPU_C_ABI.
21966 2017-10-03  Bruno Haible  <bruno@clisp.org>
21968         doc: warn about misuse of strncpy and wcsncpy.
21969         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21970         memory allocation.
21971         * doc/posix-functions/wcscpy.texi: Likewise.
21972         * doc/posix-functions/strncpy.texi: Describe what this function is not
21973         useful for.
21974         * doc/posix-functions/wcsncpy.texi: Likewise.
21976 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21978         fsuage: fix typo in previous change
21979         * lib/fsusage.c: Remove stray include of full-read.h.
21980         Problem reported by Sam Steingold for macOS (Bug#28669).
21982 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21984         fsusage: remove SVR2 support
21985         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21986         and its code was getting in the way of use of this module by
21987         Emacs, which has its own ‘read’ function anyway.
21988         * lib/fsusage.c: Do not include sys/filsys.h.
21989         (get_fs_usage): Remove SVR2-specific code.
21990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21991         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21992         * modules/fsusage (Depends-on): Do not depend on full-read.
21994         Simplify autoupdate of licenses
21995         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21996         place.
21998 2017-10-01  Bruno Haible  <bruno@clisp.org>
22000         vma-iter: Add support for GNU/Hurd.
22001         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
22002         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22004 2017-09-30  Bruno Haible  <bruno@clisp.org>
22006         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
22007         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
22008         fail when module 'largefile' is in use.
22009         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
22010         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
22011         Don't test HAVE_SYS_PROCFS_H.
22013 2017-09-30  Bruno Haible  <bruno@clisp.org>
22015         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
22016         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
22017         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
22018         * modules/havelib (Depends-on): Add host-cpu-c-abi.
22020 2017-09-30  Bruno Haible  <bruno@clisp.org>
22022         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
22023         * lib/uniname/uniname.c (unicode_name_character): Add braces around
22024         scope of local variables.
22026 2017-09-28  Bruno Haible  <bruno@clisp.org>
22028         string: code style
22029         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
22030         substitutable variables.
22031         * modules/string (Makefile.am): Likewise.
22033 2017-09-26  Bruno Haible  <bruno@clisp.org>
22035         uniname/uniname-tests: Tighten code.
22036         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
22037         local variables into one.
22039 2017-09-26  Bruno Haible  <bruno@clisp.org>
22041         vma-iter: Improvements for Linux and BSD platforms.
22042         - Add support for DragonFly BSD.
22043         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
22044         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
22045         Read the entire file into memory in a single system call.
22046         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
22047         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
22049 2017-09-26  Bruno Haible  <bruno@clisp.org>
22051         vma-iter: Provide the protection flags on FreeBSD.
22052         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
22053         skip three fields between the addresses and the protection flags.
22055 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22057         glob: remove bogus extern decl
22058         * lib/glob.c (__glob_pattern_type): Remove now-spurious
22059         extern declaration.  Problem reported by Adhemerval Zanella in:
22060         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
22062 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22064         uniname/uniname-tests: integer overflow fix
22065         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
22066         Check for integer overflow.
22068         duplocale-tests: fix unlikely crash
22069         * tests/test-duplocale.c (get_locale_dependent_values):
22070         Don’t crash with absurdly long month names.
22072         maint: fix overflow checking in nap.h
22073         * modules/chown-tests:
22074         * modules/fchownat-tests, modules/fdutimensat-tests:
22075         * modules/futimens-tests, modules/lchown-tests:
22076         * modules/stat-time-tests, modules/utime-tests:
22077         * modules/utimens-tests, modules/utimensat-tests:
22078         Depend on intprops.
22079         * tests/nap.h: Include intprops.h.
22080         (diff_timespec): Handle overflow properly.
22082         sys_types: update URL
22083         * m4/sys_types_h.m4: Use https: URL.
22085         parse-datetime: fix dependency
22086         * modules/parse-datetime (Depends-on): Depend
22087         on nstrftime, not strftime.
22089         parse-datetime, posixtm: avoid uninit access
22090         * lib/parse-datetime.y (parse_datetime2):
22091         * lib/posixtm.c (posixtime):
22092         Do not access uninitialized storage, even though the resulting
22093         value is never used.
22095 2017-09-25  Bruno Haible  <bruno@clisp.org>
22097         vma-iter: Improvements for BSD platforms.
22098         - Add support for GNU/kFreeBSD.
22099         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
22100         - Speed up on OpenBSD.
22101         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
22102         (vma_iterate_bsd): New function.
22103         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
22104         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
22105         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22106         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
22108 2017-09-23  Bruno Haible  <bruno@clisp.org>
22110         strfmon_l: New module.
22111         * modules/strfmon_l: New file.
22112         * lib/strfmon_l.c: New file.
22113         * m4/strfmon_l.m4: New file.
22114         * doc/posix-functions/strfmon_l.texi: Mention the new module.
22115         * modules/strfmon_l-tests: New file.
22116         * tests/test-strfmon_l.c: New file.
22118         monetary: New module.
22119         * modules/monetary: New file.
22120         * lib/monetary.in.h: New file.
22121         * m4/monetary_h.m4: New file.
22122         * doc/posix-headers/monetary.texi: Mention the new module.
22123         * modules/monetary-tests: New file.
22124         * tests/test-monetary.c: New file.
22125         * modules/monetary-c++-tests: New file.
22126         * tests/test-monetary-c++.cc: New file.
22127         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
22129 2017-09-23  Bruno Haible  <bruno@clisp.org>
22131         duplocale tests: Fix test crash on Linux/x86.
22132         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
22133         locale from the current thread before freeing it.
22135 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
22137         mktime: port to OpenVMS
22138         Problem reported by John E. Malmberg in:
22139         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
22140         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
22142 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22144         manywarnings: port to GCC on 64-bit MS-Windows
22145         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
22146         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
22147         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
22149 2017-09-13  Bruno Haible  <bruno@clisp.org>
22151         all: Replace many more http URLs by https URLs. Update stale URLs.
22152         * users.txt: Remove mention of 'newts'.
22153         * lib/localename.c: Update comment about LANG_SOTHO.
22155 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22157         all: Replace many http URLs by https URLs.
22159 2017-09-12  Bruno Haible  <bruno@clisp.org>
22161         doc: Prefer https URLs where possible.
22162         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
22163         * doc/ld-output-def.texi: Remove unavailable URL.
22165 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22167         maintainer-makefile: FTP -> HTTPS
22168         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
22169         of FTP, which is planned to be decommissioned on 2017-11-01.
22171 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22173         libc-config: Fix __GNUC_PREREQ macro.
22174         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
22175         __GNUC_MINOR.
22177 2017-09-09  Bruno Haible  <bruno@clisp.org>
22179         gnulib-tool: Simplify commit from 2015-08-20.
22180         * gnulib-tool (func_add_or_update): Remove local variable
22181         is_binary_file.
22183 2017-09-08  Bruno Haible  <bruno@clisp.org>
22185         stddef: Avoid conflict with system-defined max_align_t.
22186         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
22187         Reported by Werner Lemberg <wl@gnu.org> in
22188         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
22189         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
22190         (max_align_t): Define as a macro.
22191         (GNULIB_defined_max_align_t): New macro. Guards against multiple
22192         definitions of rpl_max_align_t in different copies of gnulib-generated
22193         <stddef.h>.
22195 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22197         libc-config: port to MSVC
22198         Problems reported by Gisle Vanem in:
22199         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
22200         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
22201         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
22202         * m4/__inline.m4: New file.
22203         * modules/libc-config (Files): Add it.
22204         (Depends-on): Use it.
22206         glob: Use enum for __glob_pattern_type result
22207         From a patch proposed by Adhemerval Zanella in:
22208         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
22209         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
22210         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
22211         * lib/glob_internal.h (__glob_pattern_type):
22212         * lib/glob.c (glob):
22213         * lib/glob_pattern_p.c (__glob_pattern_p):
22214         Use them.
22216         glob: fix for use in glibc
22217         Problem reported by Adhemerval Zanella in:
22218         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
22219         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
22220         Do not redefine if _LIBC.
22222 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22224         glob: fix bugs with long login names
22225         Problem reported by Adhemerval Zanella in:
22226         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
22227         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
22228         (glob): Use the same scratch buffer for both getlogin_r and
22229         getpwnam_r.  Don’t require preallocation of the login name.  This
22230         simplifies storage allocation, and corrects the handling of
22231         long login names.
22233 2017-09-02  Bruno Haible  <bruno@clisp.org>
22235         dirent: Update doc.
22236         * doc/posix-headers/dirent.texi: More concrete list of platforms.
22238 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22240         glob: fix getpwnam_r errno typo
22241         * lib/glob.c (glob): Fix longstanding misuse of errno after
22242         getpwnam_r, which returns an error number rather than setting
22243         errno.
22245         glob: fix typo in recent change
22246         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
22247         Fix recently-introduced typo.
22249 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22251         glob: don't save and restore errno unnecessarily
22252         * lib/glob.c (glob): Don't save and restore errno
22253         merely because we have getpwnam_r.
22255         glob: don't assume getpwnam_r
22256         * lib/glob.c (glob): Port recent patches to platforms
22257         lacking getpwnam_r.
22259         scratch_buffer: don’t use private glibc API
22260         Suggested by Florian Weimer in:
22261         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
22262         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
22263         * lib/scratch_buffer_grow.c: Rename to
22264         lib/malloc/scratch_buffer_grow.c.
22265         * lib/scratch_buffer_grow_preserve.c: Rename to
22266         lib/malloc/scratch_buffer_grow_preserve.c.
22267         * lib/scratch_buffer_set_array_size.c: Rename to
22268         lib/malloc/scratch_buffer_set_array_size.c.
22269         * lib/scratch_buffer.h: New file.
22270         * modules/scratch_buffer (Files, Makefile.am):
22271         Adjust to source-file renaming.
22273 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22275         glob: use scratch_buffer instead of extend_alloca
22276         Much of the lib/glob.c part of this patch comes from a glibc patch
22277         proposed by Adhemerval Zanella in:
22278         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
22279         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
22280         included via glob.h, does this for us now.
22281         (__set_errno): Remove, as libc-config does this for us now.
22282         Include <scratch_buffer.h>.
22283         (GETPW_R_SIZE_MAX): Remove.
22284         (glob): Use struct scratch_buffer instead of extend_alloca.
22285         * lib/glob.in.h: Include libc-config.h rather than
22286         including <sys/cdefs.h> conditionally.
22287         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
22288         (__glibc_unlikely, __restrict, weak_alias):
22289         Remove, as libc-config does this for us now.
22290         * m4/glob.m4 (gl_PREREQ_GLOB):
22291         Remove sys/cdefs.h tests; no longer needed.
22292         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
22293         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
22295         scratch_buffer: new module
22296         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
22297         * lib/scratch_buffer_grow_preserve.c:
22298         * lib/scratch_buffer_set_array_size.c:
22299         New files, copied from glibc with very minor changes that can be
22300         copied back.
22301         * modules/scratch_buffer: New file.
22303         libc-config: new module
22304         * MODULES.html.sh: Add libc-config.
22305         * lib/cdefs.h: New file, copied from the GNU C Library with very
22306         minor changes that can be copied back.
22307         * lib/libc-config.h, modules/libc-config: New files.
22309 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22311         glob: match dangling symlinks
22312         This fixes a bug I inadvertently introduced to Gnulib when I
22313         merged glibc glob back into gnulib on 2007-10-16.  This fix is
22314         inspired by a patch proposed for glibc by Adhemerval Zanella in:
22315         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
22316         * doc/posix-functions/glob.texi: Update list of affected platforms.
22317         * lib/glob.c (__lstat64): New macro.
22318         (is_dir): New function.
22319         (glob, glob_in_dir): Match symlinks even if they are dangling.
22320         (link_stat, link_exists_p): Remove.  All uses removed.
22321         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
22322         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
22323         * modules/glob-tests (Depends-on): Add symlink.
22324         * tests/test-glob.c: Include errno.h, unistd.h.
22325         (BASE): New macro.
22326         (main): Test dangling symlinks, if symlinks are supported.
22328         glob, backupfile: inode 0 is a valid inode number
22329         * doc/posix-functions/readdir.texi (readdir):
22330         * doc/posix-headers/dirent.texi (dirent.h):
22331         Document more readdir portability issues.
22332         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22333         (numbered_backup): Don’t treat inode 0 any differently from
22334         other inode values.
22335         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22336         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22337         All uses removed.
22338         * modules/glob (Depends-on): Remove d-ino.
22340         glob: simplify symlink detection
22341         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22342         uint8_t, as C99 does not require uint8_t.
22343         (struct readdir_result): Use it.  Do not define skip_entry unless
22344         it is needed; this saves a byte on platforms lacking d_ino.
22345         (readdir_result_type, readdir_result_skip_entry):
22346         New functions, replacing ...
22347         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22348         ... these functions, which were removed.  This makes the callers
22349         easier to read.  All callers changed.
22350         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22352 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22354         fts-tests: tag as a longrunning-test so not included by default
22355         * modules/fts-tests: This test takes about 20s on current systems,
22356         and uses about 285M of space on ext4.
22358 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22360         renameat2: fix compilation on alpine linux
22361         * m4/renameat.m4: Check for <linux/fs.h> presence.
22362         * lib/renameat2.h: Only include <linux/fs.h> if present.
22363         Reported by Assaf Gordon on Alpine Linux.
22365 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22367         glob: try to port recent changes to MS-Windows
22368         Problem reported by Bruno Haible in:
22369         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22370         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22371         * lib/glob.in.h (__glob_pattern_p): ... to here.
22373 2017-08-24  Eric Blake  <eblake@redhat.com>
22375         warnings: fix compilation with old autoconf
22376         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22377         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22378         AC_DEFUN.
22379         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22380         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22382 2017-08-24  Bruno Haible  <bruno@clisp.org>
22384         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22385         * modules/glob (Depends-on): Add c99.
22387 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22389         glob: fix typo that broke platforms lacking d_ino
22390         This typo also hurt performance on GNU/Linux and similar hosts.
22391         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22392         in previous change.
22394 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22396         glob: merge from glibc with Zanella glob changes
22397         Merge glob from glibc, with changes for glob proposed
22398         by Adhemerval Zanella in the thread starting here:
22399         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22400         plus some fixes for this merge.
22401         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22402         New files, ported from glibc.
22403         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22404         with __restrict.
22405         (__size_t): Remove.  All uses replaced by size_t.
22406         (size_t): Define by defining __need_size_t and including <stddef.h>.
22407         This should work even in non-glibc platforms, where any name
22408         pollution is OK.
22409         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22410         (struct stat64): Don’t worry about __GLOB_GNULIB.
22411         (glob, globfree, glob_pattern_p): Remove macros for
22412         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22413         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22414         but set errno.
22415         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22416         removed since the glibc behavior works on null pointers.
22417         Do not include stdio.h; old SunOS is irrelevant now.
22418         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22419         Include glob_internal.h.
22420         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22421         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22422         worked only coincidentally.
22423         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22424         Remove macros; now done in glob.in.h.
22425         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22426         (glob): Properly initialize glob structure with
22427         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22428         Remove old code using SHELL since Bash no longer
22429         uses this.
22430         (glob, prefix_array): Separate MS code better.
22431         (glob, glob_in_dir): Use C99 decls before statements when glibc
22432         does.
22433         (glob_in_dir): Remove old Amiga and VMS code.
22434         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22435         separate files.
22436         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22437         (__glibc_unlikely):
22438         Move here from glob.c.
22439         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22440         (weak_alias): New macro.
22441         (__size_t): Remove.  All uses replaced by size_t.
22442         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22443         * modules/glob (Files): Add +lib/glob_internal.h,
22444         lib/glob_pattern_p.c, lib/globfree.c.
22445         (Depends-on): Remove snippet/arg-nonnull.
22447 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22449         glob: port to clang's Undefined Sanitizer
22450         Problem reported by Tim Rühsen in:
22451         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22452         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22453         (glob_in_dir): Do not rely on undefined behavior in accessing
22454         struct members beyond their bounds.  Use a flexible array member
22455         instead.
22457 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22459         vc-list-files: port to Solaris 10
22460         * build-aux/vc-list-files: Don't assume test -e works.
22462 2017-08-21  Karl Berry  <karl@freefriends.org>
22464         * doc/posix-functions/srandom.texi (srandom): typo }.
22466 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22468         git-version-gen: port to Solaris 10
22469         Problem reported by Dagobert Michelsen in:
22470         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22471         * build-aux/git-version-gen (v_from_git):
22472         Use expr instead of shell substitution.
22474 2017-08-19  Bruno Haible  <bruno@clisp.org>
22476         host-cpu-c-abi: Improve detection of MIPS ABI.
22477         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22478         _MIPS_SIM.
22480 2017-08-17  Bruno Haible  <bruno@clisp.org>
22482         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22483         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22485 2017-08-17  Bruno Haible  <bruno@clisp.org>
22487         float: Fix LDBL_MIN value on FreeBSD/x86.
22488         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22490 2017-08-17  Bruno Haible  <bruno@clisp.org>
22492         random: Fix test compilation failure on Cygwin 1.5.25.
22493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22494         HAVE_DECL_SETSTATE.
22495         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22496         declared.
22497         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22498         HAVE_DECL_SETSTATE.
22499         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22500         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22501         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22502         * doc/posix-functions/random.texi: Likewise.
22503         * doc/posix-functions/setstate.texi: Likewise.
22504         * doc/posix-functions/srandom.texi: Likewise.
22506 2017-08-16  Bruno Haible  <bruno@clisp.org>
22508         stdnoreturn: Fix test compilation failure on Cygwin.
22509         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22510         <stdnoreturn.h> replacement.
22511         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22512         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22514 2017-08-16  Bruno Haible  <bruno@clisp.org>
22516         thread: Fix conflict with pthread_sigmask module.
22517         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22518         it's defined as a macro.
22519         * modules/thread (Depends-on): Add pthread_sigmask.
22521 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22523         rename: port better to NetBSD
22524         * doc/posix-functions/rename.texi (rename): NetBSD 7
22525         does not have the link-count bug.
22526         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22527         broken merely because rename ("a", "b") removes "a" when the two
22528         names are hard links to the same file.
22530 2017-08-16  Bruno Haible  <bruno@clisp.org>
22532         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22533         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22534         the target file names with '$(srcdir)/'.
22535         * modules/unicase/locale-language (Makefile.am): Likewise.
22536         * modules/unicase/special-casing (Makefile.am): Likewise.
22537         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22538         * modules/unictype/category-byname (Makefile.am): Likewise.
22539         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22540         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22541         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22542         * modules/unictype/property-byname (Makefile.am): Likewise.
22543         * modules/unictype/scripts (Makefile.am): Likewise.
22544         * modules/uninorm/composition (Makefile.am): Likewise.
22546 2017-08-16  Bruno Haible  <bruno@clisp.org>
22548         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22549         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22550         value for OpenBSD.
22552 2017-08-16  Bruno Haible  <bruno@clisp.org>
22554         rename, renameat: Update doc regarding NetBSD.
22555         * doc/posix-functions/rename.texi: Clarify that when using
22556         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22557         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22558         version.
22560 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22562         renameat2: port better to macOS
22563         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22565         futimens: don’t assume struct timespec layout
22566         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22567         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22568         * tests/test-fdutimensat.c (main):
22569         * tests/test-futimens.h (test_futimens):
22570         * tests/test-lutimens.h (test_lutimens):
22571         * tests/test-utimens.h (test_utimens):
22572         * tests/test-utimensat.c (main):
22573         Don’t assume that struct timespec is a two-member structure in
22574         tv_sec, tv_nsec order.  Although this is true on all platforms we
22575         know about, POSIX does not guarantee it.
22577         rename: document+test NetBSD rename
22578         Test failure reported by Bruno Haible in:
22579         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22580         This is an area where NetBSD is better-behaved than POSIX,
22581         so allow the NetBSD behavior in tests.
22582         * doc/posix-functions/rename.texi:
22583         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22584         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22586 2017-08-15  Bruno Haible  <bruno@clisp.org>
22588         renameat: Ensure declaration in <stdio.h> on NetBSD.
22589         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22590         * doc/posix-functions/renameat.texi: Mention this problem.
22592 2017-08-15  Bruno Haible  <bruno@clisp.org>
22594         duplocale: Work around NetBSD 7.0 bug.
22595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22596         * lib/duplocale.c: Add comment about NetBSD problem.
22597         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22599 2017-08-15  Bruno Haible  <bruno@clisp.org>
22601         duplocale tests: Verify use with *_l functions.
22602         * modules/duplocale-tests (configure.ac): Test for uselocale and
22603         some *_l functions.
22604         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22605         from main.
22606         (get_locale_dependent_values_from, test_with_locale_parameter): New
22607         functions.
22608         (main): Test both test_with_uselocale and test_with_locale_parameter.
22610 2017-08-15  Bruno Haible  <bruno@clisp.org>
22612         extensions: Enable NetBSD specific extensions.
22613         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22615 2017-08-14  Bruno Haible  <bruno@clisp.org>
22617         open, openat: Update doc about O_CLOEXEC.
22618         * doc/posix-functions/open.texi: More concrete list of platforms.
22619         * doc/posix-functions/openat.texi: Likewise.
22621 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22623         open: support O_CLOEXEC
22624         * NEWS, doc/posix-functions/open.texi:
22625         * doc/posix-functions/openat.texi: Document this.
22626         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22627         (GNULIB_defined_O_CLOEXEC): New symbol.
22628         * lib/open.c: Include cloexec.h.
22629         (open): Support O_CLOEXEC.
22630         * lib/openat.c: Include cloexec.h.
22631         (rpl_openat): Support O_CLOEXEC.
22632         * lib/popen-safer.c: Do not include cloexec.h.
22633         (open_noinherit): Remove.
22634         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22635         * lib/save-cwd.c: Do not include cloexec.h.
22636         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22637         * m4/open-cloexec.m4: New file.
22638         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22639         Replace 'open' if O_CLOEXEC is not present.
22640         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22641         Replace 'openat' if O_CLOEXEC is not present.
22642         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22643         * modules/open (Files): Add m4/open-cloexec.m4.
22644         (Depends-on): Depend on cloexec if replacing 'open'.
22645         * modules/openat (Files): Add m4/open-cloexec.m4.
22646         (Depends-on): Depend on cloexec if replacing openat.
22647         * modules/popen-safer (Depends-on): Remove cloexec.
22648         * modules/save-cwd (Depends-on): Remove cloexec, and add
22649         fd-safer-flag and 'open'.
22651 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22653         reallocarray: minor fixes
22654         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22655         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22656         * modules/reallocarray (License): Change from GPL to LGPL.
22657         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22658         Indent properly and don't use tabs.
22660 2017-08-13  Darshit Shah  <darnir@gnu.org>
22662         reallocarray: New module
22663         reallocarray is a new function in glibc 2.26 to safely allocate an array
22664         of memory locations with integer overflow protection.
22665         * MODULES.html.sh: Add reallocarray.
22666         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22667         * lib/reallocarray.c: New file to implement module reallocarray.
22668         * lib/stdlib.in.h: Add function declarations for reallocarray.
22669         * m4/reallocarray.m4: New file.
22670         * m4/stdlib_h.m4: Declare reallocarray.
22671         * modules/reallocarray: New file.
22672         * modules/reallocarray-test: New file.
22673         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22674         * tests/test-reallocarray.c: New test.
22676 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22678         dirent-safer: fix cloexec race
22679         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22680         (opendir_safer): Use F_DUPFD_CLOEXEC.
22681         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22682         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22683         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22684         instead of dup_safer.
22686         fts: fix cloexec races
22687         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22688         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22689         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22690         (fd_ring_check): Set cloexec flag on new file descriptors.
22691         (fts_build, fd_ring_check): While we’re at it, make sure the
22692         resulting file descriptor is not 0, 1, or 2, since that is easy.
22694 2017-08-11  Bruno Haible  <bruno@clisp.org>
22696         fts tests: Fix link error.
22697         Reported by Tom G. Christensen in
22698         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22699         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22701 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22703         fts: port recent changes to CentOS 6
22704         Problem reported by Tom G. Christensen in:
22705         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22706         * lib/fts.c (fsword): New type.
22707         (struct dev_type, filesystem_type): Use it.
22708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22709         Also, check for f_type only if fstatfs and sys/vfs.h work.
22711 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22713         tempname: do not depend on secure_getenv
22714         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22715         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22716         * modules/tempname (Depends-on): Remove secure_getenv.
22718 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22720         extensions: add _OPENBSD_SOURCE
22721         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22723 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22724             Bruno Haible  <bruno@clisp.org>
22726         manywarnings: Add support for C++.
22727         * build-aux/g++-warning.spec: New file.
22728         * m4/manywarnings-c++.m4: New file.
22729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22730         redirects to manywarnings-c++.m4.
22731         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22733 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22735         git-version-gen: another fix for tags with "-"
22736         * build-aux/git-version-gen: Improve fix for tags containing "-".
22737         Suggested by Markus Armbruster in:
22738         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22740 2017-08-06  Bruno Haible  <bruno@clisp.org>
22742         warnings, manywarnings: Add support for multiple languages, not just C.
22743         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22744         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22745         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22746         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22747         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22748         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22749         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22750         of the current language. If C++ is the current language, modify
22751         WARN_CXXFLAGS instead of WARN_CFLAGS.
22752         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22753         gl_MANYWARN_ALL_GCC.
22754         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22756 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22758         git-version-gen: Fix for tags containing '-'
22760         Really old versions of git-describe (before v1.5.0, Feb 2007)
22761         don't have the number of commits in their long format output,
22762         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22763         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22764         recognizes both patterns, and normalizes the old format to the new one.
22766         Unfortunately, this normalization code gets confused when the tag
22767         contains '-'.  Reproducer:
22769             $ git-tag -m test v0.2-rc1
22770             $ build-aux/git-version-gen .tarball-version; echo
22771             build-aux/git-version-gen: WARNING: git rev-list failed
22772             UNKNOWN
22774         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22775         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22776         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22778         * git-version-gen: We could perhaps drop support for versions from
22779         more than a decade ago.  But tightening the pattern match is easy
22780         enough, so do that.  Still breaks when you use version tags ending in
22781         something matching -g????, but you arguably get what you deserve then.
22783 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22785         valgrind-tests: use ls, and cache
22786         * m4/valgrind-tests.m4: Test ls, not bash.
22787         Problem reported by Reuben Thomas.
22788         Also, cache the result so that it can be overridden.
22790 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22792         manywarnings: port to 64-bit GCC builds of Emacs
22793         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22794         object size rather than hardwiring 2147483647.  This is needed to
22795         build GNU Emacs, which has one conditional (and used
22796         only-in-theory) call to malloc with a literal greater than
22797         2147483647.
22799 2017-08-04  Bruno Haible  <bruno@clisp.org>
22801         Relax the license of some modules with no runtime code.
22802         * modules/std-gnu11 (License): Set to 'unlimited'.
22803         * modules/c99 (License): Likewise.
22804         Reported by Reuben Thomas <rrt@sc3d.org>.
22805         * modules/d-ino (License): Set to 'LGPL'.
22806         * modules/host-os (License): Likewise.
22807         * modules/longlong (License): Likewise.
22809 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22811         renameat2: port to RHEL 7 + NFS
22812         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22813         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22814         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22816 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22818         renameat2: port to non-renameat platforms
22819         Problem reported for MSVC-2015 by Gisle Vanem in:
22820         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22821         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22822         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22824 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22826         manywarnings: port to 32-bit GCC bug
22827         Problem reported by Pino Toscano in:
22828         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22829         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22830         not 2**63 - 1, to work around the following GCC bug:
22831         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22833 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22835         backupfile: new function to validate backup suffix
22836         * lib/backupfile.c (set_simple_backup_suffix): New function.
22837         (backupfile_internal): Use it.
22839         canonicalize: fix EOVERFLOW commentary
22840         Problem reported by Bruno Haible in:
22841         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22842         * lib/canonicalize.c (canonicalize_filename_mode):
22843         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22845         Don't interpret EOVERFLOW to mean nonexistence
22846         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22847         may be EOVERFLOW; this is likely more useful than reporting the
22848         stat errno.
22849         * lib/glob.c (link_stat): Rename from link_exists2_p and
22850         return -1/0 instead of 0/1.  Caller changed.
22851         * lib/glob.c (link_exists_p):
22852         * lib/renameat2.c (rename_noreplace, renameat2):
22853         * lib/tempname.c (try_nocreate):
22854         If errno == EOVERFLOW then the directory entry exists, so do not
22855         act as if it does not exist.
22857         backup-rename: new module
22858         It is like backupfile, except it avoids some race conditions,
22859         and it does not output to stderr or exit.
22860         * MODULES.html.sh: Add backup-rename.
22861         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22862         * modules/backup-rename: New files.
22863         * lib/backupfile.c: Turn this into an internals file, which
22864         contains code common to backupfile and backup_rename.  Include
22865         backupfile-internal.h instead of backupfile.h.  Do not include
22866         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22867         renameat2.h and fcntl.h.
22868         (BACKUP_NOMEM): New constant.
22869         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22870         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22871         (backupfile_internal): Rename from find_backup_file_name.
22872         Support new arg RENAME.
22873         (backup_args, backup_types, get_version, xget_version):
22874         Move to lib/backup-find.c.
22875         * lib/backupfile.h (backup_file_rename): New decl.
22876         * modules/backupfile (Files): Add lib/backup-internal.h,
22877         lib/backup-find.c.
22878         (Depends-on): Add dirfd, fcntl, renameat2.
22879         (lib_SOURCES): Add backup-find.c.
22881         renameat2: port better to older Solaris
22882         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22883         Add goto to use a label, to silence picky compilers.
22885         fts-tests: port to gcc -Wwrite-strings
22886         * tests/test-fts.c (base, base_d): New static vars.
22887         (argv, remove_tree, main): Use them.
22889 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22891         relocatable-lib{,-lgpl}: improve documentation
22892         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22893         Various other updates.
22895 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22896             Bruno Haible  <bruno@clisp.org>
22898         relocatable-lib{,-lgpl}: add Valgrind suppressions
22899         * lib/relocatable.valgrind: New file.
22900         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22901         * modules/relocatable-lib-lgpl: Likewise.
22903 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22905         relocatable: Make the license on the sources the GPL.
22906         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22907         LGPL, which was a special case so that the relocatable source files
22908         could be used without gnulib-tool, to GPL. They can still be used under
22909         the LGPL, using the --lgpl option to gnulib-tool.
22911 2017-07-30  Bruno Haible  <bruno@clisp.org>
22913         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22914         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22915         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22916         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22917         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22919 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22921         faccessat: document AT_SYMLINK_NOFOLLOW issue
22922         * doc/posix-functions/faccessat.texi: Modernize platform list.
22923         Document AT_SYMLINK_NOFOLLOW limitation.
22925         renameat2: port to Solaris 10
22926         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22927         with AT_SYMLINK_NOFOLLOW (which is not portable).
22928         (renameat): Undef before using, to avoid endless recursion when
22929         the replacement renameat calls renameat2 which calls the
22930         replacement renameat.
22931         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22932         * modules/renameat2 (Depends-on): Remove faccessat.
22933         * modules/renameat-tests (test_renameat_LDADD):
22934         * modules/renameat2-tests (test_renameat2_LDADD):
22935         Remove $(LIB_EACCESS).
22937         renameat2: new module
22938         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22939         useful to have access to its RENAME_NOREPLACE flag.
22940         * MODULES.html.sh (func_all_modules): Add renameat2.
22941         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22942         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22943         * lib/renameat.c (renameat): Move most of the implementation
22944         to renameat2, and just call renameat2.
22945         * modules/renameat (Files): Remove lib/at-func2.c.
22946         (Depends-on): Depend only on renameat2.
22947         (Include): Remove <fcntl.h>.
22948         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22949         since renameat (via renameat2) might use faccessat.
22951 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22953         vc-list-files: Adjust the script to support git worktrees
22954         * build-aux/vc-list-files: Require existence, not directory.
22956 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22958         doc: bring MODULES.html.sh up to date
22959         Somehow a few months ago we stopped updating MODULES.html.sh.
22960         I don’t recall explicitly deciding this, so I updated it now.
22961         Alternatively I suppose we could remove it.
22962         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22963         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22964         truncate, utime, utime-h, windows-stat-inodes,
22965         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22967 2017-07-26  Jim Meyering  <meyering@fb.com>
22969         fprintftime: fix build-break caused by recent renaming
22970         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22971         "strftime.c".
22972         * modules/fprintftime: Depend directly on nstrftime.
22974 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22976         regex: work with GCC7's -Werror=implicit-fallthrough=
22977         * lib/regex_internal.h (FALLTHROUGH): New macro.
22978         * lib/regcomp.c (peek_token_bracket, parse_expression):
22979         * lib/regexec.c (check_node_accept): Use it.
22981 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22983         fts: simplify fts_build
22984         * lib/fts.c (fts_build): Simplify, and be lazier about
22985         calling leaf_optimization.
22987         fts: three levels of leaf optimization
22988         * lib/fts.c (enum leaf_optimization): New type with three values.
22989         (S_MAGIC_AFS): New macro.  Sort them.
22990         (leaf_optimization): Rename from leaf_optimization_applies, and
22991         return enum leaf_optimization instead of bool.  All uses changed.
22992         Add cases for unknown type and for AFS.
22993         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22995         fts: cache dirent_inode_sort_may_be_useful too
22996         * lib/fts.c (struct dev_type): New struct.
22997         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22998         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22999         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
23000         Now takes FTSENT const *, not int.  All uses changed.  Use
23001         filesystem_type to cache.
23002         (link_count_optimize_ok): Remove.  Caller changed to use
23003         leaf_optimization_applies, which now uses shared cache.
23005         fts: introduce MIN_DIR_NLINK
23006         * lib/fts.c (MIN_DIR_NLINK): New constant.
23007         Use it instead of 2, whenever we are talking about link counts.
23009         fts: nlink_t signedness fixups
23010         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
23011         so that root need not be a special case later.
23012         (fts_read): Remove now-redundant test for fts_level.
23013         Do not assume that nlink_t is signed.
23014         (fts_build): Remove useless decrement of nlinks.
23015         (fts_stat): Avoid unlikely signed integer overflow later, if
23016         nlink_t is signed.
23018         fts-tests: new module
23019         * modules/fts-tests, tests/test-fts.c: New files.
23021 2017-07-23  Bruno Haible  <bruno@clisp.org>
23023         Rename module 'strftime' to 'nstrftime'.
23024         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
23025         * lib/nstrftime.c: Renamed from lib/strftime.c.
23026         * modules/nstrftime: Renamed from modules/strftime.
23027         (Files, Makefile.am): Update.
23028         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
23029         Fix comment.
23030         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
23031         (Files, Makefile.am): Update.
23032         * modules/strftime: New file, an obsolete indirection.
23033         * doc/posix-functions/strftime.texi: Update reference.
23034         * config/srclist.txt: Update info.
23035         * NEWS: Mention the change.
23037 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
23039         malloca: Silence a warning from clang's memory sanitizer.
23040         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
23041         (freea): Use it.
23043 2017-07-18  Bruno Haible  <bruno@clisp.org>
23045         host-cpu-c-abi: Fix detection of MIPS ABI.
23046         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
23047         ABI, not the CPU instruction set.
23049 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23051         explicit_bzero: new module
23052         The explicit_bzero function has been added to glibc.
23053         This module is intended to supports its use in GNU programs.
23054         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
23055         * m4/explicit_bzero.m4, modules/explicit_bzero:
23056         New files.
23057         * doc/gnulib.texi (Glibc string.h): Link to new doc.
23058         * lib/string.in.h (explicit_bzero): Declare.
23059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
23060         * modules/string (string.h): Substitute its vars.
23062 2017-07-16  Bruno Haible  <bruno@clisp.org>
23064         threadlib: Support static linking.
23065         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
23066         set gl_cv_have_weak to 'no'.
23068 2017-07-16  Bruno Haible  <bruno@clisp.org>
23070         unicase/locale-language: Fix link dependencies.
23071         * modules/unicase/locale-language (Link): New section.
23072         * modules/unicase/locale-language-tests (Makefile.am): Link
23073         test-locale-language program with $(LIBTHREAD).
23075 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23077         sys_socket: Add support for OpenVMS.
23078         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
23079         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
23081 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23083         sys_resource: Add support for OpenVMS.
23084         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
23085         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
23087 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23088             Bruno Haible  <bruno@clisp.org>
23090         math: Add support for OpenVMS.
23091         * lib/math.in.h [__VMS]: Include <fp.h>.
23092         * doc/posix-headers/math.texi: Mention OpenVMS issues.
23094 2017-07-15  Bruno Haible  <bruno@clisp.org>
23096         getdtablesize: Add minimal support for OpenVMS.
23097         Reported by John E. Malmberg <wb8tyw@qsl.net>.
23098         * modules/getdtablesize (Description): Fix.
23099         * lib/getdtablesize.c: Fix comment.
23100         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
23101         getdtablesize() function, even though the test fails.
23102         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
23103         limitation on OpenVMS.
23105 2017-07-13  Bruno Haible  <bruno@clisp.org>
23107         Revisit cross-compilation guesses.
23108         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
23110 2017-07-13  Bruno Haible  <bruno@clisp.org>
23112         Improve cross-compilation guesses for native Windows.
23113         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
23114         Windows.
23115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
23116         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
23117         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23118         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
23119         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
23120         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
23121         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23122         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23124         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23125         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23126         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
23127         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
23128         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
23129         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
23130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23131         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
23132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23133         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23134         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23135         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
23136         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23137         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
23138         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
23139         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
23140         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
23141         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23142         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23144         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
23145         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
23147         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23148         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
23149         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
23150         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
23151         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
23152         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23153         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23154         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23157         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
23158         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
23159         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
23160         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
23161         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
23162         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
23163         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
23164         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
23165         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
23166         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
23167         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
23168         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
23169         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
23170         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
23171         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
23172         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23173         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
23174         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
23175         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23176         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
23177         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
23178         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23179         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23181         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
23182         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23183         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
23184         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
23185         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
23186         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
23187         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23188         * m4/regex.m4 (gl_REGEX): Likewise.
23189         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23190         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
23191         gl_FUNC_REMAINDERF_WORKS): Likewise.
23192         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
23193         gl_FUNC_REMAINDERL_WORKS): Likewise.
23194         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23195         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23196         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23197         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23200         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23201         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23202         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
23203         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23204         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
23205         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
23206         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23207         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23208         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23209         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23211         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23212         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23213         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23214         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23215         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23216         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23217         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23218         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23219         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23220         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23221         Likewise.
23222         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23223         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
23224         Windows. Enable also on Autoconf 2.70.
23225         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23226         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23227         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23228         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
23229         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23230         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
23231         for native Windows.
23232         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23233         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
23235 2017-07-13  Bruno Haible  <bruno@clisp.org>
23237         Improve cross-compilation guesses for native Windows.
23238         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
23239         Windows.
23240         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
23241         memchr.m4.
23242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23244 2017-07-13  Bruno Haible  <bruno@clisp.org>
23246         Improve cross-compilation guesses for native Windows.
23247         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
23248         native Windows.
23249         (gl_FUNC_FFLUSH): Update accordingly.
23250         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
23251         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23253 2017-07-11  Bruno Haible  <bruno@clisp.org>
23255         More systematic m4 quoting and indentation.
23256         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
23257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23258         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23260         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23261         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
23262         gl_WINSIZE_IN_PTEM): Likewise.
23263         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
23264         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23265         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23266         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
23267         Correct indentation.
23268         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23270         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
23271         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23272         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23273         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23275 2017-07-10  Bruno Haible  <bruno@clisp.org>
23277         round, roundf: Avoid compiler warning in configure test.
23278         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
23279         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23281 2017-07-10  Bruno Haible  <bruno@clisp.org>
23283         getlogin tests: Avoid #ifdefs when sharing code between modules.
23284         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
23285         * modules/getlogin-tests (Files): Likewise. Remove
23286         tests/test-getlogin_r.c.
23287         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
23288         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
23289         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
23290         getlogin().
23292 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23294         getlogin: don’t assume one name per uid
23295         Problem reported by Wolfgang F. Muthmann (Bug#27640).
23296         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
23297         (ttyname): Remove test.
23298         * modules/getlogin_r-tests (ttyname): Remove test.
23299         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
23300         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
23301         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
23302         getlogin rather than getlogin_r.  This avoids code duplication.
23303         (main): Use isatty and fstat rather than ttyname and stat.
23304         Use getpwnam instead of getpwuid, to be portable to test platforms
23305         that have multiple login names for the same uid.
23307 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
23308             Bruno Haible  <bruno@clisp.org>
23310         glob: Fix more memory leaks.
23311         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
23312         returning.
23313         Reported by Tim Rühsen.
23315 2017-07-10  Bruno Haible  <bruno@clisp.org>
23317         Make sure $host and $host_os are defined when used.
23318         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
23319         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
23320         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
23321         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23322         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23324         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23325         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23326         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23327         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23328         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23329         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23330         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23331         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23332         m4_ifdef block.
23334 2017-07-09  Bruno Haible  <bruno@clisp.org>
23336         *printf: Fix cross-compilation guess for Solaris.
23337         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23338         2010-12-21.
23340 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23341             Bruno Haible  <bruno@clisp.org>
23343         vasnprintf: port to macOS 10.13
23344         Problem reported by comex in:
23345         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23346         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23348 2017-07-06  Bruno Haible  <bruno@clisp.org>
23350         imaxdiv tests: Fix logic.
23351         * tests/test-imaxdiv.c (main): Use == instead of =.
23352         Reported by Coverity.
23354 2017-07-06  Bruno Haible  <bruno@clisp.org>
23356         uninorm/filter: Fix use-after-free bug.
23357         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23358         sortbuf == filter->sortbuf invariant.
23359         Reported by Coverity.
23361 2017-07-06  Bruno Haible  <bruno@clisp.org>
23363         glob: Fix more memory leaks.
23364         * lib/glob.c (glob): Free dirname before returning.
23365         Reported by Coverity and Tim Rühsen.
23367 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23369         parse-datetime: fix uninit var bug
23370         Reported by Bruno Haible in:
23371         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23372         * lib/parse-datetime.y (parse_datetime2): Do not use
23373         uninitialized.
23375 2017-07-05  Bruno Haible  <bruno@clisp.org>
23377         doc: Update for MSVC 14.
23378         * doc/posix-headers/*.texi: Add info about MSVC 14.
23379         * doc/posix-functions/*.texi: Likewise.
23380         * doc/pastposix-functions/*.texi: Likewise.
23381         * doc/glibc-headers/*.texi: Likewise.
23382         * doc/glibc-functions/*.texi: Likewise.
23384 2017-07-05  Bruno Haible  <bruno@clisp.org>
23386         sched: Fix build failure on native Windows (regression from 2017-06-19).
23387         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23389 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23391         stdioext: Port to OpenVMS.
23392         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23393         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23394         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23395         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23396         * lib/fpurge.c (fpurge): Likewise.
23397         * lib/freadable.c (freadable): Likewise.
23398         * lib/freadahead.c (freadahead): Likewise.
23399         * lib/freading.c (freading): Likewise.
23400         * lib/freadptr.c (freadptr): Likewise.
23401         * lib/freadseek.c (freadseek): Likewise.
23402         * lib/fseeko.c (fseeko): Likewise.
23403         * lib/fseterr.c (fseterr): Likewise.
23404         * lib/fwritable.c (fwriteable): Likewise.
23405         * lib/fwriting.c (fwriting): Likewise.
23407 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23409         glob: Declare variables at the very start of their scope.
23410         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23411         its separate scope, so the functions will compile on Haiku.
23413 2017-07-01  Bruno Haible  <bruno@clisp.org>
23415         logbl: Work around a glibc bug on PowerPC64LE.
23416         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23417         numbers.
23418         * doc/posix-functions/logbl.texi: Update.
23420 2017-06-29  Bruno Haible  <bruno@clisp.org>
23422         stat, fstat: Compile stat-w32.c only on platforms that need it.
23423         Suggested by Paul Eggert.
23424         * modules/stat (configure.ac): Request stat-w32.o only on native
23425         Windows.
23426         * modules/fstat (configure.ac): Likewise.
23428 2017-06-25  Bruno Haible  <bruno@clisp.org>
23430         stat: Improve last change.
23431         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23433 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23435         stat: port to xlc 12.01
23436         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23437         12.01 complains "Compilation unit is empty."
23439 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23441         xalloc-oversized: port to icc
23442         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23443         __builtin_mul_overflow if ICC is defined, as this results in
23444         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23445         20170213.
23447 2017-06-19  Bruno Haible  <bruno@clisp.org>
23449         classpath: Avoid including config.h twice, as it produces warnings.
23450         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23451         * lib/classpath.h: Conditionalize the include of config.h.
23453 2017-06-19  Bruno Haible  <bruno@clisp.org>
23454             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23456         sched: Fix compilation failure on OpenVMS.
23457         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23458         test whether <pthread.h> exists and defines struct sched_param.
23459         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23461 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23463         diffseq: port to GCC 7 with --enable-gcc-warnings
23464         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23465         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23466         not complain about big_snake being defined but not used.
23468 2017-06-15  Bruno Haible  <bruno@clisp.org>
23470         gettext-h: Update theoretical condition for use of variable size arrays.
23471         Reported by Paul Eggert.
23472         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23473         to include the theoretical condition for availability of variable size
23474         arrays, if we could trust the value of __STDC_VERSION__.
23476 2017-06-12  Bruno Haible  <bruno@clisp.org>
23478         Relicense some modules under LGPLv2+.
23479         Daiki Ueno's approval is in
23480         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23481         * modules/uniwidth/base (License): Change to LGPLv2+.
23482         * modules/uniwidth/width (License): Likewise.
23484 2017-06-11  Bruno Haible  <bruno@clisp.org>
23486         localename: Fix test failure on DragonFly BSD.
23487         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23488         like FreeBSD.
23490 2017-06-11  Bruno Haible  <bruno@clisp.org>
23492         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23493         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23494         * lib/float.in.h: Likewise.
23495         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23497 2017-06-11  Bruno Haible  <bruno@clisp.org>
23499         gnulib-tool: Clean up after autotools.
23500         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23501         useless directory left over by the Autotools.
23503 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23505         getopt-posix: port to glibc 2.25.90
23506         Problem reported by Daniel P. Berrange in:
23507         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23508         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23509         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23510         #undef if __GETOPT_PREFIX is defined.
23512 2017-06-11  Bruno Haible  <bruno@clisp.org>
23514         strtod-obsolete: Fix license.
23515         * modules/strtod-obsolete (License): Change to LGPL.
23517 2017-06-10  Jim Meyering  <meyering@fb.com>
23519         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23520         * lib/savewd.c (FALLTHROUGH): Define.
23521         (savewd_save, savewd_restore): Use this, rather than a comment,
23522         whenever one switch case falls through into the next.
23524 2017-06-08  Bruno Haible  <bruno@clisp.org>
23526         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23527         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23528         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23529         case.
23531 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23533         doc: remove robots, add prereqs
23534         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23535         builds.  Simon's robot site does not seem to be up, so remove
23536         mentions of it for now.
23538 2017-06-08  Bruno Haible  <bruno@clisp.org>
23540         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23541         * gnulib-tool (func_symlink_target): New function, extracted from
23542         func_symlink.
23543         (func_symlink, func_symlink_if_changed): Use it.
23545 2017-06-08  Bruno Haible  <bruno@clisp.org>
23547         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23548         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23550 2017-06-07  Bruno Haible  <bruno@clisp.org>
23552         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23553         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23554         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23555         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23556         override, pass 2 arguments to getcwd, not 3.
23558 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23560         same-inode: port better to VMS 8.2 and later
23561         Problem reported by John E. Malmberg in:
23562         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23563         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23564         Use the usual POSIX definition.
23565         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23567 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23569         error: fix POSIX violation for va_end
23570         Problem reported by Bruno Haible in:
23571         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23572         * lib/error.c (error_tail): Do not call va_end here.
23573         (error, error_at_line): Call it here instead.
23575 2017-05-28  Bruno Haible  <bruno@clisp.org>
23577         c-strtod: Make it usable in C++ mode.
23578         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23580 2017-05-25  Jim Meyering  <meyering@fb.com>
23582         quotearg: fix compilation failure due to FALLTHROUGH misuse
23583         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23584         macro back to /* fall through */ comment.  The macro can apply only
23585         to a following case statement.  Reported by Assaf Gordon.
23587 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23589         intprops: port to recent icc
23590         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23591         but does not support __builtin_add_overflow etc.
23592         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23593         Define to 0.
23595 2017-05-23  Karl Berry  <karl@freefriends.org>
23597         * config/srclist.txt (iconv.m4): sync broken, comment out
23598         until (hopefully) the next gettext release.
23600 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23602         Remove repeated words in comments.
23604 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23606         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23607         quotearg.c: Reinstate this instance which is significant
23608         when the if branch is not taken.
23610 2017-05-21  Bruno Haible  <bruno@clisp.org>
23612         gnulib-tool: Add options to create hard links.
23613         * gnulib-tool (func_usage): Document options --hardlink,
23614         --local-hardlink, --more-hardlinks.
23615         (func_symlink): Renamed from func_ln.
23616         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23617         (func_hardlink): New function.
23618         (copymode, lcopymode): New variables.
23619         (symbolic, lsymbolic): Remove variables.
23620         (Options): Implement options --hardlink, --local-hardlink,
23621         --more-hardlinks.
23622         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23623         (func_add_file, func_update_file): Update invocation of
23624         func_should_link. Invoke func_hardlink when appropriate.
23625         (func_import): Update comments.
23626         (func_create_testdir): Update invocation of func_should_link. Invoke
23627         func_hardlink when appropriate.
23628         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23629         the hard links on git.
23631 2017-05-20  Bruno Haible  <bruno@clisp.org>
23633         argp: Simplify bit manipulation.
23634         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23635         on a signed integer type.
23637 2017-05-20  Bruno Haible  <bruno@clisp.org>
23639         Avoid wrong configure results with gcc -fsanitize=address.
23640         This completes the work done on 2016-02-06 on this topic.
23641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23642         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23644         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23645         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23646         returning.
23647         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23649         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23650         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23651         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23652         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23653         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23654         free allocated memory before returning.
23655         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23656         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23657         objects before returning.
23658         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23659         returning.
23661 2017-05-20  Bruno Haible  <bruno@clisp.org>
23663         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23664         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23666 2017-05-20  Bruno Haible  <bruno@clisp.org>
23668         argp, tsearch tests: Fix file list.
23669         * modules/argp-tests (Files): Add tests/macros.h.
23670         * modules/tsearch-tests (Files): Likewise.
23672 2017-05-20  Bruno Haible  <bruno@clisp.org>
23674         getopt-posix tests: Remove redundant include.
23675         * tests/test-getopt.h: Don't include "macros.h". It's already included
23676         by tests/test-getopt-main.h.
23678 2017-05-19  Jim Meyering  <meyering@fb.com>
23680         dfa: two small simplifications
23681         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23683 2017-05-18  Jim Meyering  <meyering@fb.com>
23685         fallthrough: update for GCC 7/8
23686         * lib/quotearg.c (FALLTHROUGH): New macro.
23687         Use it whenever one switch case falls through into the next,
23688         replacing "/* Fall through */" comments.  This exposed one
23689         instance of an unwarranted "fall through" comment: unwarranted
23690         because it preceded a "goto" label not a case statement.
23691         * lib/freopen-safer.c (freopen_safer): Likewise.
23692         * lib/fts.c (leaf_optimization_applies): Likewise.
23693         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23694         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23695         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23696         tests/macros.h for the definition.
23697         * tests/test-argp.c (group1_parser): Likewise.
23698         * tests/test-getopt.h (getopt_loop): Likewise.
23700 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23702         argp: fix shift bug
23703         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23704         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23706         argp: fix pointer-subtraction bug
23707         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23708         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23709         See the thread containing Bruno Haible’s report in:
23710         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23712 2017-05-19  Bruno Haible  <bruno@clisp.org>
23714         printf-posix tests: Avoid test failure with "gcc --coverage".
23715         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23716         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23717         than 5000000.
23718         * tests/test-fprintf-posix2.c (main): Likewise.
23720 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23722         closeout: don’t close stderr when sanitizing
23723         * NEWS: Document this.
23724         * lib/closeout.c (__has_feature): New macro, if not already defined.
23725         (SANITIZE_ADDRESS): New constant.
23726         (close_stdout): Don’t close stderr if sanitizing addresses.
23728 2017-05-19  Bruno Haible  <bruno@clisp.org>
23730         get-rusage-data tests: Avoid failure on Linux/glibc.
23731         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23732         on glibc systems.
23734 2017-05-18  Bruno Haible  <bruno@clisp.org>
23736         localename: Include necessary header files on Cygwin.
23737         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23738         where NL_LOCALE_NAME is defined.
23740 2017-05-18  Bruno Haible  <bruno@clisp.org>
23742         gettext: Update macros from gettext git.
23743         * m4/intldir.m4: Require Autoconf >= 2.60.
23744         * m4/progtest.m4: Fix typos in copyright notice.
23746 2017-05-18  Bruno Haible  <bruno@clisp.org>
23748         copy-file tests: Fix link error (regression from 2017-05-01).
23749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23750         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23751         $(LIB_CLOCK_GETTIME).
23753 2017-05-18  Bruno Haible  <bruno@clisp.org>
23755         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23756         (regression from 2017-02-13).
23757         * lib/unicase/special-casing.in.h: Renamed from
23758         lib/unicase/special-casing.h.
23759         * modules/unicase/special-casing (Files): Add
23760         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23761         (Makefile.am): Add rule for generating unicase/special-casing.h.
23762         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23763         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23764         not "special-casing.h".
23765         * lib/unicase/u*.c: Likewise.
23767 2017-05-17  Bruno Haible  <bruno@clisp.org>
23769         README: Don't ask people to read a TeXinfo file.
23770         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23771         * README: Tell people how to read the HTML formatted manual.
23773 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23775         parse-datetime: Fix memleak
23776         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23777         localtime_rz() failure.
23779 2017-05-16  Bruno Haible  <bruno@clisp.org>
23781         javacomp: Fix handle leak.
23782         Found by Coverity.
23783         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23785 2017-05-16  Bruno Haible  <bruno@clisp.org>
23787         relocate: Make it easier to reclaim allocated memory.
23788         * lib/relocatable.h (relocate2): New declaration/macro.
23789         * lib/relocatable.c (relocate2): New function.
23790         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23791         relocate2 function.
23792         * lib/localcharset.c (relocate2): Define fallback.
23793         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23794         allocated memory.
23795         * lib/javaversion.c (relocate2): Define fallback.
23796         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23797         allocated memory.
23799 2017-05-16  Bruno Haible  <bruno@clisp.org>
23801         relocate: Simplify EMX specific code.
23802         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23803         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23805 2017-05-16  Bruno Haible  <bruno@clisp.org>
23807         sigpipe tests: Fix file list.
23808         * modules/sigpipe-tests (Files): Add tests/macros.h.
23810 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23812         manywarnings: update for GCC 7
23813         * build-aux/gcc-warning.spec:
23814         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23815         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23816         requires a non-comment fallthrough attribute.  This is a bit
23817         cleaner than the comment versions.
23818         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23819         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23820         Use it whenever one switch case falls through into the next.
23821         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23822         Use FALLTHROUGH macro.
23824 2017-05-15  Bruno Haible  <bruno@clisp.org>
23826         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23827         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23828         @ALLOCA@, not @LTALLOCA@.
23830 2017-05-15  Bruno Haible  <bruno@clisp.org>
23832         sys_select: Avoid "was expanded before it was required" warning.
23833         * modules/sys_select (configure.ac): Require, not invoke,
23834         gl_HEADER_SYS_SELECT.
23836 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23838         gnulib-tool: improve GNU Make debugging
23839         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23840         Report autoconf diagnostics when it fails, in the output makefile.
23842 2017-05-14  Bruno Haible  <bruno@clisp.org>
23844         stat-time tests: Improve comment.
23845         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23847 2017-05-14  Bruno Haible  <bruno@clisp.org>
23849         same-inode: Adapt for windows-stat-inodes.
23850         * lib/same-inode.h: Include <sys/types.h>.
23851         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23852         * modules/same-inode (Depends-on): Add sys_types.
23854 2017-05-14  Bruno Haible  <bruno@clisp.org>
23856         windows-stat-inodes: New module.
23857         * m4/windows-stat-inodes.m4: New file.
23858         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23859         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23860         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23861         (_GL_WINDOWS_STAT_INODES): New macro.
23862         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23863         (GetFileInformationByHandleExFunc): New variable.
23864         (initialize): Initialize it.
23865         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23866         st_ino appropriately.
23867         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23868         a fallback, because it does not provide st_dev and st_ino values.
23869         * modules/fstat (Depends-on): Add 'verify'.
23870         * modules/windows-stat-inodes: New file.
23871         * doc/windows-stat-inodes.texi: New file.
23872         * doc/gnulib.texi: Include it.
23873         * doc/posix-headers/sys_stat.texi: Mention the new module.
23875 2017-05-14  Bruno Haible  <bruno@clisp.org>
23877         stat-time tests: Workaround for native Windows.
23878         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23879         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23880         New variables.
23881         (initialize_filenames): New function.
23882         (main): Invoke it.
23883         (cleanup, prepare_test): Update.
23885 2017-05-14  Bruno Haible  <bruno@clisp.org>
23887         stat-time: Adapt for windows-stat-timespec.
23888         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23889         entire st_ctim field.
23891 2017-05-13  Jim Meyering  <meyering@fb.com>
23893         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23894         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23895         file that uses the assume macro, claiming that verify.h is unused.
23897 2017-05-13  Bruno Haible  <bruno@clisp.org>
23899         Use symbolic values for _WIN32_WINNT.
23900         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23901         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23903 2017-05-13  Bruno Haible  <bruno@clisp.org>
23905         year2038: New module.
23906         * m4/year2038.m4: New file.
23907         * modules/year2038: New file.
23908         * doc/year2038.texi: New file.
23909         * doc/gnulib.texi: Include it.
23911 2017-05-13  Bruno Haible  <bruno@clisp.org>
23913         largefile: Simplify.
23914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23915         of _GL_WINDOWS_64_BIT_ST_SIZE.
23917 2017-05-13  Bruno Haible  <bruno@clisp.org>
23919         largefile: Improve and document.
23920         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23921         the mingw headers already define 'stat' appropriately.
23922         * modules/largefile (Description): Clarify.
23923         * doc/largefile.texi: New file.
23924         * doc/gnulib.texi: Include it.
23925         * doc/posix-headers/sys_types.texi: Update.
23927 2017-05-13  Bruno Haible  <bruno@clisp.org>
23929         truncate: New module.
23930         * lib/unistd.in.h (truncate): New declaration.
23931         * lib/truncate.c: New file.
23932         * m4/truncate.m4: New file.
23933         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23934         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23935         REPLACE_TRUNCATE.
23936         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23937         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23938         * modules/truncate: New file.
23939         * tests/test-unistd-c++.cc (truncate): Test signature.
23940         * doc/posix-functions/truncate.texi: Mention the new module.
23942         * tests/test-truncate.c: New file.
23943         * modules/truncate-tests: New file.
23945 2017-05-13  Bruno Haible  <bruno@clisp.org>
23947         windows-stat-timespec: New module.
23948         * modules/windows-stat-timespec: New file.
23949         * m4/windows-stat-timespec.m4: New file.
23950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23951         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23952         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23953         fields st_atim, st_mtim, st_ctim.
23954         (st_atime, st_mtime, st_ctime): Define as macros.
23955         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23956         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23957         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23958         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23959         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23960         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23961         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23962         FILETIME to 'struct timespec', not 'time_t'.
23963         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23964         FILETIME to 'struct timespec', not 'time_t'.
23965         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23966         _GL_WINDOWS_STAT_TIMESPEC.
23967         * doc/windows-stat-timespec.texi: New file.
23968         * doc/gnulib.texi: Include it.
23970 2017-05-13  Bruno Haible  <bruno@clisp.org>
23972         windows-stat-override: New module.
23973         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23974         definition. Define GNULIB_defined_struct_stat.
23975         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23976         link error if this symbol is used and the corresponding module is not
23977         in use.
23978         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23979         GNULIB_OVERRIDES_STRUCT_STAT.
23980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23981         GNULIB_OVERRIDES_STRUCT_STAT.
23982         * modules/sys_stat (Makefile.am): Substitute
23983         GNULIB_OVERRIDES_STRUCT_STAT.
23984         * modules/windows-stat-override: New file.
23986 2017-05-13  Bruno Haible  <bruno@clisp.org>
23988         fstat: Fix module dependency conditions.
23989         * modules/fstat (Depends-on): Fix typo.
23991 2017-05-13  Bruno Haible  <bruno@clisp.org>
23993         stat, fstat: Complete removal of old native Windows code.
23994         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23995         * lib/fstat.c: Likewise.
23996         * lib/stat-w32.c: Likewise.
23998 2017-05-13  Bruno Haible  <bruno@clisp.org>
24000         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
24001         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
24003 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24005         getopt-posix: port to mingw
24006         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
24007         Problem reported by Daniel P. Berrage in:
24008         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
24010 2017-05-11  Bruno Haible  <bruno@clisp.org>
24012         gettimeofday: Increase precision on mingw.
24013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
24014         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
24015         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
24016         GetSystemTimePreciseAsFileTime based implementation always.
24017         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
24018         mingw.
24020 2017-05-11  Bruno Haible  <bruno@clisp.org>
24022         poll: Fix confusion between SOCKETs and FDs on native Windows.
24023         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
24024         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
24026 2017-05-11  Bruno Haible  <bruno@clisp.org>
24028         doc: Clarify doc about socket functions on native Windows.
24029         This reworks doc that was added on 2008-09-29.
24030         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
24031         clearer wording.
24032         * doc/posix-functions/accept.texi: Use clearer wording.
24033         * doc/posix-functions/bind.texi: Likewise.
24034         * doc/posix-functions/connect.texi: Likewise.
24035         * doc/posix-functions/getpeername.texi: Likewise.
24036         * doc/posix-functions/getsockname.texi: Likewise.
24037         * doc/posix-functions/getsockopt.texi: Likewise.
24038         * doc/posix-functions/ioctl.texi: Likewise.
24039         * doc/posix-functions/listen.texi: Likewise.
24040         * doc/posix-functions/recv.texi: Likewise.
24041         * doc/posix-functions/recvfrom.texi: Likewise.
24042         * doc/posix-functions/send.texi: Likewise.
24043         * doc/posix-functions/sendto.texi: Likewise.
24044         * doc/posix-functions/setsockopt.texi: Likewise.
24045         * doc/posix-functions/shutdown.texi: Likewise.
24046         * doc/posix-functions/socket.texi: Likewise.
24048 2017-05-10  Bruno Haible  <bruno@clisp.org>
24050         poll: Fix link error on native Windows.
24051         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
24053 2017-05-10  Bruno Haible  <bruno@clisp.org>
24055         time: Fix missing initialization of HAVE_TIMEZONE_T.
24056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
24057         here...
24058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
24059         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
24060         gl_HEADER_SYS_TIME_H_DEFAULTS.
24061         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
24062         (configure.ac): Remove useless quoting.
24064 2017-05-10  Bruno Haible  <bruno@clisp.org>
24066         Implement a way to opt out from MSVC support, part 2.
24067         * modules/msvc-inval (Include): Document recommended idiom.
24068         * modules/msvc-nothrow (Include): Likewise.
24070         Implement a way to opt out from MSVC support.
24071         This is useful for Emacs.
24072         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
24073         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
24074         * lib/error.c: Likewise.
24075         * lib/fcntl.c: Likewise.
24076         * lib/flock.c: Likewise.
24077         * lib/fstat.c: Likewise.
24078         * lib/fsync.c: Likewise.
24079         * lib/ioctl.c: Likewise.
24080         * lib/isapipe.c: Likewise.
24081         * lib/lseek.c: Likewise.
24082         * lib/nonblocking.c: Likewise.
24083         * lib/poll.c: Likewise.
24084         * lib/select.c: Likewise.
24085         * lib/sockets.h: Likewise.
24086         * lib/sockets.c: Likewise.
24087         * lib/stdio-read.c: Likewise.
24088         * lib/stdio-write.c: Likewise.
24089         * lib/utimens.c: Likewise.
24090         * lib/w32sock.h: Likewise.
24091         * lib/w32spawn.h: Likewise.
24092         * tests/test-cloexec.c: Likewise.
24093         * tests/test-dup-safer.c: Likewise.
24094         * tests/test-dup2.c: Likewise.
24095         * tests/test-dup3.c: Likewise.
24096         * tests/test-fcntl.c: Likewise.
24097         * tests/test-pipe.c: Likewise.
24098         * tests/test-pipe2.c: Likewise.
24099         * lib/ftruncate.c: Likewise.
24100         (chsize_nothrow): Renamed from chsize.
24101         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
24102         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24103         * lib/close.c: Likewise.
24104         * lib/dup.c: Likewise.
24105         * lib/fclose.c: Likewise.
24106         * lib/raise.c: Likewise.
24107         * tests/test-fgetc.c: Likewise.
24108         * tests/test-fputc.c: Likewise.
24109         * tests/test-fread.c: Likewise.
24110         * tests/test-fwrite.c: Likewise.
24111         * lib/getdtablesize.c: Likewise.
24112         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
24113         * lib/isatty.c: Don't include msvc-inval.h if
24114         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24115         Include <io.h> as an alternative to msvc-nothrow.h.
24116         * lib/read.c: Likewise.
24117         * lib/write.c: Likewise.
24118         * lib/dup2.c: Likewise.
24119         (dup2_nothrow): New function.
24120         (ms_windows_dup2): Use it.
24121         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
24122         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
24123         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
24124         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
24125         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
24126         * m4/read.m4 (gl_FUNC_READ): Likewise.
24127         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
24128         * doc/windows-without-msvc.texi: New file.
24129         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
24130         section.
24132 2017-05-10  Bruno Haible  <bruno@clisp.org>
24134         wait-process: Adjust native Windows support.
24135         * lib/wait-process.c: Use the usual condition for recognizing a native
24136         Windows platform.
24138 2017-05-10  Bruno Haible  <bruno@clisp.org>
24140         doc: New chapter "Native Windows Support".
24141         * doc/gnulib.texi (Native Windows Support): New chapter.
24142         * doc/windows-libtool.texi: Small wording changes.
24143         * doc/windows-sockets.texi: Small wording and formatting changes.
24145 2017-05-10  Bruno Haible  <bruno@clisp.org>
24147         doc: Move section "Library version handling".
24148         * doc/gnulib.texi: Move section "Library version handling"
24149         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
24151 2017-05-10  Bruno Haible  <bruno@clisp.org>
24153         doc: Move section "Running self-tests under valgrind".
24154         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
24155         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
24157 2017-05-10  Bruno Haible  <bruno@clisp.org>
24159         doc: New chapter "Build Infrastructure Modules".
24160         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
24162 2017-05-10  Bruno Haible  <bruno@clisp.org>
24164         Prepare for reordering sections in the manual.
24165         * doc/gnulib.texi: Move several sections to separate files. Include
24166         these files.
24167         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
24168         * doc/obsolete.texi: Likewise.
24169         * doc/extra-tests.texi: Likewise.
24170         * doc/transversal.texi: Likewise.
24171         * doc/namespace.texi: Likewise.
24172         * doc/check-version.texi: Likewise.
24173         * doc/windows-sockets.texi: Likewise.
24174         * doc/windows-libtool.texi: Likewise.
24175         * doc/licenses-texi.texi: Likewise.
24176         * doc/build-automation.texi: Likewise.
24177         * doc/c-locale.texi: Likewise.
24179 2017-05-10  Bruno Haible  <bruno@clisp.org>
24181         Fix instructions how to update manual on www.gnu.org.
24182         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
24184 2017-05-09  Bruno Haible  <bruno@clisp.org>
24186         tzset: Expand comment about TZ problem on native Windows.
24187         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
24188         Paul Eggert.
24189         * lib/ctime.c (rpl_ctime): Likewise.
24190         * lib/localtime.c (rpl_localtime): Likewise.
24191         * lib/mktime.c (mktime): Likewise.
24192         * lib/strftime-fixes.c (rpl_strftime): Likewise.
24193         * lib/wcsftime.c (rpl_wcsftime): Likewise.
24195 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24197         intprops: don’t depend on ‘verify’
24198         Problem reported by Ævar Arnfjörð Bjarmason in:
24199         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
24200         * lib/intprops.h: Do not include verify.h, and move compile-time
24201         checks from here ...
24202         * tests/test-intprops.c (main): ... to here, if they’re not here
24203         already.  Check widths of other standard integer types.
24204         * modules/intprops (Depends-on): Remove ‘verify’.
24206 2017-05-07  Bruno Haible  <bruno@clisp.org>
24208         utimens: On native Windows, support 100ns resolution also if fd < 0.
24209         * lib/utime.in.h: Include <time.h>.
24210         (_gl_utimens_windows): New declaration.
24211         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
24212         (utime): Invoke it.
24213         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
24214         instead of utime.
24215         * modules/utime (Depends-on): Add 'time'.
24217 2017-05-07  Bruno Haible  <bruno@clisp.org>
24219         utimens: Improve error code on native Windows.
24220         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
24221         error code EACCES, not EINVAL.
24223 2017-05-07  Bruno Haible  <bruno@clisp.org>
24225         utime: Handle more Windows error codes.
24226         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
24227         Based on explanations by Billy O'Neal.
24229 2017-05-05  Bruno Haible  <bruno@clisp.org>
24231         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
24232         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
24233         union.
24234         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
24235         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
24236         value of cipher->IV.
24238 2017-05-05  Bruno Haible  <bruno@clisp.org>
24240         wctype-h-c++-tests: Update.
24241         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
24243 2017-05-05  Bruno Haible  <bruno@clisp.org>
24245         wchar-c++-tests: Update.
24246         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
24248 2017-05-05  Bruno Haible  <bruno@clisp.org>
24250         utime-h-c++-tests: New module.
24251         * tests/test-utime-h-c++.cc: New file.
24252         (utime): Declare, missing since 2017-04-30.
24253         * modules/utime-h-c++-tests: New file.
24255 2017-05-05  Bruno Haible  <bruno@clisp.org>
24257         unistd-c++-tests: Update.
24258         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
24259         (read): Declare, missing since 2011-04-15.
24260         (sethostname): Declare, missing since 2011-12-03.
24262 2017-05-05  Bruno Haible  <bruno@clisp.org>
24264         time-c++-tests: Update.
24265         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
24266         (localtime, gmtime): Declare, missing since 2017-04-30.
24267         (ctime): Declare, missing since 2017-04-30.
24268         (strftime): Declare, missing since 2017-04-30.
24269         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
24270         2015-07-24.
24272 2017-05-05  Bruno Haible  <bruno@clisp.org>
24274         sys_resource-c++-tests: New module.
24275         * tests/test-sys_resource-c++.cc: New file.
24276         (getrusage): Declare, missing since 2012-04-13.
24277         * modules/sys_resource-c++-tests: New file.
24279 2017-05-05  Bruno Haible  <bruno@clisp.org>
24281         strings-c++-tests: New module.
24282         * tests/test-strings-c++.cc: New file.
24283         (ffs): Declare, missing since 2011-07-12.
24284         * modules/strings-c++-tests: New file.
24286 2017-05-05  Bruno Haible  <bruno@clisp.org>
24288         string-c++-tests: Update.
24289         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
24290         (ffsll): Declare, missing since 2011-07-15.
24292 2017-05-05  Bruno Haible  <bruno@clisp.org>
24294         stdlib-c++-tests: Update.
24295         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
24296         2011-10-18.
24297         (ptsname_r): Declare, missing since 2011-11-07.
24298         (qsort_r): Declare, missing since 2014-08-29.
24299         (random, srandom, initstate, setstate): Declare, missing since
24300         2012-01-14.
24301         (secure_getenv): Declare, missing since 2013-02-05.
24303 2017-05-05  Bruno Haible  <bruno@clisp.org>
24305         stdio-c++-tests: Update.
24306         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
24308 2017-05-05  Bruno Haible  <bruno@clisp.org>
24310         signal-h-c++-tests: Update.
24311         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
24313 2017-05-05  Bruno Haible  <bruno@clisp.org>
24315         math-c++-tests: Update.
24316         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
24317         (fma): Declare, missing since 2011-10-17.
24318         (fmal): Declare, missing since 2011-10-17.
24320 2017-05-05  Bruno Haible  <bruno@clisp.org>
24322         locale-c++-tests: Update.
24323         * tests/test-locale-c++.cc (localeconv): Declare, missing since
24324         2012-03-25.
24326 2017-05-05  Bruno Haible  <bruno@clisp.org>
24328         inttypes-c++-tests: New module.
24329         * tests/test-inttypes-c++.cc: New file.
24330         (strtoimax): Declare, missing since 2012-01-05.
24331         (strtoumax): Declare, missing since 2012-01-05.
24332         * modules/inttypes-c++-tests: New file.
24334 2017-05-05  Bruno Haible  <bruno@clisp.org>
24336         dirent-c++-tests: Update.
24337         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24338         (rewinddir): Declare, missing since 2011-09-13.
24339         (dirfd): Declare, missing since 2010-03-08.
24341 2017-05-04  Bruno Haible  <bruno@clisp.org>
24343         argp: Fix mistake in 2017-04-23 commit.
24344         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24345         assume that strerror_r returns 'int', not 'char *'.
24347 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24349         argp: Fix typo.
24350         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24352 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24354         utimens: port to Emacs + MS-Windows
24355         Skip the new MS-Windows-specific code if Emacs.
24356         * lib/utimens.c [EMACS_CONFIGUATION]:
24357         Avoid new MS-Windows-specific code.
24358         (USE_SETFILETIME): New macro.
24359         (fdutimens): Use it.
24361 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24363         tzset: update doc for TZ problems on MS-Windows
24364         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24365         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24366         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24367         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24368         * doc/posix-functions/wcsftime.texi:
24369         Mention some issues with TZ under MS-Windows.
24371 2017-05-01  Bruno Haible  <bruno@clisp.org>
24373         copy-file: Fix build error on mingw.
24374         * modules/copy-file (Depends-on): Add 'close'.
24376 2017-05-01  Bruno Haible  <bruno@clisp.org>
24378         tzset: Work around TZ problem on native Windows.
24379         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24380         Windows, set REPLACE_TZSET to 1.
24381         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24382         invoke '_tzset' instead of 'tzset'.
24383         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24385         * modules/time_rz (Depends-on): Add tzset.
24386         * lib/time_rz.c (tzset): Remove fallback definition.
24387         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24389 2017-05-01  Bruno Haible  <bruno@clisp.org>
24391         mktime: Fix dependencies.
24392         * modules/mktime (Depends-on): Add 'time'.
24394 2017-05-01  Bruno Haible  <bruno@clisp.org>
24396         New module 'localtime-buffer', split off from module 'gettimeofday'.
24397         * lib/localtime-buffer.h: New file.
24398         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24399         * lib/time.in.h (tzset): New declaration.
24400         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24401         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24402         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24403         moved to lib/localtime-buffer.c or lib/tzset.c.
24404         * m4/localtime-buffer.m4: New file.
24405         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24406         HAVE_TZSET, REPLACE_TZSET.
24407         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24408         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24409         gl_LOCALTIME_BUFFER_NEEDED.
24410         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24411         since 2007-01-18.
24412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24413         tzset.
24414         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24415         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24416         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24417         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24418         * modules/localtime-buffer: New file.
24419         * modules/time (Depends-on): Remove 'gettimeofday'.
24420         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24421         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24422         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24423         (Files): Add lib/tzset.c.
24424         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24425         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24426         gl_TIME_MODULE_INDICATOR.
24427         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24429 2017-05-01  Bruno Haible  <bruno@clisp.org>
24431         copy-file: Preserve sub-second time stamps.
24432         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24433         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24434         transport the time stamps from the original file to the destination
24435         file.
24436         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24437         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24438         utime-h.
24440 2017-05-01  Bruno Haible  <bruno@clisp.org>
24442         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24443         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24444         also on MSVC.
24445         Reported by Eli Zaretskii <eliz@gnu.org>.
24447 2017-05-01  Bruno Haible  <bruno@clisp.org>
24449         wchar: Fix compilation error with the original mingw.org mingw.
24450         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24451         <stddef.h> instead.
24452         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24453         gl_WCTYPE_H.
24454         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24455         gl_TYPE_WINT_T_PREREQ instead.
24456         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24457         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24458         Reported by Eli Zaretskii <eliz@gnu.org>.
24460 2017-04-30  Bruno Haible  <bruno@clisp.org>
24462         utimecmp: Add support for native Windows.
24463         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24465 2017-04-30  Bruno Haible  <bruno@clisp.org>
24467         utimens: Add support for native Windows.
24468         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24469         (fdutimens): Provide a native Windows implementation, like utime.c with
24470         added tv_nsec support.
24471         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24472         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24474 2017-04-30  Bruno Haible  <bruno@clisp.org>
24476         wcsftime: New module.
24477         * lib/wchar.in.h (wcsftime): New declaration.
24478         * lib/wcsftime.c: New file.
24479         * m4/wcsftime.m4: New file.
24480         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24481         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24482         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24483         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24484         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24485         * modules/wcsftime: New file.
24486         * doc/posix-functions/wcsftime.texi: Mention the new module.
24488 2017-04-30  Bruno Haible  <bruno@clisp.org>
24490         strftime-fixes: New module.
24491         * lib/time.in.h (strftime): New declaration.
24492         * lib/strftime-fixes.c: New file.
24493         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24494         (gl_FUNC_STRFTIME): Remove macro.
24495         * m4/strftime-fixes.m4: New file.
24496         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24497         REPLACE_STRFTIME.
24498         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24499         REPLACE_STRFTIME.
24500         * modules/strftime-fixes: New file.
24501         * doc/posix-functions/strftime.texi: Mention the new module.
24503 2017-04-30  Bruno Haible  <bruno@clisp.org>
24505         mktime: Work around TZ problem on native Windows.
24506         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24507         from the native Windows workaround.
24508         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24509         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24510         'guessing no'.
24511         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24512         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24513         NEED_MKTIME_WINDOWS.
24514         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24515         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24516         NEED_MKTIME_INTERNAL.
24517         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24518         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24519         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24520         not REPLACE_MKTIME.
24521         * doc/posix-functions/mktime.texi: Mention the native Windows
24522         workaround.
24524 2017-04-30  Bruno Haible  <bruno@clisp.org>
24526         localtime: New module.
24527         * lib/time.in.h (localtime): Declare also if requested by module
24528         'localtime'.
24529         * lib/localtime.c: New file.
24530         * m4/localtime.m4: New file.
24531         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24532         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24533         * modules/localtime: New file.
24534         * doc/posix-functions/localtime.texi: Mention the new module.
24536 2017-04-30  Bruno Haible  <bruno@clisp.org>
24538         ctime: New module.
24539         * lib/time.in.h (ctime): New declaration.
24540         * lib/ctime.c: New file.
24541         * m4/ctime.m4: New file.
24542         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24543         REPLACE_CTIME.
24544         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24545         * modules/ctime: New file.
24546         * doc/posix-functions/ctime.texi: Mention the new module.
24548 2017-04-30  Bruno Haible  <bruno@clisp.org>
24550         gettimeofday: Provide higher resolution on native Windows.
24551         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24552         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24553         (initialize): Initialize it.
24554         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24555         'struct timeval'. Don't use _ftime().
24556         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24557         <sys/timeb.h> and _ftime.
24559 2017-04-30  Bruno Haible  <bruno@clisp.org>
24561         Document the problem with the Cygwin environment variable TZ.
24562         * doc/posix-functions/tzset.texi: Add note about TZ.
24563         * doc/posix-functions/ctime.texi: Likewise.
24564         * doc/posix-functions/localtime.texi: Likewise.
24565         * doc/posix-functions/mktime.texi: Likewise.
24566         * doc/posix-functions/strftime.texi: Likewise.
24567         * doc/posix-functions/wcsftime.texi: Likewise.
24568         * doc/pastposix-functions/ftime.texi: Likewise.
24570 2017-04-30  Bruno Haible  <bruno@clisp.org>
24572         utime-tests: New module.
24573         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24574         * tests/test-utimens-common.h: Include <sys/stat.h>.
24575         * modules/utime-tests: New file.
24577 2017-04-29  Bruno Haible  <bruno@clisp.org>
24579         utime: New module.
24580         * lib/utime.in.h: Add comment for snippets.
24581         (utime): New declaration.
24582         * lib/utime.c: New file.
24583         * m4/utime.m4: New file.
24584         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24585         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24586         REPLACE_UTIME.
24587         * modules/utime-h (Depends-on): Add snippets.
24588         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24589         Insert snippets.
24590         * modules/utime: New file.
24591         * doc/posix-functions/utime.texi: Mention the new module.
24593 2017-04-29  Bruno Haible  <bruno@clisp.org>
24595         utime-h: Modernize handling of 'struct utimbuf'.
24596         * lib/utime.in.h: Include next <utime.h> if it exists.
24597         (utimbuf): Define to _utimbuf on native Windows.
24598         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24599         Set UTIME_H on native Windows.
24600         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24601         * modules/utime-h (Depends-on): Add include_next.
24602         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24603         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24605         * lib/utimens.c (utimbuf): Remove fallback definition.
24606         * m4/utimens.m4 (gl_UTIMENS): Don't require
24607         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24608         * m4/utimbuf.m4: Remove file.
24609         * modules/utimens (Files): Remove m4/utimbuf.m4.
24611 2017-04-29  Bruno Haible  <bruno@clisp.org>
24613         Make use of module 'utime-h'.
24614         * modules/copy-file (Depends-on): Add utime-h.
24615         * lib/copy-file.c: Assume that <utime.h> exists.
24616         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24618         * modules/utimens (Depends-on): Add utime-h.
24619         * lib/utimens.c: Assume that <utime.h> exists.
24621 2017-04-29  Bruno Haible  <bruno@clisp.org>
24623         utime-h: New module.
24624         * m4/utime_h.m4: New file.
24625         * lib/utime.in.h: New file.
24626         * modules/utime-h: New file.
24627         * doc/posix-headers/utime.texi: Mention the new module.
24629         * tests/test-utime-h.c: New file.
24630         * modules/utime-h-tests: New file.
24632 2017-04-30  Bruno Haible  <bruno@clisp.org>
24634         Fix a few typos.
24635         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24636         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24637         * doc/posix-functions/fstat.texi: Fix a plural typo.
24638         * doc/posix-functions/stat.texi: Likewise.
24639         * m4/include_next.m4: Update comments.
24641 2017-04-29  Bruno Haible  <bruno@clisp.org>
24643         error: Fix mistake in 2017-04-23 commit.
24644         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24645         assume that strerror_r returns 'int', not 'char *'.
24647 2017-04-29  Bruno Haible  <bruno@clisp.org>
24649         stat: Fix time_t values and other problems on native Windows platforms.
24650         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24651         implementations of stat().
24652         * lib/stat.c: Include filename.h instead of dosname.h. Include
24653         malloca.h, stat-w32.h.
24654         (is_unc_root): New function.
24655         (rpl_stat): New implementation for native Windows. Remove
24656         REPLACE_FUNC_STAT_DIR code.
24657         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24658         Don't define REPLACE_FUNC_STAT_DIR.
24659         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24660         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24661         (Depends-on): Remove dosname. Add filename, malloca.
24662         (configure.ac): Also compile lib/stat-w32.c.
24664 2017-04-29  Bruno Haible  <bruno@clisp.org>
24666         fstat: Fix time_t values on native Windows platforms.
24667         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24668         * lib/stat-w32.h: New file.
24669         * lib/stat-w32.c: New file.
24670         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24671         stat-w32.h instead.
24672         (fstat_nothrow): Remove function.
24673         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24674         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24675         always.
24676         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24677         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24678         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24679         (configure.ac): Also compile lib/stat-w32.c.
24681 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24683         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24684         Problem reported by Assaf Gordon and Gavin Smith in:
24685         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24686         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24687         #define this, too.
24689 2017-04-29  Bruno Haible  <bruno@clisp.org>
24691         strerror_r-posix: Fixes for MSVC 14.
24692         * lib/strerror_r.c: Include <stdarg.h>.
24693         (strerror_r): Provide error messages for errno values 100...140.
24694         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24696 2017-04-28  Bruno Haible  <bruno@clisp.org>
24698         noreturn: New module.
24699         * lib/noreturn.h: New file.
24700         * modules/noreturn: New file.
24701         * tests/test-noreturn.c: New file.
24702         * modules/noreturn-tests: New file.
24703         * tests/test-noreturn-c++.cc: New file.
24704         * modules/noreturn-c++-tests: New file.
24706 2017-04-27  Bruno Haible  <bruno@clisp.org>
24708         wctype-h: Fix compilation error with the original mingw.org mingw.
24709         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24710         HAVE_CRTDEFS_H.
24711         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24712         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24713         <stddef.h> instead.
24714         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24716 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24718         nap.h: Fix compilation on non windows platforms
24719         * tests/nap.h: Move misplaced endif.
24721 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24722         and Paul Eggert  <eggert@cs.ucla.edu>
24724         time_rz: fix heap buffer overflow vulnerability
24725         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24726         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24727         whether there is enough buffer space available, thus avoiding
24728         the problematic promotion of signed to unsigned causing an invalid
24729         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24730         the start of the buffer.
24731         * tests/test-parse-datetime.c (main): Add a test case written by
24732         Paul Eggert, which overwrites enough of the heap so that
24733         standard glibc will fail with "free(): invalid pointer"
24734         without the patch applied.
24736 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24738         xalloc: add missing integer overflow check
24739         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24740         overflow when P is null.
24742 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24744         parse-datetime: make it standalone
24745         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24746         (_GL_ATTRIBUTE_FORMAT): New macro.
24747         These are needed to get './gnulib-tool --test parse-datetime' to work.
24749 2017-04-23  Bruno Haible  <bruno@clisp.org>
24751         nap.h: Port to native Windows.
24752         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24753         use nap_fd instead. On native Windows, close and reopen nap_fd.
24754         (nap_works): Don't compare the ctimes, because on native Windows, these
24755         are the creation times.
24756         (nap): Update.
24758 2017-04-23  Bruno Haible  <bruno@clisp.org>
24760         nap.h: Fix logic.
24761         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24763 2017-04-23  Bruno Haible  <bruno@clisp.org>
24765         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24766         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24767         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24768         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24769         * lib/argp-help.c (__argp_failure): Likewise.
24771 2017-04-23  Bruno Haible  <bruno@clisp.org>
24773         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24774         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24775         * lib/strerror_r.c: Likewise.
24777 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24779         Target a C99 subset, not a C89 subset
24780         For many years Gnulib has targeted C89 and has resisted using C99
24781         features, as some Gnulib-using programs still wanted to target
24782         C89.  As this no longer seems to be the case, relax the porting
24783         requirements to allow some C99 features.  This is merely a change
24784         to the documentation, to give other Gnulib developers a chance to
24785         weigh in on the topic.
24786         * doc/extern-inline.texi (extern inline):
24787         * doc/gnulib-readme.texi (Portability guidelines):
24788         * doc/gnulib-tool.texi (Initial import):
24789         * doc/gnulib.texi (Header files):
24790         Modernize to talk about C99 and C11 instead of C89 and C99.
24791         * doc/gnulib-readme.texi (Portability guidelines):
24792         Now a section, not merely a subsection, so that it
24793         can be split up.  Modernize a bit.
24794         (C language versions, C99 features assumed)
24795         (C99 features avoided):
24796         New sections.
24798 2017-04-23  Bruno Haible  <bruno@clisp.org>
24800         doc: New section "Modules that modify the way other modules work".
24801         * doc/gnulib.texi (Modules that modify the way other modules work): New
24802         section.
24804 2017-04-23  Bruno Haible  <bruno@clisp.org>
24806         stat-time: Update comments.
24807         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24808         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24809         Windows.
24811 2017-04-01  Bruno Haible  <bruno@clisp.org>
24813         glob: Fix more memory leaks.
24814         * lib/glob.c (glob): Free allocated memory before returning.
24815         Reported by Coverity via Tim Rühsen.
24817 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24819         poll: improve fast check for out-of-range NFD
24820         * lib/poll.c: Do not include intprops.h.
24821         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24822         * modules/poll (Depends-on): Remove intprops.
24824         ftoastr: cite a newer paper
24825         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24826         instead of Loitsch 2010.
24828 2017-04-22  Bruno Haible  <bruno@clisp.org>
24830         poll: Enable argument check also in the Windows implementation.
24831         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24832         Reported by Paul Eggert.
24834 2017-04-22  Bruno Haible  <bruno@clisp.org>
24836         getlogin_r: Work around bug in Mac OS X 10.12.
24837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24838         bug.
24839         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24840         given size minus 1, call getlogin_r a second time, on a larger buffer.
24841         * modules/getlogin_r (Depends-on): Add malloca.
24842         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24844 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24846         parse-datetime: fix %z and prefer signed int
24847         %z problem reported by Pádraig Brady in:
24848         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24849         While fixing it, I decided to prefer signed ints to size_t, as
24850         they are less error-prone (e.g., ubsan catches overflow).
24851         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24852         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24853         counts, since signed integers make for better debugging.
24854         (date): Don’t assume %z works in printf formats.
24855         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24856         sizes of buffers known to be small, e.g., because we’re using snprintf.
24857         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24859 2017-04-22  Bruno Haible  <bruno@clisp.org>
24861         *printf: Work around rounding bug on Mac OS X.
24862         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24863         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24864         Mac OS X and FreeBSD.
24865         * doc/glibc-functions/*printf.texi: Likewise.
24867 2017-04-22  Bruno Haible  <bruno@clisp.org>
24869         vasnprintf tests: Avoid warnings.
24870         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24871         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24872         test.
24874 2017-04-22  Bruno Haible  <bruno@clisp.org>
24876         sys_file tests: Avoid warning.
24877         * tests/test-sys_file.c (main): Add a default clause to the switch
24878         statement.
24880 2017-04-22  Bruno Haible  <bruno@clisp.org>
24882         sethostname: Update doc.
24883         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24884         Mac OS X.
24886 2017-04-22  Bruno Haible  <bruno@clisp.org>
24888         quotearg tests: Avoid warnings.
24889         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24890         false.
24892 2017-04-22  Bruno Haible  <bruno@clisp.org>
24894         poll: Enable argument check.
24895         * lib/poll.c: Include intprops.h.
24896         (poll): Check value of nfd correctly.
24897         * modules/poll (Depends-on): Add intprops.
24899 2017-04-22  Bruno Haible  <bruno@clisp.org>
24901         get-rusage-data: Avoid warnings on Mac OS X.
24902         * lib/get-rusage-data.c: On Mac OS X, don't define
24903         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24904         (get_rusage_data) [Mac OS X]: Just return 0.
24906 2017-04-22  Bruno Haible  <bruno@clisp.org>
24908         xbinary-io: Fix build error.
24909         * modules/xbinary-io (Depends-on): Add gettext-h.
24910         * lib/xbinary-io.c: Include gettext.h and define _().
24911         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24912         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24914 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24916         parse-datetime: overflow and debug cleanups
24917         This long patch was triggered by this bug report from Ruediger Meier:
24918         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24919         I fixed the bug he noted, then found some others nearby, and then
24920         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24921         up some of the code to follow GNU standards while I was at it.
24922         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24923         use c_isdigit.
24924         (EPOCH_YEAR): Remove; unused.
24925         (TM_YEAR_BASE): Now an enum rather than a macro.
24926         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24927         time zone offset, since timezones now are in terms of seconds and
24928         not minutes.
24929         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24930         appropriate.  Verify that intmax_t is wide enough.
24931         (time_overflow, time_zone_str): New functions, used to deal
24932         more reliably with overflow.
24933         (dbg_printf): Add printf attribute, to help catch integer width errors.
24934         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24935         (%union, to_hour, yylex, parse_datetime2):
24936         Use intmax_t instead of long int and/or long_time_t.
24937         All uses changed.
24938         (DBGBUFSIZE): Move earlier.
24939         (relative_time, set_hhmmss, parser_control):
24940         Just use int for nanoseconds and for time zones; that’s wide enough.
24941         (parser_control): Use bool for members like year_seen that can
24942         be booleans instead of counters.  All uses changed.
24943         Remove debug_default_input_timezone; no longer needed.
24944         All uses removed.
24945         (apply_relative_time): Return a bool overflow flag.
24946         All uses changed to check for overflow.
24947         (apply_relative_time, zone, date, relunit, relunit_snumber)
24948         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24949         Check for integer overflow portably.
24950         (str_days): Use just int for N, as it’s wide enough.
24951         Prefer 2D char arrays to arrays of char * when it looks like
24952         2D is a win on typical platforms.
24953         Prefer snprintf to strncpy/strncat, for simplicity;
24954         all buffers are smaller than INT_MAX so this is safe.
24955         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24956         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24957         as this is not true on x32.  Output "." before any nanoseconds.
24958         (debug_print_current_time, parse_datetime2):
24959         Output local zones using a more-consistent format.
24960         (debug_print_current_time, date, parse_datetime2):
24961         (main) [TEST]:
24962         Don’t assume time_t is the same width as long.
24963         (print_rel_part): New function, replacing ...
24964         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24965         (debug_print_relative_time): Use bool for boolean.
24966         (local_zone): dsts_seen now counts only tDST instances.
24967         (date): Fix printf of size_t to use %z.  Do not assume numeric
24968         tokens have negative values merely because the context suggests
24969         a syntax with "-" separating tokens.
24970         (time_zone_hhmm): Return bool success indicator, which checks for
24971         overflow.  Store result into PC->time_zone instead.  All callers
24972         changed.
24973         (tm_year_str): New function.  Return a bool success indicator and
24974         store the result into a buffer.  All callers changed.  Output the
24975         numerically correct string even if adding 1900 to the year would
24976         overflow.
24977         (to_tm_year): New function, replacing the old to_year.  All
24978         callers changed.
24979         (tm_diff): Sync with glibc.
24980         (lookup_word): Use to_uchar instead of doing it by hand.
24981         (TZBUFSIZE): Now local to the only function that needs it.
24982         (debug_strfdatetime): Simplify now that time zones are int seconds.
24983         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24984         (get_effective_timezone): Remove.  All uses removed.
24985         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24986         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24987         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24988         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24989         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24990         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24991         * modules/parse-datetime (Depends-on): Add inttypes.
24993 2017-04-21  Bruno Haible  <bruno@clisp.org>
24995         gettext-h: Avoid -Wundef warning.
24996         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24997         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24998         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
25000 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
25002         error: Avoid "function declaration isn't a prototype" warning.
25003         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
25005 2017-04-21  Bruno Haible  <bruno@clisp.org>
25007         vasnprintf: Fix for MSVC 14.
25008         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
25009         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
25010         of !HAVE_SNPRINTF_RETVAL_C99.
25012 2017-04-21  Bruno Haible  <bruno@clisp.org>
25014         mbrtowc tests: Fix test failures on MSVC 14.
25015         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
25016         behaviour for invalid input.
25018 2017-04-21  Bruno Haible  <bruno@clisp.org>
25020         mbsinit: Fix for MSVC 14.
25021         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
25022         implementation that is in sync with mbrtowc.c. On other platforms, use
25023         an adequate ad-hoc implementation.
25025 2017-04-21  Bruno Haible  <bruno@clisp.org>
25027         Fix test-mbrtowc5.sh failure on native Windows.
25028         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
25029         "C".
25031 2017-04-21  Bruno Haible  <bruno@clisp.org>
25033         Avoid accidental use of native Windows APIs on Cygwin.
25034         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
25035         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
25036         * lib/localename.c (WINDOWS_NATIVE): Likewise.
25038 2017-04-20  Bruno Haible  <bruno@clisp.org>
25040         Remove red warnings from the generated MODULES.html.
25041         * modules/fcntl (Description): Disambiguate function references.
25042         * modules/getcwd-lgpl (Description): Likewise.
25043         * modules/hostent (Description): Likewise.
25044         * modules/servent (Description): Likewise.
25045         * modules/tempname (Description): Likewise.
25047 2017-04-20  Bruno Haible  <bruno@clisp.org>
25049         verify tests: Fix spurious failure with parallel make.
25050         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
25051         EXTRA_PROGRAMS.
25052         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
25053         * tests/test-verify-try.c: New file.
25054         * modules/verify-tests (Files): Add it.
25055         (EXTRA_PROGRAMS): Add test-verify-try.
25056         (MOSTLYCLEANFILES): Update accordingly.
25057         Reported by Adam James Stewart <ajstewart@anl.gov>.
25059 2017-04-18  Bruno Haible  <bruno@clisp.org>
25061         vma-iter: Fix compilation error on Solaris 7.
25062         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
25063         like on IRIX, OSF/1.
25064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25066 2017-04-18  Bruno Haible  <bruno@clisp.org>
25068         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
25069         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
25070         included.
25071         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
25072         <sys/procfs.h>.
25073         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
25074         <sys/procfs.h> cannot be included.
25075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25077 2017-04-18  Bruno Haible  <bruno@clisp.org>
25079         getopt-gnu: Add comments.
25080         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
25081         * modules/getopt-gnu (configure.ac): Likewise.
25083 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
25085         regex: port better to Solaris 10
25086         Solaris 10 <locale.h> includes <libintl.h>, which #defines
25087         gettext, and this causes a double #define.
25088         Problem reported by Gavin Smith in:
25089         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
25090         * lib/regex_internal.h (gettext): #undef before #defining.
25092 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25094         intprops: improve comments
25095         * lib/intprops.h: Improve and shorten commentary.
25096         For the record, if we ever run into a pedantic compiler that
25097         behaves differently from GCC when converting an out-of-range value
25098         to a signed integer, we can work around the problem with something
25099         like the following code, where UCT is the signed counterpart of T
25100         (UCT is sometimes narrower than UT) and all callers are changed
25101         accordingly:
25102         #if __SUNPRO_C <= 0x5120
25103         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25104            ((t) ((ut) (a) op (ut) (b)))
25105         #else
25106         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25107            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
25108             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
25109                + TYPE_MINIMUM (t)) \
25110             : (t) (uct) ((ut) (a) op (ut) (b)))
25111         #endif
25113 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25115         intprops: try to avoid tickling similar bugs
25116         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
25117         needs to be the same width as T; it can be wider.
25118         Change callers so that UT is at least as wide as unsigned int,
25119         as I suspect that this is less likely to run into compiler bugs.
25121         intprops: port to Oracle Studio 12.3 x86
25122         Problem reported by Gavin Smith in:
25123         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
25124         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25125         Convert unsigned to signed via the usual rather than the standard way,
25126         to avoid a compiler bug in Oracle Studio 12.3 x86.
25128 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
25130         getopt: prefer - to _ in new file names
25131         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
25132         * lib/getopt-core.h: Rename from lib/getopt_core.h.
25133         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
25134         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
25135         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
25136         All uses changed.
25138         getopt: port recent getopt changes to macOS
25139         Problem reported by Harald Maier (Bug#26398).
25140         The macOS C compiler uses __nonnull for its own purposes and that
25141         clashes with glibc's __nonnull.
25142         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
25143         * lib/getopt_cdefs.in.h (__nonnull): Remove.
25144         * lib/getopt_core.h (getopt):
25145         * lib/getopt_ext.h (getopt_long, getopt_long_only):
25146         Use _GL_ARG_NONNULL, not __nonnull.
25147         * lib/unistd.in.h: Move snippet hooks to before where the getopt
25148         .h files are included, so that _GL_ARG_NONNULL is defined in time.
25149         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
25150         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
25152 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
25154         getopt-gnu: omit some duplicate code
25155         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
25156         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
25157         gnulib-tool already does this.
25158         * modules/getopt-gnu (configure.ac): Omit code duplicated from
25159         getopt-posix, which we depend on.
25161         getopt-posix: use angle-bracket include
25162         * lib/getopt1.c: Include <config.h>, not "config.h".
25164 2017-04-06  Zack Weinberg  <zackw@panix.com>
25166         getopt: annotate files with relationship to glibc
25168         As the final act in this patchset, adjust the message at the top of
25169         each file to indicate which files are synced with glibc.  (This has
25170         already been done for most of the headers.)
25172         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
25173         Mention in top-of-file boilerplate that these files are shared
25174         between glibc and gnulib.
25177         getopt: split up getopt.in.h and eliminate __need_getopt
25179         Over in glibc, all of the __need macros are being phased out in favor
25180         of small headers that declare only the necessary components, as this
25181         is much simpler and less prone to bugs.  As getopt is shared with
25182         glibc, gnulib needs to do the same for __need_getopt.
25184         __need_getopt is misnamed; what it really means is "we want only the
25185         getopt features specified in POSIX, not the GNU extensions".  glibc
25186         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
25187         these files can be shared verbatim with gnulib.  The portability
25188         wrapper, on the other hand, they have renounced altogether; glibc's
25189         getopt.h will no longer be shared with gnulib at all.  In exchange,
25190         certain glibc-specific quirks (having to do with __posix_getopt) no
25191         longer need appear in gnulib's headers at all.
25193         This patch merges getopt_core.h and getopt_ext.h from glibc, and
25194         splits up the current gnulib-side portability wrapper into three
25195         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
25196         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
25197         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
25198         unistd.in.h just use them.  All new files are clearly marked with
25199         whether they are shared with glibc.
25201         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
25202         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
25203         with glibc, and ...
25204         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
25205         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
25206         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
25207         instead of defining __need_getopt and including the full getopt.h.
25209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
25210         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
25211         * modules/getopt-posix (Files): Add new headers and sort list.
25212         (Depends-on): No longer need snippet/arg-nonnull.
25213         (Makefile.am): Generate getopt_cdefs.h.
25216         getopt: better handling of ambiguous options
25218         glibc's getopt uses alloca to construct a linked list of possibilities
25219         for an "ambiguous" long option.  In gnulib, malloc should be used
25220         instead.  Providing for both cases complicates things a fair bit.
25222         This patch rewrites ambiguous-option handling to use a boolean vector
25223         instead of a linked list.  There is then only one allocation that
25224         might need freeing; in glibc it can honor __libc_use_alloca as usual,
25225         and in gnulib we define __libc_use_alloca to always be false, so we
25226         don't need ifdefs in the middle of the function.  This should also be
25227         slightly more efficient in the normal case of long options being fully
25228         spelled out -- I think most people aren't even aware they _can_
25229         sometimes abbreviate long options.
25231         One interesting consequence is that the list of possibilities is now
25232         printed in exactly the order they appear in the list of long options,
25233         instead of the first possibility being shuffled to the end.
25235         (The patch looks bigger than it really is because there's a fair bit
25236         of reindentation and code rearrangement.)
25238         * lib/getopt.c: When used standalone, define __libc_use_alloca
25239         as always false and alloca to abort if called.
25240         (process_long_option): Rewrite handling of ambiguous long options
25241         to use a single boolean vector, not a linked list; use
25242         __libc_use_alloca to decide whether to allocate this using alloca.
25245         getopt: refactor long-option handling
25247         There were two copies of the bulk of the code to handle long options.
25248         Now there is only one.
25250         This change temporarily removes the logic to avoid using alloca when
25251         standalone; the next patch in the series will restore it.
25253         * lib/getopt.c (process_long_option): New function split out
25254         from _getopt_internal_r.
25255         (_getopt_internal_r): Replace both copies of the long-option
25256         processing code with calls to process_long_option.
25259         getopt: tidy up _getopt_initialize a bit
25261         _getopt_data.__posixly_correct is completely redundant to
25262         _getopt_data.__ordering, and some work that logically belongs in
25263         _getopt_initialize was being done by _getopt_internal_r, making the
25264         code harder to understand.
25266         As a side effect, getenv will no longer be called if the first
25267         character of the options string is '+' or '-', which is probably a
25268         Good Thing.  (Perhaps we should have a flag character that
25269         specifically asks for the permutation behavior?)
25271         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
25272         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
25273         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
25276         getopt: merge from glibc: repetition reduction
25278         The definitions of the entry point functions 'getopt' and
25279         '__posix_getopt' can be made substantially less repetitive with a
25280         helper macro.
25282         While I was merging the const-correctness changes from gnulib into
25283         glibc I noticed there are still some unnecessary casts in
25284         _getopt_internal_r.
25286         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
25287         a macro.  Consistently cast 'argv' to 'char **' when calling
25288         _getopt_internal.
25289         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
25292         getopt: clean up error reporting
25294         getopt can print a whole bunch of error messages, and when used
25295         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
25296         cancellation point and getopt isn't, and also applying fprintf to a
25297         stream in wide-character mode is not allowed.  So every single error
25298         reporting case has an #ifdef _LIBC block in which it calls internal
25299         libc functions instead.  The counterpart patch series in glibc makes
25300         it possible to simplify all of that down to a set of #defines at the
25301         top of the file; core code is written as if it is safe to just call
25302         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
25303         call any *other* stdio functions.)
25305         * lib/getopt.c: When _LIBC is defined, define fprintf to
25306         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
25307         to _IO_funlockfile.  When neither _LIBC nor
25308         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
25309         funlockfile as no-ops.
25310         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
25311         standalone error-printing code can now be used for libc as well.
25312         Add an flockfile/funlockfile pair around one case where the error
25313         message is printed in several chunks.  Don't use fputc.
25316         getopt: fix fencepost error in ambiguous-W-option handling
25318         getopt_long contains an undocumented (AFAICT) feature in which, if you
25319         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
25320         treated as equivalent to '--foo'.  This is implemented with a partial
25321         second copy of the code for handling long options, and that code
25322         increments optind one too many times when recovering from an ambiguous
25323         abbreviated option, which can cause the main loop to walk past the end
25324         of argv and crash.
25326         I discovered this while writing a test case that tries to exercise all
25327         of getopt's error reporting paths; I wouldn't be surprised to learn
25328         that this feature is never used by real applications.
25330         * lib/getopt.c (_getopt_internal_r): Don't increment
25331         d->optind a second time when reporting ambiguous -W options.
25334         getopt: clean up getopt.c and getopt1.c file headers
25336         In getopt.c, there is no need to include wchar.h at all, and it is
25337         safe nowadays to assume that stdlib.h does declare getenv (several
25338         other gnulib modules make this assumption).
25340         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25341         by using "" inclusions consistently, and there is no actual need to
25342         include stdlib.h (except in the #ifdef TEST block, where it should be
25343         unconditional), nor to provide a backup definition of NULL at all.
25345         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25346         Move inclusion of stdlib.h to #ifdef TEST block and make
25347         unconditional.  Do not define NULL.
25348         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25349         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25350         * modules/getopt-gnu, modules/getopt-posix: Don't call
25351         gl_PREREQ_GETENV.
25354         getopt: harmonize comments with glibc
25356         The comments explaining how the behavior of 'getopt' varies depending
25357         on whether it's the standalone version and whether there are special
25358         characters at the beginning of the options string were inconsistent
25359         between gnulib and glibc, and also out of sync with the code.
25361         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25364         getopt: remove USE_NONOPTION_FLAGS
25366         getopt includes code to parse an environment variable named
25367         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25368         in decimal); but all of it has been #ifdefed out since 2001, with no
25369         official way to turn it back on.
25371         According to commentary in glibc's config.h.in, bash version 2.0
25372         set this environment variable to indicate argv elements that were
25373         the result of glob expansion and therefore should not be treated
25374         as options, but the feature was "disabled later" because "it
25375         caused problems".  According to bash's CHANGES file, "later" was
25376         release 2.01; it gives no more detail about what the problems
25377         were.
25379         Version 2.0 of bash was released on the last day of 1996, and version
25380         2.01 in June of 1997.  Twenty years later, I think it is safe to
25381         assume that this environment variable isn't coming back.
25383         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25384         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25385         __libc_argc and __libc_argv externs, which were only used by
25386         #ifdef USE_NONOPTION_FLAGS blocks.
25389         getopt: tabify, in preparation for merge with glibc
25391         glibc sticks to the GNU default of indenting with a mix of
25392         8-column tabs and spaces; make the gnulib copy match.
25394         getopt.h is not included because it is *not* going to be merged in its
25395         present form.
25397         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25399 2017-04-02  Bruno Haible  <bruno@clisp.org>
25401         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25402         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25403         like it was done in modules/relocatable-lib on 2011-05-21 and in
25404         modules/relocatable-prog on 2011-08-15.
25405         Reported by Reuben Thomas <rrt@sc3d.org>.
25407 2017-03-31  Bruno Haible  <bruno@clisp.org>
25409         glob: Fix invalid free() call.
25410         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25411         static storage to home_dir.
25412         Reported by Coverity via Tim Rühsen.
25414 2017-03-31  Bruno Haible  <bruno@clisp.org>
25416         glob: Fix memory leaks.
25417         * lib/glob.c (glob): Free allocated memory before returning.
25418         Reported by Coverity via Tim Rühsen.
25420 2017-03-31  Bruno Haible  <bruno@clisp.org>
25422         md5, sha1, sha256, sha512: Add comments regarding correctness.
25423         * lib/md5.h (buflen): Add comments regarding range.
25424         * lib/sha1.h (buflen): Likewise.
25425         * lib/sha256.h (buflen): Likewise.
25426         * lib/sha512.h (buflen): Likewise.
25427         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25428         * lib/sha1.c (sha1_process_bytes): Likewise.
25429         * lib/sha256.c (sha256_process_bytes): Likewise.
25430         * lib/sha512.c (sha512_process_bytes): Likewise.
25431         Reported by Coverity via Tim Rühsen.
25433 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25435         getopt: merge from glibc
25436         This does not change anything substantial; it merely simplifies
25437         hypothetical merges back to glibc.
25438         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25439         Change copyright notice to match what is in glibc.
25440         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25441         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25442         __open_memstream rather than open_memstream and __glibc_likely
25443         instead of __builtin_expect.
25444         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25446 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25448         dfa: make [0-9] faster in non-C locales
25449         Problem reported by John P. Linderman (Bug#26193).
25450         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25451         If both ends of the range are ASCII digits, do not worry about
25452         multi-character collating sequences and the like.  Be consistent
25453         about using isalpha as a precondition for setbit_case_fold_c.
25455 2017-03-19  Bruno Haible  <bruno@clisp.org>
25457         lock: Fix compilation error with HP-UX IA64 cc.
25458         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25459         weak on non-glibc platforms.
25461 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25463         stdalign: tweak version# and test for HP-UX IA64
25464         Problems reported by Bruno Haible in:
25465         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25466         * lib/stdalign.in.h (_Alignas):
25467         * m4/stdalign.m4 (gl_STDALIGN_H):
25468         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25469         used octal (as that is how they document it), but it is decimal in
25470         practice now and the ancient implementations no longer matter.
25471         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25473 2017-03-19  Bruno Haible  <bruno@clisp.org>
25475         vma-iter: Add support for Solaris.
25476         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25477         approach.
25478         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25479         * lib/get-rusage-as.c: Update comment about Solaris.
25480         * lib/get-rusage-data.c: Likewise.
25482 2017-03-19  Bruno Haible  <bruno@clisp.org>
25484         vma-iter: Prefer HP-UX specific API on HP-UX.
25485         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25486         * lib/vma-iter.h: Update.
25487         Just in case HP-UX ever implements mquery().
25489 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25491         stdalign: restore previous behavior for HP-UX IA64
25492         See Bruno Haible's email in:
25493         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25494         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25495         * lib/stdalign.in.h (_Alignas):
25496         Assume the '061200' applies to Itanium, not to PA-RISC.
25497         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25499 2017-03-17  Bruno Haible  <bruno@clisp.org>
25501         stat-time, timespec: Support use of the header files in C++ mode.
25502         * lib/stat-time.h: Add "C" linkage declaration.
25503         * lib/timespec.h: Likewise.
25505 2017-03-17  Bruno Haible  <bruno@clisp.org>
25507         stdalign: Make it work with HP-UX cc.
25508         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25509         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25510         for HP-UX cc.
25512 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25514         flexmember: try to detect HP-UX 11.31 cc bug
25515         Problem reported by Bruno Haible in:
25516         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25517         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25518         Attempt to detect bug in HP-UX 11.31 cc.
25520 2017-03-16  Bruno Haible  <bruno@clisp.org>
25522         stdint: Fix test compilation failure with HP-UX 11 cc.
25523         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25524         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25525         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25526         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25528 2017-03-14  Bruno Haible  <bruno@clisp.org>
25530         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25531         * gnulib-tool (func_modules_transitive_closure_separately): If
25532         testsrelated_modules ends up with no "real" modules, aside from
25533         modules with applicability 'all', set it to empty.
25535 2017-03-14  Bruno Haible  <bruno@clisp.org>
25537         vma-iter: Add support for HP-UX.
25538         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25539         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25540         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25541         * lib/get-rusage-as.c: Update comment about HP-UX.
25542         * lib/get-rusage-data.c: Likewise.
25543         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25545 2017-03-14  Bruno Haible  <bruno@clisp.org>
25547         limits-h: Make it work with HP-UX cc.
25548         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25549         defined.
25551 2017-03-14  Bruno Haible  <bruno@clisp.org>
25553         Fix test failures on DragonFlyBSD.
25554         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25555         * tests/test-select.h (test_bad_fd): Likewise.
25556         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25558 2017-03-14  Bruno Haible  <bruno@clisp.org>
25560         freadahead: Silence warning on DragonFlyBSD.
25561         * lib/freadahead.c (__sreadahead): Declare ourselves.
25563 2017-03-14  Bruno Haible  <bruno@clisp.org>
25565         vma-iter: Add comment about AIX.
25566         * lib/vma-iter.c: Add comment about why this module is not implemented
25567         on AIX.
25569 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25571         snippets: move unadjusted snippet sources to lib
25572         Problem reported by Michal Privoznik in:
25573         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25574         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25575         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25576         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25577         * lib/unused-parameter.h: Rename from
25578         build-aux/snippet/unused-parameter.h.
25579         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25580         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25581         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25582         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25583         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25584         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25585         Adjust to file renamings.
25587 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25589         gnulib-tool: don't automatically distribute files from top/
25590         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25591         not distribute top/README-release by default, don't distribute files
25592         from top/ unconditionally.
25593         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25594         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25596 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25598         gnulib-tool: fix typo in comment output
25599         * gnulib-tool (func_import): Fix typo with previous change.
25601         snippets: work around GNU Make 3.82 VPATH
25602         When using 'gnulib-tool --gnu-make' on Emacs, and building
25603         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25604         an out-of-source (VPATH) build failed because the sans-copyright
25605         snippet file was not built before the file that used it.
25606         Presumably this is some sort of VPATH thing.  Work around the
25607         problem by using the original snippet, i.e., don’t bother to
25608         remove its copyright notice.
25609         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25610         Don’t assume Automake in comments.  Omit long-incorrect comment.
25611         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25612         (MOSTLYCLEANFILES):
25613         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25614         (MOSTLYCLEANFILES):
25615         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25616         (MOSTLYCLEANFILES):
25617         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25618         (MOSTLYCLEANFILES):
25619         Remove.
25620         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25621         * modules/snippet/c++defs (CXXDEFS_H):
25622         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25623         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25624         Don’t bother to remove the copyright notice; just use the
25625         original snippet as-is.
25627 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25629         gnulib-tool: minor --gnu-make fixups
25630         * gnulib-tool (func_emit_lib_Makefile_am):
25631         Remove useless code that was a blind alley during implementation.
25632         Problem reported by Thien-Thi Nguyen in:
25633         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25634         (func_import): Note the "--gnu-make" option in the output comment.
25636 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25638         gnulib-tool: new option --gnu-make
25639         This is for applications like GNU Emacs that use GNU Make
25640         features instead of Automake.
25641         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25642         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25643         Do not assume Automake.
25644         * gnulib-tool (func_determine_path_separator)
25645         (func_modules_transitive_closure, func_update_file)
25646         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25647         (func_import): Add support for --gnu-make.
25649 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25651         gnulib-common.m4: avoid aclocal.m4 bloat
25652         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25653         Hide AM_PROG_AR from aclocal, so that aclocal does not
25654         install irrelevant macro definitions into aclocal.m4.
25656 2017-03-10  Bruno Haible  <bruno@clisp.org>
25658         vma-iter: Let callers know about error.
25659         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25660         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25662 2017-03-05  Bruno Haible  <bruno@clisp.org>
25664         Fix value of LD for 64-bit compilers on AIX.
25665         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25666         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25668 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25670         dtotimespec: simplify
25671         * lib/dtotimespec.c (dtotimespec): Simplify.
25673 2017-03-04  Bruno Haible  <bruno@clisp.org>
25675         test-calloc-gnu: Reenable test also for GCC 7.
25676         * tests/test-calloc-gnu.c (eight): New function.
25677         (main): Don't skip test; use eight() instead.
25679 2017-03-04  Jim Meyering  <meyering@fb.com>
25681         test-calloc-gnu: port to GCC7
25682         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25683         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25684         and newer would detect that at compilation time.
25686 2017-03-04  Bruno Haible  <bruno@clisp.org>
25688         tests: Avoid compiler warning about uses of null_ptr.
25689         * tests/null-ptr.h: New file.
25690         * tests/test-canonicalize.c: Include null-ptr.h.
25691         (null_ptr): Remove function.
25692         * tests/test-canonicalize-lgpl.c: Likewise.
25693         * tests/test-memmem.c: Likewise.
25694         * tests/test-ptsname_r.c: Likewise.
25695         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25696         * modules/canonicalize-lgpl-tests: Likewise.
25697         * modules/memmem-tests: Likewise.
25698         * modules/ptsname_r-tests: Likewise.
25699         Reported by Jim Meyering.
25701 2017-03-03  Bruno Haible  <bruno@clisp.org>
25703         doc: Mention Mac OS X deficiencies regarding semaphores.
25704         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25705         * doc/posix-functions/sem_destroy.texi: Likewise.
25706         * doc/posix-functions/sem_getvalue.texi: Likewise.
25708 2017-03-03  Bruno Haible  <bruno@clisp.org>
25710         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25711         Reported by Assaf Gordon <assafgordon@gmail.com> via
25712         Pádraig Brady <P@draigBrady.com>.
25713         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25714         semaphores.
25715         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25716         (atomic_int_semaphore): New macro.
25718 2017-02-28  Bruno Haible  <bruno@clisp.org>
25720         perror tests: Tweak for z/OS.
25721         Reported by Daniel Richard G. <skunk@iskunk.org>.
25722         * tests/test-perror.sh: Don't fail z/OS style perror output.
25724 2017-02-26  Bruno Haible  <bruno@clisp.org>
25726         nproc: Refactor large function.
25727         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25728         from num_processors.
25729         (num_processors): In this function, only deal with OMP.
25731 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25733         nproc: adjust handling of OpenMP environment variables
25734         to match the return value from omp_get_num_threads(), i.e.:
25735          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25736          - Treat 0 as an invalid value and ignore
25737         Also remove the call to omp_get_num_threads() because
25738         it's ineffective without the omp pragmas in place.
25739         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25740         so that it can be ignored.
25741         (num_processors): Honor OMP_THREAD_LIMIT even without
25742         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25743         variable being checked, from the previous recent commit.
25745 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25747         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25748         * lib/nproc.c (parse_omp_threads): A new function refactored
25749         from num_processors() to support parsing both of the
25750         above environment variables.
25751         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25752         to accurately reflect the current OpenMP nesting level.
25753         Also support the OMP_THREAD_LIMIT environment variable
25754         to limit the max value determined from OMP_NUM_THREADS.
25755         * modules/nproc: Depend on minmax header.
25756         Suggested by Oliver Heimlich.
25758 2017-02-25  Bruno Haible  <bruno@clisp.org>
25760         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25761         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25763 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25765         ftoastr: port to -Wdouble-promotion
25766         Work around -Wdouble-promotion false alarm in recent GCCs.
25767         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25768         (ftoastr_snprintf, FTOASTR): Use it.
25770 2017-02-21  Bruno Haible  <bruno@clisp.org>
25772         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25773         Reported by Rene Saavedra <rennes@openmailbox.org> in
25774         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25775         * lib/glthread/lock.h: On glibc systems without
25776         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25777         implementation of rwlocks.
25778         * lib/glthread/lock.c: Likewise.
25780 2017-02-20  Bruno Haible  <bruno@clisp.org>
25782         lock tests: Fix build failure on z/OS.
25783         Reported by Daniel Richard G. <skunk@iskunk.org>.
25784         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25785         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25786         exist.
25788 2017-02-19  Bruno Haible  <bruno@clisp.org>
25790         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25791         This helps when CC=clang.
25792         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25793         of /usr/bin/gcc.
25795         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25796         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25798 2017-02-19  Bruno Haible  <bruno@clisp.org>
25800         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25801         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25802         --with-tests --single-configure is specified.
25804 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25806         users.txt: Update links, use HTTPS where possible
25807         * users.txt: Updated to HTTPS where possible,
25808         fixed some links to new locations.
25810 2017-02-16  Bruno Haible  <bruno@clisp.org>
25812         xbinary-io: Fix inlining.
25813         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25815 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25817         xbinary-io: rename from xsetmode
25818         This patch is taken from suggestions by Bruno Haible in:
25819         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25820         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25821         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25822         not ENOTTY, when it is an inappropriate device.
25823         * lib/binary-io.h (SET_BINARY): Resurrect.
25824         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25825         (xset_binary_mode_error): Rename from xsetmode_error.
25826         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25827         (xset_binary_mode): Rename from xsetmode.
25828         All uses changed.
25829         * modules/xbinary-io: Rename from modules/xsetmode.
25830         Update file names.
25831         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25832         * NEWS: Update to match revised behavior.
25834 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25836         tests: Adjust to recent SET_BINARY change
25837         * tests/test-binary-io.c (main):
25838         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25839         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25840         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25841         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25843         xsetmode: new module
25844         This is to fix a problem noted by Eric Blake.
25845         Code was using xfreopen to change files to binary mode, but this
25846         fails for stdout when in append mode.  Such code should use
25847         xsetmode instead.
25848         * NEWS: Document incompatible changes to binary-io module.
25849         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25850         New function.
25851         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25852         (set_binary_mode): New function, which also checks for tty.
25853         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25855 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25857         headers: fix begin-end typos
25858         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25859         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25861         selinux-h: port to PGI 16.10
25862         * lib/se-selinux.in.h: Don't assume that include_next skips over
25863         duplicate -I DIR options.
25865         argp: port to PGI 16.10
25866         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25868 2017-02-13  Darshit Shah  <darnir@gnu.org>
25870         unicase: Update function protoype to match definition.
25871         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25872         uses 'size_t' as the datatype for the 'len' parameter in the functions
25873         it generates. Update the prototype specified here to match the newly
25874         generated function.
25876 2017-02-12  Bruno Haible  <bruno@clisp.org>
25878         times test: Avoid gcc warnings on Linux/x32.
25879         * tests/test-times.c (main): Really cast printf arguments from clock_t
25880         to 'long int'.
25882 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25884         glob: port better to emscripten
25885         Problem reported by Bruno Haible in:
25886         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25887         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25889 2017-02-11  Bruno Haible  <bruno@clisp.org>
25891         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25892         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25893         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25894         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25895         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25896         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25897         Distinguish hppa64 from hppa.
25899 2017-02-10  Bruno Haible  <bruno@clisp.org>
25901         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25902         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25903         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25904         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25906 2017-02-09  Bruno Haible  <bruno@clisp.org>
25908         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25909         * doc/gnulib.texi (Libtool and Windows): Recommend
25910         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25911         Reported by Reuben Thomas <rrt@sc3d.org>.
25913 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25915         stddef-tests: port to SIZE_MAX <= INT_MAX
25916         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25917         Do not assume that INT_MAX < SIZE_MAX.
25919 2017-02-01  Bruno Haible  <bruno@clisp.org>
25921         lock tests: Fix link error.
25922         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25925 2017-01-31  Bruno Haible  <bruno@clisp.org>
25927         lock: Fix link error (regression from 2017-01-05).
25928         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25929         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25930         pthread_rwlockattr_destroy weak.
25931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25933 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25935         Port to PGI 16.10 x86-64
25936         This patch fixes one real bug in gl_anylinked_list2.h, along with
25937         some minor glitches that are not bugs.  It does not silence PGI’s
25938         thousands of bogus warnings when compiling test-intprops.c.
25939         Fortunately, the warnings do not cause a failure.
25940         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25941         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25942         My goodness, PGI goes back a long ways - this predates C89!
25943         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25944         For example, ASYNCSAFE (const void *) should expand to
25945         ‘const void *volatile’, not to ‘volatile const void *’.
25946         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25947         * lib/verify.h (verify) [!__GNUC__]:
25948         Use shorter albeit meaningless string to bypass silly compiler limits.
25949         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25950         * tests/nan.h (NaNf, NaNd, NaNl):
25951         Use static functions to avoid misguided compiler diagnostics.
25952         Is there some reason we don’t use static functions on all platforms?
25954 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25956         parse-datetime: handle timezones reentrantly
25957         This API change was prompted by a report by Pádraig Brady in:
25958         https://bug.debian.org/851934#10
25959         To help fix the bug, make parse_datetime2 more reentrant.
25960         * NEWS: Document this incompatible change.
25961         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25962         Add two arguments, the timezone and the timezone name.
25963         All callers changed.  If TZ="..." is specified, use it for
25964         calculating defaults.
25965         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25966         this code should be usable in a library.
25967         (mktime_ok, get_effective_timezone):
25968         Accept timezone arg too.  All callers changed.
25969         (get_tz): Remove.
25970         (get_effective_timezone): Check for failures.
25972 2017-01-20  Eric Blake  <eblake@redhat.com>
25974         localename: port to cygwin 2.6
25975         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25976         Cygwin.
25977         * modules/localename (Depends-on): Add extensions, since
25978         NL_LOCALE_NAME() is not visible without it.
25980 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25982         parse-datetime: fix dependence on AC_PROG_SED
25983         * modules/parse-datetime: Use `sed` directly like all other modules.
25984         Reported by J William Piggott
25986 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25988         intprops: update doc URLs
25989         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25991 2017-01-16  Bruno Haible  <bruno@clisp.org>
25993         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25994         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25995         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25996         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25997         distinguish s390 and s390x.
25998         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25999         * NEWS: Mention the change regarding 'armel'.
26001 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26003         localeinfo: case_folded_counterparts and WEOF
26004         * NEWS: Document this.
26005         * lib/localeinfo.c (case_folded_counterparts):
26006         First arg is now wint_t, not wchar_t.  This generalizes the
26007         function to also work on WEOF, where it returns 0.
26009         dfa: port to gcc -fsanitize=undefined
26010         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
26011         as this runs afoul of gcc -fsanitize=undefined.
26013 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
26015         strftime: %z is -00 if unknown
26016         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
26017         the caller's responsibility to set 'negative_number'.  All uses changed.
26018         (__strftime_internal): Put '-' before a zero UTC offset if the time
26019         zone abbreviation starts with "-", which is the recently-introduced
26020         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
26021         * tests/test-strftime.c: Test for this.
26023 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26025         dfa: port to older GCC
26026         Problem reported by Assaf Gordon in:
26027         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
26028         * modules/c99: New module.  This merely attempts to use the latest
26029         C version, which should be enough to solve this particular problem.
26030         The idea is to document which Gnulib modules assume C99 or later.
26031         * modules/dfa (Depends-on): Add it.
26033 2017-01-10  Bruno Haible  <bruno@clisp.org>
26035         Update DEPENDENCIES.
26036         * DEPENDENCIES: List only https URLs. Update recommended version for
26037         autoconf, automake, gperf.
26039 2017-01-10  Jim Meyering  <meyering@fb.com>
26041         maint.mk: enforce spelling of "timestamp" (i.e., no space)
26042         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
26043         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
26045 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26047         dfa: minor simplification with emptyset
26048         * lib/dfa.c (build_state): Simplify by using emptyset.
26050 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26052         dfa: shrink constraints from 4 bits to 3
26053         * lib/dfa.c (newline_constraint, letter_constraint)
26054         (other_constraint, prev_newline_dependent)
26055         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
26056         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
26057         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
26058         Constraints need only 3 bits, not 4.  Using smaller integers
26059         shrinks the code a bit and makes grep a tad faster on x86-64.
26061         dfa: omit unnecessary ptrdiff_t check
26062         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
26063         overflow, since xnmalloc does that now.
26065         dfa: omit unnecessary allocation
26066         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
26067         an all-zero follow set works just fine.
26069         dfa: omit unused local
26070         * lib/dfa.c (build_state): Fix up recent change.
26072         maint: remove stray .texi files
26073         Although these were superseded by other files like
26074         doc/posix-functions/ctime.texi, the old files were not removed.
26075         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
26077 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26079         getprogname: fix port to IRIX
26080         * lib/getprogname.c (getprogname) [__sgi]:
26081         Don't dump core if malloc returns NULL.
26083         dfa: fix reallocation bug when matching newlines
26084         Problem reported for sed by S. Gilles (Bug#25390).
26085         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
26086         (dfastate): Reallocate before moving any newline transition ...
26087         (build_state): ... instead of reallocating here, where it is too late.
26089 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26091         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
26092         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
26094 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26096         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
26097         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
26099 2017-01-07  Bruno Haible  <bruno@clisp.org>
26101         stdioext: Port to Minix 3.2 and newer.
26102         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
26103         * lib/fseeko.c (fseeko): Likewise.
26104         Reported by Nelson Beebe via Paul Eggert.
26106 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26108         getprogname: port to IRIX
26109         * lib/getprogname.c (getprogname): Port to IRIX.
26110         Based on an idea by Bastien Roucariès at:
26111         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
26112         via code from Bruno Haible at:
26113         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26115         localename-tests: port to NetBSD 7
26116         Problem reported by Nelson H. F. Beebe.
26117         * tests/test-localename.c:
26118         Test newlocale and uselocale only if both exist.
26120         glob, intprops, xalloc: work around Clang bug
26121         Work around LLVM bug 16404, which is still not fixed.
26122         https://llvm.org/bugs/show_bug.cgi?id=16404
26123         Problem reported by Nelson H. F. Beebe.
26124         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
26125         Remove.
26126         * lib/glob.c (size_add_wrapv):
26127         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
26128         * lib/xalloc-oversized.h (xalloc_oversized):
26129         Do not use overflow builtins if Clang.
26131         dfa: fix 'return' typo
26132         Problem reported by Nelson H. F. Beebe.
26133         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
26135 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26137         parse-datetime: fix generated paths for coverage files
26138         * modules/parse-datetime: Adjust the paths for parse-datetime.y
26139         within parse-datetime.c, so that gcc generates appropriate .gcno
26140         files, allowing lcov to proceed without error.  Previously it
26141         would error trying to find "lib/lib/parse-datetime.y".
26143 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26145         maint.mk: support parallel execution of coverage
26146         * top/maint.mk (coverage): Run dependencies serially,
26147         thus supporting parallel processing of each one,
26148         particularly build-coverage, which builds and runs tests.
26150 2017-01-05  Bruno Haible  <bruno@clisp.org>
26152         lock tests: Prefer semaphore over mutex.
26153         * tests/test-lock.c (USE_SEMAPHORE): New constant.
26154         (struct atomic_int, init_atomic_int, get_atomic_int_value,
26155         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
26156         Suggested by Torvald Riegel <triegel@redhat.com>.
26158 2017-01-05  Bruno Haible  <bruno@clisp.org>
26160         lock: Provide guarantee to avoid writer starvation for rwlocks.
26161         The rationale is: 1) Read-preferring read-write locks are prone to
26162         writer starvation if the number of reader threads multiplied by the
26163         percentage of time they have the lock held is too high. 2) Write-
26164         preferring read-write locks are the only reliable way to avoid this.
26165         3) There have been reports of 'test-lock' hanging on glibc systems
26166         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
26167         and glibc indeed implements read-preferring rwlocks by default, see
26168         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
26169         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
26170         * m4/pthread_rwlock_rdlock.m4: New file.
26171         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26172         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
26173         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26174         of rwlock initialization on glibc systems without
26175         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26176         of rwlocks altogether on non-glibc systems without
26177         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26178         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
26179         * lib/glthread/lock.c [USE_POSIX_THREADS]
26180         (glthread_rwlock_init_for_glibc): New function.
26181         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
26182         comment.
26183         [USE_PTH_THREADS]: New implementation of rwlocks.
26184         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
26185         readers.
26186         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
26187         (Depends-on): Add 'extensions'.
26188         * tests/test-rwlock1.c: New file.
26189         * lock-tests (Files): Add it.
26190         (Depends-on): Add usleep.
26191         (Makefile.am): Add test-rwlock1 to the tests.
26193 2017-01-05  Bruno Haible  <bruno@clisp.org>
26195         thread: Fix pth port.
26196         * lib/glthread/thread.h (pth_init): Declare weak.
26197         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
26198         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
26199         function.
26201 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
26203         parse-datetime: fix debug message on lone year number
26204         Input dates such as
26205           date -d "Apr 11 22:59:00 2011"
26206         are parsed as date (Apr 11, with default year 2016), then time, then a
26207         number (2011). Based on the combination of previously seen tokens,
26208         'digits_to_date_time' determines 2011 to be a year value.
26209         This fixes the debug messages to correctly show the updated year.
26210         Before:
26211             $ date --debug -d 'Apr 11 22:59:00 2011'
26212             date: parsed date part: (Y-M-D) 2016-04-11
26213             date: parsed time part: 22:59:00
26214             date: parsed number part: today/this/now
26215         After:
26216             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
26217             date: parsed date part: (Y-M-D) 2016-04-11
26218             date: parsed time part: 22:59:00
26219             date: parsed number part: year: 2011
26220         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
26221         'debug_year_seen' member fields.
26222         (digits_to_date_time): Update 'year_seen' as needed.
26223         (debug_print_current_time): Inform about year updates.
26224         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
26226         parse-datetime: fix local timezone debug messages
26227         "Local timezones" are strings that affect only DST relative to the
26228         default timezone. The debug messages in parse-datetime.y printed
26229         wrong information when encountering local timezones.
26230         Examples:
26231         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
26232              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
26233              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
26234         When the default timezone relates to the zone strings, EET/EEST are
26235         parsed as local timezones (tLOCAL_ZONE), and only change the DST
26236         value (0/1, respectively):
26237              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
26238              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
26239         * lib/parse-datetime.y (debug_print_current_time): If local timezone
26240         was seen, inform about DST change, don't print actual timezone.
26241         (debug_strfdatetime): If local timezone was seen, use default timezone
26242         (and adjust as needed) instead of using incorrect timezone.
26243         (parse_datetime2): Use correct time-zone source string, and adjust
26244         default timezone as needed.
26246         parse-datetime: add debug warning about DST changes
26247         Incorrect date arithmetic due to daylight saving time (DST) are a
26248         common (false) bug report in coreutils.
26249         Detect two such cases and print a warning:
26250         1. year/month/day adjustments (performed on 'struct tm'),
26251            where 'mktime' returns a different isdst value.
26252         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
26253            where the result of 'localtime(3)' on the value will return a
26254            different isdst value.
26255         Note: DST changes could be harmless or unnoticeable.
26256         Examples (with 'TZ=America/New_York'):
26257         Unnoticeable: result is 2016-Dec-14
26258            $ date -d '2016-06-15 EDT + 6 months' +%b
26259            Dec
26260         Unnoticeable: result is 2016-Dec-15 11:00:00
26261            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
26262            2016-12-15
26263         This is unexpected:
26264            $ date -d '2016-06-01 EDT + 6 months' +%F
26265            2016-11-30
26266         The new debug warnings will show:
26267            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
26268            ...
26269            date: warning: daylight saving time changed after date adjustment
26270            ...
26271         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
26272         print an appropriate warning message.
26274         parse-datetime: add debug warning about date arithmetic
26275         Date arithmetic are done directly on the fields of 'struct tm',
26276         which can result in invalid dates. Normalization with 'mktime(3)'
26277         will then produce a different date - which might cause unexpected
26278         results.
26279         Examples:
26280           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
26281           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
26282         Note that date normalization is not inherently wrong and not rejected,
26283         as it has legitimate uses:
26284           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
26285         If the user asked to adjust months but 'mday' changed,
26286         or user asked to adjust years but 'month' changed - warn about it.
26287             $ ./src/date --debug -d '2016-10-31 - 1 month'
26288             ...
26289             date: warning: when adding relative months/years, \
26290                            it is recommended to specify the 15th of the month
26291             ...
26292             date: warning: month/year adjustment resulted in shifted dates:
26293             date:      adjusted Y M D: 2016 09 31
26294             date:    normalized Y M D: 2010 10 01
26295             ...
26296         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
26297         a warning message. Improve recommendation of when to use 15 of the
26298         month or noon for date arithmetic.
26300         parse-datetime: fix debug message of relative part after timezone
26301         Relative part (e.g '+8 days') after a timezone string was not
26302         reported (was only reported after a timezone number). Due to the
26303         parser's structure, timezone strings with numbers were handled
26304         separately.
26305         before:
26306              # Timezone number + relative part: OK
26307              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
26308              ...
26309              date: parsed relative part: -8 day(s)
26310              # Timezone string + relative part: missing
26311              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
26312              [ missing message ]
26313         After: messages are printed in both cases.
26314         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
26316         parse-datetime: fix incorrect debug message on lone number
26317         A lone number is an absolute value, not a relative time part.
26318         before:
26319            $ date --debug -d '20130101'
26320            date: parsed number part: today/this/now
26321         After:
26322            $ ./src/date --debug -d '20130101'
26323            date: parsed number part: (Y-M-D) 2013-01-01
26324         * lib/parse-datetime.y ('item'/'number' tokens): Call
26325         'debug_print_current_time' instead of 'debug_print_relative_time'.
26327 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26329         doc: modernize for C11 etc.
26330         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26331         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26332         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26334         dfa: prefer functions to FETCH_WC macro
26335         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26336         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26337         wint_t result into DFA->lex.wctok instead of to a separate arg.
26338         All callers changed.  Move more local decls closer to where
26339         they're used.
26341         dfa: narrow more local var scopes
26342         * lib/dfa.c: Move more local decls to be more local.
26344         dfa: remove duplicate assignment
26345         Problem reported by Bruno Haible in:
26346         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26347         * lib/dfa.c (parse_bracket_exp): Simplify.
26349 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26351         dfa: simplify constraint-dependency checking
26352         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26353         (prev_other_constraint): Remove.
26354         (prev_newline_dependent, prev_letter_dependent):
26355         Simplify, to avoid an unnecessary bitwise AND operation.
26357         dfa: prefer functions and constants to macros
26358         * lib/dfa.c: Prefer constants to macros where either will do.
26359         (streq, isasciidigit, newline_constraint)
26360         (letter_constraint, other_constraint, succeeds_in_context)
26361         (prev_newline_constraint, prev_letter_constraint)
26362         (prev_other_constraint, prev_newline_dependent)
26363         (prev_letter_dependent, accepting, accepts_in_context):
26364         Now static functions instead of function-like macros.
26365         Use lower-case names accordingly.  All uses changed.
26367         dfa: narrow more local var scopes
26368         * lib/dfa.c: Move some more local decls down to nearer where
26369         they're needed.
26371 2016-12-31  Jim Meyering  <meyering@fb.com>
26373         dfa: narrow the scope of many local variables
26374         * lib/dfa.c: Now that we are no longer constrained to c89, move
26375         declarations of many variables (often indices) "down" into the
26376         scope(s) where used or to the point of definition.  This is a
26377         no-semantic-change diff.
26379 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26381         version-etc: new year
26382         * build-aux/gendocs.sh (version):
26383         * doc/gendocs_template:
26384         * doc/gendocs_template_min:
26385         * doc/gnulib.texi:
26386         * lib/version-etc.c (COPYRIGHT_YEAR):
26387         Update copyright dates by hand in templates and the like.
26388         * all files: Run 'make update-copyright'.
26390 2016-12-31  Eric Blake  <eblake@redhat.com>
26392         do-release-commit-and-tag: avoid shell syntax error
26393         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26394         contain spaces when rebasing.
26396         maint.mk: hoist gnulib_dir definition earlier
26397         * top/maint.mk (gnulib_dir): Move near top of file.
26399 2016-12-31  Jim Meyering  <meyering@fb.com>
26401         maint.mk: do not always evaluate intprops-related shell
26402         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26403         using gnulib_dir undefined (gnulib_dir is defined later in the
26404         file, which will be fixed separately), and besides, there is no
26405         need to incur the cost of this shell invocation for every single
26406         use of this .mk file.  Reported by Eric Blake in
26407         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26409 2016-12-30  Jim Meyering  <meyering@fb.com>
26411         maint.mk: improve sc_prohibit_intprops_without_use
26412         * top/maint.mk (_intprops_names): Don't hard-code the list of
26413         symbol names.  Instead, derive it on the fly.
26415 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26417         dfa: shorten sbit, success
26418         * lib/dfa.c (struct regex_syntax.sbit):
26419         (struct dfa.success): Use char, not int, for array elements, since
26420         they are all in the range 0..7.
26422         dfa: simplify multibyte_prop etc.
26423         This follows up on a change made when dfa.c was in grep, namely grep
26424         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26425         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26426         That earlier simplification allows for some more simplification
26427         and trimming down here.
26428         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26429         (struct lexer_state): New mamber brack.
26430         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26431         since they must be in the range 0..3 now.
26432         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26433         the brack member now supersedes them.
26434         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26435         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26436         (dfaparse): Remove unnecessary initializations of already-0 storage.
26437         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26438         (dfassbuild): No need to clear sup->mbcsets.
26440         dfa: minor performance tweak
26441         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26443         dfa: wrap charclass inside a struct
26444         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26445         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26446         about 5% faster, where list.txt is generated by 'aspell dump
26447         master | head -n 100000 >list.txt'.  See Bug#22239.
26448         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26449         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26450         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26451         Adjust to this, e.g., by using charclass * rather than charclass.
26452         All callers changed as needed.
26453         (copyset): Remove.  All uses changed to simple assignment.
26454         (parse_bracket_exp): Use zeroset instead of memset.
26456 2016-12-30  Jim Meyering  <meyering@fb.com>
26458         maint.mk: update list of intprops.h symbol names
26459         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26460         This avoids a false failure of the sc_prohibit_intprops_without_use
26461         rule in grep.
26463 2016-12-29  Eric Blake  <eblake@redhat.com>
26465         getopt: fix parallel test failure
26466         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26467         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26468         * tests/test-getopt-main.h (main): Use different file names
26469         in case test-getopt-gnu and test-getopt-posix run in parallel.
26471 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26473         xalloc: x2nrealloc check for ptrdiff_t overflow
26474         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26475         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26477 2016-12-24  Bruno Haible  <bruno@clisp.org>
26479         lock test: Fix performance problem on multi-core machines.
26480         * tests/test-lock.c (USE_VOLATILE): New macro.
26481         (struct atomic_int): New type.
26482         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26483         functions.
26484         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26485         as 'struct atomic_int'.
26486         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26487         reclock_checker_thread, test_recursive_lock): Use the new functions.
26488         Reported by Eric Blake in
26489         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26490         and by Pádraig Brady in
26491         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26493 2016-12-19  Bruno Haible  <bruno@clisp.org>
26495         vma-iter: Fix endless loop on 64-bit Windows.
26496         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26497         'unsigned long'.
26499 2016-12-19  Bruno Haible  <bruno@clisp.org>
26501         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26502         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26503         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26504         Invoke gt_TYPE_WINT_T instead.
26505         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26506         * modules/stdint (Files): Add m4/wint_t.m4.
26507         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26508         * modules/wctype-h (Makefile.am): Likewise.
26509         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26510         not only on MSVC.
26511         * lib/wctype.in.h (wint_t): Likewise.
26513 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26515         getopt-posix-tests: fix Makefile typo
26516         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26517         Fix typo: the last ‘_’ was missing in the name.
26518         I suspect that the typo explains this build failure:
26519         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26520         although I can’t reproduce the problem on Solaris 10 sparc.
26522 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26524         dfa: improve worst-case 'replace' performance
26525         See my note in Bug#22357#71.
26526         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26527         (merge_constrained): New function, which is like
26528         the old 'merge' function, except with a new argument C2.
26529         Simplify the body by avoiding the need for different sections
26530         of code depending on whether one input is exhausted.
26531         (merge): Use the new function.
26532         (delete): Return the constraint of the deleted position,
26533         not the entire position.  Caller changed.
26534         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26536 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26538         dfa: performance improvement for removal of epsilon closure
26539         See Bug#22357#32.
26540         * lib/dfa.c (delete): Use binary search to find deleted index.
26541         (replace): New function.  It replaces a position with the followed set.
26542         (epsclosure): Replace it with a new algorithm.  Update caller.
26544 2016-12-18  Bruno Haible  <bruno@clisp.org>
26546         Split tests for getopt-posix and getopt-gnu.
26547         * tests/test-getopt-posix.c: New file.
26548         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26549         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26550         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26551         GNULIB_TEST_GETOPT_GNU.
26552         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26553         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26554         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26555         * modules/getopt-gnu-tests: New file.
26556         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26558 2016-12-18  Bruno Haible  <bruno@clisp.org>
26560         posix-modules: Add options for specific platforms.
26561         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26562         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26563         Invoke func_tmpdir. Filter out the excludes.
26565 2016-12-18  Bruno Haible  <bruno@clisp.org>
26567         getopt: Fix link error for users of getopt() in <unistd.h>.
26568         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26569         __need_getopt is defined. Undefine all macros before defining them.
26570         * modules/getopt (Include): Clarify that including <unistd.h> is also
26571         OK.
26572         * tests/test-getopt.c: Add comment.
26574 2016-12-17  Bruno Haible  <bruno@clisp.org>
26576         getaddrinfo tests: Avoid compilation error on MSVC.
26577         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26578         getaddrinfo on native Windows.
26580 2016-12-17  Bruno Haible  <bruno@clisp.org>
26582         getlogin, getlogin_r: Fix link errors on MSVC.
26583         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26584         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26585         (Link): New section.
26586         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26587         (configure.ac): Require gl_LIB_GETLOGIN.
26588         (Link): New section.
26589         * NEWS: Mention the new link requirements.
26590         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26591         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26593 2016-12-17  Bruno Haible  <bruno@clisp.org>
26595         Un-deprecate the 'progname' module.
26596         * NEWS: Describe the appropriate use-cases of 'progname' versus
26597         'getprogname'. Based on discussion summary at
26598         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26600 2016-12-17  Bruno Haible  <bruno@clisp.org>
26602         Reorganize NEWS a bit.
26603         * NEWS: Move some not so important changes away from section
26604         "Important Notes".
26606 2016-12-17  Bruno Haible  <bruno@clisp.org>
26608         tanhf: Avoid redefinition error on MSVC.
26609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26610         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26611         may be defined as an inline function.
26612         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26613         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26615 2016-12-17  Bruno Haible  <bruno@clisp.org>
26617         tanf: Avoid redefinition error on MSVC.
26618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26619         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26620         may be defined as an inline function.
26621         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26622         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26624 2016-12-17  Bruno Haible  <bruno@clisp.org>
26626         sqrtf: Avoid redefinition error on MSVC.
26627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26628         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26629         may be defined as an inline function.
26630         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26631         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26633 2016-12-17  Bruno Haible  <bruno@clisp.org>
26635         sinhf: Avoid redefinition error on MSVC.
26636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26637         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26638         may be defined as an inline function.
26639         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26640         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26642 2016-12-17  Bruno Haible  <bruno@clisp.org>
26644         sinf: Avoid redefinition error on MSVC.
26645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26646         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26647         may be defined as an inline function.
26648         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26649         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26651 2016-12-17  Bruno Haible  <bruno@clisp.org>
26653         logf: Avoid redefinition error on MSVC.
26654         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26655         may be defined as an inline function.
26657 2016-12-17  Bruno Haible  <bruno@clisp.org>
26659         log10l: Avoid redefinition error on MSVC.
26660         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26661         may be defined as an inline function.
26663 2016-12-17  Bruno Haible  <bruno@clisp.org>
26665         log10f: Avoid redefinition error on MSVC.
26666         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26667         may be defined as an inline function.
26669 2016-12-17  Bruno Haible  <bruno@clisp.org>
26671         hypotl: Avoid redefinition error on MSVC.
26672         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26673         may be defined as an inline function.
26675 2016-12-17  Bruno Haible  <bruno@clisp.org>
26677         hypotf: Avoid redefinition error on MSVC.
26678         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26679         may be defined as an inline function.
26681 2016-12-17  Bruno Haible  <bruno@clisp.org>
26683         fmodl: Avoid redefinition error on MSVC.
26684         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26685         may be defined as an inline function.
26687 2016-12-17  Bruno Haible  <bruno@clisp.org>
26689         fmodf: Avoid redefinition error on MSVC.
26690         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26691         may be defined as an inline function.
26693 2016-12-17  Bruno Haible  <bruno@clisp.org>
26695         expf: Avoid redefinition error on MSVC.
26696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26697         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26698         may be defined as an inline function.
26699         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26700         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26702 2016-12-17  Bruno Haible  <bruno@clisp.org>
26704         coshf: Avoid redefinition error on MSVC.
26705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26706         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26707         may be defined as an inline function.
26708         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26709         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26711 2016-12-17  Bruno Haible  <bruno@clisp.org>
26713         cosf: Avoid redefinition error on MSVC.
26714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26715         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26716         may be defined as an inline function.
26717         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26718         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26720 2016-12-17  Bruno Haible  <bruno@clisp.org>
26722         atan2f: Avoid redefinition error on MSVC.
26723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26724         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26725         may be defined as an inline function.
26726         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26727         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26729 2016-12-17  Bruno Haible  <bruno@clisp.org>
26731         atanf: Avoid redefinition error on MSVC.
26732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26733         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26734         may be defined as an inline function.
26735         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26736         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26738 2016-12-17  Bruno Haible  <bruno@clisp.org>
26740         asinf: Avoid redefinition error on MSVC.
26741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26742         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26743         may be defined as an inline function.
26744         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26745         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26747 2016-12-17  Bruno Haible  <bruno@clisp.org>
26749         acosf: Avoid redefinition error on MSVC.
26750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26751         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26752         may be defined as an inline function.
26753         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26754         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26756 2016-12-17  Bruno Haible  <bruno@clisp.org>
26758         Avoid redefinition errors on MSVC.
26759         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26760         the function may be defined as an inline function.
26761         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26762         the function may be defined as an inline function.
26764 2016-12-17  Bruno Haible  <bruno@clisp.org>
26766         Avoid redefinition errors on MSVC.
26767         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26768         * lib/unistd.in.h: Include <stdio.h> when necessary.
26770 2016-12-17  Bruno Haible  <bruno@clisp.org>
26772         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26773         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26774         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26775         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26776         WINT_MAX.
26778 2016-12-17  Bruno Haible  <bruno@clisp.org>
26780         Avoid autoconf warning.
26781         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26782         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26784 2016-12-17  Bruno Haible  <bruno@clisp.org>
26786         fpending: Revert workaround against Emacs bug.
26787         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26788         The Emacs bug is fixed by Eli Zaretskii in
26789         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26791 2016-12-17  Bruno Haible  <bruno@clisp.org>
26793         getlogin_r tests: Port to mingw.
26794         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26795         regression introduced on 2014-05-19.
26797 2016-12-17  Bruno Haible  <bruno@clisp.org>
26799         getlogin: Port to newer mingw.
26800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26801         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26802         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26803         HAVE_GETLOGIN.
26804         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26805         HAVE_GETLOGIN.
26806         * doc/posix-functions/getlogin.texi: Mention the issue.
26807         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26808         regression introduced on 2014-05-14.
26810 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26812         builtin-expect: improve port to IBM XL C
26813         Problem reported for z/OS by Daniel Richard G. in:
26814         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26815         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26816         Test for <builtins.h> directly.
26818         builtin-expect: port to IBM XL C
26819         Problem reported for z/OS by Daniel Richard G. in:
26820         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26821         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26822         Also allow __builtin_expect defined via a standard include file.
26824         regex: fix dependency
26825         Problem reported by Bruno Haible in:
26826         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26827         * modules/regex: Depend on builtin-expect.
26829         builtin-expect: new module
26830         Fix fnmatch to use it.
26831         Problem reported for z/OS by Daniel Richard G.
26832         * lib/fnmatch.c (__builtin_expect):
26833         * lib/glob.c (__builtin_expect):
26834         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26835         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26836         * lib/scandir.c (__builtin_expect):
26837         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26838         Remove macro; config.h now does this.
26839         * lib/gl_anytreehash_list1.h (add_to_bucket):
26840         * lib/regex_internal.h (BE):
26841         Assume __builtin_expect.
26842         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26843         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26844         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26845         * modules/scandir, modules/strstr-simple:
26846         Depend on builtin-expect.
26848 2016-12-15  Bruno Haible  <bruno@clisp.org>
26850         init.sh: Add possibility to not delete temporary files.
26851         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26852         to yes, don't erase the temporary directory.
26854 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26856         regex: fix integer-overflow bug in never-used code
26857         Problem reported by Clément Pit–Claudel in:
26858         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26859         * lib/regex_internal.h: Include intprops.h.
26860         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26861         behavior on integer overflow.
26862         * modules/regex (Depends-on): Add intprops.
26864         fpending: fix port to MinGW on Emacs
26865         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26866         Problem reported by Eli Zaretskii in:
26867         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26868         Is Plan 9 still a valid porting target, anyway?
26870 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26872         safe-alloc: use xalloc-oversized
26873         * lib/safe-alloc.c: Include xalloc-oversized.h.
26874         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26875         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26877         xalloc: do not exceed PTRDIFF_MAX
26878         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26879         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26880         bytes have pointer-subtraction problems.
26882         malloca: do not exceed PTRDIFF_MAX
26883         * lib/malloca.h: Include xalloc-oversized.
26884         (nmalloca): Use xalloc_oversized instead of rolling our own.
26885         * modules/malloca (Depends-on):
26886         * modules/relocatable-prog-wrapper (Depends-on):
26887         Add xalloc-oversized.
26889         quotearg: pacify GCC better
26890         * modules/quotearg (Depends-on): Add minmax, stdint.
26891         * lib/quotearg.c: Include minmax.h, stdint.h.
26892         (nslots): Now int, as there seems little point to going to extra
26893         work merely to support the INT_MAX slot, which nobody ever uses.
26894         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26895         and to catch (mostly-theoretical) ptrdiff_t problems too.
26896         This can be done via one comparison.
26898 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26900         xalloc-oversized: check for PTRDIFF_MAX too
26901         This avoids undefined behavior when subtracting pointers to
26902         objects containing more than PTRDIFF_MAX bytes.
26903         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26904         Also return 1 if the result would exceed PTRDIFF_MAX>
26905         * modules/xalloc-oversized (Depends-on):
26906         Add stdint.
26908         dfa: fix glitches in previous commit
26909         Sorry, I don't know how I managed to commit the wrong version.
26910         * lib/dfa.c (MIN): Move up.
26911         (xpalloc): Now static.
26913         dfa: fix some unlikely integer overflows
26914         I found these while reviewing the recent Coverity-related fix.
26915         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26916         size_t for object counts.  Using ptrdiff_t is the style typically
26917         used in Emacs; although it wastes a sign bit as sizes can never be
26918         negative, it makes -fsanitize=undefined more likely to catch
26919         integer overflows in index calculation, and nowadays the upside is
26920         typically more important than the downside.  Although perhaps the
26921         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26922         of dfa.c already does, since it uses state_num which is signed),
26923         that is a bigger change and is not needed to fix the bugs I found.
26924         * lib/dfa.c: Include stdint.h and intprops.h.
26925         (TOKEN_MAX): New macro.
26926         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26927         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26928         (realloc_trans_if_necessary, free_mbdata):
26929         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26930         This is safe because xpalloc checks that the sizes do not exceed
26931         either SIZE_MAX or PTRDIFF_MAX.
26932         (xpalloc): New function, mostly taken from Emacs.
26933         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26934         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26935         (charclass_index): Check for integer overflow in computing
26936         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26937         added to it later.
26938         (alloc_position_set): Check for integer overflow.  On typical
26939         platforms this check has zero overhead, since the constant
26940         expression is false.
26941         (realloc_trans_if_necessary):
26942         Remove assertion, which I hope Coverity no longer needs.
26944         * modules/dfa (Depends-on): Add intprops, stdint.
26946 2016-12-12  Jim Meyering  <meyering@fb.com>
26948         dfa: add an assertion to avoid coverity false positive
26949         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26950         warned that "newalloc1 - 2" could overflow.
26952 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26954         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26955         * dfa.h (DFA_CASE_FOLD): Remove.
26956         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26958 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26960         link: fix test to declare use of rename()
26961         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26962         -Werror=implicit-function-declaration
26964 2016-12-12  Bruno Haible  <bruno@clisp.org>
26966         fpending: Port to native Windows with MSVC.
26967         * lib/fpending.c: Include stdio-impl.h.
26968         (__fpending): Include all known implementations. Err out if it's not
26969         ported.
26970         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26971         * modules/fpending (Files): Add lib/stdio-impl.h.
26972         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26974 2016-12-12  Bruno Haible  <bruno@clisp.org>
26976         stdioext: Port to native Windows with MSVC.
26977         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26978         (struct _gl_real_FILE): New type.
26979         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26980         Windows.
26981         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26982         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26983         other SystemV derived implementations.
26984         * lib/fpurge.c (fpurge): Likewise.
26985         * lib/freadable.c (freadable): Likewise.
26986         * lib/freadahead.c (freadahead): Likewise.
26987         * lib/freading.c (freading): Likewise.
26988         * lib/freadptr.c (freadptr): Likewise.
26989         * lib/freadseek.c (freadptrinc): Likewise.
26990         * lib/fseeko.c (fseeko): Likewise.
26991         * lib/fseterr.c (fseterr): Likewise.
26992         * lib/fwritable.c (fwritable): Likewise.
26993         * lib/fwriting.c (fwriting): Likewise.
26994         Reported by Gisle Vanem <gvanem@yahoo.no>.
26996 2016-12-11  Jim Meyering  <meyering@fb.com>
26998         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26999         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
27000         to work with most shells, but not with the one provided by many
27001         Solaris 10 systems, so running configure with such a /bin/sh evokes
27002         e.g., "./configure: syntax error at line 33602: `(' unexpected".
27003         Reported by Assaf Gordon in
27004         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
27006 2016-12-10  Bruno Haible  <bruno@clisp.org>
27008         threadlib: Optimize out runtime test on Solaris >= 10.
27009         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
27010         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
27011         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
27013 2016-12-10  Bruno Haible  <bruno@clisp.org>
27015         stdint: Update doc about Solaris 9.
27016         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
27018 2016-12-09  Bruno Haible  <bruno@clisp.org>
27020         c-ctype tests: Fix link error on Solaris 9.
27021         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
27022         Reported at <https://savannah.gnu.org/bugs/?46827>.
27024 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27026         dfa: fix performance bug that recomputes trans
27027         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
27028         25 on-demand changes.  The bug caused build_state to reset all
27029         d->trans elements to -2 even when d->trans was already non-null.
27030         Use C99 style decls after statements in this function.
27032         same-inode: port to MinGW
27033         Here st_ino is always 0, so change the definition of SAME_INODE so
27034         that 1 means the two files are the same, 0 with st_ino != 0 means
27035         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
27036         reported by Bruno Haible (Bug#25146).
27037         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
27038         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
27040 2016-12-04  Bruno Haible  <bruno@clisp.org>
27042         javacomp-script: Support Java 7 and 8.
27043         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
27044         target-version 1.7, 1.8.
27046 2016-12-02  Daiki Ueno  <ueno@gnu.org>
27048         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
27049         GPLv2" rewriting.
27051 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
27053         * gnulib-tool (func_import): Adhere to the license guideline when
27054         rewriting the license text to "LGPLv3+ or GPLv2":
27055         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
27057 2016-12-02  Bruno Haible  <bruno@clisp.org>
27059         localcharset: Avoid theoretical buffer overrun.
27060         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
27061         return value from setlocale if it would lead to a buffer overrun.
27063 2016-12-01  Bruno Haible  <bruno@clisp.org>
27065         Relicense some modules under LGPLv2+.
27066         Kevin Cernekee's approval is in
27067         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
27068         * modules/fseterr (License): Change to LGPLv2+.
27069         * modules/mbchar (License): Likewise.
27070         * modules/mbiter (License): Likewise.
27071         * modules/mbsnlen (License): Likewise.
27072         * modules/wcwidth (License): Likewise.
27074 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27076         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
27077         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
27078         OS/2 kLIBC.
27080 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27082         alphasort, scandir: Port to OS/2 kLIBC
27083         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
27084         declaration.
27085         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
27087 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27089         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
27090         * lib/relocatable.c (relocate): Do not touch pathname if it is started
27091         with '/@unixroot'.
27093 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27095         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
27096         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
27097         OS/2 kLIBC unless TCPV40HDRS is defined.
27099 2016-11-29  Jim Meyering  <meyering@fb.com>
27101         dfa: avoid new infinite loop
27102         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
27103         * lib/dfa.c (dfastate): When constructing a new state table, we could
27104         initially declare that we had found a match, and later find that
27105         constraints eliminate that possibility, yet continue to use the
27106         now stale "matched" indicator.  That would lead to an infinite loop.
27107         The solution is to update "matched" when necessary.
27108         Introduced by commit v0.1-983-g403adf1.
27110 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27112         dfa: avoid match middle in multibyte character
27113         * lib/dfa.c (transit_state): If fails in matching single byte characters
27114         on a state including period expression in non-UTF8 multibyte locales,
27115         skip trailing bytes.
27116         (dfa_supported): Revert previous change.
27118 2016-11-27  Jim Meyering  <meyering@fb.com>
27120         dfa: avoid false match in non-UTF8 multibyte locales
27121         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
27122         as "not supported" so that callers will resort to using regex-based
27123         matcher.  This will surely hurt performance, but correctness trumps
27124         performance here, and the affected locales are less and less relevant,
27125         these days.  See grep's bug report https://bugs.gnu.org/24975.
27127 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
27129         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
27130         * lib/ptsname_r.c: Include the appropriate headers.
27131         [__sun]: Delete sys/sysmacros.h include.
27132         [_AIX || __osf__]: Likewise.
27133         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
27135 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27137         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
27138         * lib/md4.c (md4_process_bytes): The existing define is made internal
27139         in recent versions of glibc, so also use this new public define.
27140         * lib/md5.c (md5_process_bytes): Likewise.
27141         * lib/sha1.c (sha1_process_bytes): Likewise.
27142         * lib/sha256.c (sha256_process_bytes): Likewise.
27143         * lib/sha512.c (sha512_process_bytes): Likewise.
27145 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27147         maint: use a more standard return from mbrtowc test
27148         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
27149         from the test program as this often indicates an
27150         unhandled case in the test program.
27151         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
27152         (gl_MBRTOWC_SANITYCHECK): Likewise.
27153         (gl_MBRTOWC_NULL_ARG2): Likewise.
27154         (gl_MBRTOWC_NUL_RETVAL): Likewise.
27156 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27158         freopen: work around glibc bug with closed fd
27159         Work around glibc bug#15589, where freopen mishandles the case
27160         where stdin etc. are already closed.
27161         * doc/posix-functions/freopen.texi (freopen): Document the bug.
27162         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
27163         instead of __need_FILE, as the latter does not work with glibc.
27164         Include <fcntl.h>, for open flags.
27165         (rpl_freopen): Work around glibc bug.
27166         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
27167         * modules/freopen (Depends-on): Add fcntl-h.
27168         * tests/test-freopen.c (main): Test for bug.
27170 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27172         fnmatch: fix typo introduced on 2016-08-17
27173         This fixes the port to non-GCC compilers that lack __builtin_expect.
27174         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
27176         dfa: simplify with new function fillset
27177         * lib/dfa.c (fillset): New function.
27178         Use it for clarity when applicable.
27180         dfa: fix glitches with on-demand states
27181         Also, adjust commentary to better match new code.
27182         Some of these glitches predate the recent change.
27183         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
27184         only non-initial states.
27185         (dfastate): Rename locals to better match new roles.
27186         Move them into nested scopes if this is easy.
27187         Omit unnecessary calls to zeroset.
27188         Simplify test for whether to throw in the positions of state 0.
27189         Omit C99-ism (decl after statement) since Gawk still wants C89.
27190         (build_state): Omit unnecessary test and assignment.
27191         Fix some confusion that counted transition tables inaccurately
27192         and could cause a memory leak.
27193         (dfaexec_main): Redo to make it clearer to the compiler that
27194         -1 and -2 are the only negative state numbers here.
27196 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27198         dfa: addition of new state on demand
27199         * src/dfa.c (dfastate): Add argument UC, the current input character.
27200         Fill only a group including the character in transition table.
27201         (realloc_trans_if_necessary): Add the dummy state which means that a
27202         transition table is assigned but the next state is not assigned.
27203         (build_state): Return the next state.  All callers updated.
27204         (transit_state_singlebyte): If we get the dummy state,
27205         fill the transition table.
27206         (dfaexec_main): Handle the dummy state.
27207         (free_mbdata, dfafree): Consider the dummy state.
27209 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27211         srclist: sync with released gettext
27212         * config/srclist.txt: Set "release" option to the files under
27213         $GETTEXT.
27215 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27217         srclist: add "release" option
27218         * config/srclist.txt: Change the format so that the first column
27219         of each line points to the top-level directory of the source
27220         archive.
27221         * config/srclist-update: Accept "release" option that checks files
27222         from the most recently tagged revision in the source archive.
27224 2016-11-21  Bruno Haible  <bruno@clisp.org>
27226         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
27227         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27228         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
27229         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
27230         Inline and remove member function 'rpl ()' of the wrapper struct.
27232 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27234         dfa: fix logic typo
27235         Problem reported by Stephane Chazelas (Bug#24973).
27236         * lib/dfa.c (using_simple_locale): Fix typo that caused some
27237         non-simple locales like fr_FR to be treated as simple.
27239 2016-11-20  Jim Meyering  <meyering@fb.com>
27241         fix test driver leaks: exclude, malloc, realloc
27242         * tests/test-exclude.c (main): Fix trivial leak.
27243         * tests/test-malloc-gnu.c (main): Likewise.
27244         * tests/test-realloc-gnu.c (main): Likewise.
27245         With these changes, grep's tests are now leak free.
27246         I.e., running them with ASAN elicits no failure:
27247           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
27248             AM_LDFLAGS='-fsanitize=address -static-libasan' check
27250 2016-11-11  Bruno Haible  <bruno@clisp.org>
27252         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
27253         * modules/libunistring: (License): Change from LGPL to
27254         "LGPLv3+ or GPLv2".
27255         * modules/libunistring-optional: Likewise.
27256         * modules/unicase/*: Likewise.
27257         * modules/uniconv/*: Likewise.
27258         * modules/unictype/*: Likewise.
27259         * modules/unigbrk/*: Likewise.
27260         * modules/unilbrk/*: Likewise.
27261         * modules/uniname/*: Likewise.
27262         * modules/uninorm/*: Likewise.
27263         * modules/unistdio/*: Likewise.
27264         * modules/unistr/*: Likewise.
27265         * modules/uniwbrk/*: Likewise.
27266         * modules/uniwidth/*: Likewise.
27268 2016-11-12  Bruno Haible  <bruno@clisp.org>
27270         Relicense some modules under LGPLv2+.
27271         Paul Eggert's approval is in
27272         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
27273         Eric Blake's approval is in
27274         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
27275         Ludovic Courtès's approval is in
27276         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
27277         * modules/isnand-nolibm (License): Change to LGPLv2+.
27278         * modules/isnanf-nolibm (License): Likewise.
27279         * modules/isnanl-nolibm (License): Likewise.
27281 2016-11-19  Bruno Haible  <bruno@clisp.org>
27283         Relicense some modules under LGPLv2+.
27284         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
27285         modules/vasnprintf.
27286         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
27287         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
27288         All other significant changes to the files in lib/ of these modules
27289         are from me.
27290         * modules/memcmp2 (License): Change to LGPLv2+.
27291         * modules/amemxfrm (License): Likewise.
27292         * modules/fpieee (License): Likewise.
27293         * modules/fpucw (License): Likewise.
27294         * modules/frexp-nolibm (License): Likewise.
27295         * modules/frexpl-nolibm (License): Likewise.
27296         * modules/printf-frexp (License): Likewise.
27297         * modules/printf-frexpl (License): Likewise.
27298         * modules/printf-safe (License): Likewise.
27299         * modules/signbit (License): Likewise.
27301 2016-11-17  Bruno Haible  <bruno@clisp.org>
27303         Enable Unicode decoder safety unconditionally.
27304         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
27305         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
27306         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27307         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27308         * lib/unistr/u8-prev.c (u8_prev): Likewise.
27309         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
27310         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
27311         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
27312         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
27313         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
27314         * lib/unistr/u16-prev.c (u16_prev): Likewise.
27315         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
27316         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
27317         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
27318         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
27319         * lib/unistr/u32-prev.c (u32_prev): Likewise.
27320         * lib/unistr/u32-next.c (u32_next): Likewise.
27321         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
27322         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
27323         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27324         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27325         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
27326         CONFIG_UNICODE_SAFETY tests unconditionally.
27327         * tests/unistr/test-u32-mblen.c (main): Likewise.
27328         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27329         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27330         * tests/unistr/test-u32-next.c (main): Likewise.
27331         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27332         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27333         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27334         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27335         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27336         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27337         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27338         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27339         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27340         * lib/unistr/u16-check.c (u16_check): Update comment.
27341         * NEWS: Mention the changes that callers should be aware of.
27343 2016-11-19  Bruno Haible  <bruno@clisp.org>
27345         relocatable-prog-wrapper: Fix breakage on Cygwin.
27346         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27347         (Depends-on): Remove intprops.
27348         * lib/relocwrapper.c: Update dependency tree.
27349         (strerror): Undefine.
27350         * build-aux/install-reloc (func_create_wrapper): Do not compile
27351         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27353 2016-11-19  Bruno Haible  <bruno@clisp.org>
27355         strerror: Make it compile in C++ mode.
27356         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27358 2016-11-15  Pedro Alves  <palves@redhat.com>
27360         sys_time: add gnulib::timeval for C++
27361         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27362         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27363         timeval macro.
27365 2016-11-14  Pedro Alves  <palves@redhat.com>
27367         snippet/c++defs: fix real-floating arg functions in C++ mode
27368         Also, define isfinite, isinf, isnan, signbit in the gnulib
27369         namespace instead of in the global namespace.
27370         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27371         (_GL_END_NAMESPACE): New.
27372         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27373         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27374         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27375         instead of in the global namespace.
27376         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27377         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27378         of in the global namespace.
27380 2016-11-13  Jim Meyering  <meyering@fb.com>
27382         strftime: don't use __THROW
27383         Each use of __THROW would provoke this from gcc-7-to-be:
27385           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27386             on unit local functions [-Wattributes]
27387           static int iso_week_days (int, int) __THROW;
27388           ^~~~~~
27389         * lib/strftime.c (__THROW): Don't define.
27390         Remove each use of __THROW.
27391         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27392         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27394 2016-11-14  Paul Eggert  <eggert@union>
27396         obstack: port to gcc -fcheck-pointer-bounds
27397         Problem found by 'make check' failure on bleeding-edge coreutils
27398         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27399         6.2.0-5ubuntu12), configured via "./configure
27400         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27401         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27402         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27403         New macro, copied from fts_.h.
27404         (struct _obstack_chunk.contents): Use it.
27406 2016-11-14  Eric Blake  <eblake@redhat.com>
27408         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27409         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27410         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27412 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27414         strptime: fix compile error in recent change
27415         * lib/strptime.c (__strptime_internal): Fix ported code.
27417 2016-11-11  Bruno Haible  <bruno@clisp.org>
27419         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27420         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27421         (func_import): Extend determination of license_incompatibilities.
27422         (func_create_testdir): Extend table of license compatibility. Handle
27423         also the licenses GPLv3+, GPL, LGPLv3+.
27425 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27427         strftime: tune %q
27428         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27430         Merge strftime.c changes from glibc
27431         This incorporates:
27432         2007-10-16 [BZ #5184] Add tzset_called argument
27433         2008-06-13 [BZ #6612] pass reference to tzset_called around
27434         2009-10-30 Implement Burmese language locale for Myanmar
27435         2010-01-09 Add support for XPG7 testing
27436         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27437         2015-10-20 Convert miscellaneous function definitions to prototype style
27438         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27439         it anyway and this lessens the difference between gnulib and glibc.
27440         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27441         (__THROW): Define if standard headers do not.
27442         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27443         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27444         Declare with __THROW.
27445         (__strftime_internal): Rename from strftime_case_. Add arg for
27446         whether tzset is called.  All uses changed.  Call tzset at most
27447         once.  Allow %OC, for Burmese.
27448         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27449         Don't assume values are in range.
27451 2016-11-12  Eric Blake  <eblake@redhat.com>
27453         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27454         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27455         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27456         different value.
27458 2006-11-12  Pedro Alves  <palves@redhat.com>
27460         Fix gnulib C++ namespace support and std::frexp
27461         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27462         _GL_CXXALIASWARN.
27464 2006-11-12  Pedro Alves  <palves@redhat.com>
27466         GNULIB_NAMESPACE::func need not pull in rpl_func
27467         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27468         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27469         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27470         struct instead of a function pointer.
27472 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27474         manywarnings: fix -Wno-missing-field-initializers detection
27475         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27476         to be independent of -Wunused-variable.  I.E. ensure the latter
27477         warning doesn't occur so that detection of the former is accurate.
27479 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27481         strftime,strptime: support %q to represent the quarter
27482         * lib/strftime.c (strftime_case_): Add %q case.
27483         * lib/strptime.c (__strptime_internal): Likewise.
27484         * tests/test-strftime.c (quarter_test): A new test case.
27486 2016-11-03  Eric Blake  <eblake@redhat.com>
27488         bootstrap: Fix get_version() for AIX 5.3
27489         * build-aux/bootstrap (get_version): Factor out sed script, since
27490         indented comments choke AIX 5.3 sed.
27491         Reported-by: Michael Felt <aixtools@gmail.com>
27493 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27495         intprops: port to older XL C
27496         Problem reported by Alexander Samoilov in:
27497         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27498         http://savannah.nongnu.org/bugs/?49448
27499         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27500         Define to 1 only for XL C 12.1 or later, since this bug
27501         occurs in XL C for AIX 6.0 but not in 12.1.
27503 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27505         backupfile: initialize default suffix within the implementation
27506         * lib/backupfile.c (find_backup_file_name): Initialize the
27507         global variable here, to simplify usage, and to only call
27508         getenv() when needed.
27510 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27512         futimens: remove FIXME for old Linux kernels
27513         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27514         this in 2012" FIXME, like that for utimensat.
27516         utimensat: remove FIXME for old Linux kernels
27517         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27518         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27519         this in 2012" FIXME, by assuming the file system bug is absent
27520         unless demonstrated to be present.  We no longer need to worry
27521         about Linux kernel 2.6.32 when building with newer kernels.
27523 2016-10-16  Bruno Haible  <bruno@clisp.org>
27525         qsort_r: Fix macrology for platforms that lack the function.
27526         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27527         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27528         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27529         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27530         not exist.
27531         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27532         the function exists.
27533         * modules/qsort_r: Add comments.
27535 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27537         sys_types: fix Texinfo typos
27538         * doc/glibc-functions/gnu_dev_major.texi:
27539         * doc/glibc-functions/gnu_dev_makedev.texi:
27540         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27542 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27544         getprogname: port to HP-UX
27545         See Bug#24805.
27546         * lib/getprogname.c (getprogname) [__hpux]: Port.
27547         * tests/test-getprogname.c (STREQ) [__hpux]:
27548         Special-case for HP-UX limitations on program name length.
27550 2016-10-20  Bruno Haible  <bruno@clisp.org>
27552         Update doc about target platforms.
27553         * doc/gnulib-intro.texi (Target Platforms): Update list.
27555 2016-10-15  Bruno Haible  <bruno@clisp.org>
27557         opendir, readdir, closedir: Relicense under LGPLv2+.
27558         * modules/opendir (License): Change to LGPLv2+.
27559         * modules/readdir (License): Likewise.
27560         * modules/closedir (License): Likewise.
27562 2016-10-16  Bruno Haible  <bruno@clisp.org>
27564         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27566         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27567         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27568         HAVE_DECL_STRERROR_R.
27570 2016-10-16  Bruno Haible  <bruno@clisp.org>
27572         Make the 'argp' module work without the 'error' module.
27573         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27575 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27577         diffseq: restore TOO_EXPENSIVE heuristic
27578         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27579         (Bug#24715).  The simplest solution is to restore the
27580         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27581         using a higher threshold to avoid Bug#16848 on smaller files.
27582         * lib/diffseq.h (struct context): Restore member too_expensive.
27583         (struct partition): Restore members lo_minimal, hi_minimal.
27584         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27585         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27586         1993 to make 'diff' run faster (but not as well) on large inputs,
27587         but use a threshold of 4096 instead of the old 256.
27588         * lib/fstrcmp.c (strcmp_bounded):
27589         * lib/git-merge-changelog.c (compute_differences):
27590         Adjust to diffseq.h changes.
27592 2016-10-22  Bruno Haible  <bruno@clisp.org>
27594         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27595         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27596         declaration yet, define ICONV_CONST to empty.
27598 2016-10-15  Bruno Haible  <bruno@clisp.org>
27600         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27601         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27602         module.
27604 2016-10-16  Bruno Haible  <bruno@clisp.org>
27606         system-quote tests: Avoid compiler warning on AIX.
27607         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27608         <stdio.h> does.
27610 2016-10-16  Bruno Haible  <bruno@clisp.org>
27612         Fix some "gcc -Wall" warnings.
27613         * tests/test-ffsl.c (main): Use variable x, not i.
27614         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27615         freopen.
27616         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27617         of sethostname.
27619 2016-10-16  Bruno Haible  <bruno@clisp.org>
27621         gnulib-tool: Make --create-testdir on all modules work again.
27622         * gnulib-tool (func_create_testdir): Don't include the
27623         non-recursive-gnulib-prefix-hack module.
27625 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27627         libunistring: change the maintainer to 'all'
27628         * modules/gen-uni-tables, modules/libunistring:
27629         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27630         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27631         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27632         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27633         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27634         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27635         * modules/uniwidth/*: Change the maintainer to 'all'.
27637 2016-10-16  Bruno Haible  <bruno@clisp.org>
27639         Simplify "configure: checking ..." messages.
27640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27641         AC_MSG_NOTICE.
27642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27644 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27646         quotearg-tests: pacify gcc -Wall
27647         Problem reported by Bruno Haible in:
27648         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27649         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27650         * tests/test-quotearg.h: ... from here.
27652 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27654         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27655         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27656         Needed on Centos <= 4.
27658 2016-10-20  Jim Meyering  <meyering@fb.com>
27660         printf.m4: fix a bug in detecting printf %j support
27661         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27662         uintmax_t is defined in neither stdint.h nor inttypes.h.
27663         Before, this macro might have mistakenly set
27664         gl_cv_func_printf_sizes_c99=yes on such a system.
27665         Spotted by Zev Weiss.
27667 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27669         sched: substitute HAVE_SYS_CDEFS_H too
27670         Problem reported by Tom G. Christensen in:
27671         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27672         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27673         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27675 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27677         quotearg: never write beyond the returned length
27678         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27679         scan of the string when we initially encounter a single quote when
27680         shell quoting, so that if we then switch to a more concise quoting method
27681         we will not have written beyond that returned length.
27682         This is significant for sh-quote, which has separate routines
27683         to determine the length and do the actual quoting.
27684         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27685         now that we never write more than the returned length.
27687 2016-10-18  Bruno Haible  <bruno@clisp.org>
27689         getprogname tests: Avoid failure in packages that use libtool.
27690         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27691         Based on a patch by Jim Meyering.
27693 2016-10-16  Bruno Haible  <bruno@clisp.org>
27695         getprogname: Fix test failure on Cygwin. Comments.
27696         * lib/getprogname.h: Add comments.
27697         * lib/getprogname.c: Add comments. Fix #elif indentation.
27698         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27699         ".exe" suffix.
27701 2016-10-16  Bruno Haible  <bruno@clisp.org>
27703         Make sure the libunistring detection rejects older versions with a
27704         known bug.
27705         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27706         * modules/unistr/u16-strtok (configure.ac): Likewise.
27707         * modules/unistr/u32-strtok (configure.ac): Likewise.
27709 2016-10-18  Bruno Haible  <bruno@clisp.org>
27711         sh-quote, system-quote: revert regression of unit test.
27712         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27713         * tests/test-system-quote-main.c (check_one): Likewise.
27715 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27717         quotearg: fix stale tests
27718         * tests/test-quotearg.c [locale_results]: Add the missing str7
27719         entries to the expected results.
27720         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27721         don't write beyond the returned length, since that's no longer the
27722         case if we switch to a more concise quoting style.
27723         * tests/test-sh-quote.c (check_one): Likewise.
27724         (main): Adjust for the new more concise quoting style.
27725         Reported by Bruno Haible.
27727 2016-10-16  Jim Meyering  <meyering@fb.com>
27729         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27730         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27731         to "$1".  This macro is always invoked with $1 == lib.
27732         Spotted by Bruno Haible
27734 2016-10-16  Bruno Haible  <bruno@clisp.org>
27736         Fix a test crash.
27737         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27738         fails.
27740 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27742         test-limits-h: suppress -Woverlength-strings
27743         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27745 2016-10-15  Bruno Haible  <bruno@clisp.org>
27747         gettime, timespec, utimens: Relicense under LGPL.
27748         * modules/gettime (License): Change to LGPL.
27749         * modules/timespec (License): Likewise.
27750         * modules/utimens (License): Likewise.
27752 2016-10-14  Bruno Haible  <bruno@clisp.org>
27753             Pádraig Brady  <P@draigBrady.com>
27755         canonicalize-lgpl: Support the case path_max > INT_MAX.
27756         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27757         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27759 2016-10-13  Jim Meyering  <meyering@fb.com>
27761         getprogname: IBM z/OS: avoid NULL-dereference
27762         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27763         upon strdup failure.
27765 2016-10-12  Jim Meyering  <meyering@fb.com>
27767         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27768         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27769         and an abbreviated diagnostic rather than verify with the full one,
27770         because the full-length strings would evoke warnings from gcc with
27771         -Woverlength-strings.
27773 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27775         stdint: port SIZE_MAX to glibc s390
27776         Problem reported by Eric Blake in:
27777         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27778         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27779         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27780         correct type, if possible.
27782 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27784         getprogname: port to IBM z/OS
27785         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27787 2016-10-11  Jim Meyering  <meyering@fb.com>
27789         maint: remove stray space after "." in AC_DEFINE comment.
27790         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27791         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27793 2016-10-05  Jim Meyering  <meyering@fb.com>
27795         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27796         * lib/long-options.c (parse_long_options): Add a break statement
27797         to avoid this new warning/failure:
27798         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27799           --create-testdir --dir=/t/x --with-tests --test long-options
27800         ../../gllib/long-options.c: In function 'parse_long_options':
27801         ../../gllib/long-options.c:66:12: error: this statement may \
27802           fall through [-Werror=implicit-fallthrough]
27803                    (*usage_func) (EXIT_SUCCESS);
27804                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27806 2016-10-05  Jim Meyering  <meyering@fb.com>
27808         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27809         Testing this module would fail when using GCC 7 like this:
27810         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27811           --dir=/tmp/x --with-tests --test utimecmp
27812         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27813         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27814           [-Werror=bool-operation]
27815                          time_t s = src_s & ~ (res == 2 * BILLION);
27816                                             ^
27817         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27818           [-Werror=bool-operation]
27819                src_s &= ~ (res == 2 * BILLION);
27820                         ^
27821         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27822         Instead, make it explicit that we intend to apply it to 0 or 1.
27824 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27826         dfa: save memory for states
27827         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27828         states if dfa has a lot of caches.
27830 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27832         wchar, wctype-h: fix for MinGW 3.22.2
27833         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27834         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27835         when included from <string.h>.
27836         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27837         convention for MinGW 3.22.2, to solve issues with their
27838         wctype.h when included from <ctype.h>.
27840 2016-10-05  Jim Meyering  <meyering@fb.com>
27842         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27843         * lib/long-options.c (parse_long_options): Add a break statement
27844         to avoid this new warning/failure:
27845         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27846           --create-testdir --dir=/t/x --with-tests --test long-options
27847         ../../gllib/long-options.c: In function ‘parse_long_options’:
27848         ../../gllib/long-options.c:66:12: error: this statement may \
27849           fall through [-Werror=implicit-fallthrough]
27850                    (*usage_func) (EXIT_SUCCESS);
27851                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27853         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27854         Testing this module would fail when using GCC 7 like this:
27855         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27856           --dir=/tmp/x --with-tests --test utimecmp
27857         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27858         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27859           [-Werror=bool-operation]
27860                          time_t s = src_s & ~ (res == 2 * BILLION);
27861                                             ^
27862         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27863           [-Werror=bool-operation]
27864                src_s &= ~ (res == 2 * BILLION);
27865                         ^
27866         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27867         Instead, make it explicit that we intend to apply it to 0 or 1.
27869 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27871         quotearg: minimize shell quoting using double quotes
27872         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27873         quote in encountered then use double quotes (c style quoting)
27874         when possible, as it simplifies the quoting.
27875         * tests/test-quotearg-simple.c: Add test cases.
27876         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27877         for the fact we now may write beyond the returned length.
27879 2016-10-02  Jim Meyering  <meyering@fb.com>
27881         vasnprintf.c: avoid spurious warning from GCC 7
27882         The presence of cpp directives renders this "FALLTHROUGH" comment
27883         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27884         from GCC 7 built from git on 2016-10-02.
27885         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27886         directives, so that it takes effect once again.  This is clearly
27887         not a proper change, and I will revert it once this bug is fixed:
27888         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27890 2016-10-01  Jim Meyering  <meyering@fb.com>
27892         getprogname: correct the test for a __progname variable
27893         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27894         and AC_LINK_IFELSE to check for a global __progname.  If found,
27895         define HAVE_VAR___PROGNAME.
27896         * lib/getprogname.c (getprogname): Reflect the new name of the
27897         feature- checked preprocessor symbol:
27898         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27900 2016-09-28  Jim Meyering  <meyering@fb.com>
27902         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27903         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27904         fall-through case with a /* fallthrough */ comment.
27906         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27907         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27908         /* fallthrough */ comment.
27910         getprogname: avoid __progname vs program_invocation_short_name pitfall
27911         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27912         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27913         not with Fedora 24's glibc-2.23.1-10.
27914         * lib/getprogname.c (__progname): Move this declaration down...
27915         (getprogname): ... into the #elif block where used, and make it
27916         explicitly "extern".
27918         getprogname: port to OpenBSD 5.1
27919         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27920         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27921         * modules/getprogname (configure.ac): Move most of this code...
27922         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27923         increment serial number, and add a test for __progname.
27924         https://bugs.gnu.org/24562
27925         Reported by Nelson H. F. Beebe.
27927 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27929         sched: port to GCC 6.2.1 on macOS Sierra
27930         Problem reported by Denis Davydov in:
27931         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27932         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27933         Include <sys/cdefs.h> before <sched.h>.
27934         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27935         so that we needn’t worry about the sched.h include bug here.
27936         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27937         and include it before <sched.h> if it exists, when
27938         checking for <sched.h>.
27940         tests/init.sh: port Alpine fix to AIX 7.1
27941         * tests/init.sh (compare_): When attempting to use diff -U3,
27942         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27943         diff -u not outputting a space after leading '+', as the users
27944         of 'compare' should not be that picky about its output format.
27945         In the AIX 7.1 case, return with diff exit status (or with 2 if
27946         trouble), instead of some random nonzero exit status.
27947         * tests/test-init.sh (test_compare): Remove space after leading
27948         '+', so that AIX 7.1 'diff' passes the test.
27950 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27952         nl_langinfo: pacify GCC
27953         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27954         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27956         stdint: also set GL_GENERATE_LIMITS_H
27957         Problem reported by Jim Meyering in:
27958         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27959         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27961         limits-h, stdint: Don't assume extensions, fix typo
27962         * m4/limits-h.m4 (gl_LIMITS_H):
27963         * m4/stdint.m4 (gl_STDINT_H):
27964         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27965         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27966         reported by Jim Meyering in:
27967         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27969 2016-09-21  Jim Meyering  <meyering@fb.com>
27971         getprogname: port to AIX
27972         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27973         and strdup to obtain a short program name string.  Using code from
27974         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27975         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27976         Assaf Gordon reported that this new file would fail to compile on
27977         AIX-7.1 32bit.
27979 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27981         extensions: fix typo in comment
27982         * m4/extensions.m4: Sync from Autoconf master.
27984         stdint: support new _WIDTH macros
27985         * doc/posix-headers/stdint.texi: Document this.
27986         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27987         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27988         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27989         * modules/stdint (Depends-on): Add limits-h.
27990         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27991         * modules/stdint-tests (Depends-on): Add extensions, so that
27992         INTMAX_MAX etc. are defined.
27993         * tests/test-stdint.c: Verify the new macros.
27995         limits-h: new module
27996         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27997         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27998         * doc/posix-headers/limits.texi: Document new module.
27999         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
28000         * modules/limit-h-tests, tests/test-limits-h.c: New files.
28002         stdio: don't redefine __USE_MINGW_ANSI_STDIO
28003         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
28004         if it is already defined.  Apparently GNU Emacs relies on this.  See:
28005         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
28007 2016-09-15  Eric Blake  <eblake@redhat.com>
28009         sys_types: avoid glibc 2.25 warnings about major()
28010         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
28011         older autoconf.
28012         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
28013         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
28014         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
28015         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
28017         mountlist: include sysmacros.h for glibc
28018         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
28019         AC_HEADER_MAJOR.
28020         * lib/mountlist.c (includes): Use correct headers.
28022 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28024         extensions: port to more ISO C TSes
28025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
28026         master, to add support for more recent ISO C TRs and TSes.
28028 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28030         intprops: new macro TYPE_WIDTH
28031         * lib/intprops.h (TYPE_WIDTH): New macro.
28032         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
28033         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
28034         * lib/parse-datetime.y (parse_datetime2):
28035         Use it.
28037         extensions: port to recent ISO C TRs
28038         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28039         Sync from Autoconf master, to add support for recent ISO C TRs.
28040         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
28041         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
28042         the MinGW option is not an extension.
28044 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28046         dfa: port to Solaris 9
28047         Problems reported by Tom G. Christensen in:
28048         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
28049         * modules/dfa (Depends-on): Add isblank.
28050         * modules/dfa-tests (dfa_match_aux_LDADD):
28051         Rename from test_stat_LDADD, to fix typo.
28052         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
28054 2016-09-10  Jim Meyering  <meyering@fb.com>
28056         strverscmp: avoid link failure on OS X
28057         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
28058         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
28060 2016-08-16  Jim Meyering  <meyering@fb.com>
28062         dfa: new module, importing grep's DFA matcher
28063         Since grep's DFA matcher is now being used by two gnulib-enabled
28064         projects, grep and sed, it makes sense to version-control its
28065         sources and unit tests in one place: here.
28066         * modules/dfa: New module.
28067         * modules/dfa-tests: New file.
28068         * lib/dfa.c: New file, from grep.
28069         * lib/dfa.h: Likewise.
28070         * lib/localeinfo.c: Likewise.
28071         * lib/localeinfo.h: Likewise.
28072         * tests/dfa-match-aux.c: Likewise.
28073         * tests/dfa-invalid-char-class.sh: Likewise.
28074         * tests/dfa-match.sh: Likewise, with minor changes.
28075         * MODULES.html.sh (Misc): Add "dfa" to this list.
28077 2016-09-09  Jim Meyering  <meyering@fb.com>
28079         getprogname-tests: don't depend on assert-h
28080         * modules/getprogname-tests (Depends-on): Remove assert-h.
28081         It was not needed, and in fact would cause build failure for
28082         coreutils on some systems.  Reported by Assaf Gordon in https:
28083         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
28085 2016-09-07  Jim Meyering  <meyering@fb.com>
28087         getprogname-tests: work also when EXEEXT is nonempty
28088         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
28089         * tests/test-getprogname.c (main): Use it.
28090         Suggested by Gisle Vanem.
28092 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
28094         getprogname: fix errors in previous change
28095         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
28096         s/program_invocation_name/base/
28097         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
28099 2016-09-08  Pádraig Brady  <P@draigBrady.com>
28101         parse-datetime: restrict debug output to input string
28102         * lib/parse-datetime.y (parse_datetime2): If we parse
28103         all of the input but determine it's invalid, ensure
28104         we don't output the now invalid input pointer.
28105         This issue was seen with `date -d 'now +1'`.
28107 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28109         flexmember: new macro FLEXALIGNOF
28110         * lib/flexmember.h: Include <stddef.h>, for offsetof.
28111         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
28112         this macro.  Update comments.
28114 2016-09-07  Jim Meyering  <meyering@fb.com>
28116         getprogname: port to systems with __argv (mingw, msvc)
28117         * lib/getprogname.c (getprogname): Include "dirname.h" and use
28118         last_component: more general than open coding it with hard-coded "/".
28119         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
28120         * modules/getprogname (Depends-on): Add dirname-lgpl.
28121         (configure.ac): Check for __argv in <stdlib.h>.
28122         * modules/getprogname-tests: New file.
28123         * tests/test-getprogname.c: New file.
28124         Suggested by Gisle Vanem in
28125         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
28127 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28129         flexmember: port better to GCC + valgrind
28130         With a char[] flexible array member in a struct with nontrivial
28131         alignment, GCC-generated code can access past the end of the
28132         array, because GCC assumes there are padding bytes to get the
28133         struct aligned.  So the common idiom of malloc (offsetof (struct
28134         s, m), n) does not properly allocate an n-byte trailing member, as
28135         malloc’s argument should be the next multiple of alignof (struct s).
28136         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28137         Although C11 apparently permits this GCC optimization (i.e., there
28138         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
28139         See the thread containing:
28140         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
28141         * lib/flexmember.h: New file.
28142         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
28143         * lib/localename.c, lib/time_rz.c:
28144         Include flexmember.h.
28145         * lib/fnmatch_loop.c (struct patternlist):
28146         * lib/localename.c (struct hash_node):
28147         Use FLEXIBLE_ARRAY_MEMBER.
28148         * lib/fnmatch_loop.c (EXT):
28149         * lib/fts.c (fts_alloc):
28150         * lib/glob.c (glob_in_dir):
28151         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28152         * lib/localename.c (gl_lock_define_initialized):
28153         * lib/time_rz.c (tzalloc):
28154         Use FLEXSIZEOF instead of offsetof.
28155         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28156         Check that the size of the struct can be taken.
28157         * modules/flexmember (Files): Add lib/flexmember.h.
28158         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
28159         Add flexmember.
28161 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28163         getprogname: port to Solaris 10
28164         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
28165         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
28166         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
28168         stdalign: correct mistake in alignof doc
28169         Problem reported by Joseph Myers in:
28170         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
28171         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
28172         alignof(S) where S is a structure containing a flexible array
28173         member.  The Gnulib substitute does not support this, but C11 does.
28175 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28177         main.mk: remove sc_program_name, since there is no more need to
28178         use set_program_name in tools (getprogname is enough for most
28179         of the cases).
28180         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
28181         * top/maint.mk (sc_program_name): Remove.
28183 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28185         Port tests away from progname, since modules that need the
28186         program name already depend on getprogname.
28187         * modules/acl-tests (Depends-on): Remove progname.
28188         * modules/argmatch (Depends-on): Likewise.
28189         * modules/argmatch-tests (Depends-on): Likewise.
28190         * modules/argp-tests (Depends-on): Likewise.
28191         * modules/argp-version-etc-tests (Depends-on): Likewise.
28192         * modules/array-list-tests (Depends-on): Likewise.
28193         * modules/array-oset-tests (Depends-on): Likewise.
28194         * modules/avltree-list-tests (Depends-on): Likewise.
28195         * modules/avltree-oset-tests (Depends-on): Likewise.
28196         * modules/avltreehash-list-tests (Depends-on): Likewise.
28197         * modules/carray-list-tests (Depends-on): Likewise.
28198         * modules/copy-file-tests (Depends-on): Likewise.
28199         * modules/exclude-tests (Depends-on): Likewise.
28200         * modules/fchownat-tests (Depends-on): Likewise.
28201         * modules/fdopendir-tests (Depends-on): Likewise.
28202         * modules/filenamecat-tests (Depends-on): Likewise.
28203         * modules/fstatat-tests (Depends-on): Likewise.
28204         * modules/fstrcmp-tests (Depends-on): Likewise.
28205         * modules/linked-list-tests (Depends-on): Likewise.
28206         * modules/linkedhash-list-tests (Depends-on): Likewise.
28207         * modules/mkdirat-tests (Depends-on): Likewise.
28208         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
28209         * modules/nonblocking-socket-tests (Depends-on): Likewise.
28210         * modules/obstack-printf-tests (Depends-on): Likewise.
28211         * modules/openat-tests (Depends-on): Likewise.
28212         * modules/parse-datetime-tests (Depends-on): Likewise.
28213         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
28214         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
28215         * modules/quotearg-simple-tests (Depends-on): Likewise.
28216         * modules/quotearg-tests (Depends-on): Likewise.
28217         * modules/rbtree-list-tests (Depends-on): Likewise.
28218         * modules/rbtree-oset-tests (Depends-on): Likewise.
28219         * modules/rbtreehash-list-tests (Depends-on): Likewise.
28220         * modules/spawn-pipe-tests (Depends-on): Likewise.
28221         * modules/system-quote-tests (Depends-on): Likewise.
28222         * modules/uniname/uniname-tests (Depends-on): Likewise.
28223         * modules/uninorm/nfc-tests (Depends-on): Likewise.
28224         * modules/uninorm/nfd-tests (Depends-on): Likewise.
28225         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
28226         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
28227         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
28228         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
28229         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
28230         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
28231         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
28232         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
28233         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
28234         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
28235         * modules/unlinkat-tests (Depends-on): Likewise.
28236         * modules/version-etc-tests (Depends-on): Likewise.
28237         * modules/xalloc-die-tests (Depends-on): Likewise.
28238         * modules/xmemdup0-tests (Depends-on): Likewise.
28239         * modules/xprintf-posix-tests (Depends-on): Likewise.
28240         * modules/xvasprintf-tests (Depends-on): Likewise.
28241         * tests/test-argmatch.c: Do not include progname.h.
28242         (main) Stop calling set_program_name.
28243         * tests/test-argp-version-etc.c: Likewise.
28244         * tests/test-argp.c: Likewise.
28245         * tests/test-argv-iter.c: Likewise.
28246         * tests/test-array_list.c: Likewise.
28247         * tests/test-array_oset.c: Likewise.
28248         * tests/test-avltree_list.c: Likewise.
28249         * tests/test-avltree_oset.c: Likewise.
28250         * tests/test-avltreehash_list.c: Likewise.
28251         * tests/test-carray_list.c: Likewise.
28252         * tests/test-copy-acl.c: Likewise.
28253         * tests/test-copy-file.c: Likewise.
28254         * tests/test-exclude.c: Likewise.
28255         * tests/test-fchownat.c: Likewise.
28256         * tests/test-fdopendir.c: Likewise.
28257         * tests/test-filenamecat.c: Likewise.
28258         * tests/test-fstatat.c: Likewise.
28259         * tests/test-fstrcmp.c: Likewise.
28260         * tests/test-linked_list.c: Likewise.
28261         * tests/test-linkedhash_list.c: Likewise.
28262         * tests/test-mkdirat.c: Likewise.
28263         * tests/test-nonblocking-pipe-main.c: Likewise.
28264         * tests/test-nonblocking-socket-main.c: Likewise.
28265         * tests/test-obstack-printf.c: Likewise.
28266         * tests/test-openat.c: Likewise.
28267         * tests/test-parse-datetime.c: Likewise.
28268         * tests/test-pipe-filter-gi1.c: Likewise.
28269         * tests/test-pipe-filter-gi2-main.c: Likewise.
28270         * tests/test-pipe-filter-ii1.c: Likewise.
28271         * tests/test-pipe-filter-ii2-main.c: Likewise.
28272         * tests/test-quotearg-simple.c: Likewise.
28273         * tests/test-quotearg.c: Likewise.
28274         * tests/test-rbtree_list.c: Likewise.
28275         * tests/test-rbtree_oset.c: Likewise.
28276         * tests/test-rbtreehash_list.c: Likewise.
28277         * tests/test-sameacls.c: Likewise.
28278         * tests/test-set-mode-acl.c: Likewise.
28279         * tests/test-spawn-pipe-main.c: Likewise.
28280         * tests/test-system-quote-main.c: Likewise.
28281         * tests/test-unlinkat.c: Likewise.
28282         * tests/test-version-etc.c: Likewise.
28283         * tests/test-xalloc-die.c: Likewise.
28284         * tests/test-xfprintf-posix.c: Likewise.
28285         * tests/test-xmemdup0.c: Likewise.
28286         * tests/test-xprintf-posix.c: Likewise.
28287         * tests/test-xvasprintf.c: Likewise.
28288         * tests/uniname/test-uninames.c: Likewise.
28289         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28290         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28291         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28292         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28293         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28294         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28295         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28296         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28297         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28298         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28299         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28300         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28301         * tests/test-c-stack.c: (program_name): Do not define.
28302         (main): Do not set program_name.
28303         * tests/test-closein.c: Likewise.
28304         * tests/test-xstrtol.c: Likewise.
28305         * tests/test-yesno.c: Likewise.
28307 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28309         Port modules to use getprogname explicitly, instead of requiring
28310         progname to be used (or program_name to be provided).
28311         * lib/argmatch.c: Do not include progname.h.
28312         [TEST] (program_name): Do not define.
28313         [TEST] (main): Call getprogname instead of using program_name.
28314         * lib/c-stack.c: Do not include progname.h.
28315         (program_name): Do not define.
28316         (die): Call getprogname instead of using program_name.
28317         * lib/chdir-long.c: Do not include progname.h.
28318         [TEST_CHDIR] (main): Do not set program_name.
28319         * lib/error.c [!_LIBC]: Include progname.h.
28320         [!_LIBC] (program_name): Define using getprogname.
28321         * lib/euidaccess.c: Do not include progname.h.
28322         [TEST] (main): Do not set program_name.
28323         * lib/git-merge-changelog.c: Include getprogname.h instead of
28324         progname.h.
28325         (usage): Call getprogname instead of using program_name.
28326         (main): Likewise.  Stop calling set_program_name.
28327         * lib/group-member.c: Do not include progname.h.
28328         [TEST] (main): Do not set program_name.
28329         * modules/argmatch (Depends-on): Add getprogname.
28330         * modules/c-stack (Depends-on): Likewise.
28331         * modules/error (Depends-on): Likewise.
28332         * modules/git-merge-changelog (Depends-on): Likewise.
28333         Also remove progname.
28335 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28337         * NEWS: Document the deprecation of the 'progname' module.
28339 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28341         getprogname: new module
28342         This provides a LGPL module for getting the name of the current
28343         program, using the same API found on *BSD systems.
28344         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28345         * modules/getprogname: New files.
28346         * MODULES.html.sh (Misc): Add getprogname.
28348 2016-09-02  Jim Meyering  <meyering@fb.com>
28350         manywarnings: add -fno-common
28351         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28352         to the list.  Quoting the manual, "Compiling with -fno-common is
28353         useful on targets for which it provides better performance, or if
28354         you wish to verify that the program will work on other systems that
28355         always treat uninitialized variable declarations this way [putting
28356         it in the data section]."  If diffutils had been using this sooner,
28357         it would have prevented this duplicate declaration issue:
28358         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28360 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28362         parse-datetime: Fix typo.
28363         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28365 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28367         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28368         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28369         GCC 5 and 6 that have __builtin_sub_overflow but not
28370         __builtin_sub_overflow_p.  With the recent changes, these
28371         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28372         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28373         since the former needs just one runtime comparison whereas the
28374         latter needs two.
28376         strverscmp: sync with glibc
28377         Although this doesn't exactly synchronize with glibc
28378         byte-for-byte, it makes the code behave the same as glibc.
28379         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28380         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28381         difference shouldn't matter in practical use.  All uses changed
28382         back to isdigit.
28383         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28384         (next_state): Now unsigned char array; redo elements.
28385         (result_type): Now signed char array; redo elements.
28386         (__strverscmp): Fix glibc bug 9913 by using new states.
28387         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28389 2016-08-29  Jim Meyering  <meyering@fb.com>
28391         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28392         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28393         similarly to how it was done to intprops.h.
28395 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28397         intprops.h: port recent changes to GCC 6.2.0
28398         * lib/intprops.h (__has_builtin): Move earlier.
28399         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28400         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28401         the last argument can be null.  All uses changed.
28402         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28403         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28404         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28405         and it's not clear which GCC versions it works for.
28406         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28407         its definiens.
28409         intprops.h: use __typeof__ with GCC 7
28410         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28411         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28412         This avoids computing the expression's value (which might overflow!).
28414 2016-08-29  Jim Meyering  <meyering@fb.com>
28416         intprops.h, xalloc-oversized.h: work with gcc 7
28417         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28418         __builtin_mul_overflow each accept a NULL pointer as the third
28419         argument.  However in gcc 7, that is no longer accepted.
28420         Instead, one must use the "_p"-suffixed names, with which, the
28421         third parameter is no longer a pointer.
28422         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28423         the definition: not true for gcc 7 and subsequent.
28424         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28425         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28426         Provide new definitions for gcc 7 and subsequent.
28427         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28428         that works with gcc-7.
28430         intprops.h: fix missing-backslash problems
28431         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28432         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28434 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28436         intprops: fix paren typo on old platforms
28437         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28438         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28439         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28440         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28441         && !defined LLONG_MAX]:
28442         Remove stray paren.
28444         intprops: port to OpenVMS
28445         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28446         * doc/posix-headers/limits.texi: Document the problem.
28447         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28448         Define if not already defined.
28450 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28452         parse-datetime: improve debug implementation
28453         Follow-up to commit 12ad79069 ("add optional debug printing").
28454         Improve parse-datetime's debug implementation: remove macros,
28455         replace global debug flag variable with a function parameter,
28456         use nstrftime for formatting.
28457         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28458         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28459         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28460         debug flag. Existing interface 'parse_datetime' left unmodified.
28461         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28462         (struct parser_control): add 'parse_datetime_debug' member variable.
28463         (parse_datetime): Call new function 'parse_datetime2' without debug.
28464         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28465         pc.parse_datetime_debug variable as needed.
28466         (to_year): Accept new flags parameter, instead of using global variable.
28467         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28468         use struct 'debug' variable instead of global variable.
28469         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28470         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28471         correspnding functions directly instead of using macros.
28472         * modules/parse-datetime: Add gnulib's strftime module.
28474 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28476         c-strcase-tests: port to EBCDIC
28477         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28478         which assume ASCII encoding semantics to run only in ASCII
28479         mode, as they fail in EBCDIC.
28481         sigpipe-tests: fix typo
28482         * tests/test-sigpipe.sh: C, not B.
28484 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28486         canonicalize-lgpl: fix errno after malloca fails
28487         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28488         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28489         * lib/canonicalize-lgpl.c (__realpath):
28490         Don't assume malloca sets errno on failure.
28492 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28494         strtod: port errno handling to z/OS
28495         * lib/strtod.c (strtod): Save and restore errno more reliably.
28497 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28499         strtod: port to z/OS
28500         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28501         implementation.
28503 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28505         strtod: port to z/OS
28506         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28507         implementation.
28509         regex, string: rename to avoid '__string'
28510         * lib/regex.h, lib/string.in.h: Do not use the identifier
28511         '__string', as it is effectively reserved by string.h on z/OS.
28513         c-strcase-tests, wcwidth-tests: depend on c-ctype
28514         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28515         Add c-ctype.
28517 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28519         thread: port to z/OS
28520         * lib/glthread/thread.c, lib/glthread/thread.h:
28521         Rudimentary gl_thread support for z/OS.
28523         maint: port tests to z/OS errno behavior
28524         * tests/test-nonblocking-reader.h:
28525         * tests/test-nonblocking-writer.h:
28526         Accommodate z/OS errno code preferences. (I believe this should
28527         still be within spec; IBM is good at following the letter if not
28528         the spirit of such things.)
28530         maint: preprocessor changes to support z/OS
28531         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28532         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28533         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28534         * tests/test-nonblocking-pipe.h:
28536         fclose, strstr-simple, wchar: port to z/OS
28537         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28538         Changes to the Autoconf M4 code to support z/OS.  Note that
28539         fclose() is broken in a different way on z/OS than it is on other
28540         systems, thus the special-case in fclose.m4.
28542         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28543         * tests/test-iconv-utf.c, tests/test-iconv.c:
28544         Added appropriately conditional #pragmas so that the test strings
28545         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28546         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28547         addressed in a more portable way by simply rewriting all the ASCII
28548         literal characters as octal escapes, but then you would lose the
28549         partial readability that the strings have now. Also, iconv_open()
28550         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28552         c-strcase-tests, wcwidth-tests: port to EBCDIC
28553         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28554         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28555         * tests/test-wcwidth.c: Likewise.
28557 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28559         stdbool: don't require _Bool for C++
28560         Problem reported by David Seifert in:
28561         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28562         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28563         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28564         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28565         stricter about checking that bool and _Bool are compatible in C.
28567 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28569         getdelim: remove dependency on realloc-posix
28570         * lib/canonicalize-lgpl.c (alloc_failed)
28571         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28572         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28573         Use __set_errno where needed, for consistency.
28574         * lib/getdelim.c (alloc_failed): New function.
28575         (getdelim): Use it.
28577 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28579         parse-datetime: add optional debug printing
28580         Print parsing information, warnings, and errors to stderr.
28581         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28582         * lib/parse-datetime.y:
28583         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28584         (PROGRESS*): Same as DEBUG, for progress reporting.
28585         (dbg_printf): Print message to stderr, with 'date' prefix.
28586         (struct parser_control): Add 'debug_*_seen' variables.
28587         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28588         (debug_print_current_time, debug_print_relateive_time): Prints the
28589         current/relative date/time value of parser_control.
28590         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28591         (to_year): Warn about 2-digit year parsing.
28592         (yylex):   Warn about unrecognized words.
28593         (get_effective_timezone): Returns current timezone in minutes.
28594         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28595         clearly and unambigiously as possible.
28596         (debug_mktime_not_ok): Print detailed information about failed
28597         date/time values.
28598         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28599         PROGRESS messages for status messages.
28600         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28602 2016-08-06  Jim Meyering  <meyering@fb.com>
28604         tests/init.sh: exclude dash with bad "local" semantics
28605         * tests/init.sh (gl_shell_test_script_): Add a function to
28606         eliminate a shell like "dash" (unlike bash, zsh) that has
28607         surprising/risky "local var='...'" semantics.  Inspired by
28608         the problem and discussion in https://bugs.gnu.org/24116#11.
28610 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28612         maint.mk: expand the prohibit_doubled_word regex
28613         This check has a static list of words that are checked for
28614         repetitions.  Expand it before running the perl script to
28615         avoid using expensive captures.  This decreases the cost
28616         for libvirt from 1.66s to 0.66s.
28617         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28618         (sc_prohibit_doubled_word): Use it.
28620 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28622         useless-if-before-free: skip non-matching lines early
28623         * build-aux/useless-if-before-free: First match each line with the
28624         simple/quick /\bif\b/ and reject if there is no match. This often
28625         saves the cost of the much more involved regular expression.
28626         For libvirt, this decreases the cost from 1.44s to 1.02s.
28628 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28630         maint.mk: speed up sc_po_check
28631         sc_po_check would skip files based on their names, or on the
28632         existence of files with derived names. Rewrite it to use perl
28633         instead of shell to make the check faster.
28634         * top/maint.mk (perl_translatable_files_list_): Define.
28635         (sc_po_check): Use it.
28637 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28639         maint.mk: speed up require_config_h_first
28640         Instead of spawning three processes per file,
28641         rewrite the check in perl and run it once for all the files.
28642         * top/maint.mk (perl_config_h_first_): Define.
28643         (sc_require_config_h_first): Use it in place of shell code.
28645 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28647         maint.mk: speed up sc_po_check
28648         sc_po_check would skip files based on their names, or on the
28649         existence of files with derived names. Rewrite it to use perl
28650         instead of shell to make the check faster.
28651         * top/maint.mk (perl_translatable_files_list_): Define.
28652         (sc_po_check): Use it.
28654 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28656         obstack: pacify GCC 6 with -Wnull-dereference
28657         Problem reported by Assaf Gordon in:
28658         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28659         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28660         Declare with __attribute_noreturn__.
28661         * lib/obstack.h (__attribute_noreturn__): New macro.
28663 2016-07-13  Eric Blake  <eblake@redhat.com>
28665         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28666         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28667         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28669 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28671         doc: mention glibc SSIZE_MAX buglet
28672         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28674 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28676         printf-posix: Fix mingw build
28677         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28678         expression for detecting C symbol prefixes but forgot to qoute square
28679         brackets in the command line arguments for grep.  That way when
28680         building with mingw the condition was false although it ought to be
28681         true instead.  In particular scenarios this led to the following
28682         compile error:
28684             Cannot export rpl_printf: symbol not found
28685             Cannot export rpl_scanf: symbol not found
28686             collect2: error: ld returned 1 exit status
28688         Fix this by properly quoting square brackets.
28690 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28692         mktime: call tzset as per POSIX
28693         Problem reported by Ludovic Courtès in:
28694         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28695         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28696         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28698 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28700         fts: handle readdir() errors
28701         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28702         but also upon error when it will also set errno.  Therefore
28703         flag the error case from readdir().  We treat the case where
28704         no items are read the same as if the dir can't be accessed,
28705         i.e. by setting fts_errno to FTS_DNR.
28707 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28709         intprops: port better to GCC 7
28710         GCC 7 __builtin_add_overflow supports a new usage form, where the
28711         last argument is a null pointer, and which merely returns 1 if an
28712         overflow would occur.  This is a constant expression if all
28713         arguments are constants, and should generate faster code when code
28714         needs to be generated.
28715         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28716         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28717         Use builtin operations if available.
28718         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28719         operations are available, as it's almost surely faster.
28721 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28723         intprops-test: port to GCC 6
28724         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28725         since the bug is not fixed in GCC 6.1.
28727 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28729         xalloc-oversized: port to GCC 7; fewer warnings
28730         GCC 7 will have a better way to deal with integer overflow.
28731         Plus, fix a warnings problem reported by Tim Ruehsen in:
28732         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28733         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28734         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28735         For GCC 5, use __xalloc_oversized if both args are constants,
28736         or if pedantic.
28738 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28740         regex: port to Sun C
28741         Reported by Daiki Ueno.
28742         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28743         __restrict, in prototype.  This fixes a problem I introduced in
28744         the 2016-02-19 merge from glibc.
28746 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28748         stdbool: Restore __bool_true_false_are_defined check
28749         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28750         __bool_true_false_are_defined is still defined, even with C++11.
28752 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28754         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28755         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28757 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28759         Use GCC_LINT, not lint
28760         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28761         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28762         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28763         Document problem with lint and _Noreturn.
28764         * lib/diffseq.h (IF_LINT, IF_LINT2):
28765         * lib/fts.c (sccsid):
28766         * lib/getndelim2.c (IF_LINT):
28767         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28768         (gl_linked_iterator_from_to):
28769         * lib/gl_anytree_list2.h (gl_tree_iterator)
28770         (gl_tree_iterator_from_to):
28771         * lib/gl_anytree_oset.h (gl_tree_iterator):
28772         * lib/gl_array_list.c (gl_array_iterator)
28773         (gl_array_iterator_from_to):
28774         * lib/gl_array_oset.c (gl_array_iterator):
28775         * lib/gl_carray_list.c (gl_carray_iterator)
28776         (gl_carray_iterator_from_to):
28777         * lib/idcache.c:
28778         * lib/inet_ntop.c (IF_LINT):
28779         * lib/regcomp.c (build_charclass_op, create_tree):
28780         * lib/regex_internal.c (re_acquire_state)
28781         (re_acquire_state_context):
28782         * lib/trigl.c (rcsid):
28783         * lib/trim.c (IF_LINT):
28784         * lib/vasnprintf.c (IF_LINT):
28785         * lib/verify.h (assume):
28786         Treat GCC_LINT like lint.
28788 2016-05-29  Bruno Haible  <bruno@clisp.org>
28790         secure_getenv: Port to many more platforms.
28791         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28792         functions.
28793         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28794         for non-BSD Unix platforms and for native Windows.
28795         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28796         Prompted by a request from Nikos Mavrogiannopoulos.
28798 2016-05-27  Eric Blake  <eblake@redhat.com>
28800         canonicalize: Fix broken probe for realpath.
28801         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28802         in logic introduced in 54615b95.
28804 2016-05-26  Eric Blake  <eblake@redhat.com>
28806         unsetenv: relax to LGPLv2+
28807         * modules/unsetenv (License): Match setenv license.
28809 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28811         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28812         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28813         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28814         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28815         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28816         (generate_html, generate_info, generate_tex, outdir)
28817         (source_extra, split, srcfile, texarg): Move above 'version'.
28818         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28820 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28822         manywarnings: update for GCC 6.1
28823         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28824         Add GCC 6.1 options that apply to C.
28825         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28826         do not apply to C, are obsolescent, etc.
28828 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28830         glob: size_t overflow checks
28831         * lib/glob.c (__has_builtin): New macro.
28832         (size_add_wrapv, glob_use_alloca): New static functions.
28833         (glob, glob_in_dir): Check for size_t overflow in several places,
28834         and fix some size_t checks that were not quite right.
28836         glob: don't assume INT_MAX < SIZE_MAX
28837         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28838         latter is not portable to (probably theoretical) hosts where
28839         SIZE_MAX <= INT_MAX.
28841 2016-05-09  Bruno Haible  <bruno@clisp.org>
28843         Fix undefined behaviour in gettext.h.
28844         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28845         pointer's value after the storage it points to has been freed.
28846         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28847         Spotted by Coverity.
28849 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28851         git-version-gen: avoid undefined shift
28852         Problem reported by Mosè Giordano in:
28853         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28854         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28855         with --prefix or --fallback but without a later argument.  While
28856         we're at it, omit unnecessary quotes.
28858 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28860         glob: merge glibc changes into lib/glob.c
28861         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28862         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28863         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28864           struct dirent [BZ #19779]
28865         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28866           callback gl_readdir
28867         2015-10-20 Convert miscellaneous function definitions to prototype style
28868         2015-10-20 Convert 113 more function definitions to prototype style
28869           (files with assertions)
28870         2015-06-12 Fix getlogin_r namespace (bug 18527).
28871         2014-02-10 Use glibc_likely instead __builtin_expect.
28872         2013-10-20 When glob pattern contains a trailing slash match only
28873           directories. Fixes bug 10278.
28874         2013-09-04 glob: silence -Wattribute warnings
28875         2013-06-07 Avoid use of "register" as optimization hint.
28876         2012-09-25 Use size_t instead of int for internal variables in glob
28877           (bug 14621)
28878         2011-07-20 Check for overflows in expressions
28879         2011-05-28 Remove unused variable
28880         2011-05-22 Add a few more alloca size checks
28881         2010-03-27 Whitespace fixes
28882         2010-03-27 Fix one more issue with the glob patch
28883         2010-03-24 Fix glob with empty pattern
28884         2008-05-27 Remove useless more "if" tests before "free"
28885         * modules/glob (Depends-on): Add stdint.
28887 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28889         mktime: port to stricter signed overflow checking
28890         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28891         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28892         instead of merely for INT_MAX * 2.  In practice platforms that
28893         do the latter also do the former.
28894         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28895         (shr): New static function, replacing SHR.  All uses changed.
28896         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28897         and TIME_T_MAX.  All uses changed.
28898         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28899         Use long_int, not time_t.
28900         (long_int_avg): New static function, replacing time_t_avg.
28901         All uses changed.  Round toward positive infinity, as that
28902         generates slightly better code.
28903         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28904         by INT_ADD_WRAPV.
28905         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28906         (convert_time): New static function.
28907         (ranged_convert): Use it
28908         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28909         Use simpler test for loop exit.
28910         (__mktime_internal): Store negative of guessed offset, to simplify
28911         overflow checking.  Remove no-longer-needed test for small time_t
28912         overflows.
28914         mktime: speed up DEBUG_MKTIME benchmarks
28915         Call tzset just once, at the start, rather than for every test
28916         case.  This lets us measure the CPU cost of mktime as opposed to
28917         that of tzset.  This is relevant when TZ is not set and glibc is
28918         being used.  This speeds up tests by a factor of 40 on my Fedora
28919         23 x86-64 platform.
28920         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28921         to call tzset and as a sanity check.  Later on, use localtime_r
28922         instead of localtime.
28924         mktime: resurrect DEBUG_MKTIME testing
28925         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28926         Include <string.h>, for strcmp.
28928         mktime: simplify DEBUG_MKTIME
28929         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28930         Simplify later usage accordingly.
28932         Port mktime_internal offset to unsigned time_t
28933         This avoids some assumptions about wraparound arithmetic on
28934         signed integer overflow.
28935         * lib/mktime-internal.h (mktime_offset_t): New type.
28936         (mktime_internal): Use it in decl.
28937         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28939         * lib/mktime.c (__mktime_internal, localtime_offset):
28940         * lib/timegm.c (timegm): Use it.
28941         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28942         (gl_FUNC_MKTIME): Require it.
28944 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28946         xstrtol: prohibit monstrosities like "1bB"
28947         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28948         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28949         "B" only if the first suffix needs a base.
28950         * tests/test-xstrtol.sh: Test this.
28952 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28954         xstrtod: reinstate setting of *result upon ERANGE
28955         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28956         the returned limits upon ERANGE, so allow and document that.
28958 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28960         xstrtod: modify *result only if no errors
28961         * lib/xstrtod.c (XSTRTOD).
28963 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28965         btowc: document problems in C locale
28966         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28967         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28969 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28971         mktime: improve integer overflow checking
28972         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28973         (WRAPV): Remove; no longer needed.
28974         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28975         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28976         Remove.  Use intprops.h defns instead.
28977         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28978         Use bool for Boolean, for clarity.
28979         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28980         detect integer overflow.
28981         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28983         intprops: check two's complement assumption
28984         Suggested by Eric Blake in:
28985         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28986         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28987         short, int, long, and (if available) long long are two's complement.
28988         * modules/intprops (Depends-on): Add 'verify'.
28990         intprops, mktime, strtol: assume two's complement
28991         These macros were not portable to every conforming C11 ones'
28992         complement platform.  It's not worth the hassle of porting to some
28993         platforms that use ones' complement or signed magnitude, as such
28994         platforms are almost purely theoretical nowadays and porting even
28995         to some of them makes the code harder to review for little
28996         practical benefit.  Problem reported by Florian Weimer in:
28997         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28998         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28999         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
29000         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
29001         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29002         (TYPE_SIGNED_MAGNITUDE):
29003         Remove.  All uses rewritten to assume two's complement, which is
29004         all we can reasonably test nowadays anyway.
29005         * top/maint.mk (_intprops_names): Remove the removed macros.
29007 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
29009         stdint: port to strict C11 left shift
29010         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
29011         Pacify clang -Wshift-negative-value, which should be an issue only
29012         on clang setups where stdint.h does not conform to C11 or to C++11.
29013         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
29015 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29017         mbrtowc: work around glibc bug#19932
29018         Fix mbrtowc so that it never returns -1 in the C locale,
29019         as this conflicts with a future version of POSIX
29020         http://austingroupbugs.net/view.php?id=663#c2738
29021         and causes problems with GNU grep: http://bugs.gnu.org/23234
29022         See glibc bug 19932:
29023         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
29024         * doc/posix-functions/mbrlen.texi (mbrlen):
29025         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29026         Document the glibc bug.
29027         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
29028         Include hard-locale.h, locale.h.
29029         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
29030         if the bug is possible.
29031         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
29032         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
29033         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
29034         * modules/mbrtowc (Depends-on): Add hard-locale.
29035         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
29036         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
29037         * tests/test-mbrtowc5.sh: New file.
29039 2016-04-03  Pedro Alves  <palves@redhat.com>
29041         stdint: detect good enough pre-C++11 stdint.h in C++ mode
29042         When gnulib is configured in C++ mode for a system with a working C99
29043         implementation of stdint.h that predates C++11, gnulib ends up
29044         substituting stdint.h anyway.  This works on most targets, but on e.g.,
29045         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
29046         MinGW is LLP64.  Instead of trying to detect the right types, detect
29047         good-enough-pre-C++11 stdint.h and in such case define
29048         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
29049         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
29050         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
29051         conforms to C99.  If it does, check whether it hides symbols
29052         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
29053         does, define those macros in config.h.
29055 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29057         argp: merge changes from glibc
29058         Among other things, this should fix problems found by a Coverity
29059         scan and reported by Andrei Borzenkov:
29060         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
29061         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
29062         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
29063         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
29064         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
29065         * lib/argp.h:
29066         Merge changes from glibc.
29067         * tests/test-argp-2.sh: Adjust to match new behavior.
29069 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
29071         stddef: support configuring with g++
29072         Problem reported by Ángel González in:
29073         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
29074         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
29075         Do not define if _GCC_MAX_ALIGN_T is defined.
29077 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29079         test-framework-sh: minor cleanups
29080         * tests/init.sh (testdir_prefix_): Output a trailing newline,
29081         since strictly speaking POSIX requires this.
29082         (setup_): Do not use the variable 'fail', as that makes the
29083         trace output harder to read ('fail' is typically used by
29084         tests to mean the test failed).  Treat // portably.
29085         Check that new directory is not merely a sibling of the tmp dir.
29086         Avoid unnecessary invocation of tr.
29088         test-framework-sh: revert port to NetBSD 7.0
29089         It was a false alarm; I misinterpreted Assaf Gordon's report.
29090         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29091         Restore.
29092         (test_dir_): Adjust to mktempd_ change.
29093         (mktempd_): Restore 2nd arg.  Use -t again.
29094         (base_template_, template_, nx_): Resurrect old code.
29096         Port better to Alpine Linux
29097         Its diff implementation does not support -c, but does support -U3.
29098         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29099         * tests/init.sh (diff_opt_): New var.
29100         (compare_): Prefer diff -U3 to diff -c to plain diff.
29102 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29104         test-framework-sh: port to NetBSD 7.0
29105         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29106         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29107         Remove.  All uses removed.
29108         (test_dir_): Adjust to mktempd_ change.
29109         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
29110         (base_template_, template_, nx_): Simplify by hardcoding.
29112 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29114         gitlog-to-changelog: suppress ignored chatter
29115         * build-aux/gitlog-to-changelog: Do not warn about skipping
29116         an SHA if it would have been ignored anyway.
29118 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
29120         setlocale: add "sv" to Windows language table
29121         * lib/setlocale.c (language_table) [W32]: Add "sv".
29122         Reported in <https://savannah.gnu.org/bugs/?44588>.
29124 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29126         sys_select: port to new Cygwin
29127         Problem reported by Ken Brown in:
29128         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
29129         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
29130         diagnostics.
29132 2016-03-17  Jim Meyering  <meyering@fb.com>
29134         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
29135         * tests/test-userspec.c (main): Remove unnecessary braces and fix
29136         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
29137           test-userspec.c:176:9: error: statement is indented as if it were \
29138             guarded by... [-Werror=misleading-indentation]
29139                    {
29140                    ^
29141           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
29142                  if (!diag && !T[i].result)
29143                  ^~
29145 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29147         time_rz: port to clang -Wunused-const-variable
29148         * lib/time_rz.c (TZ): Remove.  All uses removed.
29150         std-gnu11: improve clang support
29151         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
29152         2016-03-15 Also try clang
29153         2016-03-15 Port C11 and C++11 testing to clang
29155         select: port more to Intel 2016.1.150 compiler
29156         Problem reported by Balázs Hajgató in:
29157         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
29158         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
29160 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29162         select: try to port to 2016.1.150 compiler
29163         Problem reported by Balázs Hajgató in:
29164         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
29165         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
29166         POSIX specifies 'restrict'.
29168 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29170         localename-tests: memory allocation fixes
29171         * tests/test-localename.c (test_locale_name)
29172         (test_locale_name_thread): Don't call freelocale on a locale
29173         that was the base of a successful newlocale, as that
29174         results in a double free.  Problem reported by Assaf Gordon.
29175         (test_locale_name_thread): Free saved names after use, to pacify
29176         gcc -fsanitize=address.
29178 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29180         intprops: make .h file license match module
29181         * lib/intprops.h: Change the license wording to match glibc format.
29182         This is what is in modules/intprops anyway.  See:
29183         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
29185 2016-03-08  Eric Blake  <eblake@redhat.com>
29187         acl: fix missing return on Cygwin
29188         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
29189         fall off end of function. Fixes http://bugs.gnu.org/22949
29191 2016-03-05  Bruno Haible  <bruno@clisp.org>
29193         extern-inline: port to PGI CC
29194         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
29195         keyword 'inline'.
29196         Reported by Adam James Stewart in:
29197         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
29199 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29201         signbit: port back to pre-C++11 GCC
29202         * lib/math.in.h (signbit): Do previous change only if
29203         __cplusplus < 201103.  See Jonathan Wakely in:
29204         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
29206 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
29208         mountlist: recognize autofs-mounted remote file systems, too
29209         Originally reported at: https://bugzilla.redhat.com/1309247
29210         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
29211         "-hosts" because it is used by autofs to mount remote file systems.
29213 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29215         signbit: port to C++ with GCC 6
29216         * lib/math.in.h (signbit) [__cplusplus]:
29217         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
29218         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
29220         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
29222         regex: make it closer to libc
29223         Make Idx a signed type, rather than possibly unsigned.
29224         The unsignedness was not really buying us anything, since the code
29225         overflows for other reasons before getting to PTRDIFF_MAX.  Making
29226         it signed allows us to use -1 and -2 with abandon, like libc does,
29227         thus lessening the number of differences between gnulib and libc.
29228         Also, it should help avoid gratuitous warnings like the one
29229         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
29230         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
29233         regex: merge patches from libc
29235         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
29236         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
29237         Convert miscellaneous function definitions to prototype style.
29238         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
29239         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
29240         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
29241         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
29242         (re_search_internal):
29243         Convert to prototype-style function definition.
29244         Use internal_function for internal functions.
29246 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
29248         stdalign: port to older HP and IBM cc
29249         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
29250         C compilers, by checking their version numbers.  These version
29251         numbers appear in MariaDB and in Qt code that dates way back and
29252         that conditiionally uses the 'aligned' attribute.
29254 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29256         stdalign: port to clang 3.7.0
29257         Problem reported by Herbert J. Skuhra in:
29258         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
29259         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
29260         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
29261         https://llvm.org/bugs/show_bug.cgi?id=26547
29263 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29265         readdir_r: now obsolescent
29266         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
29267         * lib/mountlist.c (read_file_system_list): Add a FIXME.
29269 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29271         misc: port better to gcc -fsanitize=address
29272         Without these patches, ./configure CFLAGS='-fsanitize=address'
29273         would compute incorrect values.  This patch fixes some (but not all)
29274         test failures with recent glibc, with this configuration.
29275         * m4/acl.m4 (gl_ACL_GET_FILE):
29276         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
29277         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
29278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
29279         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
29280         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29281         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29282         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
29283         * m4/getline.m4 (gl_FUNC_GETLINE):
29284         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
29285         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
29286         * m4/regex.m4 (gl_REGEX):
29287         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29288         * tests/test-calloc-gnu.c (main):
29289         * tests/test-duplocale.c (main):
29290         * tests/test-getgroups.c (main):
29291         * tests/test-getline.c (main):
29292         * tests/test-inttostr.c (main):
29293         * tests/test-localename.c (test_locale_name)
29294         (test_locale_name_thread, test_locale_name_environ)
29295         (test_locale_name_default):
29296         * tests/test-regex.c (main):
29297         * tests/test-setlocale1.c (main):
29298         * tests/test-stat.h (test_stat_func):
29299         Free heap-allocated storage before exiting.
29300         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
29301         Don't match *_foo symbols inserted by AddressSanitizer.
29302         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
29304 2016-02-02  Jim Meyering  <meyering@fb.com>
29306         verify-tests: also remove stray test-verify.Tpo
29307         * modules/verify-tests (Makefile.am): Arrange for "make clean"
29308         to remove the test-verify.Tpo file that is left behind by
29309         the automake-generated rule upon compilation failure.
29310         Otherwise, that .Tpo file would cause a failed "make distcheck"
29311         at least for grep.
29313 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29315         std-gnu11: new module
29316         This makes it easier for applications to prefer C11 and C++11
29317         to older variants, when compiling C and C++ code.
29318         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
29319         a nontrivial chunk of GPLed Autoconf source code.
29320         * COPYING: Mention the m4/*.m4 copyright situation.
29321         * MODULES.html.sh (std-gnu11): New module.
29322         * m4/std-gnu11.m4, modules/std-gnu11: New files.
29324 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29326         get-permissions, strftime: fix grammar in comments
29327         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29328         some grammar fixes Alan Mackenzie made to GNU Emacs.
29330 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29332         gettext: mark as obsolete
29333         Suggested by Paul Eggert in:
29334         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29335         * modules/gettext (Status): Mark as obsolete.
29336         (Notice): Suggest to use 'gettext-h' instead.
29337         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29338         the 'gettext' module.
29340 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29342         gnulib-tool: don't give up on ln -s so easily
29343         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29344         because an earlier one failed.  The targets could be on different
29345         file systems.  Problem reported by KO Myung-Hun in:
29346         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29348         closedir: fix OS/2-related typos
29349         Problem reported by KO Myung-Hun in:
29350         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29351         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29352         in the last couple of changes.
29354 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29356         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29357         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29358         copying a directory.
29360 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29362         regex: treat [x] as x if x is a unibyte encoding error
29363         Problem reported by Aharon Robbins in:
29364         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29365         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29366         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29368         closedir, dirfd, opendir: port to OpenSolaris 5.10
29369         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29370         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29371         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29372         Don't use ${word##pat} substitution, as it doesn't work in
29373         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29374         http://bugs.gnu.org/22443#11
29376 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29378         bootstrap: use American spelling
29379         * build-aux/bootstrap: Honor American spelling.
29381 2016-01-22  Karl Berry  <karl@freefriends.org>
29383         * doc/posix-functions/localtime.texi,
29384         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29386 2016-01-21  Bruno Haible  <bruno@clisp.org>
29388         hash-pjw-bare: fix comment
29389         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29391         wcwidth: Replace also on OpenBSD 5.8
29392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29393         * doc/posix-functions/wcwidth.texi: Update.
29395 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29397         gnu-web-doc-update: fix addition of new files
29398         If there were already added (emnpty) dirs,
29399         then cvs aborts the add with the message:
29400           cvs [add aborted]: there is a version in <./dirname> already
29401         * build-aux/gnu-web-doc-update: Add directories separately
29402         to the addition of files, to avoid the above issue
29403         impacting the addition of files.
29405 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29407         utimens-tests: avoid pulling gettext .m4 files
29408         Although this is not the right fix to the original problem:
29409         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29410         it makes it possible again for consumer projects to use arbitrary
29411         version of gettext, through the steps described at:
29412         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29413         See here for details:
29414         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29415         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29416         'gettext'.
29417         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29418         'gettext'.
29420 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29422         regex: pacify static checkers
29423         Problem and draft fix reported by Aharon Robbins in:
29424         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29425         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29426         Clear memory to pacify static checkers.
29428         regex: fix [ diagnostic
29429         Problem and fix reported by Aharon Robbins in:
29430         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29431         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29433         regex: fix memory leaks
29434         Problem and draft fix reported by Aharon Robbins in:
29435         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29436         * lib/regcomp.c (build_range_exp, build_charclass_op)
29437         * lib/regex_internal.c (re_dfa_add_node):
29438         Fix memory leak on failure.
29440 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29442         fts: don't unconditionally use leaf optimization for NFS
29443         NFS st_nlink are not accurate on all implementations,
29444         leading to aborts() if that assumption is made.
29445         See <https://bugzilla.redhat.com/1299169>
29446         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29447         the white list, and document the issue.
29449 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29450             KO Myung-Hun  <komh@chollian.net>
29452         gnulib-tool: don't assume ln -s works
29453         * gnulib-tool (func_ln_s): New function.
29454         (func_ln): Use it.
29456 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29458         utimes: detect utimes() correctly on OS/2 kLIBC
29459         utimes() of OS/2 kLIBC has some limitations.
29460         1. OS/2 itself supports a file date since 1980 year in local time.
29461         2. OS/2 itself supports only even seconds for a file time.
29462         3. utimes() of OS/2 kLIBC does not work on an opened file.
29463         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29464         * doc/posix-functions/utimes.texi: Document the above limitations of
29465         utimes() on OS/2 kLIBC.
29467 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29468             KO Myung-Hun  <komh@chollian.net>
29470         openat_proc_name: port to OS/2 kLIBC
29471         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29472         instead of /proc/self/fd.
29473         * lib/openat-proc.c (openat_proc_name):
29474         Don't assume file name length is less than INT_MAX.
29475         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29477 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29479         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29480         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29481         definitions of intptr_t and uintptr_t (which use int and unsigned)
29482         to avoid clashes with declarations of system functions like sbrk.
29483         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29484         _INTPTR_T_DECLARED before defining them.
29486         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29487         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29488         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29489         Declare on kLIBC.
29490         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29491         fd associated with dirp.
29492         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29493         dirp_fd_list.
29494         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29495         (dirfd): Implemented for kLIBC.
29496         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29497         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29498         succeeds.
29499         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29500         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29501         (REPLACE_DIRFD): Define to 1 if replaced.
29502         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29503         * modules/closedir (Depends-on): Add dirfd.
29504         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29505         condition.
29506         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29507         * modules/opendir (Depends-on): Add dirfd.
29509         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29510         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29511         * lib/dup.c (dup_nothrow): New.
29512         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29513         (klibc_dup2): New.
29514         * lib/fcntl.c (klibc_fcntl): New.
29515         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29516         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29517         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29518         fd.
29520         pipe_filter_ii_execute: port to OS/2 kLIBC
29521         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29522         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29523         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29524         Reuse Win32 code on OS/2 kLIBC.
29525         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29526         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29528         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29529         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29530         static inline function.  The implementation of wcwidth in wcwidth.c
29531         causes a "conflicting types" error.
29532         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29534         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29535         spawn() on OS/2 kLIBC is not silly like one on Windows
29536         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29537         empty string on OS/2 kLIBC.
29539         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29540         On OS/2 kLIBC, select() works only on sockets.
29541         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29543         binary-io: don't put fd in binary mode if it is a console on EMX
29544         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29545         a console on EMX.
29547 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29549         doc: mention unfixed issues with unsupported localtime() values
29550         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29551         returns nonsense for localtime(2^56).
29552         * doc/posix-functions/localtime_r.texi: Likewise.
29554 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29556         doc: mention setlocale() issues on OpenBSD
29557         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29558         never fails, and the need to check categories individually.
29560 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29562         sig2str: list all signals on FreeBSD >= 7
29563         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29564         to the maximal statically defined signal value.
29565         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29566         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29567         where available, even when NSIG is defined.
29569 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29571         acl-permissions: port to USE_ACL==0 platforms
29572         I ran into this problem when building bleeding-edge GNU Emacs
29573         with gcc -fsanitize=address on Fedora 23.  On this platform
29574         the ACL library does not pass the 'configure' test and Emacs
29575         then does not build due in part to what appear to be typos in the
29576         ACL part of Gnulib.
29577         * lib/acl-internal.c (free_permission_context):
29578         * lib/acl-internal.h (struct permission_context):
29579         Test whether USE_ACL is nonzero, not whether it is defined.
29581 2016-01-12  Martin Sebor  <msebor@redhat.com>
29583         mktime: rename macro to avoid glibc clash
29584         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29585         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29587 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29589         Port "$@" to OpenIndiana ksh93
29590         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29591         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29592         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29593         bug long-dead shells, so remove the workaround.
29594         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29595         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29596         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29597         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29598         Use "$@" instead of ${1+"$@"}.
29600         Port Universal Time settings to strict POSIX
29601         * build-aux/announce-gen, build-aux/bootstrap:
29602         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29603         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29604         * build-aux/gnupload, build-aux/mkinstalldirs:
29605         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29606         * build-aux/update-copyright, build-aux/useless-if-before-free:
29607         * build-aux/vc-list-files, tests/test-strftime.c:
29608         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29609         but POSIX says the behavior of TZ="UTC" is undefined.
29611 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29613         msvc-inval: fix problem with unset shell var
29614         Problem reported by Karl Berry in:
29615         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29616         * modules/msvc-inval (Depends-on):
29617         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29618         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29620 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29622         tests: for compare_(), use cmp -s where available
29623         * tests/init.sh (compare_): Only fall back to cmp without
29624         the POSIX defined -s option, where this is not available.
29626 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29628         version-etc: new year
29629         * build-aux/gendocs.sh (version):
29630         * doc/gendocs_template:
29631         * doc/gendocs_template_min:
29632         * doc/gnulib.texi:
29633         * lib/version-etc.c (COPYRIGHT_YEAR):
29634         Update copyright dates by hand in templates and the like.
29635         * all files: Run 'make update-copyright'.
29637 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29639         human: fix output buffer overrun by 1
29640         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29641         calculation that could lead to a one-byte buffer overrun.
29643 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29645         maint: fix operator precedence in mbrtowc test
29646         This is a fix for test breakage introduced by commit 45228d96; the
29647         equality expression must be parenthesized when negated with '!',
29648         otherwise we always get:
29650           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29652         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29653         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29655 2015-12-23  James Youngman  <jay@gnu.org>
29657         regexprops-generic: update from regex.h
29658         * doc/regexprops-generic.texi: update by running the regexprops binary
29659         from findutils (the command line is 'regexprops "Regular Expressions"
29660         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29661         gnulib with GNU grep had made this document out-of-date.
29663 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29665         strftime-tests: avoid false failure on OS X
29666         * tests/test-strftime.c (struct localtime_rz_test): Add an
29667         ahistorical member which is used to warn rather than fail
29668         when tm_isdst isn't set for such entries.  This is the case for
29669         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29671 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29673         fts: ensure leaf optimization is used for NFS
29674         NFS provides usable dirent.d_type but not necessarily for all entries
29675         of large directories.  See <https://bugzilla.redhat.com/1252549>
29676         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29678 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29680         fts: enable leaf optimization for XFS
29681         XFS provides usable dirent.d_type only for DT_DIR,
29682         but the noleaf optimization still applies.
29683         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29685 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29687         intprops: comment fix
29688         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29689         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29691         intprops-test: work around GCC bug 68971
29692         Problem reported by Pádraig Brady in:
29693         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29694         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29695         (main): Add a case that better tests 64-bit long in this area.
29697 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29699         gnulib-tool: allow multiple --local-dir usage
29700         * gnulib-tool: Use --local-dir to construct compound
29701         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29702         PATH_SEPARATOR early.
29703         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29704         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29705         func_determine_path_separator because that needs to be detected
29706         earlier now.
29707         (func_determine_path_separator): New function.
29708         (func_path_foreach, func_path_foreach_inner): New functions.
29709         (func_path_prepend, func_path_append): Likewise.
29710         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29711         (func_lookup_file, func_all_modules): Use new functions to work
29712         with local_gnulib_path.
29713         (func_modules_in_dir, func_exists_module): New callbacks for
29714         func_path_foreach.
29715         (func_exists_module, func_get_tests_module): Likewise.
29716         (func_is_local_file, func_should_symlink): New helper methods.
29717         (func_add_file, func_update_file): Use new func_should_symlink
29718         instead, DRY.
29719         (func_reconstruct_cached_local_gnulib_path): New helper.
29720         (func_reconstruct_cached_dir): New callback.
29721         (func_import): The cached_local_gnulib_dir renamed to
29722         cached_local_gnulib_path similarly to local_gnulib_dir.
29723         Use new func_reconstruct_cached_local_gnulib_path.
29724         (func_count_relative_local_gnulib_path): New sub-method.
29725         (func_create_testdir): Use func_should_symlink, DRY.
29726         (func_create_megatestdir): Use new functions to work with
29727         local_gnulib_path correctly.
29728         (func_append_local_dir): New helper.
29730 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29732         fix freadptr to work with ungetc on all uClibc configs
29733         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29734         where GNU coreutils cut(1) generates invalid output on uClibc
29735         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29736         * lib/freadptr.c (freadptr): Return NULL if there are
29737         ungotten chars.  In this case freadseek() will iterate
29738         again to process the ungotten character.
29740 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29742         xalloc-oversized: improve performance with GCC 5
29743         * lib/xalloc-oversized.h (xalloc_oversized):
29744         Improve performance with GCC 5 by using __builtin_mul_overflow.
29746 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29748         intprops: new public macro EXPR_SIGNED
29749         Emacs can use this macro, so make it public.
29750         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29751         'Integer Type Determination', since some of these macros apply
29752         to non-integer types.  Clarify what kinds of constant expressions
29753         these macros return.  Say when the arguments can be non-integers.
29754         Mention newly published macro EXPR_SIGNED.
29755         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29756         make it public.  All uses changed.
29758         intprops: fix typo in clang port
29759         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29760         '__builtin_add_overflow' that is not caught by compiler.
29762 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29764         test-timespec: fix typo in previous change
29765         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29767         timespec-sub: fix overflow bug; add tests
29768         * lib/timespec-add.c (timespec_add):
29769         * lib/timespec-sub.c (timespec_sub):
29770         Work even if time_t is narrower than int (a theoretical
29771         possibility).  Redo code for a bit more clarity.
29772         * lib/timespec-sub.c (timespec_sub):
29773         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29774         * modules/timespec-tests, tests/test-timespec.c: New files.
29776         intprops-test: suppress -Woverlength-strings
29777         Problem reported by Pádraig Brady in:
29778         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29779         It is not worth the hassle to port this test to compilers that
29780         cannot handle long strings in diagnostics.
29781         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29783 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29785         quotearg: add quotearg_n_style_colon()
29786         This quotes with default options of the specified style,
29787         but with quoting enabled for instances of ':'.
29788         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29789         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29791 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29793         intprops: revise _WRAPV macros, revert _OVERFLOW
29794         The incompatible changes to the _OVERFLOW macros were too much of
29795         a hassle in practice, so revert them.  Instead, change the new
29796         _WRAPV macros to make them closer in behavior to GCC 5's new
29797         builtin_add_overflow etc. functions.  No other software was using
29798         these newly-added macros yet, so this should be OK.
29799         * NEWS: Revert previous change, since the incompatible change
29800         has been reverted, and nobody used the incompatible version.
29801         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29802         Document revised behavior.
29803         (Integer Range Overflow): Adjust example to match above revisions.
29804         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29805         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29806         these can be used in integer constant expressions again.
29807         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29808         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29809         needed.
29810         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29811         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29812         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29813         Remove, as they did not seem that useful.
29814         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29815         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29816         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29817         Support new semantics.
29818         (__has_builtin): New macro, if not alreay defined.
29819         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29820         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29821         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29822         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29823         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29824         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29825         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29826         New macros.
29827         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29829 2015-11-03  Jim Meyering  <meyering@fb.com>
29831         intprops: add parentheses for when OP has precedence lower than "-"
29832         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29833         "a OP b" must be parenthesized for when OP is like "<<", which has
29834         lower precedence than the following "-". Reported by Pádraig Brady.
29836 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29838         quotearg: constify get_quoting_style parameters
29839         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29840         * lib/quotearg.c (get_quoting_style): Likewise.
29842 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29844         quotearg: add support for $'' shell escaping
29845         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29846         items and descriptions.
29847         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29848         above types by quoting like "shell", but using $'...' syntax
29849         for non printable characters, which should provide unambiguous
29850         printable output for any input.
29851         * tests/test-quotearg-simple.c: Update accordingly.
29853 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29855         maint: use a more standard return from mbrtowc test
29856         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29857         from the test program as this is non standard and often
29858         indicates an unhandled case in the test program.
29859         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29861 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29863         intprops: add WRAPV and const flavors for GCC 5
29864         If available, use GCC 5's builtin functions for efficient integer
29865         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29866         and safely compute the low-order bits of the correct answer.
29867         A downside of these efficient functions is that they cannot be
29868         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29869         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29870         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29871         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29872         Document the changes.
29873         (Wraparound Arithmetic): New section.
29874         (Integer Range Overflow):
29875         Put this subsection last, since it's least useful.
29876         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29877         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29878         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29879         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29880         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29881         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29882         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29883         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29884         New macros.
29885         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29886         Generate calls to GCC builtins if available, for speed.
29887         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29888         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29889         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29890         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29891         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29892         (CHECK_QUOTIENT, CHECK_REMAINDER):
29893         Test WRAPV and CONST flavors (when available) too.
29895 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29897         doc: use extended timezone format in iso-8601 example
29898         * doc/parse-datetime.texi: The standard states that extended format
29899         is to be used consistently throughout.
29900         Note that lib/parse-datetime.y can handle either tz format.
29902 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29904         stdalign: port to Sun C 5.9
29905         * doc/posix-headers/stdalign.texi: Document this.
29906         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29907         __attribute__ ((__aligned__ (...))).
29909 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29911         time_rz: fix comment about tzalloc
29912         * lib/time_rz.c (tzalloc): Fix comment.
29914 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29916         stdalign: work around pre-4.9 GCC x86 bug
29917         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29918         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29919         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29921 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29923         maint.mk: sc_tight_scope: remove extraneous expressions
29924         * top/maint.mk (tight_scope): This is not really required since
29925         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29926         that matches all nm entries.  But it does remove extraneous entries
29927         that may be confusing or cause issue in future maintenance.
29929 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29931         time_rz: return NULL if localtime_r fails
29932         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29933         while still attempting to pacify bleeding-edge GCC.
29935         fts: port to C11 alignof
29936         * doc/posix-headers/stdalign.texi (stdalign.h):
29937         Document the C11 restriction.
29938         * lib/fts.c: Include stddef.h, for max_align_t.
29939         (fts_alloc): Align using max_align_t, not FTSENT.
29940         * modules/fts (Depends-on): Add stddef.
29942 2015-10-18  Jim Meyering  <meyering@fb.com>
29944         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29945         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29946         would see this:
29948         lib/time_rz.c: In function 'localtime_rz':
29949         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29950           [-Werror=nonnull]
29951                    if (tm && !save_abbr (tz, tm))
29952                        ^
29954         That was complaining about "tm" because it is a parameter that was
29955         declared with the __nonnull__ attribute.
29956         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29957         result of localtime_r.
29959 2015-10-17  Jim Meyering  <meyering@fb.com>
29961         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29962         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29963         name-extraction regexp mistakenly used \S+, and would mistakenly
29964         extract "*F" from "extern int *F()" rather than the desired "F".
29965         Use \w+ instead.
29967 2015-10-17  Jim Meyering  <meyering@fb.com>
29969         maint.mk: sc_tight_scope: factor and support OS X
29970         * top/maint.mk (_gl_tight_scope): Address three issues:
29971         - factor out four instances of code that wraps a string in "^...$"
29972         - allow nm-reported symbol names to have an optional leading "_"
29973         - add "main" to the list of ignored variable names, because on os x,
29974         "main" has nm-reported type "S" in the variable-checking section.
29976 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29978         safe-alloc-tests: fix typo in license header
29979         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29981 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29983         copy-file: fix mem leak in error case
29984         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29985         upon error opening or performing I/O to the src and dest files.
29987 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29989         localename: control langinfo.h inclusion
29990         This header is only used to work around buggy behavior in old
29991         versions of glibc, so do not include it all the time.  Otherwise
29992         we get build failures on systems that do not provide langinfo.h.
29993         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29994         in the source later on.
29995         The patch was originally submitted to gettext as:
29996         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29998 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30000         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
30001         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
30002         * lib/u64.c, lib/unistd.c:
30003         Append 'typedef int dummy;', to pacify compilers that are picky
30004         about empty translation units.
30006 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
30008         accept4-tests: fix to avoid non portable flags
30009         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
30010         as they are the only documented ones, and passing others may trigger
30011         EINVAL (seen on FreeBSD 10.1-RELEASE).
30012         * doc/glibc-functions/accept4.texi: Mention that we don't provide
30013         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
30015 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
30017         gnulib-tool: fix tests of 'extensions' module
30018         This complements f8fe25fab60e3c687a124 commit.
30019         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
30020         emitting of initial gl_EARLY macros.
30021         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
30022         replaced with func_emit_pre_early_macros call.
30024 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30026         unicase/locale-language: fix typo in utf-8 cookie
30027         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
30028         Problem reported by Zbigniew Jędrzejewski-Szmek.
30030 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30032         xalloc: do not worry about GCC 5 warning on 32 bit
30033         * lib/xalloc.h: Revert previous change.
30034         I found a better way to fix this in coreutils.
30036 2015-10-02  Pádraig Brady  <P@draigBrady.com>
30038         xalloc: avoid GCC 5.1 warning on 32 bit
30039         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
30040         xalloc_oversized(), which was seen to give this warning
30041         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
30042         when simplifying conditional".
30044 2015-10-02  Daiki Ueno  <ueno@gnu.org>
30046         uniname/uniname-tests: avoid compiler warnings
30047         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
30048         unused local variables.
30049         (test_alias_lookup): Fix alias name display in failure cases.
30051 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30053         c-ctype: do not worry about EBCDIC + char signed
30054         Drop support for EBCDIC with char being signed, as this breaks too
30055         many programs.  Problem reported by Ben Pfaff in:
30056         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
30057         * lib/c-ctype.h: Verify that we are not using EBCDIC with
30058         char being signed.
30059         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
30060         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
30061         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
30062         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
30063         * tests/test-c-ctype.c (test_all):
30064         Simplify by assuming standard char values cannot be negative.
30065         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
30067 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30069         c-ctype: port better to z/OS EBCDIC
30070         Problems reported by Daniel Richard G. in:
30071         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
30072         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
30073         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
30074         (_C_CTYPE_OTHER_CNTRL): New macro.
30075         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
30076         from SCHAR_MIN, as the functions are defined only from values
30077         promoted from char or from unsigned char, not necessarily from
30078         signed char.
30080 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
30082         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
30084         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
30085         and ARFLAGS variables.  Doing this unconditionally could break
30086         later Automake's AM_PROG_AR invocation (at least it's
30087         AC_CHECK_TOOLS call to detect correct 'ar' binary).
30089         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
30090         Amsterdam Compiler Kit, so make the previous code to have effects
30091         only on ACK, and rather automatically call the Automake's
30092         AM_PROG_AR as soon as possible to decide other cases.
30094         References:
30095         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
30097         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
30098         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
30099         is possible, keep setting AR/ARFLAGS to reasonable defaults.
30100         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
30101         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
30102         'extensions' module is used.
30103         * modules/extensions (configure.ac-early): Remove as this snippet
30104         is added to gnulib-comp.m4 earlier anyway.
30106 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30108         sockets: MS Windows initalization fixes
30109         Problem reported by Test User in:
30110         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
30111         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
30112         Correct the endianness.
30113         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
30114         number mismatch, not just on <.  Cleanup before any such failure.
30116 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30118         gc: fix detection of installed libgcrypt version
30119         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
30120         at least as recent as 1.4.4.  The previously used macro is not
30121         available now, since modules were removed in version 1.6.0.
30123 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30125         c-ctype: rewrite to use inline functions
30126         This simplifies maintenance, since it makes for just one
30127         implementation of each function, letting the compiler have the fun
30128         of optimization.  In practice this works well nowadays with GCC.
30129         E.g., c_isascii might need only three instructions even though the
30130         source code lists every ASCII character individually in a large
30131         switch statement.
30132         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
30133         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
30134         * NEWS: Document the API change.
30135         * lib/c-ctype.c: Drastically simplify, since this now just expands
30136         inline functions.
30137         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30138         (C_CTYPE_INLINE): New macro.
30139         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
30140         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
30141         Verify that either ASCII or EBCDIC is being used.
30142         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
30143         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
30144         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
30145         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
30146         New private macros.
30147         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
30148         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
30149         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
30150         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
30151         (c_tolower, c_toupper): When converting, return the unsigned char,
30152         as that is what z/OS does.
30153         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
30154         of some c-ctype.h macros.
30155         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
30156         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
30157         c_tolower promotion to be compatible with z/OS.
30159 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
30161         gitlog-to-changelog: trim only trailing whitespaces
30162         This is fix for --format regression introduced by commit
30163         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
30164         doubled %n string) had no effect anymore.  This format
30165         specification has been used e.g. by GNU paxuitils (commit
30166         edfd8bcc3).
30168         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
30169         newlines in commmit messages.
30171 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30173         Test that c_iscntrl agrees with iscntrl, etc.
30174         Suggested by Daniel Richard G. in:
30175         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
30176         * modules/c-ctype-tests (Depends-on): Add ctype.
30177         * tests/test-c-ctype.c: Include <ctype.h>.
30178         (NCHARS): New constant.
30179         (test_agree_with_C_locale): New function.
30180         (main): Use it.
30181         (test_all): Use named constants.
30183         c-ctype: improve c_isascii testing
30184         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
30185         Add a test to count the number of ASCII characters.
30187 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30189         savewd: remove SAVEWD_CHDIR_READABLE
30190         It was problematic in the light of file systems that ignore umask.
30191         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
30192         * NEWS: Document this.
30193         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
30194         successful, -1 (setting errno) on failure, rather than something
30195         more complicated than that.
30196         * lib/mkdir-p.c (make_dir_parents):
30197         Do not use SAVEWD_CHDIR_READABLE.
30198         * lib/savewd.c (savewd_chdir):
30199         Remove support for SAVEWD_CHDIR_READABLE.
30200         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
30202         c-ctype: port better to EBCDIC
30203         Problems reported by Daniel Richard G. in
30204         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
30205         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
30206         Include "verify.h".
30207         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
30208         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
30209         Define as enum constants with value false, if not defined, so that
30210         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
30211         code more portable, as both branches of the 'if' are compiled on
30212         all platforms.
30213         (C_CTYPE_EBCDIC): New constant.
30214         Verify that the character set is either ASCII or EBCDIC.
30215         (to_char): New static function.
30216         (c_isascii, c_iscntrl):
30217         Assume standard control-character assignments for EBCDIC.
30218         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
30219         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
30220         Rewrite to use 'if' instead of 'ifdef'.
30221         Use to_char if non-ASCII.  Prefer <= to >=.
30222         Prefer true and false to 1 and 0, for booleans.
30223         (c_iscntrl): Use 'if', not 'ifdef'.
30224         * modules/c-ctype (Depends-on): Add verify.
30225         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
30226         (to_char): New function.
30227         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
30229 2015-09-21  Pádraig Brady  <P@draigBrady.com>
30231         nanosleep: fix return code for interrupted replacement
30232         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
30233         that we return -1 in the case the call is interrupted by a signal,
30234         rather than the current value of 1.
30235         Diagnosed and tested by Daniel Richard G.
30237 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30239         Diagnose ERE '()|\1'
30240         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
30241         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
30242         track of the set of previously-completed subexpressions available
30243         before the first alternative, and restore this set just before
30244         parsing each subsequent alternative.  This lets us diagnose the
30245         invalid back-reference in the ERE '()|\1'.
30247         regex: merge patches from libc
30249         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
30250         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
30251         * lib/regex_internal.h:
30252         Include <libc-lock.h> instead of <bits/libc-lock.h>.
30254         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30255         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
30256         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
30257         wcscoll.
30258         * lib/regexec.c (check_node_accept_bytes): Likewise.
30260         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30261         Fix regex wcrtomb namespace (bug 18496).
30262         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30263         instead of wcrtomb.
30265         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30266         Fix regex wctype namespace (bug 18495).
30267         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
30268         instead of towlower.
30269         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30270         instead of iswlower.  Call __towupper instead of towupper.
30271         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30272         instead of iswalnum.
30274         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
30275         * lib/regcomp.c (parse_bracket_exp): Initialize type to
30276         COLL_SYM in a couple of places to avoid uninitialized variable
30277         wanings on tilegx gcc 4.8.2.
30279         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30280         * lib/regex_internal.h: Remove NOT_IN_libc.
30282         2014-11-17  Andreas Schwab  <schwab@suse.de>
30283         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
30285         2014-09-11  Roland McGrath  <roland@hack.frob.com>
30286         Move findidx nested functions to top-level.
30287         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
30288         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30289         Pass new arguments to findidx.
30290         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30291         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30292         Don't #include it inside the function.  Pass new arguments to findidx.
30293         * lib/regex_internal.h:
30294         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30295         (re_string_elem_size_at): Don't #include it inside the function.
30296         Pass new arguments to findidx.
30298         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30299         Check if DEBUG is defined in regex_internal.c
30300         * lib/regex_internal.c: Check if DEBUG is defined and is set.
30302 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
30304         ceill: detect buggy OpenBSD implementation
30305         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
30306         which returns zero for small values.  Discussed here:
30307         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
30309 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
30311         mountlist: add me_mntroot field on Linux machines
30312         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
30313         mount_entry so Linux machines based on /proc/self/mountinfo can
30314         distinguish between bind mounts and original mounts.  In reality bind
30315         mounts aren't treated differently than mountroot=/ mounts by the
30316         kernel, but the user often wants these bind mounts distinguished.
30317         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
30318         More details at https://pad.lv/1432871
30320 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
30322         doc: Describe to use multiple instances of gnulib
30323         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
30324         instances of gnulib with different modules can be used, for example one
30325         for a lib and another one for associated tools.
30327 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30329         base32: mark function as __attribute__ const
30330         * lib/base32.h (isbase32): Mark __attribute__ const as
30331         suggested by GCC, and consistent with the base64 module.
30333 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30335         gnulib-tool: don't transform binary files with sed
30336         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30337         .mo and .class files.
30338         Reported by Denis Denisov.
30340 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30342         gperf: respect silent rules
30343         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30344         V_GPERF_0 for silent rules.
30345         * modules/iconv_open (Makefile.am): Use V_GPERF.
30346         * modules/unicase/locale-language (Makefile.am): Likewise.
30347         * modules/unicase/special-casing (Makefile.am): Likewise.
30348         * modules/unictype/category-byname (Makefile.am): Likewise.
30349         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30350         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30351         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30352         * modules/unictype/property-byname (Makefile.am): Likewise.
30353         * modules/unictype/scripts (Makefile.am): Likewise.
30354         * modules/uninorm/composition (Makefile.am): Likewise.
30356 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30358         Improve port of stdalign to C++11
30359         Problem reported by Sundaram in:
30360         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30361         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30362         (__alignas_is_defined): Define if C++11 or newer.
30364 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30366         pmccabe2html: fix gawk regex escaping
30367         * build-aux/pmccabe2html: Add one more backslash to properly
30368         escape the gsub replacement value.  Fixes this error:
30369         gawk: ./build-aux/pmccabe2html:425: \
30370         warning: escape sequence `\&' treated as plain `&'
30372 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30374         time_rz: port to pedantic memcpy
30375         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30376         that reject memcpy (..., NULL, 0).
30378 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30380         time_rz: port better to MinGW
30381         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30382         Instead, store the tzname copy in the struct tm_zone object.
30383         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30384         * lib/strftime.c [!_LIBC]:
30385         * lib/time_rz.c: Include time-internal.h.
30386         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30387         name from *TZ rather than from TZNAME, doable because *TZ now has
30388         a tzname_copy member.
30389         * lib/time-internal.h: New file, with contents taken from
30390         lib/time_rz.c.  It's separate because strftime.c now accesses
30391         struct tm_zone members.
30392         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30393         New member tzname_copy.
30394         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30395         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30396         Initialize tzname_copy member.
30397         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30398         in tzname_copy member.
30399         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30400         (restore_tzname): Remove; no longer needed.  All calls removed.
30401         * modules/time_rz (Files): Add lib/time-internal.h.
30403         time: port __need_time_t to MinGW
30404         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30405         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30407 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30409         strftime: fix newly-introduced bug on Solaris
30410         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30411         consistently at the start, rather than doing some of the setup at
30412         the start and some in the %Z format spec.  This is cleaner, and
30413         works better with time_rz on platforms like Solaris where struct
30414         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30415         mktime_z and localtime_rz can mess up the tzname cache.
30417         test-strftime: test for Solaris bug
30418         * modules/strftime-tests (Depends-on): Add strerror.
30419         * tests/test-strftime.c: Include <errno.h>.
30420         (posixtm_test): New function, containing the old 'main'.
30421         (struct tzalloc_test, struct localtime_rz_test): New types.
30422         (TZ, LT): New static vars.
30423         (tzalloc_test): New function.
30424         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30426         time_rz: port to Solaris etc.
30427         Works around a tzname problem on platforms like Solaris that have
30428         tzname but not tm_zone, by setting tzname at the appropriate time
30429         and restoring it later.
30430         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30431         New static vars.
30432         (save_abbr) [HAVE_TZNAME]: Set them.
30433         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30434         (restore_tzname): New function.
30435         (localtime_rz, mktime_z): Use it.
30437         time_rz: now LGPL
30438         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30440         time_rz: make a constant 'const'
30441         * lib/time_rz.c (local_tz): Now const.
30443         time_rz: fix off-by-one typo
30444         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30446 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30448         fprintftime, strftime: use timezone_t args
30449         * NEWS: Document the change.
30450         * lib/fprintftime.h (fprintftime):
30451         * lib/strftime.c (extra_args) [my_strftime]:
30452         * lib/strftime.h (nstrftime):
30453         Time zone arg is now of type timezone_t, not int.
30454         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30455         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30456         (my_strftime) [emacs && !my_strftime]:
30457         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30458         Remove; Emacs doesn't need this any more.
30459         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30460         fprintftime and nstrftime to call tzset.
30461         (ut) [!my_strftime]: Remove, replacing with ...
30462         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30463         (strftime_case_): Use localtime_rz and mktime_z instead
30464         of localtime_r and mktime.
30465         * modules/fprintftime (Depends-on): Add time_rz.
30466         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30467         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30469         time_rz: new module
30470         * MODULES.html.sh: Add time_rz.
30471         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30472         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30473         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30474         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30475         New var HAVE_TIMEZONE_T (default 0).
30476         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30477         New var GNULIB_TIME_RZ (default 0).
30478         * modules/time (time.h): Substitute the new vars.
30480         flexmember: license is now unlimited
30481         * modules/flexmember (License): Change to unlimited,
30482         since its only source file gives an unlimited license.
30484 2015-07-15  Eric Blake  <eblake@redhat.com>
30486         maint: update copyright paper procedures
30487         * config/srclist.txt: Drop outdated files.
30488         * doc/Copyright/conditions.txt: Update to latest.
30489         * doc/Copyright/assign.changes.manual: Delete.
30490         * doc/Copyright/assign.future.manual: Likewise.
30491         * doc/Copyright/assign.manual: Likewise.
30492         * doc/Copyright/assign.translation.manual: Likewise.
30493         * doc/Copyright/disclaim.changes.manual: Likewise.
30494         * doc/Copyright/disclaim.manual: Likewise.
30495         * doc/Copyright/disclaim.program: Likewise.
30497 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30499         localename: fix link error on Illumos
30500         Illumos defines __sun, but does not have getlocalename_l nor the
30501         equivalent.  This partially reverts commit 387c214.
30502         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30503         available, as well as uselocale.
30504         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30505         use getlocalename_l if it is not available.
30507 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30509         unistr/uN-strtok-tests: avoid a trivial leak
30510         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30511         input and delim after the multibyte delimiter tests.
30513 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30515         file-has-acl, acl-permissions: fix HP-UX typos
30516         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30517         * lib/file-has-acl.c (file_has_acl):
30518         * lib/set-permissions.c (context_acl_from_mode)
30519         (context_aclv_from_mode, set_acls):
30520         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30521         They were introduced by the recent ACL changes.
30523         regex: match current GNU grep behavior
30524         These symbols have not matched GNU grep behavior for quite some time.
30525         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30526         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30527         Change to match current GNU behavior.
30528         Simplify by expressing it as differences from POSIX BREs and EREs.
30529         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30531 2015-07-03  Jim Meyering  <meyering@fb.com>
30533         set-permissions.c: adjust acl_from_mode's cpp guard
30534         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30535         directives identical to those guarding the sole use.
30536         Otherwise, on some systems, we'd get a warning about
30537         the function being defined but not used.
30538         Also, filter through cppi to correct misleading indentation
30539         of cpp directives.
30541 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30543         tests: restrict shells to those that support 'local'
30544         The local keyword is very widely supported and used
30545         in tests in coreutils and grep at least.  Therefore
30546         restrict to testing with shells that support it.
30547         This mainly excludes /bin/sh on Solaris.
30548         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30550 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30551         and Daiki Ueno  <ueno@gnu.org>
30553         unistr/uN-strtok: handle multibyte delimiters
30554         Previously, uN_strtok moved PTR to the next unit to the token end.
30555         When DELIM contained a multibyte character, the new position could
30556         be a middle of a multibyte character.
30557         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30558         after the token.
30559         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30560         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30561         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30562         * modules/unistr/u8-strtok (Depends-on): Depend on
30563         unistr/u8-strmblen.
30564         * modules/unistr/u16-strtok (Depends-on): Depend on
30565         unistr/u16-strmblen.
30566         * modules/unistr/u32-strtok (Depends-on): Depend on
30567         unistr/u32-strmblen.
30568         * tests/unistr/test-u-strtok.h: New file.
30569         * tests/unistr/test-u8-strtok.c: New file.
30570         * tests/unistr/test-u16-strtok.c: New file.
30571         * tests/unistr/test-u32-strtok.c: New file.
30572         * modules/unistr/u8-strtok-tests: New file.
30573         * modules/unistr/u32-strtok-tests: New file.
30574         * modules/unistr/u16-strtok-tests: New file.
30576 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30578         update-copyright: fix test failure with perl >= 5.22 (trivial)
30579         * build-aux/update-copyright: Escape a literal left curly bracket,
30580         required with perl >= 5.22
30582 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30584         u{16,32}-strstr-tests: relax timeout condition
30585         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30586         tests can take longer than 5 seconds to complete.
30587         Reported by Dagobert Michelsen in:
30588         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30589         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30590         seconds to 10 seconds.
30591         * tests/unistr/test-u32-strstr.c (main): Likewise.
30593 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30595         gnulib-common.m4: change the ARFLAGS default to 'cr'
30596         In some GNU/Linux distributions people started to compile 'ar'
30597         binary with --enable-deterministic-archives (binutils project).
30598         That, however, in combination with previous autotools long time
30599         working default AR{_,}FLAGS=cru causes warnings on such
30600         installations:
30601         ar: `u' modifier ignored since `D' is the default (see `U')
30602         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30603         set already.
30605 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30607         selinux-h: avoid double free after *getfilecon()
30608         Originally reported by Ben Shelton on bug-tar:
30609         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30610         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30611         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30612         param should be freed by freecon(3) (regardless the return value).
30614 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30616         fix pty related tests issues on Windows (trivial)
30617         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30618         however it's still present in tests/ subdirectory of the final project.
30619         Therefore avoid it to pass `make check`.
30620         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30621         will just return -ENOSYS, so avoid this non applicable test allowing
30622         the build to proceed.
30624 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30626         acl: fix definition of acl_from_mode on FreeBSD
30627         This was causing basic coreutils copy operations to fail
30628         with ENOTSUP or ENOENT error messages.
30629         * lib/acl-internal.h (acl_from_mode): Only define when
30630         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30631         of acl_from_mode() defined in lib/set-permissions.c to
30632         be used on FreeBSD at least.
30633         * lib/set-permissions.c: Fix up comment spelling,
30634         and a redundant variable assignment; noticed in passing.
30636 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30638         readutmp: port to FreeBSD >= 9
30639         * lib/readutmp.h: Map utmpxname() to setutxdb().
30640         With that coreutils who(1) and pinky(1) tests pass.
30642 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30644         mgetgroups: port to strict OS X
30645         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30646         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30647         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30648         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30650 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30652         mgetgroups: port to strict OS X
30653         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30654         Document the getgrouplist problem.
30655         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30656         New macro.
30657         (mgetgroups): Use it.
30658         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30659         Check for OS X signature for getgrouplist.
30661 2015-06-29  Jim Meyering  <meyering@fb.com>
30663         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30664         It started like this when building coreutils' latest on OS X,
30665         invoking ./configure with a nonempty --cache=.cache:
30667           lib/linkat.c:46:42: error: operator '||' has no right operand
30668           lib/linkat.c: In function 'rpl_linkat':
30669           lib/linkat.c:330:27: error: #if with no expression
30671         Here's linkat.c's line 46:
30673           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30675         Here's some context:
30677           $ grep linkat_nofoll .cache
30678           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30679           $ grep LINKAT_SYM lib/config.h
30680           #define LINKAT_SYMLINK_NOTSUP
30682         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30683         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30684         but that violates a tenet of AC_CACHE_CHECK: it must
30685         have no side effect other than setting its cache variable.
30687         What happens is that when the cache is set, we'd skip the
30688         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30689         defined to whatever value it happened to have in configure's
30690         environment.  In my case, it was not defined, so this later code:
30692           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30693             [Define to 1 if linkat can create hardlinks to symlinks])
30695         would emit code with an empty RHS.
30697         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30698         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30700 2015-06-28  Jim Meyering  <meyering@fb.com>
30702         mountlist: avoid an unused-label warning on OS X
30703         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30704         Building on OS X, I saw a warning about the "free_then_fail" label
30705         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30707         error.c: correct printf-style format: %d -> %u
30708         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30709         rather than %d, to match the type of "line_number", unsigned int.
30711 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30713         fts: avoid reading beyond the heap allocation
30714         GCC 5.1.1 with -O2 and -fsanitize=address reports
30715         a read of size 4 from a heap object of size 3 is indeed invalid,
30716         though this may be due to incorrect padding assumptions by GCC, see:
30717         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30718         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30719         * modules/fts: Depend on stdalign.
30721 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30723         savedir: avoid undefined behavior in qsort call
30724         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30725         "runtime error: null pointer passed as argument 1,
30726          which is declared to never be null"
30727         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30729 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30731         userspec: avoid undefined behavior in gettext call
30732         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30733         "runtime error: null pointer passed as argument 2,
30734          which is declared to never be null"
30735         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30737 2015-06-20  Glenn Morris  <rgm@gnu.org>
30739         gitlog-to-changelog: improve gitmerge.el commits
30740         Let the Emacs ChangeLog generation process exclude "skipped"
30741         messages from merge commits (Bug#20717).
30742         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30744 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30746         wchar: fix MinGW compilation warnings
30747         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30748         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30749         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30751 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30753         uniname/uniname-tests: use pristine data files
30754         For copyright and maintenance reasons, use the data files from UCD
30755         without modification.
30756         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30757         (getfield): Remove.
30758         (aliases_count): New global variable.
30759         (fill_names): Skip comments and empty lines in the input.  Don't
30760         use getfield.
30761         (fill_aliases): Likewise.
30762         (main): Change the expected command line arguments to:
30763         NAMES... ["--" ALIASES...].
30764         * tests/uniname/test-uninames.sh: Adjust to the change in
30765         test-uninames.c.
30766         * tests/uniname/UnicodeDataNames.txt: Remove.
30767         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30768         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30769         file from Unicode 8.0.0.
30771 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30773         linked-list, linkedhash-list: avoid compiler warnings
30774         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30775         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30777 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30779         libunistring: bump minimum version to 0.9.6
30780         * all modules depending on updated Unicode data: Regenerate.
30781         The modules are listed by a script that does:
30782         - for each file listed by: git show --oneline --name-only 705f4efc
30783           - deduce the containing modules, based on "Files:"
30784         - deduce the modules which depend on the containing modules, based
30785           on "Depends-on:"
30787 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30789         uniname/uniname: update to Unicode 8.0.0
30790         * lib/uniname/uninames.h: Regenerate.
30791         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30792         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30794 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30796         libunistring: update to Unicode 8.0.0
30797         * lib/gen-uni-tables.c (SIZEOF): New macro.
30798         (output_numeric): Increase the maximum number of fractions from
30799         128 to 160.  Increase the level3 value width from 7 bits to 8
30800         bits.  Use SIZEOF instead of a hard-coded integer.
30801         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30802         0x28000.
30803         (fill_blocks): Increase the maximum number of blocks from 256 to
30804         384.  Use SIZEOF instead of a hard-coded integer.
30805         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30806         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30807         value width.
30808         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30809         a new case added to LBP22.
30810         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30811         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30812         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30813         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30814         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30815         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30816         lib/uniwidth/width.c.
30817         * all generated files under lib/uni* and tests/uni*: Regenerate.
30819 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30821         gnu-web-doc-update: add --mirror to remove stale files
30822         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30823         out of date files from the CVS server.  Since this is usually
30824         appropriate, a prompt is given when the option is not specified,
30825         along with the `cvs remove` command that would be run.
30827 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30829         acl-permissions: pacify -Wsuggest-attribute=const
30830         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30831         * lib/acl-internal.h (free_permission_context):
30832         Declare with attribute const if ! (defined USE_ACL &&
30833         (HAVE_ACL_GET_FILE || defined GETACL)).
30835         fsync: document AIX misbehavior
30836         * doc/posix-functions/fsync.texi (fsync):
30837         Document failure on AIX with read-only file descriptor.
30839 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30841         stdio: Don't redefine gets when using C++
30842         * lib/stdio.in.h (gets): Disable warning on C++.
30844 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30846         acl-permissions: port to AIX, C89 HP-UX
30847         Problems reported by Michael Felt.
30848         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30849         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30850         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30851         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30852         Add cast for AIX, whose system calls are declared to accept
30853         char * even though the arguments are really char const *.
30854         * lib/get-permissions.c (get_permissions):
30855         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30856         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30857         that broke a build.
30858         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30859         Rework types to pacify xlc.
30861 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30863         vasprintf-posix: avoid compiling vasnprintf where possible
30864         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30865         module where not required.  For example on a GNU/Linux system
30866         when gnulib-tool is run with the --conditional-dependencies option.
30868 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30870         file-has-acl: fix build on Mac OS X 10
30871         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30872         which has an incompatible 6 parameter getxattr() call.
30873         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30874         call on Mac OS X >= 10.4.
30875         * doc/glibc-functions/fgetxattr.texi: Likewise.
30876         * lib/file-has-acl.c: Revert to more complete combined check.
30877         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30878         Reported by Jack Howarth.
30880 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30882         prefix-gnulib-mk: remove no longer needed special case
30883         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30884         continued lib_SOURCES lines are no longer present,
30885         so special case handling of such entries is not required.
30887 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30889         acl: don't depend on the deprecated qacl module
30890         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30892 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30894         gnulib-tool: concatenate lib_SOURCES to a single line
30895         * gnulib-tool: Refactor the line merging sed logic,
30896         and use that to output a single lib_SOURCES line for each module.
30897         gnulib using projects often postprocess this output to prepend
30898         subdir paths to each item, and having a single line simplifies this
30899         processing allowing better decoupling from the gnulib-tool output.
30901 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30903         pthread_sigmask: discount system version if a simple macro (trivial)
30904         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30906         function to ensure it's available.
30908 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30910         readlinkat: avoid OS X 10.10 trailing slash bug
30911         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30912         has this bug.
30913         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30914         that OS X 10.10 has this function.
30915         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30916         as done for readlink().
30917         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30918         trailing slash bug, and assume readlinkat() has the same issue.
30919         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30920         rather than the correct $gl_cv_decl_readlinkat_works.
30922 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30924         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30925         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30926         module rewrite.
30928         acl-permissions: Fix build on Solaris and Cygwin
30929         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30930         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30931         ace_entries variables have moved into struct permission_context but
30932         they were still accessed as local variables here.
30934 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30936         linkat: avoid OS X 10.10 trailing slash with symlink bug
30937         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30938         causes the symlink to be dereferenced, and if it points
30939         to a non existent file, that file will be created as
30940         a hard link to "path1".
30941         This fixes a test failure in test-linkat.c.
30942         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30943         this case.  The existing workaround in linkat.c for
30944         trailing slash issues, suffices for this case.
30945         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30946         the list of platforms with trailing slash issues.
30948 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30950         unlinkat: handle ignoring of ".." on Darwin 14
30951         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30952         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30953         so handle in the same manner.
30954         * m4/unlinkat.m4: Comment on this Darwin issue.
30955         * doc/posix-functions/unlink.texi: Update the latest version
30956         where the issue was seen.
30957         * doc/posix-functions/unlinkat.texi: Mention this issue.
30958         Fixes a test failure in test-unlinkat.c.
30960 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30962         qacl: split into qcopy-acl and qset-acl
30963         Emacs needs the former, but not the latter.
30964         * modules/acl-permissions: New file, containing most of the old qacl.
30965         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30966         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30967         * modules/qcopy-acl, modules/qset-acl: New files.
30968         * MODULES.html.sh (File system functions):
30969         Mention the new modules, and mention qacl while we're at it.
30971 2015-05-27  Glenn Morris  <rgm@gnu.org>
30973         gitlog-to-changelog: new option --ignore-line
30974         (This patch is imported from the GNU Emacs master.)
30975         This option ignores individual commit lines matching a pattern.
30976         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30978 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30980         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30981         Implement get_permissions and set_permissions primitives for getting all
30982         the permissions of a file, storing them, and later setting them. (In the
30983         minimal case, the permissions consist only of a file mode.) Reimplement
30984         qset_acl and qcopy_acl based on these new primitives: this avoids code
30985         duplication and makes error handling more consistent.
30986         The Solaris and Cygwin code still uses duplicate code paths for setting
30987         a file mode while making sure that no acls exist and setting an explicit
30988         acl; this is no worse than before, but could be cleaned up.  The AIX
30989         code still doesn't read ACLs, it only makes sure that acls don't get in
30990         the way when setting a file mode.
30991         * lib/acl-internal.h (struct permission_context): New data structure.
30992         (get_permissions, set_permissions, free_permission_context): Declare.
30993         * lib/acl-internal.c (free_permission_context): New helper function.
30994         * lib/get-permissions.c (get_permissions): New helper function split off
30995         from qcopy_acl.
30996         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30997         AIX, set a file's permissions based only on a file mode.
30998         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30999         other platforms construct a temporary acl from the file mode and set
31000         that acl in the same way as setting an acl read from the source file.
31001         This should help avoid code duplication and inconsistent / buggy
31002         behavior.
31003         (set_acls): New helper function Split off from qcopy_acl.
31004         (chmod_or_fchmod): Moved here from qset-acl.c.
31005         (set_permissions): New helper function.
31006         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
31007         set_permissions.
31008         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
31009         * modules/qacl: Add get-permissions.c and set-permissions.c.
31011         file-has-acl: Split feature tests again (Bug#20667)
31012         * lib/file-has-acl.c: Instead of testing for
31013         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
31014         define them when needed.
31015         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
31016         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
31018 2015-05-27  Pádraig Brady  <P@draigBrady.com>
31020         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
31021         This avoids a conflict with "FORTIFY_SOURCE" variants
31022         of the string functions when they're replaced on NetBSD-6.0.1
31023         and Darwin-14.3.0 at least.
31024         * lib/string.in.h: Avoid including our "lib/string.h" while
31025         including the system <string.h>.
31027 2015-05-26  Eric Blake  <eblake@redhat.com>
31029         stdio: limit __gnu_printf__ witness to gcc 4.4+
31030         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
31031         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
31033         error: use correct printf attributes on mingw
31034         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
31036         inttypes: force correct mingw PRIdMAX even without <stdio.h>
31037         * modules/inttypes (Depends-on): Require extensions, so that mingw
31038         always uses GNU style inttypes.
31039         * lib/inttypes.in.h: On mingw, include <stdio.h>.
31041         stdio: fix probe on mingw under gcc 5.1
31042         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
31043         around new gcc preprocessor rules.
31045 2015-05-07  Glenn Morris  <rgm@gnu.org>
31047         gitlog-to-changelog: parse "Tiny-change"
31048         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
31049         "Copyright-paperwork-exempt".  (Bug#20324)
31051 2015-05-06  Pádraig Brady  <P@draigBrady.com>
31053         doc: document glibc posix_fallocate() issues
31054         * doc/posix-functions/posix_fallocate.texi: Mention the
31055         glibc efficiency problems and issues with NFS.
31057 2015-05-05  Karl Berry  <karl@freefriends.org>
31059         * build-aux/gendocs.sh (usage): document new css default
31060         for HTML (--htmlarg).
31062 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31064         extern-inline: no need for workaround in GCC 5.1
31065         * doc/extern-inline.texi (extern inline):
31066         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31067         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
31068         around these bugs in GCC 5.1 and later.  Maybe in a decade or
31069         two we can remove these workarounds.
31071 2015-04-28  Pádraig Brady  <P@draigBrady.com>
31073         eealloc, pagealign_alloc, xalloc: avoid clang warnings
31074         Avoid [-Wunknown-attributes] warnings like:
31075         warning: unknown attribute '__alloc_size__' ignored
31076         * lib/xalloc.h: Don't use the __alloc_size__  attribute
31077         with clang, as support has been fully removed as of clang 3.5:
31078         https://github.com/llvm-mirror/clang/commit/c047507a
31079         * lib/eealloc.h: Likewise.
31080         * lib/pagealign_alloc.h: Likewise.
31082 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31084         tests: pacify GCC 5.1's stricter printf checking
31085         * tests/test-dirname.c (main):
31086         * tests/test-getaddrinfo.c (simple):
31087         * tests/test-getlogin.c (main):
31088         * tests/test-getndelim2.c (main):
31089         * tests/test-inttostr.c (CK):
31090         * tests/test-md5.c (main):
31091         * tests/test-read-file.c (main):
31092         * tests/test-sha1.c (main):
31093         Fix mismatches between printf format and value signedness.
31094         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
31095         Remove, as CAST_VAL always returned a value of type uintmax_t.
31097         fts: port to GCC 5.1 with --enable-gcc-warnings
31098         Without this fix, GCC 5.1 (correctly) warns about a subscript
31099         error on the fts_name component of FTSENT.  It's actually a
31100         flexible member, so define it that way on C99 or later hosts.
31101         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
31102         structure that now has a flexible array member.
31103         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
31104         (FTSENT): fts_name is now flexible on C99-or-later platforms.
31105         * modules/fts (Depends-on): Add flexmember.
31107 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31109         file-has-acl: port to CentOS 6
31110         Problem reported by Tom G. Christensen in:
31111         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
31112         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
31113         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
31114         HAVE_GETXATTR.
31115         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
31116         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
31117         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
31118         file-has-acl.c actually needs.
31120 2015-04-26  Pádraig Brady  <P@draigBrady.com>
31122         file-has-acl: always return false when ACLs aren't supported
31123         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
31124         change the GNU/Linux getxattr path, to transform "not supported"
31125         errors to a false return rather than an error.  This is handled
31126         within file_has_acl() due to the platform specific tests to
31127         determine if ACLs are not supported.
31129 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31131         gettext: propagate po/Makefile.in.in too
31132         * build-aux/po/Makefile.in.in: Copy from latest gettext.
31133         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
31134         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
31135         between Makefile.in.in and the gettext-runtime m4 files.
31137 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31139         file-has-acl: new module, split from acl
31140         And add a new module file-has-acl-tests to match.
31141         I ran into a problem with the recent changes to the acl module,
31142         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
31143         When using the fixed version with Emacs, I discovered that
31144         file-has-acl wasn't separated out well enough for Emacs (e.g., it
31145         had multiple libraries, but needed only one), so I fixed that too.
31146         * NEWS: Document this incompatible change.
31147         * modules/file-has-acl, modules/file-has-acl-tests: New files.
31148         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
31149         Initialize gl_need_lib_has_acl.
31150         (gl_FUNC_ACL): Require it.
31151         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
31152         Move the file-has-acl.c-relevant stuff to ...
31153         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
31154         use_xattrs = 0' typo, and omit some needless work.  Set
31155         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
31156         when gl_FUNC_ACL is called.
31157         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
31158         (Link): Remove $(LIB_HAS_ACL).
31159         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
31160         (check_PROGRAMS): Move stuff relevant to file-has-acl to
31161         modules/file-has-acl-tests.
31162         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
31164         manywarnings: add GCC 5.1 warnings
31165         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
31166         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
31167         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
31168         -Wsuggest-override, -Wuse-without-only.  Change
31169         -Wnormalized=... operands to match 5.1.
31170         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
31171         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
31172         -Wdiscarded-qualifiers, -Wformat-signedness,
31173         -Wincompatible-pointer-types, -Wint-conversion,
31174         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
31175         -Wshift-count-negative, -Wshift-count-overflow,
31176         -Wsizeof-array-argument, -Wsuggest-final-methods,
31177         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
31178         and add -Warray-bounds=2 as a special case.
31180 2015-04-21  Simon Josefsson  <simon@josefsson.org>
31182         doc: update FDL template to match FDL examples.
31183         * doc/alloca-opt.texi:
31184         * doc/alloca.texi:
31185         * doc/c-ctype.texi:
31186         * doc/c-strcase.texi:
31187         * doc/c-strcaseeq.texi:
31188         * doc/c-strcasestr.texi:
31189         * doc/c-strstr.texi:
31190         * doc/c-strtod.texi:
31191         * doc/c-strtold.texi:
31192         * doc/ctime.texi:
31193         * doc/error.texi:
31194         * doc/gcd.texi:
31195         * doc/gnulib-tool.texi:
31196         * doc/inet_ntoa.texi:
31197         * doc/intprops.texi:
31198         * doc/lib-symbol-visibility.texi:
31199         * doc/maintain.texi:
31200         * doc/parse-datetime.texi:
31201         * doc/quote.texi:
31202         * doc/regexprops-generic.texi:
31203         * doc/standards.texi: Remove spurious 'with' in FDL license
31204         template.
31206 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
31208         lstat: fix cross-compilation 'ln -s' problem
31209         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
31210         Have the test program call 'symlink' rather than a separate
31211         script run 'ln -s'; this is more likely to work in
31212         cross-compilation environments.  Reported by Pavel Fedin in:
31213         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
31215 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
31217         gendocs.sh: default to a common CSS style sheet for HTML output
31218         * build-aux/gendocs.sh (htmlarg): Change default value.
31220 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
31222         gnulib-tool: output bold attribute more portably
31223         * gnulib-tool (func_show_module_list): Change hexadecimal
31224         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
31225         encoded numbers as arguments to `printf' is not portable,
31226         and is not claimed by POSIX.  This is the case with FreeBSD.
31228 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31230         qacl: Simplify HP-UX acl_nontrivial check
31231         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
31232         acl_nontrivial. Check if the acl has at most three entries instead (it must
31233         have exactly three entries according to the HP-UX documentation). Ignore
31234         uids and gids as long as an entry is either for a user (i.e., the owner),
31235         a group (i.e., the owning group), or others.
31236         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
31237         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
31239 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
31241         acl: On Linux, check for acls without libacl
31242         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
31243         library function to check for the presence of acls, avoiding a library.
31244         * lib/file-has-acl.c: Include xattr headers if we have them.
31245         (file_has_acl): On Linux, use getxattr().
31246         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
31247         file_has_acl(). Check for xattr headers and getxattr().
31249 2015-04-14  Ángel González  <keisial@gmail.com>
31251         tempname: avoid unused parameter warnings (trivial)
31252         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
31253         (try_nocreate): Likewise.
31255 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
31257         fseeko: fix build failure on NetBSD >= 6 (trivial)
31258         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
31259         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
31261 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31263         gitlog-to-changelog: port to MS-Windows
31264         * build-aux/gitlog-to-changelog (git_dir_option):
31265         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
31266         MS-Windows Perl.  Reported by Eli Zaretskii in:
31267         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
31269 2015-04-07  Karl Berry  <karl@gnu.org>
31271         gendocs: new option --tex for passing args to texi2dvi.
31272         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
31273         (TEXI2DVI): cut to just command name.
31274         (usage): mention new option, and update copyright.
31275         <generate_tex>: use it.
31277 2015-04-07  Karl Berry  <karl@gnu.org>
31279         * config/srclistvars.sh (GETTEXT): new definition.
31280         * config/srclist.txt: use it for gettext .m4 files.
31281         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
31282         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
31283         and continuing into April.
31285 2015-04-07  Daiki Ueno  <ueno@gnu.org>
31287         uniname/uniname-tests: fix failure due to alias
31288         Reported by Jack Howarth in:
31289         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
31290         * tests/uniname/test-uninames.c (name_has_alias): New function.
31291         (test_inverse_lookup): Exclude character name with valid alias,
31292         from randomly generated character names.
31293         (main): Fill unicode_aliases before calling test functions.
31295 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
31297         hash: remove deprecated hash_insert0 function
31298         * lib/hash.h (hash_insert0): Remove deprecated function.
31299         * lib/hash.c (hash_insert0): Likewise.
31301 2015-04-02  Pádraig Brady  <P@draigBrady.com>
31303         mountlist: remove dependency on libmount
31304         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
31305         directly, rather than depending on libmount, which has many
31306         dependencies due to its dependence on libselinux, as detailed at:
31307         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
31308         Note we restrict this to __linux__ as that's probably where this
31309         interface will remain.  If ever porting, it would be best
31310         to first pull the makedev() wrapper from coreutils to a gnulib module.
31311         Note also we don't add a getline dependency to the mountlist module,
31312         as all Linux versions are sufficient.
31314 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31316         stddef: port to pre-C11 GCC on x86
31317         On this platform, max_align_t should have an alignment of 8 even
31318         though the storage alignments of double, long, etc. max out at 4.
31319         Inspired by a comment of Andreas Schwab's here:
31320         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
31321         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
31322         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
31323         * tests/test-stddef.c: Test __alignof__ too, if available.
31325 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31327         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31328         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31330 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31332         yesno: make EOL optional in ENABLE_NLS case also (trival)
31333         * lib/yesno.c (yesno): Check for EOL before replacing.
31334         * tests/test-yesno.sh: Add a test case (test along with gettext).
31336 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31338         fdopendir-tests: test it does not close its arg
31339         * tests/test-fdopendir.c (main): Test that fdopendir does not
31340         close its argument.  From a suggestion by David Grayson in:
31341         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31343 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31345         gitlog-to-changelog: trim trailing white space
31346         * build-aux/gitlog-to-changelog (main):
31347         Trim trailing white space from commit message lines.
31348         This is helpful for processing the GNU Emacs repository,
31349         which dates back to 1985 and contains a lot of such lines.
31351         gitlog-to-changelog: new option --ignore-matching
31352         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31353         Support new option --ignore-matching=PAT, which ignores all
31354         commit messages whose first line matches PAT.
31356 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31358         fdopendir: port better to MinGW
31359         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31360         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31361         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31362         * modules/fdopendir (Depends-on): Add dirfd.
31364 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31366         fdopendir: fix typo in comment
31367         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31369 2015-03-09  Eric Blake  <eblake@redhat.com>
31371         error: document all entry points provided
31372         * doc/glibc-functions/error_print_progname.texi
31373         (error_print_progname): Mention the error module.
31374         * doc/glibc-functions/error_at_line.texi (error_at_line):
31375         Likewise.
31376         * doc/glibc-functions/error_message_count.texi
31377         (error_message_count): Likewise.
31378         * doc/glibc-functions/error_one_per_line.texi
31379         (error_one_per_line): Likewise.
31381 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31383         vasnprintf: pacify clang 3.5.0
31384         Problem reported by Werner Lemberg in:
31385         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31386         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31387         The casts aren't needed, since the characters in question are ASCII.
31389 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31391         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31392         * lib/dirent--.h (GNULIB_defined_opendir):
31393         * lib/dirent.in.h (GNULIB_defined_opendir)
31394         (GNULIB_defined_closedir):
31395         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31396         #undef only if Gnulib defined it.
31398         poll: port to MSVC v18 on MS-Windows 8.1
31399         Problem reported by Gisle Vanem in:
31400         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31401         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31402         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31403         Add sys_socket.
31405 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31407         tests: support stderr verification with returns_()
31408         * tests/init.sh (returns_): Disable tracing for this wrapper
31409         function, so that stderr of the wrapped command is unchanged,
31410         allowing for verification of the contents.
31412 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31414         passfd: avoid valgrind uninitalised data warning
31415         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31416         to include just the fd we've initialized, rather than including
31417         the extra space used for alignment.
31419 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31421         uniwbrk/u32-wordbreaks-tests: fix copyright
31422         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31424         dup2: doc and test for Android bug
31425         Reported by Kevin Cernekee in:
31426         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31427         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31428         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31430 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31432         Replace dup2() on Android
31433         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31434         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31435         fails.  Using rpl_dup2() fixes this because it has an explicit test
31436         for this condition.
31438 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31440         Android doesn't define RLIM_SAVED_*
31441         Portability problem reported by Kevin Cernekee in:
31442         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31443         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31444         Mention the portability problem.
31445         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31446         Define if not defined.
31447         * m4/dup2.m4 (gl_FUNC_DUP2):
31448         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31449         Likewise.
31451 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31453         vasnprintf-posix-tests: use consistent test
31454         * tests/test-vasnprintf-posix.c (test_function):
31455         Use "<" in assert instead of "<=", for consistency with other tests.
31457 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31459         printf, isinf, etc.: noncanonical != NaN
31460         Do not require that isinf, printf, etc. treat noncanonical
31461         values as NaNs.  Instead, require only that they do not crash.
31462         Problem reported by Joseph Myers in:
31463         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31464         * doc/posix-functions/dprintf.texi (dprintf):
31465         * doc/posix-functions/fprintf.texi (fprintf):
31466         * doc/posix-functions/isfinite.texi (isfinite):
31467         * doc/posix-functions/isinf.texi (isinf):
31468         * doc/posix-functions/isnan.texi (isnan):
31469         * doc/posix-functions/printf.texi (printf):
31470         * doc/posix-functions/snprintf.texi (snprintf):
31471         * doc/posix-functions/sprintf.texi (sprintf):
31472         * doc/posix-functions/vdprintf.texi (vdprintf):
31473         * doc/posix-functions/vfprintf.texi (vfprintf):
31474         * doc/posix-functions/vprintf.texi (vprintf):
31475         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31476         * doc/posix-functions/vsprintf.texi (vsprintf):
31477         Document this.
31478         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31479         * m4/isinf.m4 (gl_ISINFL_WORKS):
31480         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31481         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31482         * tests/test-isfinite.c (test_isfinitel):
31483         * tests/test-isinf.c (test_isinfl):
31484         * tests/test-isnan.c (test_long_double):
31485         * tests/test-isnanl.h (main):
31486         * tests/test-snprintf-posix.h (test_function):
31487         * tests/test-sprintf-posix.h (test_function):
31488         * tests/test-vasnprintf-posix.c (test_function):
31489         * tests/test-vasprintf-posix.c (test_function):
31490         Test only that noncanonical values do not cause crashes, not that
31491         they are treated as NaNs.  In some cases this means a larger
31492         output buffer is needed.
31494 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31496         fts: remove redundant close() (trivial)
31497         * lib/fts.c (fts_read): Remove redundant call to close().
31498         Spotted by coverity.
31500 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31502         getdtablesize: port better for Android
31503         Problem reported by Kevin Cernekee in:
31504         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31505         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31506         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31507         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31509         poll: fixes for large fds
31510         * lib/poll.c (poll): Don't check directly for NFD too large.
31511         Don't rely on undefined behavior in FD_SET when an arg exceeds
31512         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31513         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31514         as that makes the test a bit stricter.
31516 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31518         fcntl: Fix cross compiling
31519         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31520         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31522 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31524         dup2, fcntl: cross-compile better for Android
31525         Problem reported by Kevin Cernekee in:
31526         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31527         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31528         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31529         there's little need to cross-compile for older kernels nowadays.
31530         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31531         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31533 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31535         getopt: don't crash on memory exhaustion
31536         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31537         memory exhaustion.  In the _LIBC case we use alloca() as is
31538         already done in glibc, so we don't need to consider the separate
31539         error path in that awkward case.  Also fix a memory leak when
31540         ambiguous options are present.
31541         Reported by Tobias Stoeckmann
31543 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31545         tempname: allow compilation with C++ (trivial)
31546         * lib/tempname.h [C++]: Specify extern "C" linkage.
31547         * lib/tempname.h (try_tempname):
31548         * lib/tempname.c (__try_tempname, __gen_tempname):
31549         Rename 'try' to 'tryfunc'.
31551 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31553         dup2, fcntl: port to AIX
31554         * m4/dup2.m4 (gl_FUNC_DUP2):
31555         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31556         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31557         The former works on AIX 7.1 but the latter does not.
31558         Also, this may work better with Android; see:
31559         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31561 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31563         getdtablesize, dup2, fcntl: port to Android
31564         Problem reported by Kevin Cernekee in:
31565         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31566         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31567         Mention that getdtablesize doesn't work on Android.
31568         * lib/getdtablesize.c: Use getrlimit substitute only if
31569         getdtablesize is declared.  This should suffice for Cygwin
31570         while not breaking Android.
31571         * m4/dup2.m4 (gl_FUNC_DUP2):
31572         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31573         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31574         standardized but the latter is not, and sysconf works on Android.
31575         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31576         Also check that getdtablesize is declared.
31577         This removes the need for a special case for Android.
31579 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31581         localename: Implement gl_locale_name_thread_unsafe for Android
31582         * lib/localename.c: Android API level >= 21 supports two hardcoded
31583         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31584         the internal __locale_t struct.
31586 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31588         fts: avoid crash when a cycle is added while traversing
31589         This could be triggered by auto-mounting a recursive bind mount.
31590         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31591         * lib/fts.c (fts_read): Avoid removing the original hash table item
31592         when leaving a directory that caused a cycle, and preserve the FTS_DC
31593         flag.
31595 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31597         uniname/uniname: support character alias
31598         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31599         Generate one-way mapping from aliases to codepoints in the
31600         generated tables.  Special case variation selectors to reduce
31601         table size.
31602         * lib/uniname/uniname.c (unicode_character_name): Special case
31603         variation selectors.
31604         (unicode_name_character): Special case variation selectors and
31605         their aliases.
31606         * lib/uniname/uninames.h: Regenerate.
31607         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31608         * modules/uniname/uniname-tests (Files): Add
31609         tests/uniname/NameAliases.txt.
31610         * tests/uniname/test-uninames.c: Mark as static.
31611         (ALIASLEN): Define.
31612         (struct unicode_alias): New struct.
31613         (unicode_aliases): New variable.
31614         (fill_aliases): New function.
31615         (test_alias_lookup): New test function.
31616         (main): Run the 'test_alias_lookup' test if the second argument is
31617         given.
31618         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31619         second argument.
31621 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31623         Fix FILE struct compatibility with Android API level >= 21
31624         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31625         __sferror.  Recent versions of Bionic's stdio.h no longer define
31626         __sferror.
31627         * lib/fbufmode.c: Likewise.
31628         * lib/fflush.c: Likewise.
31629         * lib/fpurge.c: Likewise.
31630         * lib/freadable.c: Likewise.
31631         * lib/freadahead.c: Likewise.
31632         * lib/freading.c: Likewise.
31633         * lib/freadptr.c: Likewise.
31634         * lib/freadseek.c: Likewise.
31635         * lib/fseeko.c: Likewise.
31636         * lib/fseterr.c: Likewise.
31637         * lib/fwritable.c: Likewise.
31639         Assume unbroken ungetc() on Android
31640         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31641         test case passed when running on an Android host, and the code
31642         hasn't really changed since 2009.
31644         getdtablesize: Fix Android build
31645         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31646         versions have this symbol in the .so library (at least 32-bit
31647         platforms) but are missing the declaration in the header file,
31648         causing the m4 logic to guess incorrectly.
31650         localename: Fix Android build
31651         * modules/localename (Depends-on): Add langinfo.
31653         getugroups: Fix Android build
31654         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31655         functions.
31657         euidaccess: Fix Android build
31658         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31659         AT_EACCESS gets declared.
31661         linkat_nofollow: Add fallback case for cross compiling
31662         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31664         net_if: Handle content-free <net/if.h> system headers
31665         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31666         struct if_nameindex.  If not, enable the replacement header.
31668         signal_h: Fix Android build
31669         * lib/signal.in.h: Add Android to the list of platforms that declare
31670         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31672         duplocale: Fix Android build of duplocale-tests
31673         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31674         is included by test-duplocale.c (but not by duplocale.c).
31675         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31676         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31677         * doc/posix-headers/monetary.texi: Add Android to the list of
31678         platforms missing monetary.h.
31680 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31682         tests: avoid recent -Werror=unused-variable regression in test-locale
31683         * tests/test-locale.c (main): Reference the variable to avoid the
31684         "unused variable" warning.
31686 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31688         maint: various whitespace cleanups in tempname
31689         * lib/tempname.c: Normalize spacing and line length.
31690         * lib/tempname.h: Likewise.
31691         * modules/tempname: Likewise.
31693 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31695         tests: provide returns_() to simplify exit status checking
31696         * tests/init.sh (returns_): A new function for use in tests,
31697         to allow for easier checking of return values, where you expect
31698         a command to exit with failure status.  By checking for a particular
31699         exit code, you don't hide any crashes for example.
31701 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31703         mountlist: only use libmount when specified
31704         There are currently many shared libs dependencies introduced by
31705         libmount with associated runtime and virt mem overhead.
31706         Therefore don't enable by default.
31707         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31709 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31711         uniname/unimame-tests: don't link with -lunistring
31712         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31713         $(LIBUNISTRING).  Document the rationale why we need to
31714         conditionalize the test.
31716 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31718         fstrcmp: don't assume strlen < INT_MAX
31719         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31720         (uintptr_t): Remove, as we're now assuming stdint.
31721         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31722         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31723         if the input string is long.
31724         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31725         uintptr_t to size_t when the underlying value is a pointer casted
31726         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31727         * modules/fstrcmp (Depends-on): Add stdint.
31729         diffseq: prefer ptrdiff_t to ssize_t
31730         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31731         ptrdiff_t is the natural type for signed indexes.
31732         On a few older platforms, ssize_t is narrower than size_t.
31734         xalloc: fix typo that suppressed warnings
31735         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31736         This typo, introduced a couple of years ago, mistakenly suppressed
31737         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31738         -Wmissing-declarations warnings.
31740         full-read: fix license notice typo
31741         * lib/full-read.h: Remove a stray line in the license notice.
31742         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31744         crypto/gc: fix a -Wswitch warning
31745         Reported by Bruce Korb in:
31746         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31747         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31749 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31751         gnulib-tool: fix handling of patch(1) diagnostics
31752         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31753         as otherwise gnulib-tool will reparse that output and attempt
31754         to lookup modules.
31756 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31758         bootstrap: exit immediately upon gnulib-tool failure
31759         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31760         This was noticed when gnulib-tool exited early due to failure
31761         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31762         but various confusing errors were then given as the build proceeded.
31764 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31766         symlinkat: include all required header files
31767         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31768         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31769         Reported at https://savannah.gnu.org/bugs/index.php?44151
31770         and by Jack Howarth.
31772 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31774         localename: support Solaris 12 and illumos
31775         * lib/localename.c (gl_locale_name_thread_unsafe): call
31776         getlocalename_l() on newer __sun platforms.
31777         Reported by Alexander Pyhalov.
31778         Fix suggested by Rich Burridge.
31780 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31782         locale: fix tests on illumos (trivial)
31783         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31784         so move from global scope to main().
31786 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31788         unictype: avoid undefined left-shift behavior
31789         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31790         gcc's -fsanitize=shift and running its tests triggered:
31791           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31792             places cannot be represented in type 'int'
31793         Cast LHS to 'unsigned int' after integer promotion.
31794         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31795         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31797 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31799         libunistring: bump version of unitypes dependants
31800         Due to the header file search order, all the headers which depend
31801         on unitypes.h need to be generated, when the preinstalled
31802         libunistring is older.
31803         * modules/unicase/base (configure.ac): Bump minimum version to
31804         0.9.4.
31805         * modules/uniconv/base (configure.ac): Likewise.
31806         * modules/unilbrk/base (configure.ac): Likewise.
31807         * modules/uninorm/base (configure.ac): Likewise.
31808         * modules/unistdio/base (configure.ac): Likewise.
31809         * modules/unistr/base (configure.ac): Likewise.
31810         * modules/uniwbrk/base (configure.ac): Likewise.
31811         * modules/uniwidth/base (configure.ac): Likewise.
31813 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31815         unictype/category-none: fix link with libunistring
31816         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31817         prefixed with "libstring_" when compiled as part of libunistring.
31818         To avoid undefined symbol at link time, increase the minimum
31819         version when the dependant modules are updated.
31820         * modules/unictype/category-none (configure.ac): Bump minimum
31821         version to 0.9.5.
31823 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31825         unitypes: fix build with installed libunistring
31826         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31827         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31828         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31830 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31832         time: port to MinGW32 3.21
31833         Problem reported by Eli Zaretskii in:
31834         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31835         * lib/time.in.h:
31836         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31837         * modules/time (Depends-on):
31838         Fall back on unistd.h if the other include files don't define
31839         struct timespec.
31841         update-copyright: apply to self
31842         * build-aux/update-copyright: Fix copyright date.  How ironic!
31844 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31846         libunistring: update to Unicode 7.0.0
31847         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31848         Manichaean names.
31849         * lib/unictype/joininggroup_name.h: Likewise.
31850         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31851         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31852         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31853         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31854         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31855         enum values.
31856         (is_property_alphabetic): Accept newly added characters to
31857         cuneiform numeric signs.
31858         (is_property_default_ignorable_code_point): Reject U+0605.
31859         (FIELDLEN): Increase from 120 to 160.
31860         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31861         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31862         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31863         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31864         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31865         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31866         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31867         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31868         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31869         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31870         U+1E8D0..U+1E8D6.
31871         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31872         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31873         lib/uniwidth/width.c.
31874         * all generated files under lib/uni* and tests/uni*: Regenerate.
31876 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31878         libunistring: update to Unicode 6.3.0
31879         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31880         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31881         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31882         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31883         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31884         Update WB5, WB9, WB10, WB13a, and WB13b.
31885         * tests/uniwbrk/test-uc-wordbreaks.c
31886         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31887         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31888         (UC_BIDI_PDI): New enumeration values.
31889         (bidi_category_byname): Support those enum values.
31890         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31891         dedicated property assigned.
31892         (is_property_case_ignorable): Check 0x0027.
31893         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31894         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31895         (output_wbp): Support those enum values.
31896         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31897         (UC_BIDI_PDI): New enumeration values.
31898         * lib/unictype/bidi_byname.gperf: Add those property names.
31899         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31900         U+180E, U+1A1B, and U+2066..U+2069.
31901         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31902         lib/uniwidth/width.c.
31903         * all generated files under lib/uni* and tests/uni*: Regenerate.
31905 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31907         libunistring: update to Unicode 6.2.0
31908         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31909         (unilbrk_table): Adjust table size.
31910         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31911         for LBP_RI.
31912         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31913         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31914         Normalize table index skipping ignored properties.
31915         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31916         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31917         the table.
31918         * lib/uniwbrk/wbrktable.h: Adjust table size.
31919         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31920         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31921         Support rule GB8a.
31922         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31923         * tests/unigbrk/test-uc-is-grapheme-break.c
31924         (graphemebreakproperty_to_string): Support GBP_RI.
31925         * tests/uniwbrk/test-uc-wordbreaks.c
31926         (wordbreakproperty_to_string): Support WBP_RI.
31927         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31928         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31929         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31930         LBP_AL to LBP_ID.
31931         (output_lbp): Support LBP_RI.
31932         (WBP_RI): New enumeration value.
31933         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31934         (output_wbp): Support WBP_RI.
31935         (GBP_RI): New enumeration value.
31936         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31937         * all generated files under lib/uni* and tests/uni*: Regenerate.
31939 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31941         libunistring: update to Unicode 6.1.0
31942         * lib/gen-uni-tables.c (output_joining_group): Switch to
31943         3-level table to accommodate joining groups defined with higher
31944         codepoint value.  Since there are only 88 groups defined in
31945         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31946         (get_lbp): Update for Unicode 6.1.0.
31947         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31948         3-level table.
31949         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31950         joining group name.
31951         * lib/unictype/joininggroup_name.h: Likewise.
31952         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31953         (unilbrk_table): Adjust table size.
31954         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31955         for LBP_HL.
31956         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31957         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31958         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31959         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31960         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31961         U+302E..U+302F.
31962         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31963         lib/uniwidth/width.c.
31964         * all generated files under lib/uni* and tests/uni*: Regenerate.
31965         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31967 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31969         uniwbrk/u32-wordbreaks-tests: add conformance test
31970         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31971         tests/uniwbrk/test-uc-wordbreaks.c,
31972         tests/uniwbrk/test-uc-wordbreaks.sh, and
31973         tests/uniwbrk/WordBreakTest.txt.
31974         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31975         test-uc-wordbreaks to $(check_PROGRAMS), and define
31976         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31977         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31978         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31980 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31982         uniwbrk: ignore Extended/Format characters at BOL not BOS
31983         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31984         characters if the previous character property is one of
31985         WBP_NEWLINE, WBP_CR, and WBP_LF.
31987 2015-01-11  Jim Meyering  <meyering@fb.com>
31989         test-strstr.c: avoid a trivial leak
31990         * tests/test-strstr.c (main): Free haystack.
31992         update-copyright: recognize groff's \(co marker
31993         * build-aux/update-copyright (circle_c_re): Also accept
31994         uses of \(co, as found in gzip.1.
31996 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31998         maint.mk: fix compatibility with OS X nm
31999         * top/maint.mk (_gl_tight_scope): Use the -g option to
32000         show exported items rather than the -e option which is
32001         ignored on all platforms except OS X where it gives an error.
32002         Reported by Assaf Gordon.
32004 2015-01-07  KO Myung-Hun  <komh@chollian.net>
32006         localcharset: improve charset detection on OS/2
32007         Use system codepage when appropriate.  Map OS/2 codepages to
32008         GNU canonical charset names if possible.
32009         * lib/config.charset: Don't output aliases if "$os" is os2*.
32010         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
32011         result for OS/2.
32012         (locale_charset) [OS2]: Use system codepage if codeset is omitted
32013         from the locale name which is neither "C" nor "POSIX".
32015 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32017         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
32018         This reverts the last patch but one, as it shouldn't be needed now
32019         that the typo is fixed.
32020         * lib/count-leading-zeros.h (count_leading_zeros_ll):
32021         * lib/count-trailing-zeros.h:
32022         * lib/count-one-bits.h:
32023         Go back to using 64-bit intrinsics.
32025         count-leading-zeros: fix pragma typos
32026         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
32027         Fix typos in declaration of intrinsics when _MSC_VER.
32029 2015-01-06  Pádraig Brady  <P@draigBrady.com>
32031         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
32032         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
32033         intrinsics in this case.
32034         * lib/count-trailing-zeros.h: Likewise.
32035         * lib/count-one-bits.h: Likewise.
32037 2015-01-06  Daiki Ueno  <ueno@gnu.org>
32039         uniname/uniname: update to Unicode 7.0.0
32040         To accommodate new characters added since Unicode 5.1.0, this
32041         changes the internal representation of codepoint ranges.
32042         Previously, we grouped codepoint ranges by manually assigned 4-bit
32043         tag, which only allowed 16 groups.  This removes the limitation by
32044         switching to binary search on a table.  For the detail rationale
32045         and the benchmark results, see:
32046         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
32047         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
32048         to INDEX, as it no longer represents a codepoint.
32049         (range): New struct.
32050         (main): Switch to intervals list from a bit-pattern based
32051         classification.
32052         * lib/uniname/uninames.h: Regenerate.
32053         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
32054         * modules/uniname/base (configure.ac): Bump minimum version to
32055         0.9.5.
32056         * modules/uniname/uniname (configure.ac): Bump minimum version to
32057         0.9.5.
32059 2015-01-05  Eric Blake  <eblake@redhat.com>
32061         doc: update INSTALL from autoconf
32062         * doc/install.texi: Resync from autoconf.
32063         * doc/INSTALL: Reflect recent autoconf update.
32064         * doc/INSTALL.ISO: Likewise.
32065         * doc/INSTALL.UTF-8: Likewise.
32067         stdio: fix use of PRIdMAX on modern mingw
32068         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
32069         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
32070         to work with modern mingw.
32072 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
32074         pthread: detect git mingw builds with only partial pollution
32075         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
32076         pollution, as seen temporarily in Fedora 21.
32078 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32080         lib-symbol-versions: cache script check
32081         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
32082         Cache the check for linker version scripts.
32083         From a suggestion by Christophe Curis in:
32084         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
32086 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
32088         maint: fix grammar nits in propername (trivial change)
32089         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
32090         and use an adequate verb and tense.
32092 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
32094         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32095         * module/gendocs: Add 'doc/gendocs_template_min'.
32097         * build-aux/gendocs.sh: Change email addresses and upstream URLs
32098         from to Gnulib's.
32099         (scripturl, templateurl): Adjust accordingly.
32101 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32103         gendocs: copyright date and version fix
32104         Reported by Karl Berry in:
32105         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
32106         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
32107         Fix copyright date.
32108         * build-aux/gendocs.sh (scriptversion): Update.
32110 2015-01-01  Karl Berry  <karl@gnu.org>
32112         * doc/install.texi,
32113         * build-aux/mdate-sh,
32114         * build-aux/depcomp,
32115         * build-aux/config.guess,
32116         * build-aux/config.sub,
32117         * build-aux/ar-lib,
32118         * build-aux/compile: revert copyright updates (some from last
32119         year) in slaved files.
32121 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32123         version-etc: new year
32124         * doc/gnulib.texi:
32125         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
32126         * all files: Run 'make update-copyright'.
32128 2014-12-30  Pádraig Brady  <P@draigBrady.com>
32130         xstrtol: ensure errno is reset
32131         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
32132         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
32134         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
32136 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32138         utimens: fix dependency typo
32139         * modules/utimens (Depends-on): Remove 'assure'.
32140         This bug was introduced in the recent 'assure' patch.
32142 2014-12-22  Eric Blake  <eblake@redhat.com>
32144         docs: mention why libgen.h is bad
32145         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
32147 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32149         assure: new module
32150         This works better than 'assert' when compiling with -DNDEBUG,
32151         as it avoids some compiler diagnostics in that case.
32152         Reported by Norihiro Tanaka in:
32153         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
32154         * MODULES.html.sh (func_all_modules): Add 'assure'.
32155         * lib/assure.h, modules/assure: New files.
32156         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
32157         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
32158         Prefer 'assure' to 'assert'.
32159         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
32160         * modules/chdir-long, modules/cycle-check, modules/fchdir:
32161         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
32162         Depend on 'assure'.
32164 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
32166         stdalign: port better to HP compilers
32167         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
32168         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
32170         stdalign: work around Apple GCC 4.0 bug
32171         Reported by David Fang in:
32172         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
32173         * lib/stdalign.in.h (_Alignas):
32174         * m4/stdalign.m4 (gl_STDALIGN_H):
32175         Do not use aligned attribute with GCC 4.0 on Apple.
32177 2014-12-16  Pádraig Brady  <P@draigBrady.com>
32179         getcwd: fix test failure on OS X 10.9
32180         * m4/getcwd-path-max.m4: Avoid the replacement if it
32181         won't be effective due to the PATH_MAX limitation of lstat().
32182         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
32183         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
32184         for this case for use in tests, and also exclude this
32185         case when setting REPLACE_GETCWD.
32186         * tests/test-getcwd.c (test_long_name): Restrict the
32187         tested path length so that lstat() will not be passed
32188         a path greater than PATH_MAX.
32189         Also key a test condition on HAVE_OPENAT_SUPPORT rather
32190         than AT_FDCWD, since the latter is set unconditionally
32191         since Sep 2009 in commit 52c658e9.
32193 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
32195         parse-datetime: avoid a compiler warning with byacc (trivial)
32196         * lib/parse-datetime.y (yylex): Use the same prototype in the
32197         function definition as the declaration, to avoid a -Wstrict-prototypes
32198         warning seen when using byacc.
32200 2014-12-12  Daiki Ueno  <ueno@gnu.org>
32202         unicase/locale-language-tests: fix LOCALE_FR test
32203         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
32204         a French locale with traditional encoding.
32205         Reported by umerqayam in:
32206         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
32208 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32210         stddef: support C11's max_align_t
32211         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
32212         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
32213         Do not undef, as that might cause max_align_t to be defined twice.
32214         Instead, change use to check for _GL_STDDEF_WINT_T too.
32215         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
32216         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
32217         Check for max_align_t.
32218         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
32219         * modules/stddef-tests (Depends-on): Add stdalign.
32220         * tests/test-stddef.c: Test max_align_t.
32222 2014-12-11  Daiki Ueno  <ueno@gnu.org>
32224         unistd: fix iOS check conditional
32225         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
32226         as 0 or 1 in <TargetConditionals.h>, and the previous check always
32227         yielded true on non-iOS environment.
32228         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
32229         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
32230         they are defined.
32232 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
32234         posixtm: avoid compiler warning in a better way
32235         * lib/posixtm.c (IF_LINT): Remove.
32236         (year, posix_time_parse):
32237         Return true (not 0) if successful.  All callers changed.
32238         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
32240 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32242         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
32243         started with '/' on EMX.
32245 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32247         freopen: workaround freopen() on OS/2 kLIBC
32248         * lib/freopen.c (rpl_freopen): Workaround.
32249         * m4/freopen.m4: Add os2* case.
32251         get_shared_library_fullname: port to EMX
32252         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
32253         on EMX, respectively.
32254         (_DLL_InitTerm): New on EMX.
32255         (get_shared_library_fullname): Implement on EMX.
32257         find_executable: port to EMX
32258         * lib/progreloc.c (find_executable): Implement on EMX.
32260         sched: check struct sched_param in spawn.h as well
32261         * lib/sched.in.h: Include spawn.h on kLIBC.
32262         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
32264 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
32266         bootstrap: Allow perl modules in $buildreq
32267         * build-aux/bootstrap: Add case for perl modules.
32269 2014-12-08  Pádraig Brady  <P@draigBrady.com>
32271         apply _GL_ATTRIBUTE_PURE to some inline functions
32272         clang 3.4.2 flagged these inline functions as pure
32273         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
32274         * lib/sig-handler.h (get_handler): Likewise.
32275         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
32276         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
32278 2014-12-06  Pádraig Brady  <P@draigBrady.com>
32280         vasnprintf: fix potential use after free
32281         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
32282         flagged by clang-analyzer 3.4.2.
32284 2014-12-05  Pádraig Brady  <P@draigBrady.com>
32286         filevercmp, posixtm: avoid compiler warnings with -O3
32287         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
32288         * lib/posixtm.c: (IF_LINT): Define.
32289         (posix_time_parse): Use it to void a "may be used uninitialized"
32290         warning, seen only with -O3.
32292 2014-12-05  Bruno Haible  <bruno@clisp.org>
32294         Fix LDBL80_WORDS macro on big endian platforms.
32295         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
32296         LDBL80_WORDS macro.
32297         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32298         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32299         * tests/test-isfinite.c (test_isfinitel): Likewise.
32300         * tests/test-isinf.c (test_isinfl): Likewise.
32301         * tests/test-isnan.c (test_long_double): Likewise.
32302         * tests/test-isnanl.h (main): Likewise.
32303         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
32304         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
32305         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
32306         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
32307         Reported by Pádraig Brady.
32309 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
32311         git-version-gen: do not print new line characters
32312         * build-aux/git-version-gen: Use printf instead of echo and tr.
32314         gnulib-tool: recognize x:* as an absolute path
32315         * gnulib-tool (func_gnulib_dir): Add ?:* case.
32316         (func_relconcat): Likewise.
32318 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
32320         argp: avoid extraneous translation and mem leak with empty pre doc
32321         * lib/argp-help.c (argp_doc): Never translate the empty string,
32322         when "\v" is the first or last character of the string, as that
32323         has a reserved meaning to return the header info from a po file.
32324         This also fixes a small memory leak in the !post case.
32325         The issue can be seen with this command for example:
32326         LC_MESSAGES=en_US grub2-mknetdir --help
32328 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32330         uniname/uniname-tests: skip if system's libunistring is used
32331         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32332         uniname/uniname module is not compiled.
32334 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32336         printf: fix configure check on big endian systems
32337         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32339 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32341         pipe-filter-gi, pipe-filter-ii: port to AIX
32342         On AIX 7.1, 'select' is defined as static and cannot be referred
32343         to from inline function.
32344         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32345         the definition...
32346         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32347         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32349 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32351         gitlog-to-changelog: add --until
32352         * build-aux/gitlog-to-changelog: Support new --until option.
32353         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32355 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32357         extern-inline: update commentary about GCC bugs
32358         * m4/extern-inline.m4: Add another GCC bug number to comments.
32360 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32362         gen-uni-tables: untabify
32363         * lib/gen-uni-tables.c: Untabify.
32365 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32367         gen-uni-tables: check out-of-range values added to 3-level tables
32368         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32369         (output_joining_type, output_ident_category): Check out-of-range
32370         values added to 3-level tables.
32372 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32374         gen-uni-tables: utilize 'assert'
32375         * lib/gen-uni-tables.c: Include <assert.h>.
32376         (output_category, output_combclass, output_decimal_digit_test)
32377         (output_decimal_digit, output_digit_test, output_digit)
32378         (output_numeric, get_mirror_value, fill_properties)
32379         (fill_property30, is_property_alphabetic)
32380         (is_property_default_ignorable_code_point)
32381         (is_property_uppercase, is_property_lowercase)
32382         (is_property_cased, is_property_case_ignorable)
32383         (is_property_changes_when_lowercased, is_property_iso_control)
32384         (is_property_math, fill_arabicshaping, output_joining_group)
32385         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32386         (output_wbp, fill_org_gbp, get_decomposition)
32387         (output_decomposition, fill_composition_exclusions)
32388         (debug_output_composition_tables, output_composition_tables)
32389         (redistribute_casefolding_rules, output_casing_rules): Use
32390         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32391         reporting.
32393 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32395         gen-uni-tables: cosmetic improvements
32396         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32397         variables specification.
32398         (is_outdigit): Remove unused function.
32400 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32402         fcntl-h-tests: port to PA-RISC GNU/Linux
32403         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32405 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32407         fts: port to C89
32408         Problem reported for MSVC 16 by Gisle Vanem in:
32409         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32410         * lib/fts.c (fts_build): Avoid declaration before statement.
32412 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32414         unistd: port to iOS
32415         Problem reported by André Klitzing in:
32416         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32417         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32419 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32421         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32422         Problem reported by Alan Modra in:
32423         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32424         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32425         Always cast the function arg, reverting this part of the previous
32426         change.
32428 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32430         obstack: avoid potentially-nonportable function casts
32431         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32432         Remove, replacing with ...
32433         (call_chunkfun, call_freefun): New static functions.
32434         All uses changed.  Avoid potentially-nonportable casts.
32435         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32436         (_obstack_begin_worker): Omit last two args, since they
32437         rely on potentially-nonportable casts.  All callers changed.
32438         * lib/obstack.h (_OBSTACK_CAST): New macro.
32439         Use it everywhere the old API used a potentially-nonportable cast.
32440         The new API doesn't cast.
32441         (struct obstack): Use unions rather than requiring
32442         potentially-nonportable casts.
32443         (obstack_chunkfun, obstack_freefun): Return void.
32445 2014-11-03  Alan Modra  <amodra@gmail.com>
32447         obstack: fix macro return values
32448         * lib/obstack.h (obstack_next_free): Return void *.
32449         (obstack_1grow_fast, obstack_blank_fast): Return void.
32450         For __GNUC__ macros:
32451         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32452         For !__GNUC__ macros:
32453         (obstack_make_room, obstack_grow, obstack_grow0)
32454         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32456 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32458         obstack: do not assume system-supplied obstack is size_t safe
32459         * m4/obstack.m4: New file.
32460         * modules/obstack (Files): Add it.
32462         obstack: port to platforms that #define __alignof__
32463         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32464         not if !_LIBC.  We don't know of any platforms that #define
32465         __alignof__, but it might be useful in tests.  Conversely,
32466         glibc assumes GCC.
32468 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32470         linkat: don't unconditionally replace on GNU/Linux
32471         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32472         was redundant for a few reasons.  It was present to support compiling
32473         on new systems but running on the old narrow window of Linux 2.6.1[67].
32474         It setup and cleaned up test files which weren't actually used.
32475         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32476         implicit in the following check.
32478 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32480         linkat: wrap to handle symlinks on OS X 10.10
32481         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32482         but not usable because it doesn't support creating hardlinks
32483         to symlinks.  Therefore add a generic test for this capability
32484         and fallback to our emulation if linkat() fails with ENOTSUP.
32486 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32488         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32489         * doc/posix-functions/open.texi (open):
32490         * doc/posix-functions/openat.texi (openat):
32491         Document that these functions do not set errno to ELOOP when
32492         a symlink is opened with O_NOFOLLOW.
32494 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32496         obstack: add NEWS entry for recent incompatible changes
32497         * NEWS: Describe recent changes.
32499 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32501         mountlist: don't use libmount to decide on dummy/remote
32502         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32503         routines to determine whether a file system is dummy or remote,
32504         as they're not currently compatible.  For example the remoteness
32505         is determined on file system type (for which the list seems incomplete),
32506         rather than simply checking for a ':' in the device name.
32507         Also libmount currently determines that 'tmpfs' is a dummy file system
32508         even though it has associated storage.
32510 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32512         obstack: prefer __alignof__ to alignof
32513         This is for portability to pre-4.7 GCC when compiling glibc.
32514         See Joseph S. Myers in:
32515         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32516         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32517         New macro, defined by including and using <alignof.h>.
32518         (MAX): New macro.
32519         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32520         Do not use enums as they are not portable to some broken compilers.
32521         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32523         obstack: prefer alignof to calculating alignments by hand
32524         * lib/obstack.c: Include <stdalign.h>.
32525         (struct fooalign): Remove.
32526         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32527         * modules/obstack (Depends-on): Add stdalign.
32529 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32531         obstack: use size_t alignments and check for overflow
32532         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32533         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32534         * lib/obstack.h (struct obstack.alignment_mask):
32535         Use _OBSTACK_SIZE_T, not int, for alignments.
32536         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32537         overflows, e.g., when adding the alignment.
32539 2014-10-29  Alan Modra  <amodra@gmail.com>
32541         obstack: 64-bit obstack support, part 3
32542         This finally enables full 64-bit obstack support.  The glibc
32543         shared library specific code is removed from obstack.c too, and
32544         the error handling code conditionally compiled under control of
32545         another macro, _OBSTACK_NO_ERROR_HANDLER.
32546         * lib/obstack.h: Include string.h earlier.
32547         (_OBSTACK_INTERFACE_VERSION): Define.
32548         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32549         * lib/obstack.c: Don't include shlib-compat.h.
32550         (OBSTACK_INTERFACE_VERSION): Delete.
32551         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32552         glibc code is compatible with version 2.  Don't include stdio.h for
32553         __GNU_LIBRARY.
32554         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32555         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32556         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32557         glibc shared library specific source.
32559         obstack: 64-bit obstack support, part 2
32560         This gets us 4G obstack support, without changing ABI
32561         compatibility, apart from possibly introducing some
32562         signed/unsigned comparison warnings in code that uses obstack.h.
32563         a) Replace "int" size parameters, return values, and macro local vars
32564            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32565         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32566         c) Make all obstack macros checking available room use obstack_room.
32567            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32568            allocated near the top of memory.
32569         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32570         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32571         in place of "int" size parameters, return values and local vars.
32572         (_CHUNK_SIZE_T): Define.
32573         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32574         union use an _OBSTACK_SIZE_T integer type.
32575         For __GNUC__ versions of the following macros...
32576         (obstack_room): Rename local var.
32577         (obstack_make_room): Use obstack_room.
32578         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32579         obstack_int_grow, obstack_blank): Likewise.
32580         (obstack_finish): Use unsigned comparison when comparing aligned
32581         next_free against chunk_limit.
32582         (obstack_free): Cast OBJ to remove possible const qualifier.
32583         For !__GNUC__ versions of the following macros...
32584         (obstack_make_room): Use obstack_room.
32585         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32586         obstack_int_grow, obstack_blank): Likewise.
32587         (obstack_finish): Use unsigned comparision when comparing aligned
32588         next_free against chunk_limit.
32589         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32590         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32591         _OBSTACK_SIZE_T.
32592         (_obstack_begin, _obstack_begin_1): Likewise.
32593         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32594         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32596         obstack: 64-bit obstack support, part 1
32597         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32598            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32599            and "size_t" 64 bits.
32600         b) Consolidate _obstack_begin and _obstack_begin1 code.
32601         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32602         use "size_t" rather than "long".
32603         (_obstack_begin, _obstack_begin1): Likewise.
32604         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32605         obstack_chunkfun): Update alloc function casts.
32606         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32607         (chunkfun_type, freefun_type): New typdefs.
32608         (_obstack_begin_worker): Split out from ..
32609         (_obstack_begin, _obstack_begin_1): ..here.
32611         obstack: tidy part 2
32612         a) Don't be concerned about "not polluting the namespace with stddef.h
32613            symbols" in obstack.h, since gnulib string.h includes stddef.h
32614            anyway, and it seems unlikely that anyone would care.
32615         b) Don't roll our own slow memcpy in _obstack_newchunk.
32616         c) Rename obstack_free to _obstack_free.  This makes the naming
32617            consistent with other obstack functions and obviates the need for
32618            __obstack_free.  Ancient obstack.c defined both obstack_free and
32619            _obstack_free.  We continue to do that for _LIBC via an alias.
32620         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32621            is clever, but nowadays gcc warns on undefined macros.  You'll get
32622            an undefined macro warning if simulating an old gcc with -U__GNUC__
32623            -U__GNUC_MINOR__ -D__GNUC__=1.
32624         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32625         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32626         (__obstack_free): Delete, update refs.
32627         (_obstack_free): Rename from obstack_free.
32628         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32629         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32630         * lib/obstack.c: Don't include stddef.h.
32631         (COPYING_UNIT): Delete.
32632         (_obstack_begin): Formatting fix.
32633         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32634         (_obstack_free): Rename from __obstack_free, update alias.  Move
32635         undef of obstack_free to where it is needed.
32637         obstack: tidy part 1
32638         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32639            to me, and result in overlong lines after later patches.
32640         b) Move error handling code, to avoid a forward declaration and to
32641            simplify later patches in this series.
32642         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32643         and update all uses.
32644         * lib/obstack.c: Include stdlib.h earlier.
32645         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32646         in file.
32647         (print_and_abort): Remove now redundant forward declaration.
32649 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32651         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32652         Without this change, in bleeding-edge fileutils Autoconf complains
32653         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32654         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32655         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32656         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32658 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32660         iconv: avoid false detection of non-working iconv
32661         The INBUF arguments of iconv can be either 'const char **'
32662         or 'char **'.  If CC is g++, the difference causes a compile error
32663         and thus leads to a false detection of non-working iconv.
32664         Reported by Eli Zaretskii and Werner LEMBERG in:
32665         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32666         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32667         iconv.  Bump serial number.
32669 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32671         bootstrap: print more diagnostics for missing programs
32672         * build-aux/bootstrap: only suppress stderr when checking for
32673         alternative program names.  This supports programs issuing non
32674         standard error messages.
32676 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32678         bootstrap: only update the gnulib submodule
32679         * build-aux/bootstrap: Restrict the "submodule update" command
32680         to the gnulib path.
32682 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32684         symlinkat: port to AIX 7.1
32685         * doc/posix-functions/symlinkat.texi (symlinkat):
32686         Mention AIX porting problem.
32687         * lib/symlinkat.c: Always include errno.h.
32688         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32689         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32690         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32692         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32693         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32694         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32696         readlinkat: port to AIX 7.1
32697         * doc/posix-functions/readlink.texi (readlink):
32698         * doc/posix-functions/readlinkat.texi (readlinkat):
32699         Mention AIX porting problem.
32700         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32701         New function.
32702         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32703         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32705         * modules/readlinkat (configure.ac): Also compile replacement
32706         if REPLACE_READLINKAT.
32707         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32709 2014-10-12  Karl Berry  <karl@gnu.org>
32711         * doc/posix-functions/dirname.texi: remove spurious {.
32713 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32715         basename, dirname: Improve documentation.
32716         * doc/posix-functions/basename.texi: Mention dirname module and
32717         base_name() function.
32718         * doc/posix-functions/dirname.texi: Mention dir_name() and
32719         mdir_name() functions.
32720         Suggested by Werner LEMBERG <wl@gnu.org>.
32722 2014-09-24  Jim Meyering  <meyering@fb.com>
32724         exclude: declare exclude_patopts static
32725         * lib/exclude.c (exclude_patopts): Declare static,
32726         to avoid triggering a -Wmissing-prototypes warning.
32727         The alternative (declaring it in the .h file) would
32728         require publicizing the private "struct patopts".
32730 2014-09-21  Werner Lemberg  <wl@gnu.org>
32732         dirname: support compilation with C++
32733         * lib/dirname.h: Add necessary C linkage declarations.
32735 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32737         qsort_r: include <config.h>
32738         Problem reported by Tom G. Christensen in:
32739         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32740         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32742 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32744         avltree-list: avoid compiler warnings (trivial)
32745         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32746         -Werror=suggest-attribute=pure.
32747         * lib/gl_array_list.c: Likewise.
32748         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32749         declaration to avoid -Werror=missing-prototypes.  This is not added
32750         to a header as only exported for tests.  Add (void) to the
32751         check_invariants() call to indicate we're discarding the result
32752         in this context which avoids -Werror=unused-value.  Note we don't
32753         use ignore_value here to avoid a dependency as we know we'll not
32754         be adding __attribute__((warn_unused_result)) to check_invariants().
32755         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32757 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32759         qsort_r: new module, for GNU-style qsort_r
32760         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32762 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32764         strerror_r-posix: support compilation with C++
32765         * lib/strerror_r.c: Add necessary C linkage declarations.
32767 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32769         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32770         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32772 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32774         mountlist: use /proc/self/mountinfo when available
32775         Use libmount to propagate device IDs provided by Linux in
32776         /proc/self/mountinfo.  This will give more accurate output when
32777         using df in chroot'ed environments as the device IDs are not
32778         determined by stat() which may be inaccurate within the chroot.
32779         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32780         from util-linux to parse "/proc/self/mountinfo" or fall back to
32781         standard getmntent() processing.
32782         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32783         getmntent() is used, as is the case on GNU/Linux.
32785 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32787         users.txt: add cmogstored
32788         cmogstored has used gnulib since the beginning in 2012 to support
32789         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32791 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32793         Trivial change.
32794         * gnulib-tool: Use same options as build-aux/bootstrap to download
32795         PO files.
32797 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32799         Trivial change.
32800         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32802 2014-09-04  Eric Blake  <eblake@redhat.com>
32804         maintainer-makefile: add syntax check for useless ';;'
32805         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32807 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32809         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32810         Problem reported by Assaf Gordon in:
32811         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32812         Apparently Ubuntu is doing some fancy link-time optimization
32813         that doesn't work with -lpthread but does work with -pthread.
32814         Work around the bug by preferring -pthread to -lpthread.
32815         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32816         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32817         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32818         Treat -pthread like -lpthread.
32820 2014-09-04  Eric Blake  <eblake@redhat.com>
32822         error: drop spurious semicolon
32823         * lib/error.c (__error_at_line): Fix ';;'.
32825 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32827         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32828         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32829         Override AC_C_RESTRICT unconditionally.
32830         Update from autoconf, incorporating:
32831         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32832         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32834 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32836         manywarnings: add GCC 4.9 warnings
32837         Also, make it easier to maintain this in the future.
32838         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32839         -Wconditionally-supported, -Wdelete-incomplete,
32840         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32841         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32842         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32843         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32844         only for older GCC versions that need them.  Handle
32845         -Wnormalized=nfc specially, so that the 'comm' command used
32846         for maintenance doesn't get confused.
32848 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32850         vasnprintf: fix bugs in width computation
32851         * lib/vasnprintf.c (VASNPRINTF):
32852         Rework previous change, which introduced a bug,
32853         to avoid the warning in a different way.
32854         Avoid undefined behavior if the width arg is less than -INT_MAX.
32855         Avoid unnecessary use of HAS_WIDTH local.
32857 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32859         vasnprintf: Avoid signed/unsigned comparison warning.
32860         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32861         compare end addr of generated string w/ maximum end addr.
32863 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32865         parse-datetime: Avoid pointer difference.
32866         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32867         instead of calculating difference of pointers.  This removes an
32868         annoying warning, devoid of any use.
32870 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32872         qsort_r: new module, for GNU-style qsort_r
32873         This works even on FreeBSD, which has an incompatible qsort_r API.
32874         * MODULES.html.sh: Add it.
32875         * doc/glibc-functions/qsort_r.texi: It's now supported.
32876         * lib/qsort.c: New file, taken from glibc with minor changes
32877         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32878         removed.
32879         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32880         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32882         * modules/qsort_r, modules/qsort_r-tests: New files.
32883         * modules/stdlib (Makefile): Set up its defaults.
32884         * tests/test-qsort_r.c: New file.
32886 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32888         vla: new module
32889         GNU RCS can use this, mostly for documentation I expect.  See:
32890         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32891         * MODULES.html.sh: Add vla.
32892         * lib/vla.h, modules/vla: New files.
32894 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32896         localename: make gl_locale_name_thread really thread-safe on Windows
32897         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32898         "glthread/lock.h".
32899         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32900         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32902 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32904         getpass: don't assume struct termios
32905         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32906         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32907         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32909         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32910         Problem reported by Jonas 'Sortie' Termansen in:
32911         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32912         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32913         Implement via sysconf for platforms that lack getdtablesize.
32915         vararrays: modernize AC_C_VARARRAYS for C11
32916         This backports a change I recently made to Autoconf.
32917         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32918         VLAs are not supported, as this is what C11 does.  The old macro
32919         HAVE_C_VARARRAYS is still defined if they are supported, but is
32920         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32922 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32924         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32925         * build-aux/install-reloc (func_create_wrapper): Also wrap
32926         strerror-override, stat, stat.
32928 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32930         sys_select: fix FD_ZERO problem on Solaris 10
32931         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32932         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32933         to expand to an expression that invoked memset without necessarily
32934         including <string.h>.  The problem was that the first include
32935         defined _SYS_TIME_H, causing the second include to short-circuit.
32936         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32937         Also, fix what appears to be a cut-and-paste typo, by replacing
32938         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32939         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32941         accept: document Solaris 10 type glitch
32942         * doc/posix-functions/accept.texi (accept): Mention that
32943         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32945 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32947         extern-inline: port to FreeBSD, DragonFly
32948         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32949         is present if either __DragonFly__ or __FreeBSD__ is defined.
32950         FreeBSD problem reported by Andrey Borzenkov in:
32951         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32952         Also, worry about __APPLE__ only if __MACH__ is also defined,
32953         as this is more consistent with the rest of gnulib.
32954         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32955         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32957 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32959         regex: Make #if/#ifdef usage consistent for DEBUG
32960         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32961         of the inconsistent usage of #if and #ifdef as that works with
32962         both Glibc and Gnulib's style.
32964 2014-07-31  Eric Blake  <eblake@redhat.com>
32966         openat-die: use _Noreturn markup
32967         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32968         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32969         _Noreturn.
32971 2014-07-30  Eric Blake  <eblake@redhat.com>
32973         test-open: port to cygwin, which lacks Fortify
32974         * tests/test-open.h (ALWAYS_INLINE): New macro.
32975         (__always_inline): Don't abuse internal symbol on non-glibc.
32977 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32979         localename: Enforce declarations before statements.
32980         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32981         first statement.
32983 2014-07-18  Jim Meyering  <meyering@fb.com>
32985         test-userspec: don't look up numeric user names
32986         * tests/test-userspec.c: I found a system for which getpwnam("0")
32987         returned a pointer to a non-root user's entry, and that made the
32988         test fail.
32989         (T): Prefix each numeric input with "+", to inhibit lookup.
32991 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32993         localcharset, localename: MS-Windows support for non-default locales
32994         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32995         falling back on the default system codepage, try extracting
32996         the codepage from what 'setlocale' returns.  This allows to
32997         take into account changes of the codeset due to non-default
32998         locale set by a previous call to 'setlocale'.
32999         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
33000         Define if not already defined.
33001         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
33002         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
33003         current locale by calling 'setlocale', then converting the
33004         locale name into LCID by calling 'get_lcid'.  This allows to
33005         take into account changes in the current locale from the
33006         default one, in contrast to GetThreadLocale.
33008 2014-07-14  Daiki Ueno  <ueno@gnu.org>
33010         announce-gen: avoid failure when Digest::SHA is installed
33011         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
33012         Digest::SHA1->new in print_checksums fails.
33013         * build-aux/announce-gen (digest_classes): New associative array
33014         for available message digest implementations.
33015         (print_locations): Use it.
33017 2014-07-13  Pádraig Brady  <P@draigBrady.com>
33019         gettext: revert "update macros to version 0.19"
33020         This reverts commit 9b9370ca, as it currently requires that
33021         developers of any project that explicitly uses the gettext module
33022         or implicitly uses it through the utimens-tests or
33023         futimens-tests modules, use gettext >= 0.19.
33024         However there are some stability and availablity issues with
33025         that version at present.  We can reinstate this soon, when stability
33026         is addressed and packages are more readily available.
33028 2014-07-12  Jim Meyering  <meyering@fb.com>
33030         regex: don't deref NULL upon heap allocation failure
33031         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
33032         failure in one more place.
33033         To trigger the segfault, configure grep -with-included-regex,
33034         build it, and run these commands:
33035         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
33036         I discovered this while replying to a private report from
33037         Jens Schleusener about excessive memory consumption by grep
33038         when using a regular expression like the one above.
33040 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33042         regex: fix memory leak in compiler
33043         Fix by Andreas Schwab in:
33044         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
33045         * lib/regcomp.c (parse_reg_exp): Deallocate partially
33046         constructed tree before returning error.
33048 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33050         announce-gen: avoid perl warnings
33051         * build-aux/announce-gen: add two minor checks to avoid
33052         "use of uninitialized value" warnings when command-line parameters are
33053         missing.
33055 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33057         localename: avoid -Wsuggest-attribute={const,pure} warnings
33058         * lib/localename.c (string_has): Tag internal function as pure.
33059         * lib/localename.h (gl_locale_name_default): Tag extern declaration
33060         as const when appropriate.
33062 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
33064         nl_langinfo: Fix last change.
33065         * lib/nl_langinfo.c (includes): Drop redundant include.
33067 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33069         error: Fix -Wundef warnings in glibc
33070         * lib/error.c [_LIBC]: Define default macros for
33071         glibc.
33072         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
33073         Check _LIBC before STRERROR_R_CHAR_P.
33075         error: Sync from glibc master
33076         * lib/error.c [_LIBC]: Remove INTUSE usage.
33077         (error_tail): Remove unused macro ALLOCA_LIMIT.
33078         Fix potential buffer overflow.  Fix potential NULL dereference
33079         in strcmp.
33081 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
33083         nl_langinfo: fix build under mingw
33084         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
33086 2014-07-09  Andrew D Warshall  <warshall@99main.com>
33088         mountlist: do not classify a bind-mounted dir entry as "dummy"
33089         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
33090         1-argument getmntent() (instead of assuming absence).
33092 2014-07-08  Eric Blake  <eblake@redhat.com>
33094         maint.mk: less syntax-check noise when SIGPIPE is ignored
33095         * top/maint.mk (_sc_header_without_use)
33096         (sc_require_config_h_first): Parse full list.
33098 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
33099             Paul Eggert  <eggert@cs.ucla.edu>
33101         nl_langinfo: CODESET on MS-Windows and more items from localeconv
33102         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
33103         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
33104         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
33105         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
33106         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
33107         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
33108         Include <stdio.h> if Microsoft Windows.
33109         Include <time.h> if !REPLACE_NL_LANGINFO.
33110         (ctype_codeset): New function, taken from rpl_nl_langinfo,
33111         and with improvements for Microsoft Windows.
33112         (rpl_nl_langinfo): Use it.
33113         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
33114         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
33115         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
33116         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
33117         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
33118         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
33119         corresponding values returned by 'localeconv'.  Compute the values
33120         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
33121         'strftime' with a suitable struct tm value.
33123 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33125         Bruno Haible has stepped down as maintainer.
33126         See Karl Berry in:
33127         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
33128         Daiki Ueno has volunteered to maintain libunistring; see:
33129         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
33130         * modules/gen-uni-tables, modules/libunistring:
33131         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
33132         * modules/unicase/base, modules/unicase/cased:
33133         * modules/unicase/empty-prefix-context:
33134         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
33135         * modules/unicase/locale-language, modules/unicase/special-casing:
33136         * modules/unicase/tocasefold, modules/unicase/tolower:
33137         * modules/unicase/totitle, modules/unicase/toupper:
33138         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
33139         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
33140         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
33141         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
33142         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
33143         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
33144         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
33145         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
33146         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
33147         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
33148         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
33149         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
33150         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
33151         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
33152         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
33153         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
33154         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
33155         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
33156         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
33157         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
33158         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
33159         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
33160         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
33161         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
33162         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
33163         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
33164         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
33165         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
33166         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
33167         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
33168         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
33169         * modules/unicase/ulc-casexfrm, modules/unicodeio:
33170         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
33171         * modules/uniconv/u16-conv-to-enc:
33172         * modules/uniconv/u16-strconv-from-enc:
33173         * modules/uniconv/u16-strconv-from-locale:
33174         * modules/uniconv/u16-strconv-to-enc:
33175         * modules/uniconv/u16-strconv-to-locale:
33176         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
33177         * modules/uniconv/u32-strconv-from-enc:
33178         * modules/uniconv/u32-strconv-from-locale:
33179         * modules/uniconv/u32-strconv-to-enc:
33180         * modules/uniconv/u32-strconv-to-locale:
33181         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
33182         * modules/uniconv/u8-strconv-from-enc:
33183         * modules/uniconv/u8-strconv-from-locale:
33184         * modules/uniconv/u8-strconv-to-enc:
33185         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
33186         * modules/unictype/bidicategory-all:
33187         * modules/unictype/bidicategory-byname:
33188         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
33189         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
33190         * modules/unictype/bidiclass-byname:
33191         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
33192         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
33193         * modules/unictype/block-all, modules/unictype/block-list:
33194         * modules/unictype/block-of, modules/unictype/block-test:
33195         * modules/unictype/category-C, modules/unictype/category-Cc:
33196         * modules/unictype/category-Cf, modules/unictype/category-Cn:
33197         * modules/unictype/category-Co, modules/unictype/category-Cs:
33198         * modules/unictype/category-L, modules/unictype/category-LC:
33199         * modules/unictype/category-Ll, modules/unictype/category-Lm:
33200         * modules/unictype/category-Lo, modules/unictype/category-Lt:
33201         * modules/unictype/category-Lu, modules/unictype/category-M:
33202         * modules/unictype/category-Mc, modules/unictype/category-Me:
33203         * modules/unictype/category-Mn, modules/unictype/category-N:
33204         * modules/unictype/category-Nd, modules/unictype/category-Nl:
33205         * modules/unictype/category-No, modules/unictype/category-P:
33206         * modules/unictype/category-Pc, modules/unictype/category-Pd:
33207         * modules/unictype/category-Pe, modules/unictype/category-Pf:
33208         * modules/unictype/category-Pi, modules/unictype/category-Po:
33209         * modules/unictype/category-Ps, modules/unictype/category-S:
33210         * modules/unictype/category-Sc, modules/unictype/category-Sk:
33211         * modules/unictype/category-Sm, modules/unictype/category-So:
33212         * modules/unictype/category-Z, modules/unictype/category-Zl:
33213         * modules/unictype/category-Zp, modules/unictype/category-Zs:
33214         * modules/unictype/category-all, modules/unictype/category-and:
33215         * modules/unictype/category-and-not, modules/unictype/category-byname:
33216         * modules/unictype/category-longname, modules/unictype/category-name:
33217         * modules/unictype/category-none, modules/unictype/category-of:
33218         * modules/unictype/category-or, modules/unictype/category-test:
33219         * modules/unictype/category-test-withtable:
33220         * modules/unictype/combining-class:
33221         * modules/unictype/combining-class-all:
33222         * modules/unictype/combining-class-byname:
33223         * modules/unictype/combining-class-longname:
33224         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
33225         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
33226         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
33227         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
33228         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
33229         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
33230         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
33231         * modules/unictype/digit, modules/unictype/joininggroup-all:
33232         * modules/unictype/joininggroup-byname:
33233         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
33234         * modules/unictype/joiningtype-all:
33235         * modules/unictype/joiningtype-byname:
33236         * modules/unictype/joiningtype-longname:
33237         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
33238         * modules/unictype/mirror, modules/unictype/numeric:
33239         * modules/unictype/property-all, modules/unictype/property-alphabetic:
33240         * modules/unictype/property-ascii-hex-digit:
33241         * modules/unictype/property-bidi-arabic-digit:
33242         * modules/unictype/property-bidi-arabic-right-to-left:
33243         * modules/unictype/property-bidi-block-separator:
33244         * modules/unictype/property-bidi-boundary-neutral:
33245         * modules/unictype/property-bidi-common-separator:
33246         * modules/unictype/property-bidi-control:
33247         * modules/unictype/property-bidi-embedding-or-override:
33248         * modules/unictype/property-bidi-eur-num-separator:
33249         * modules/unictype/property-bidi-eur-num-terminator:
33250         * modules/unictype/property-bidi-european-digit:
33251         * modules/unictype/property-bidi-hebrew-right-to-left:
33252         * modules/unictype/property-bidi-left-to-right:
33253         * modules/unictype/property-bidi-non-spacing-mark:
33254         * modules/unictype/property-bidi-other-neutral:
33255         * modules/unictype/property-bidi-pdf:
33256         * modules/unictype/property-bidi-segment-separator:
33257         * modules/unictype/property-bidi-whitespace:
33258         * modules/unictype/property-byname:
33259         * modules/unictype/property-case-ignorable:
33260         * modules/unictype/property-cased:
33261         * modules/unictype/property-changes-when-casefolded:
33262         * modules/unictype/property-changes-when-casemapped:
33263         * modules/unictype/property-changes-when-lowercased:
33264         * modules/unictype/property-changes-when-titlecased:
33265         * modules/unictype/property-changes-when-uppercased:
33266         * modules/unictype/property-combining:
33267         * modules/unictype/property-composite:
33268         * modules/unictype/property-currency-symbol:
33269         * modules/unictype/property-dash:
33270         * modules/unictype/property-decimal-digit:
33271         * modules/unictype/property-default-ignorable-code-point:
33272         * modules/unictype/property-deprecated:
33273         * modules/unictype/property-diacritic:
33274         * modules/unictype/property-extender:
33275         * modules/unictype/property-format-control:
33276         * modules/unictype/property-grapheme-base:
33277         * modules/unictype/property-grapheme-extend:
33278         * modules/unictype/property-grapheme-link:
33279         * modules/unictype/property-hex-digit:
33280         * modules/unictype/property-hyphen:
33281         * modules/unictype/property-id-continue:
33282         * modules/unictype/property-id-start:
33283         * modules/unictype/property-ideographic:
33284         * modules/unictype/property-ids-binary-operator:
33285         * modules/unictype/property-ids-trinary-operator:
33286         * modules/unictype/property-ignorable-control:
33287         * modules/unictype/property-iso-control:
33288         * modules/unictype/property-join-control:
33289         * modules/unictype/property-left-of-pair:
33290         * modules/unictype/property-line-separator:
33291         * modules/unictype/property-logical-order-exception:
33292         * modules/unictype/property-lowercase, modules/unictype/property-math:
33293         * modules/unictype/property-non-break:
33294         * modules/unictype/property-not-a-character:
33295         * modules/unictype/property-numeric:
33296         * modules/unictype/property-other-alphabetic:
33297         * modules/unictype/property-other-default-ignorable-code-point:
33298         * modules/unictype/property-other-grapheme-extend:
33299         * modules/unictype/property-other-id-continue:
33300         * modules/unictype/property-other-id-start:
33301         * modules/unictype/property-other-lowercase:
33302         * modules/unictype/property-other-math:
33303         * modules/unictype/property-other-uppercase:
33304         * modules/unictype/property-paired-punctuation:
33305         * modules/unictype/property-paragraph-separator:
33306         * modules/unictype/property-pattern-syntax:
33307         * modules/unictype/property-pattern-white-space:
33308         * modules/unictype/property-private-use:
33309         * modules/unictype/property-punctuation:
33310         * modules/unictype/property-quotation-mark:
33311         * modules/unictype/property-radical:
33312         * modules/unictype/property-sentence-terminal:
33313         * modules/unictype/property-soft-dotted:
33314         * modules/unictype/property-space:
33315         * modules/unictype/property-terminal-punctuation:
33316         * modules/unictype/property-test, modules/unictype/property-titlecase:
33317         * modules/unictype/property-unassigned-code-value:
33318         * modules/unictype/property-unified-ideograph:
33319         * modules/unictype/property-uppercase:
33320         * modules/unictype/property-variation-selector:
33321         * modules/unictype/property-white-space:
33322         * modules/unictype/property-xid-continue:
33323         * modules/unictype/property-xid-start:
33324         * modules/unictype/property-zero-width, modules/unictype/scripts:
33325         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
33326         * modules/unictype/syntax-c-whitespace:
33327         * modules/unictype/syntax-java-ident:
33328         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33329         * modules/unigbrk/u16-grapheme-breaks:
33330         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33331         * modules/unigbrk/u32-grapheme-breaks:
33332         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33333         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33334         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33335         * modules/unigbrk/uc-is-grapheme-break:
33336         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33337         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33338         * modules/unilbrk/u16-width-linebreaks:
33339         * modules/unilbrk/u32-possible-linebreaks:
33340         * modules/unilbrk/u32-width-linebreaks:
33341         * modules/unilbrk/u8-possible-linebreaks:
33342         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33343         * modules/unilbrk/ulc-possible-linebreaks:
33344         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33345         * modules/uniname/uniname, modules/uninorm/base:
33346         * modules/uninorm/canonical-decomposition:
33347         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33348         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33349         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33350         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33351         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33352         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33353         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33354         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33355         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33356         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33357         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33358         * modules/unistdio/base, modules/unistdio/u-printf-args:
33359         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33360         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33361         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33362         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33363         * modules/unistdio/u16-u16-sprintf:
33364         * modules/unistdio/u16-u16-vasnprintf:
33365         * modules/unistdio/u16-u16-vasprintf:
33366         * modules/unistdio/u16-u16-vsnprintf:
33367         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33368         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33369         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33370         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33371         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33372         * modules/unistdio/u32-u32-asnprintf:
33373         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33374         * modules/unistdio/u32-u32-sprintf:
33375         * modules/unistdio/u32-u32-vasnprintf:
33376         * modules/unistdio/u32-u32-vasprintf:
33377         * modules/unistdio/u32-u32-vsnprintf:
33378         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33379         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33380         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33381         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33382         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33383         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33384         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33385         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33386         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33387         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33388         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33389         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33390         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33391         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33392         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33393         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33394         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33395         * modules/unistr/u16-check, modules/unistr/u16-chr:
33396         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33397         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33398         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33399         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33400         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33401         * modules/unistr/u16-move, modules/unistr/u16-next:
33402         * modules/unistr/u16-prev, modules/unistr/u16-set:
33403         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33404         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33405         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33406         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33407         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33408         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33409         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33410         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33411         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33412         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33413         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33414         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33415         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33416         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33417         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33418         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33419         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33420         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33421         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33422         * modules/unistr/u32-next, modules/unistr/u32-prev:
33423         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33424         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33425         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33426         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33427         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33428         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33429         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33430         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33431         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33432         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33433         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33434         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33435         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33436         * modules/unistr/u8-check, modules/unistr/u8-chr:
33437         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33438         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33439         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33440         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33441         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33442         * modules/unistr/u8-next, modules/unistr/u8-prev:
33443         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33444         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33445         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33446         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33447         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33448         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33449         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33450         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33451         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33452         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33453         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33454         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33455         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33456         * modules/uniwbrk/base, modules/uniwbrk/table:
33457         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33458         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33459         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33460         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33461         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33462         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33463         * modules/uniwidth/width, modules/utf16-ucs4:
33464         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33465         * modules/utf8-ucs4-unsafe:
33466         Change maintainer from Bruno Haible to Daiki Ueno.
33467         This is my guess at the libunistring modules; please feel free
33468         to fix if I guessed incorrectly.
33469         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33470         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33471         * modules/areadlink, modules/array-list, modules/array-mergesort:
33472         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33473         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33474         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33475         * modules/binary-io, modules/bison-i18n, modules/btowc:
33476         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33477         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33478         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33479         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33480         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33481         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33482         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33483         * modules/closedir, modules/concat-filename, modules/copy-file:
33484         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33485         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33486         * modules/csharpcomp-script, modules/csharpexec:
33487         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33488         * modules/dprintf, modules/dprintf-posix, modules/dup:
33489         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33490         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33491         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33492         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33493         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33494         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33495         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33496         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33497         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33498         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33499         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33500         * modules/findprog, modules/findprog-lgpl, modules/floor:
33501         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33502         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33503         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33504         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33505         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33506         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33507         * modules/freadable, modules/freadahead, modules/freadptr:
33508         * modules/freadseek, modules/freopen, modules/frexp:
33509         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33510         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33511         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33512         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33513         * modules/ftello, modules/full-read, modules/full-write:
33514         * modules/fwritable, modules/fwriteerror, modules/gcd:
33515         * modules/get-rusage-as, modules/get-rusage-data:
33516         * modules/getdtablesize, modules/getrusage, modules/gettext:
33517         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33518         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33519         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33520         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33521         * modules/iconv, modules/iconv-h, modules/iconv_open:
33522         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33523         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33524         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33525         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33526         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33527         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33528         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33529         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33530         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33531         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33532         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33533         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33534         * modules/lib-symbol-visibility, modules/libsigsegv:
33535         * modules/linked-list, modules/linkedhash-list, modules/list:
33536         * modules/localcharset, modules/locale, modules/localeconv:
33537         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33538         * modules/log10, modules/log10-ieee, modules/log10f:
33539         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33540         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33541         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33542         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33543         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33544         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33545         * modules/logf, modules/logf-ieee, modules/login_tty:
33546         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33547         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33548         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33549         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33550         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33551         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33552         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33553         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33554         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33555         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33556         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33557         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33558         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33559         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33560         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33561         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33562         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33563         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33564         * modules/posix_spawn, modules/posix_spawn-internal:
33565         * modules/posix_spawn_file_actions_addclose:
33566         * modules/posix_spawn_file_actions_adddup2:
33567         * modules/posix_spawn_file_actions_addopen:
33568         * modules/posix_spawn_file_actions_destroy:
33569         * modules/posix_spawn_file_actions_init:
33570         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33571         * modules/posix_spawnattr_getpgroup:
33572         * modules/posix_spawnattr_getschedparam:
33573         * modules/posix_spawnattr_getschedpolicy:
33574         * modules/posix_spawnattr_getsigdefault:
33575         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33576         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33577         * modules/posix_spawnattr_setschedparam:
33578         * modules/posix_spawnattr_setschedpolicy:
33579         * modules/posix_spawnattr_setsigdefault:
33580         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33581         * modules/pow, modules/powf, modules/printf-frexp:
33582         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33583         * modules/progname, modules/propername, modules/pselect:
33584         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33585         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33586         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33587         * modules/read, modules/readdir, modules/readlink:
33588         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33589         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33590         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33591         * modules/relocatable-script, modules/remainder:
33592         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33593         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33594         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33595         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33596         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33597         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33598         * modules/setlocale, modules/sh-quote, modules/shutdown:
33599         * modules/signal, modules/signbit, modules/sigpipe:
33600         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33601         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33602         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33603         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33604         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33605         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33606         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33607         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33608         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33609         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33610         * modules/streq, modules/strerror_r-posix, modules/striconv:
33611         * modules/striconveh, modules/striconveha, modules/strncat:
33612         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33613         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33614         * modules/sys_wait, modules/system-posix, modules/system-quote:
33615         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33616         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33617         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33618         * modules/truncf, modules/truncf-ieee, modules/truncl:
33619         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33620         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33621         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33622         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33623         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33624         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33625         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33626         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33627         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33628         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33629         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33630         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33631         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33632         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33633         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33634         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33635         * modules/write, modules/xconcat-filename, modules/xlist:
33636         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33637         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33638         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33639         * modules/y0, modules/y1, modules/yn:
33640         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33641         change the maintainer to 'all'.  Let's hope someone volunteers.
33643 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33645         mktime: merge #if/#ifdef usage from glibc
33646         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33647         as that works with both Glibc's and Gnulib's style.
33648         See thread starting at Siddhesh Poyarekar's bug report at:
33649         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33651 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33653         git-version-gen: improve option descriptions
33654         * build-aux/git-version-gen: Mention that --prefix and --fallback
33655         have a mandatory argument.
33657 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33659         regex: fix memory leak in compiler
33660         Fix by Andreas Schwab in:
33661         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33662         * lib/regcomp.c (parse_expression): Deallocate partially
33663         constructed tree before returning error.
33665         regex: merge patch from libc
33666         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33667         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33668         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33670 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33672         acl: port to gcc -Wredundant-decls
33673         From a request by Dmitry Antipov in:
33674         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33675         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33676         "#ifndef _GL_ACL_H".
33678 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33679         Jim Meyering  <meyering@fb.com>
33681         parse-duration: eliminate 68-year duration limit
33682         * lib/parse-duration.c: Include "intprops.h".
33683         (TIME_MAX): Rename to MAX_DURATION and define to
33684         TYPE_MAXIMUM(time_t).
33685         * modules/parse-duration (Depends-on): Add intprops.
33686         Reported by Jonas 'Sortie' Termansen.
33688 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33690         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33691         * modules/pthread (Depends-on): Add 'extensions', as it defines
33692         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33693         (configure.ac-early): New section.
33694         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33695         it is no longer needed.
33697 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33699         pthread: define thread-safe macros on some platforms
33700         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33701         for thread-safe operation on some platforms.
33703 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33705         regex: don't be multithreaded if USE_UNLOCKED_IO.
33706         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33707         * lib/regex_internal.h: Do not use multithreaded version if
33708         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33709         around a porting bug with coreutils 8.22 on AIX 7.1.
33711 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33713         gettext: update macros to version 0.19
33714         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33715         depend on gl_EXTERN_INLINE and drop support for older Bison
33716         versions.
33718 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33720         select,poll: fix console handle check on windows 8
33721         lib/poll.c (IsConsoleHandle): Change from testing the lower
33722         2 bits of the handle to the more expensive but accurate syscall.
33723         lib/select.c: Likewise.
33725 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33727         select: fix waiting on anonymous pipes on MS-Windows
33728         * lib/select.c (rpl_select): Fall back to polling when select()
33729         indicates there is nothing to check, while due to the timeout not
33730         expiring, activity is indicated on one of the handles.
33731         Also clear the TIMEOUT argument if the timer does expire.
33733 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33735         times: fix to return non constant value on MS-Windows
33736         * lib/times.c (times): Don't use the process creation time,
33737         rather clock() which on windows returns the number of
33738         clock ticks since the process started.
33740 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33742         isatty: fix to work on windows 8
33743         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33744         2 bits of the handle to the more expensive but accurate syscall.
33746 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33748         maint: fix typo in fdl.texi
33749         * doc/fdl.texi: Fix typo (missing '@').
33750         Somehow this was in fdl.texi but not fdl-1.3.texi.
33752 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33754         mountlist: avoid hasmntopt const type warning on solaris
33755         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33756         with char * instead of const char *.  Passing the constant string
33757         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33758         to avoid the warning.
33760 2014-06-04  Eric Blake  <eblake@redhat.com>
33762         maintainer-makefile: delete obsolete code
33763         * top/maint.mk (build_aux): Drop old code, as threatened.
33765         maintainer-makefile: avoid spurious error messages
33766         * top/maint.mk (syntax-check): Guard definition and use of
33767         $(shell) by whether Makefile is present.
33769 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33771         rename: avoid unused-but-set-variable compiler warning
33772         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33773         it is possible that dst_exists may be set but not used.  Mark it with
33774         the unused attribute to avoid compiler warnings.
33776 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33778         rename: mark a label as potentially unused
33779         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33780         by marking the out label as potentially unused.
33781         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33783 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33785         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33786         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33788 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33790         acl: apply pure attribute to two functions
33791         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33792         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33794 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33796         gnulib-common.m4: add _GL_UNUSED_LABEL
33797         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33798         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33800 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33802         dup2, fcntl, fcntl-h: port to AIX 7.1
33803         This fixes some porting problems discovered when testing the latest
33804         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33805         in grep but it could be important for other applications.
33806         * doc/posix-functions/dup2.texi:
33807         * doc/posix-functions/fcntl.texi:
33808         * doc/posix-headers/fcntl.texi:
33809         Document AIX bugs.
33810         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33811         Define to 0 if outside 'int' range.
33812         * m4/dup2.m4 (gl_FUNC_DUP2):
33813         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33814         Check for getdtablesize.  If it's available, test a value just
33815         outside its range instead of testing 1000000.  When cross-compiling,
33816         guess that AIX will fail this improved test.
33818 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33820         printf, config.rpath: Port to FreeBSD 10.
33821         Problem reported by Tijl Coosemans in:
33822         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33823         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33824         (hardcode_direct): Simplify FreeBSD configuration.
33825         (library_names_spec): Don't mishandle FreeBSD 10+.
33826         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33827         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33828         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33829         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33830         Don't mishandle FreeBSD 10+ when cross-compiling.
33832         ftoastr: work around compiler bug in IBM xlc 12.1
33833         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33834         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33835         around a compiler bug in IBM xlc 12.1.0.0: it complains
33836         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33837         _GL_FLT_PREC_BOUND.'
33839 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33841         valgrind-tests: fixed misleading help message
33842         * m4/valgrind-tests.m4: The help message generated by configure
33843         implied that valgrind was disabled by default, which it wasn't.
33844         Adjusted the help message using s/enable/disable/ to clarify.
33846 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33848         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33849         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33850         first double of a PowerPC "double double" pair.
33851         * tests/test-isinf.c (test_isinfl): Likewise.
33852         * tests/test-isnan.c (test_long_double): Likewise.
33853         * tests/test-isnanl.h (main): Likewise.
33854         * tests/test-signbit.c (test_signbitl): Likewise.
33856 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33858         exclude-tests: port to AIX 7.1
33859         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33860         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33861         the regex code uses locks.
33863 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33865         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33866         Without this fix, Emacs would sometimes call sigprocmask instead
33867         of pthread_sigmask, which is a no-no in multithreaded applications.
33868         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33870         Suppress check for pthread_sigmask working without -lpthread if
33871         the application always links with -lpthread.  Do not link with
33872         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33873         * m4/timer_time.m4 (gl_TIMER_TIME):
33874         Require gl_THREADLIB only if it is defined.  Do not append
33875         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33877 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33879         gnulib-tool: wget translations using --no-verbose rather than --quiet
33880         This allows the user to see error messages if any (--quiet hides them)
33881         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33883 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33885         gnulib-tool: adjust translation wget to avoid a https redirection
33886         Context: http://translationproject.org/latest/gnulib redirects to
33887            https://translationproject.org/latest/gnulib/
33888         Rationale: if the user falls back to wget, she doesn't have rsync and
33889         is probably in a minimal build environment, where packages such as
33890         'ca-certificates' are missing as well, resulting in a failed (and
33891         difficult to detect since ignored) translation initial fetch.
33892         Consequently let's avoid https if possible, and add the missing
33893         trailing slash.  This also avoids an unnecessary 302 redirection.
33894         * gnulib-tool: Add trailing slash to gnulib URL.
33896 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33898         getlogin_r-tests: check return value rather than errno
33899         * tests/test-getlogin_r.c (main): As per POSIX we should be
33900         verifying the return value from getlogin_r() rather than errno.
33902 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33904         getlogin_r-tests: fix various issues in recent change
33905         * tests/test-getlogin_r.c: Include required headers that were
33906         missed in recent commit eec20b4e.
33907         Also consistently check the errno rather than the return value from
33908         getlogin_r as POSIX only specifies that non zero is returned on error.
33909         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33911 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33913         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33914         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33915         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33916         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33917         * lib/spawn-pipe.c:
33918         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33919         and then 'int open64(const char *, int, ...);', which means the
33920         declaration for 'open' gets lost if we later '#undef open'.
33921         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33922         where the compilation reported the non-fatal error "In function
33923         'openat_proc_name' ... warning: implicit declaration of function
33924         'open'".  In this case the error is relatively harmless, but in
33925         other cases it might not be so minor.
33927 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33929         xalloc: don't potentially generate invalid code for xmemdup calls
33930         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33931         this function can initialize the newly-allocated storage with new
33932         pointers, which means this function is not malloc-like.  See:
33933         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33935 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33937         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33938         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33939         changes from commit 97249cf29 to not depend on environment variables.
33941 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33943         getlogin-tests: avoid false failure under cron
33944         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33945         since that's not what's under test.  Centos 6 was seen to return
33946         EINVAL for ttyname() when run from cron.
33948 2014-05-16  Jim Meyering  <meyering@fb.com>
33950         mbrtowc.m4: fix a comment typo
33951         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33952         emitted documentation string.
33954 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33956         mbrlen, mbrtowc: fix bug with empty input
33957         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33958         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33959         so this is mainly for documentation.
33960         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33961         (gl_FUNC_MBRTOWC): Use it.
33962         * tests/test-mbrtowc.c (main): Test for the bug.
33964 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33966         doc: document mbrtowc and mbrlen problem with empty input
33967         * doc/posix-functions/mbrlen.texi (mbrlen):
33968         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33969         Document portability problem when the input string is empty.  See:
33970         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33972         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33973         Problem reported by Eli Zaretskii in:
33974         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33975         * doc/posix-functions/execl.texi (execl):
33976         * doc/posix-functions/execle.texi (execle):
33977         * doc/posix-functions/execlp.texi (execlp):
33978         * doc/posix-functions/execv.texi (execv):
33979         * doc/posix-functions/execve.texi (execve):
33980         * doc/posix-functions/execvp.texi (execvp):
33981         Mention spawn+exit problem on non-Cygwin Windows platforms.
33983 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33985         getlogin-tests: avoid false failure under sudo/ssh etc.
33986         * modules/getlogin-tests (configure.ac): Check for ttyname().
33987         * tests/test-getlogin.c (main): Don't depend on environment variables
33988         to correlate with getlogin(), since sudo and ssh etc. can tamper
33989         with the LOGNAME and USER env vars.  Instead lookup the name from
33990         the uid associated with the stdin tty.
33992 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33994         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33995         These were found when building the latest grep snapshot on IRIX 6.5.
33996         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33997         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33998         never used later.
33999         * lib/quotearg.c (quoting_options_from_style):
34000         * lib/xstrtol.c (__xstrtol):
34001         Use enum instead of 0, to pacify IRIX 6.5 cc.
34003 2014-04-18  Pádraig Brady  <P@draigBrady.com>
34005         gitlog-to-changelog: revert inclusion of git-log-fix file
34006         * build-aux/git-log-fix: Delete dummy file.
34007         * modules/gitlog-to-changelog: Don't reference (overwrite)
34008         the project specific git-log-fix file.
34010 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
34012         maint.mk: Relax the copyright check to cater for non FSF projects
34013         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
34014         to not require the "Free" suffix after the copyright years.
34016 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
34018         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
34019         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
34020         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
34021         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
34022         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
34024 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
34026         exclude: port to strict C99
34027         Strict C does not allow converting a function pointer to void *
34028         and vice versa.  Pass a pointer to a function pointer instead.
34029         * lib/exclude.c (add_exclude_file):
34030         Pass the address of the function pointer.
34031         (call_addfn): And deference the address here, to match.
34033 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34035         regex: do not depend on malloc-gnu
34036         * modules/regex (Depends-on): Remove malloc-gnu.
34037         It's no longer needed, because of the 2012-12-29 patch
34038         "regex: port to hosts where malloc (0) == NULL".
34039         Reported by Nathan Kennedy in:
34040         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
34042 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
34044         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
34045         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
34046         * doc/posix-functions/expl.texi: Mention the workaround.
34048 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34050         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
34051         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
34052         size to be zero even when the pointer is nonnull.  This
34053         accommodates the use case where P is malloc (0) and *PN is 0 on a
34054         host where malloc (0) yields nonnull.
34056 2014-04-09  Eric Blake  <eblake@redhat.com>
34058         fts: avoid unnecessary strlen calls
34059         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
34061 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34063         fts: avoid unnecessary strlen calls
34064         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
34065         when that can be faster than strlen.
34067 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34069         fts: avoid unnecessary strlen calls
34070         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
34071         (fts_build): Store the length of the dp->d_name entry in a local variable
34072         instead of calling strlen() several times via the above, removed macro.
34073         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
34074         run by ~4%, yet this reduces the execution time by about a third if run
34075         via "ltrace -c rm -rf some-dir".
34077 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34079         obstack: Remove ancient NeXTSTEP gcc support conditional
34080         This change will ease merging with glibc.  The "#if ... __NEXT__"
34081         causes a warning with -Wundef which glibc now enables by default.
34082         Problem reported by Will Newton in
34083         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
34084         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
34085         so go with that.
34086         * lib/obstack.h (__extension__):
34088 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34090         obstack: merge with glibc changes
34091         * lib/obstack.c, lib/obstack.h: Merge from glibc.
34092         This is mostly indenting and commentary changes.
34093         Instances of 'register' have been removed.
34095 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34097         strftime: wrap macros in "do {...} while(0)"
34098         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
34099         this macro in "do {...} while(0)" to prevent false use as a
34100         single statement, e.g., in an un-braced "{}" else-block.
34101         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
34102         (strftime_case_): Remove 'else' after 'goto' - which was the
34103         only non-fatal, un-braced use of one of the above macros.
34104         Spotted by coverity (NESTING_INDENT_MISMATCH).
34106 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34108         modechange: avoid memory leaks for invalid octal modes
34109         * lib/modechange.c (mode_compile): During the parsing of
34110         notations like +40, free the 'mc' buffer for invalid mode
34111         strings like +17777 (greater than the maximum octal mode),
34112         =18 (bad octal mode characters) or u=1 ('affected' with
34113         octal modes).
34114         Reproducer, e.g.:
34115             $ valgrind --leak-check=full chmod +17777 file
34116         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
34117         add notations +40, 00440, etc.".
34118         Spotted by coverity (RESOURCE_LEAK).
34120 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
34122         gitlog-to-changelog: include a dummy git-log-fix file
34123         Problem reported by Nathan Stratton Treadway in:
34124         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
34125         * build-aux/git-log-fix: New file.
34127 2014-03-13  Jim Meyering  <meyering@fb.com>
34129         gitlog-to-changelog: also include the file, git-log-fix
34130         * modules/gitlog-to-changelog (Files): Add git-log-fix.
34131         Reported by Assaf Gordon.
34133 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
34135         regex: port to OS X 10.8.5 en_US.UTF-8 locale
34136         This fixes a bug when ignoring case and when comparing the
34137         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
34138         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
34139         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
34140         titlecase letter is neither lowercase nor uppercase, but
34141         uppercasing the titlecase letter (via towupper) yields the
34142         uppercase letter, so the two letters should match when ignoring case.
34143         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
34144         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
34145         Don't test whether a character is lowercase before uppercasing it.
34147 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
34149         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
34150         This is basically one of the options Bruno Haible proposed in:
34151         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
34152         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
34153         * lib/stdint.in.h: Use it.
34154         * modules/stdint (Depends-on): Add sys_types.
34156 2014-02-26  Pádraig Brady  <P@draigBrady.com>
34158         parse-datetime: fix crash or infloop in TZ="" parsing
34159         * lib/parse-datetime.y (parse_datetime): Break out of the
34160         TZ="" parsing loop once the second significant " is found.
34161         Also skip over any subsequent whitespace to be consistent
34162         with the non TZ= case.
34163         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
34165 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34167         savedir: new symbol for fast-read version
34168         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
34169         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
34170         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
34171         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
34173 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
34175         unistd: port readlink to Mac OS X 10.3.9
34176         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
34177         around self-include problem in Mac OS X 10.3.9 when combined with
34178         readlink module.  Problem reported by Klaus Zietler in
34179         <http://bugs.gnu.org/16825>.
34181 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
34183         diffseq: remove TOO_EXPENSIVE heuristic
34184         Problem with diffutils reported by Vincent Lefevre in
34185         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
34186         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
34187         Although appropriate for circa-1993 hardware, these days the heuristic
34188         seems to be more trouble than it's worth.
34189         * lib/diffseq.h: Modernize citations.
34190         (struct context): Remove member too_expensive.
34191         All uses changed.
34192         (struct partition): Remove members lo_minimal, hi_minimal.
34193         All uses changed.
34194         (diag, compareseq): Remove arg find_minimal.  All uses changed.
34195         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
34196         1993 to make 'diff' run faster (but not as well) on large inputs.
34197         These days, computers are fast enough that it's typically better
34198         to run slower but more accurately.
34199         * lib/fstrcmp.c: Remove duplicate comment.
34200         * lib/fstrcmp.c (strcmp_bounded):
34201         * lib/git-merge-changelog.c (compute_differences):
34202         Adjust to diffseq.h changes.
34203         * NEWS: Document the change.
34205         savedir: simplify by using stpcpy
34206         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
34207         (streamsavedir): Use stpcpy instead.
34208         * modules/savedir (Depends-on): Add stpcpy.
34210 2014-02-21  Pádraig Brady  <P@draigBrady.com>
34212         spawn: fix link error on uclibc
34213         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
34214         to incorporate -lrt if needed (on uclibc for example).
34215         * modules/posix_spawn: Reference the substituted LIB.
34217 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
34218         timer: fix uClibc detection of threading
34219         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
34220         enabled in uClibc.
34222 2014-02-21  Eric Blake  <eblake@redhat.com>
34224         maintainer-makefiles: provide AC_PROG_SED for older autoconf
34225         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
34227 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34229         exclude: add support for posix regexps
34231         This commit adds support for POSIX extended regular expressions
34232         and fixes a long-standing memory leak (pattern buffer was never
34233         freed).  It also implements a new interface function to read
34234         exclude patterns from a FILE, which passes an additional parameter
34235         to its callback function, thereby allowing to preserve its state
34236         between invocations.
34238         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
34239         (pattern_buffer): New struct.
34240         (exclude): New member patbuf.
34241         (exclude_add_pattern_buffer): New function.
34242         (free_exclude_segment): Free regexps.
34243         (free_exclude): Free allocated pattern buffers.
34244         (exclude_patopts): New function.
34245         (file_pattern_matches): Use exclude_patopts.
34246         (add_exclude): support regexps.
34247         (add_exclude_fp): New function.
34248         (add_exclude_file): Rewrite using add_exclude_fp.
34249         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34250         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34251         (add_exclude_fp)
34252         (add_exclude_file): Rewrite using add_exclude_fp.
34253         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34254         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34255         (add_exclude_fp)
34256         (exclude_add_pattern_buffer): New prototypes.
34257         * modules/exclude: Depends on regex and filename.
34259 2014-02-20  Eric Blake  <eblake@redhat.com>
34261         maintainer-makefiles: use $(SED) for syntax check
34262         * modules/maintainer-makefile (configure.ac): Check for sane sed.
34263         * top/maint.mk: Change sed to $(SED).
34265 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
34266             Paul Eggert  <eggert@cs.ucla.edu>
34268         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
34269         Patch based on an idea by Dick Streefland in
34270         <https://savannah.gnu.org/patch/?7892>.
34271         * NEWS: Document this.
34272         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
34273         (direntry_t, comparison_function): New types.
34274         (direntry_cmp_name): New function.
34275         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
34276         (streamsavedir, savedir): New arg OPTION.
34277         (streamsavedir): Simplify memory allocation.
34278         (fdsavedir): Remove.
34279         * lib/savedir.h (enum savedir_option): New type.
34280         (streamsavedir, savedir): New arg OPTION.
34281         (fdsavedir): Remove.
34283 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34285         file-type: add support for doors and other less-common file types
34286         Problem with S_ISDOOR reported by Rich Burridge.
34287         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
34288         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
34289         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
34291 2014-01-23  Eric Blake  <eblake@redhat.com>
34293         pthread: work around winpthread header pollution on mingw
34294         * lib/time.in.h: Move pthread workarounds...
34295         * lib/pthread.in.h: ...here.
34296         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
34297         detect macro pollution on mingw.
34298         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
34300 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34302         qacl: check for fchmod
34303         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
34304         and qset-acl.c both use HAVE_FCHMOD.
34306 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34308         fdopen-tests: port to Tru64
34309         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
34310         descriptor that is not open, as POSIX doesn't specify the
34311         resulting behavior and the test does not work on Tru64.
34312         Problem reported by Steven M. Schweda in:
34313         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
34315         stdalign: port to HP-UX compilers
34316         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
34317         if __HP_cc or __HP_aCC are nonzero.
34319 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34321         strtoimax: port to platforms lacking 'long long'
34322         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
34323         check whether strtoll is declared, which causes the C file to
34324         wrongly report an error.  Problem reported by Steven M. Schweda in:
34325         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
34326         * lib/strtoimax.c (strtoull):
34327         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34328         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34330 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34332         relocatable-perl: fix texi syntax
34333         * doc/relocatable-maint.texi: Escape braces.
34335 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34337         relocatable-perl: like relocatable-script, but for Perl scripts
34338         * build-aux/relocatable.pl.in: Add.
34339         * doc/relocatable-maint.texi: Add documentation.
34340         * modules/relocatable-perl: Add.
34342 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34344         tests: fix export bug in previous patch
34345         Problem reported by Jim Meyering.
34346         * tests/init.sh (re_shell): New var, which is exported instead of
34347         re_shell_.
34349         tests: simplify porting to Solaris 10 /bin/sh
34350         Some test cases in 'grep' need a shell that groks '$(';
34351         export re_shell_ for their benefit.  Problem reported for 'grep'
34352         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34353         * tests/init.sh (re_shell_): Export if it's used.
34355 2014-01-06  Eric Blake  <eblake@redhat.com>
34357         md5, sha1, sha256, sha512: support older autoconf
34358         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34359         for autoconf < 2.63b.
34361         include_next: port to autoconf 2.63
34362         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34364 2014-01-04  Jim Meyering  <meyering@fb.com>
34366         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34367         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34368         so that "make sc_maint" will ding anyone who puts non-ascii
34369         in any of gnulib's .texi files.
34371 2014-01-03  Jim Meyering  <meyering@fb.com>
34373         freadable, fwritable, fwriting: declare with the "pure" attribute
34374         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34375         * lib/fwritable.h (fwritable): Likewise.
34376         * lib/fwriting.h (fwriting): Likewise.
34377         Suggested by Bruno Haible.
34379         maint.mk: adapt openat.h-include-without-use test
34380         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34381         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34382         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34383         With this change, running "make sc_maint" in gnulib's top-level
34384         directory now passes for me.
34386 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34388         doc: use ASCII in .texi files where UTF-8 isn't needed
34389         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34390         * doc/posix-functions/setkey.texi, doc/regex.texi:
34391         Use ASCII input, not UTF-8.
34393 2014-01-02  Jim Meyering  <meyering@fb.com>
34395         freading: declare with the "pure" attribute
34396         * lib/freading.h (freading): Declare with the "pure" attribute.
34398         manywarnings: remove -Wmudflap
34399         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34400         it is no longer supported in gcc-4.9-to-be.
34402 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34404         relocatable-script: remove unused code
34405         Problem reported by Reuben Thomas in:
34406         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34407         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34409 2014-01-01  Jim Meyering  <meyering@fb.com>
34411         maint: fix public-submodule-commit to work with newer git
34412         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34413         We were over-quoting the test arguments, and somewhere prior to
34414         version 1.8.5.2.229, git stopped removing those excess quotes,
34415         which made the test fail, since the unexpanded strings would
34416         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34417         command wasn't even being run.
34419 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34421         doc: update main copyright year
34422         * doc/gnulib.texi: Update copyright date.
34424 2014-01-01  Eric Blake  <eblake@redhat.com>
34426         version-etc: new year
34427         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34428         * all files: run 'make update-copyright'
34430 2013-12-24  Eric Blake  <eblake@redhat.com>
34432         passfd: give nicer error for recvfd at eof
34433         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34434         * tests/test-passfd.c (main): Enhance test to cover this.
34436 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34438         gettimeofday: port recent C++ fix to Emacs
34439         Without this further patch, Emacs won't build due to
34440         the portcheck failing.  Also, this simplifies the patch a bit.
34441         * lib/time.in.h (localtime, gmtime): Don't replace unless
34442         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34443         * lib/time.in.h (localtime, gmtime):
34444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34445         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34446         * modules/time (time.h):
34447         Don't worry about the possibility of localtime and gmtime
34448         being absent; they're present in all C libraries we know about.
34449         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34450         Don't assume sys_time is present and has been initialized.
34451         Instead, use a hack that should work even if it hasn't been.
34452         Don't use a portcheck for gmtime or localtime; this supports
34453         the hack.
34454         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34456 2013-12-17  John W. Eaton  <jwe@gnu.org>
34458         gettimeofday: fix C++ crosscompilation
34460         Never replace gmtime and localtime by macros when compiling with
34461         C++, this prevents <ctime> from being included.
34463         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34464         define gmtime and localtime as preprocessor macros.  Instead
34465         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34466         REPLACE_LOCALTIME substitutions.
34467         * lib/time.in.h: Declare gmtime and localtime when needed.
34468         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34469         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34470         * modules/time: Depend on gettimeofday, and substitute the above
34471         variables in time.h.
34473 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34475         qacl: port to Windows better
34476         See Eli Zaretskii in
34477         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34478         * lib/file-has-acl.c (acl_access_nontrivial):
34479         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34480         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34482 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34484         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34485         * lib/gl_openssl.h: Cast void pointers to a specific type.
34487 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34489         open-tests: fix build failure with -Werror=old-style-declaration
34490         * tests/test-open.h: Reorder the inline to avoid the issue.
34492 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34494         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34495         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34496         init time, so that if early checks find crypto routines,
34497         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34498         avoiding link failures.
34500 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34502         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34503         This provides a new way to specify the default for
34504         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34505         Emacs uses this, as well as the old way.
34506         This attempts to implement a suggestion by Pádraig Brady in
34507         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34508         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34509         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34511         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34512         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34513         Add support for a new option, --with-openssl=auto, which causes
34514         the library to be used if available and silently ignored if not.
34515         Add support to allow configure.ac to specify its own
34516         default, by setting with_openssl_default before invoking gl_INIT.
34518 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34520         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34521         Problem reported by Daiki Ueno in:
34522         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34523         * tests/test-open.h (__always_inline):
34524         New macro, if not already defined.
34525         (test_open): Use it.
34527 2013-12-04  Eric Blake  <eblake@redhat.com>
34529         include_next: minimize code duplication
34530         * modules/include_next (Depends-on): Add absolute-header.
34531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34532         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34534 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34536         getcwd: fix compile error in configure check
34537         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34539 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34541         regex: suppress core dumps from detection code
34542         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34543         to suppress core dumps that may well occur on glibc systems.
34544         These core dumps might not be cleaned up automatically, or could
34545         trigger some system core dump handling logic.
34547 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34549         md5, sha1, sha256, sha512: support mandating use of openssl
34550         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34551         description, to list the now 3 separate options.  also don't
34552         mention the default=no, since this is implicit given the option
34553         is described as --with-openssl rather than --without-openssl.
34554         If projects change the default they're free to document that.
34555         with --with-openssl[=yes] we now error out when the specified
34556         hash algorithm is not available in libcrypto.
34558 2013-12-03  Ivailo  <xakepa10@gmail.com>
34560         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34561         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34562         -Wformat-nonliteral checks, as these edge cases are part of the test.
34564 2013-12-03  Eric Blake  <eblake@redhat.com>
34566         regex: avoid glibc deadlock during configure
34567         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34568         glibc bug 15078 in turn triggers bug 16159.
34569         Reported by Michal Privoznik.
34571 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34573         md5, sha1, sha256, sha512: use openssl routines if available.
34574         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34575         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34576         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34577         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34578         in the standard system location.
34579         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34580         * m4/sha256.m4: Likewise with SHA256.
34581         * m4/sha512.m4: Likewise with SHA512.
34582         * m4/md5.m4: Likewise with MD5.
34583         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34584         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34585         * lib/sha256.h: Likewise with SHA256.
34586         * lib/sha512.h: Likewise with SHA512.
34587         * lib/md5.h: Likewise with MD5.
34588         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34589         * lib/sha256.c: Likewise with SHA256.
34590         * lib/sha512.c: Likewise with SHA512.
34591         * lib/md5.c: Likewise with MD5.
34592         * modules/crypto/sha1 (Link:): Add the new optional lib.
34593         (Depends-on:): Add dependency on extern-inline.
34594         * modules/crypto/sha256: Likewise.
34595         * modules/crypto/sha512: Likewise.
34596         * modules/crypto/md5: Likewise.
34597         * modules/crypto/sha1-tests: Reference the lib here too.
34598         * modules/crypto/md5-tests: Likewise.
34599         * modules/crypto/gc-des-tests: Likewise.
34600         * modules/crypto/gc-hmac-md5-tests: Likewise.
34601         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34602         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34603         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34604         * modules/crypto/gc-md5-tests: Likewise.
34605         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34606         * modules/crypto/gc-sha1-tests: Likewise.
34607         * modules/crypto/gc-tests: Likewise.
34608         * modules/crypto/hmac-md5-tests: Likewise.
34609         * modules/crypto/hmac-sha1-tests: Likewise.
34610         * modules/crypto/hmac-sha256-tests: Likewise.
34611         * modules/crypto/hmac-sha512-tests: Likewise.
34613 2013-11-29  RV1971  <rv1971@web.de>
34615         base64: (trivial) fix compilation regression on some compilers
34616         * lib/base64.c: Don't return the void function,
34617         instead split to a separate return statement.
34619 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34621         ignore-value: revert previous code change
34622         * lib/ignore-value.h (ignore_value): Use __extension__ and
34623         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34624         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34625         Change the comment to try to explain this better.
34627 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34629         selinux-h: improve stub types and add more stub functions
34631         * lib/se-selinux.in.h: Change security_context_t to a typedef
34632         rather than a define, as it's a pointer type and so is better
34633         as a typedef to avoid issues declaring multiple variables
34634         with the comma operator.  Also add stub for string_to_security_class().
34635         * lib/se-context.in.h: Add stub functions for
34636         context_{type,range,role,user}_get().
34638 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34640         ignore-value: prefer GCC version back through 2.0
34641         The code didn't match the comments, so I did a bit of software
34642         archaeology.  GCC 2.0 seems to support __extension__ and
34643         __typeof__, so fix both code and comments to use 2.0.
34644         * lib/ignore-value.h (ignore_value): Use __extension__ and
34645         __typeof__ for GCC 2.0 through 3.3, too.
34647 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34649         pty: Activate the signature wrapper of forkpty.
34650         The intended preprocessor macro HAVE_FORKPTY is
34651         never defined, yet `lib/forkpty.c' depends on it.
34653         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34654         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34655         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34657 2013-11-18  Jim Meyering  <meyering@fb.com>
34658         and Paul Eggert  <eggert@cs.ucla.edu>
34660         quotearg: don't attempt to store 1 << 31 into an "int"
34661         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34662         gcc's new -fsanitize=undefined and running its tests triggered some
34663         new test failures due to undefined behavior, all with this diagnostic:
34664           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34665             cannot be represented in type int
34666         Rather than shifting "1" left to form a mask, shift the bits right and
34667         simply use "1" as the mask.
34669 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34671         error: depend on stdio
34672         Problem reported by Nikos Mavrogiannopoulos in
34673         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34674         * modules/error (Depends-on): Add stdio.
34676 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34678         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34679         wording.
34680         Reported by Reuben Thomas <rrt@sc3d.org>.
34682 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34684         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34685         New function and macro, to work around _DARWIN_C_SOURCE problem.
34686         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34688 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34690         base64: provide a fast path for encoding well sized buffers
34691         Avoid conditionals in the base64 encoding loop,
34692         which was seen to give 60% better throughput.
34693         * lib/base64.c (base64_encode_fast): A new function to be called
34694         when we don't want to NUL terminate, and we have enough space
34695         in the output to encode the given input.
34696         (base64_encode): Call the _fast() version when appropriate.
34697         Also remove a redundant mask with 0x3F on the first encoded byte.
34699 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34701         extern-inline: port better to OS X 10.9
34702         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34703         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34704         OS X 10.9, except for g++ where the bug is still present.
34705         See <http://trac.macports.org/ticket/41033>.
34707 2013-11-08  Eric Blake  <eblake@redhat.com>
34709         fpending: fix regression on DragonFly BSD
34710         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34711         * lib/fpending.h (__fpending): Don't declare twice.
34712         Reported by GW in
34713         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34715 2013-11-05  Jim Meyering  <meyering@fb.com>
34717         hash: relax license to LGPLv2+, for libguestfs
34718         * modules/hash (License): Change from GPL to LGPLv2+.
34720 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34722         intprops: port to Oracle Studio c99
34723         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34724         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34726 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34728         obstack: pacify HP C
34729         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34730         warning "conversion from pointer to smaller integer" from HP
34731         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34732         C89 or later nowadays, so cast to void instead of int.  Privately
34733         reported by H.Merijn Brand.  Also, change header to match glibc's,
34734         to make checking against glibc easier.
34736 2013-10-29  Jim Meyering  <meyering@fb.com>
34738         maint.mk: prefer gpgv2 over gpgv
34739         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34740         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34741         Reported by Gary Vaughan.
34743 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34745         isnan: port to VAX
34746         Reported by John Klos for NetBSD-5/VAX in
34747         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34748         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34749         (FUNC): Use it.
34751 2013-10-28  Jim Meyering  <meyering@fb.com>
34753         gnulib-tool: protect against CDPATH
34754         * gnulib-tool: Many "cd" built-in functions print a directory name
34755         to stdout when CDPATH is set, e.g.,
34756           $ bash -c 'CDPATH=/; cd tmp'
34757           /tmp
34758         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34760         maint.mk: restore functionality removed by recent change...
34761         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34762         the context of a shallow-cloned gnulib repository: "git describe"
34763         would fail in such a directory.  However, that change made it so
34764         the reported gnulib revision no longer includes the version number
34765         or a commit count, even when run from a full clone.
34766         * top/maint.mk (gnulib-version): Use the full "git describe"
34767         output when possible, e.g., the form above, rather than the
34768         abbreviated, no-tag, no-commit-count string, and fall back to
34769         using a 10-byte hash, rather than the default minimal-length
34770         hash prefix, since while the minimal-length one may be fine today,
34771         it is likely not to be unique for very long.
34773 2013-10-26  Jim Meyering  <meyering@fb.com>
34775         maint.mk: fix "release" target to build _version
34776         This fixes a bug in README-release whereby following the outlined
34777         steps, one would publish a tarball whose programs would report
34778         --version output not consistent with the package version number.
34779         This bug caused grep-2.15 to produce a grep program whose
34780         --version option made it print 2.14.56-1e3d rather than 2.15.
34781         * top/maint.mk (release): Making this target build "_version"
34782         ensures that the new version number is reflected in configure.
34784 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34786         install-reloc: Support multi-binary installation.
34787         * build-aux/install-reloc: Support installing multiple programs in
34788         one invocation, as done by Automake starting with commit
34789         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34790         Haible <bruno@clisp.org>, archived at
34791         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34792         Reported by Sylvain <beuc@gnu.org>.
34794 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34796         selinux-h: Really build without selinux when library is missing.
34797         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34798         continue without selinux, as already told in the warning message.
34800 2013-10-21  Jim Meyering  <meyering@fb.com>
34802         regex: also remove dependency on HAVE_WCSCOLL
34803         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34805 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34807         xfreopen: Fix typo. s/frepoen/freopen/
34808         * lib/xfreopen.c: Fix description.
34809         * modules/xfreopen: Likewise.
34811 2013-10-21  Jim Meyering  <meyering@fb.com>
34813         regex: don't depend on wcscoll
34814         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34815         It is no longer used.
34817 2013-10-20  Jim Meyering  <meyering@fb.com>
34819         error: add the printf attribute to a static function
34820         * lib/error.c (error_tail): Add the printf attribute, to placate
34821         gcc's -Werror=suggest-attribute=format option.
34823 2013-09-30  Jim Meyering  <meyering@fb.com>
34825         fpending, obstack, strerror-override: use pure+const function attrs
34826         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34827         * lib/obstack.c (_obstack_allocated_p): Likewise.
34828         * lib/obstack.h (_obstack_memory_used): Likewise.
34829         (_obstack_memory_used): Likewise.
34830         * lib/strerror-override.h (strerror_override): Declare with
34831         the "const" attribute.
34833 2013-10-18  Eric Blake  <eblake@redhat.com>
34835         extern-inline: make safe for -Wundef usage
34836         Reported by Vladimir 'phcoder' Serbinenko in
34837         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34838         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34840 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34842         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34843         Problem reported by Daniel Richard G. in
34844         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34845         * doc/posix-functions/mkfifo.texi (mkfifo):
34846         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34847         * doc/posix-functions/mknod.texi (mknod):
34848         * doc/posix-functions/mknodat.texi (mknodat):
34849         Document the HP-UX 11.11 bug.
34850         * tests/test-mkfifo.h (test_mkfifo):
34851         Allow the HP-UX 11.11 bug.
34853 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34855         acl: allow cross-compilation to Gentoo
34856         Problem reported by Gabriel Marcano in
34857         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34858         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34859         test only whether it links.
34861 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34863         mgetgroups: remove dependency on realloc-gnu
34864         The dependency violates the comment in realloc-gnu, which
34865         says that tests can't depend on realloc-gnu; some tests depend
34866         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34867         Problem reported by Daniel Richard G. in
34868         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34869         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34870         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34871         not realloc-gnu.
34873 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34875         regex-tests: port to HP-UX 11.11
34876         Problem reported by Daniel Richard G. in
34877         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34878         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34880 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34882         verify: document some 'assume' pitfalls
34883         * doc/verify.texi (Compile-time Assertions):
34884         Mention that 'assume (E)' can sometimes slow things down.
34885         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34887 2013-10-10  Eric Blake  <eblake@redhat.com>
34889         strtoumax: fix typo in previous commit.
34890         * modules/strtoumax (Depends-on): Fix typo.
34891         * modules/strtoimax (Depends-on): Likewise.
34893 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34895         strtoumax: port to Solaris 8
34896         This problem was introduced in the recent HP-UX patch.
34897         Reported by Tom G. Christensen in
34898         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34899         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34900         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34902 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34904         strtoimax, strtoumax: port to HP-UX 11.11
34905         Problem reported by Daniel Richard G. in
34906         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34907         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34908         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34909         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34910         REPLACE_STRTOUMAX.
34911         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34913         Replace the function if defined as a macro but not as a function.
34914         * modules/inttypes-incomplete (inttypes.h): Substitute
34915         REPLACE_STRTOUMAX.
34916         * modules/strtoumax (configure.ac): Replace strtoumax if
34917         REPLACE_STRTOUMAX.
34919 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34921         strtoimax: port to HP-UX 11.11
34922         Problem reported by Daniel Richard G.
34923         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34924         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34925         they might clash with inttypes.h.
34927 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34929         New module 'count-trailing-zeros'.
34930         * MODULES.html.sh: Mention it.
34931         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34932         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34933         * modules/count-trailing-zeros-tests:
34934         * tests/test-count-trailing-zeros.c:
34935         New files.
34937         count-leading-zeros: port to MSC; support types wider than 64 bits
34938         The ideas behind the MSC port are stolen from Emacs.
34939         * lib/count-leading-zeros.h:
34940         Don't include verify.h: it's no longer needed, as types wider than
34941         64 bits are now supported.
34942         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34943         performance with MSC.  All uses changed.  Do not assume that TYPE
34944         has at most 64 bits.
34945         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34946         All uses changed.  Fold the subtraction from 31 into the table.
34948         count-one-bits: port to MSC; support types wider than 64 bits
34949         The ideas behind the MSC port are stolen from Emacs.
34950         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34951         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34952         Don't include verify.h: it's no longer needed, as types wider than
34953         64 bits are now supported.
34954         (COUNT_ONE_BITS_GENERIC): New macro.
34955         (popcount_supported) [_MSC_VER]: New inline function.
34956         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34957         performance with MSC.  All uses changed.  Do not assume that TYPE
34958         has at most 64 bits.
34959         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34961 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34963         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34964         * lib/mountlist.c (read_file_system_list): fix leak of directory
34965         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34967 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34969         tests: improve diagnostic when an assertion fails
34970         * tests/macros.h (ASSERT): Report the assertion that failed.
34972 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34974         verify: new macro 'assume'
34975         This is taken from Emacs, and should be generally useful.
34976         * doc/verify.texi (assume): Document it.
34977         * lib/verify.h (assume): New macro.
34978         (__has_builtin): Expand to 0 if not defined.
34980 2013-09-26  Eric Blake  <eblake@redhat.com>
34982         dup2, dup3: work around another cygwin crasher
34983         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34984         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34985         * tests/test-dup2.c (main): Likewise.
34986         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34987         * lib/dup3.c (dup3): Likewise.
34988         * doc/posix-functions/dup2.texi (dup2): Document it.
34989         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34991         getdtablesize: work around cygwin issue
34992         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34993         * modules/getdtablesize (configure.ac): Build replacement.
34994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34995         * modules/unistd (Makefile.am): Expose the witness.
34996         * lib/unistd.in.h (getdtablesize): Declare replacement.
34997         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34998         * tests/test-getdtablesize.c (main): Test it.
34999         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
35001 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
35003         pmccabe2html: escaping of special characters
35004         Escape all '<', '>', and '&' in HTML output.
35005         * build-aux/pmccabe2html (html_fnc): Call gsub()
35006         instead of sub() to capture all '<', '>', and '&'.
35007         Neither of '<' and '>' is special in a regexp,
35008         so first arguments to gsub() are corrected. Also,
35009         in replacement strings, ampersand must be escaped.
35010         Finally, '&' must be handled first, then '<' and '>'.
35012 2013-09-24  Eric Blake  <eblake@redhat.com>
35014         manywarnings: enable nicer gcc warning messages
35015         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
35016         some -f options for optimal warnings.
35018 2013-09-21  Jim Meyering  <meyering@fb.com>
35020         timespec: use the new TIMESPEC_RESOLUTION in a few more places
35021         * lib/timespec-add.c (timespec_add): Also replace 999999999
35022         with TIMESPEC_RESOLUTION - 1.
35023         * lib/timespec-sub.c (timespec_sub): Likewise.
35025 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35027         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
35028         Problem reported by Dagobert Michelsen via Eric Blake in
35029         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
35030         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
35031         not AC_COMPILE_IFELSE.
35033 2013-09-23  Eric Blake  <eblake@redhat.com>
35035         configmake: support new --runstatedir option
35036         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
35037         even if autoconf was too old to provide the command line option.
35038         * modules/configmake (Makefile.am): Propagate it to .h file.
35040 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35042         ctype, string: depend on extern-inline
35043         This is needed to complete the recent OS X fixes.
35044         Also, fix related documentation as suggested by Eric Blake.
35045         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35046         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
35047         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
35048         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
35049         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
35050         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
35051         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
35052         * doc/posix-functions/toupper.texi:
35053         List the 'ctype' gnulib module.
35054         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
35055         * doc/posix-functions/strncpy.texi:
35056         List the 'string' gnulib module.
35057         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
35058         Add string.
35059         * modules/ctype, modules/string (Depends-on): Add extern-inline.
35061 2013-09-19  Pádraig Brady  <P@draigBrady.com>
35063         userspec: support optional parameters to parse_user_spec()
35064         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
35065         then avoid group processing and treat the full spec as a user.
35066         (parse_with_separator): Allow the USERNAME and GROUPNAME to
35067         be optional params (NULL), in which case they're ignored.
35069 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
35071         timespec: new function make_timespec, and new constants
35072         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
35073         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
35074         (make_timespec): New function.
35075         * lib/dtotimespec.c (dtotimespec):
35076         * lib/timespec-add.c (timespec_add):
35077         * lib/timespec-sub.c (timespec_sub):
35078         * lib/utimens.c (validate_timespec):
35079         * lib/utimensat.c (rpl_utimensat):
35080         Use these new constants and functions.
35082         stdio: OS X port of putc_unlocked + extern inline
35083         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
35084         * doc/posix-functions/putc_unlocked.texi:
35085         * doc/posix-functions/putchar_unlocked.texi:
35086         Document this portability problem.
35088         signal: OS X port of sigaddset etc. + extern inline
35089         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
35090         (sigismember): #undef on problematic Apple platforms.
35091         * doc/posix-functions/sigaddset.texi:
35092         * doc/posix-functions/sigdelset.texi:
35093         * doc/posix-functions/sigemptyset.texi:
35094         * doc/posix-functions/sigfillset.texi:
35095         * doc/posix-functions/sigismember.texi:
35096         Document this portability problem.
35098         extern-inline: do not always suppress extern inline on OS X
35099         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
35100         extern inline on Apple only if the particular compile-time
35101         configuration is known to have the problem.
35102         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
35103         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
35104         other Gnulib modules.
35106         extern-inline: document fixes for ctype and wctype macros
35107         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35108         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
35109         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
35110         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
35111         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
35112         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
35113         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
35114         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
35115         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
35116         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
35117         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
35118         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
35119         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
35120         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
35121         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
35122         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
35123         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
35124         * doc/posix-functions/strncpy.texi:
35125         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
35126         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
35127         Document that Gnulib fixes portability problems with these
35128         functions on OS X 10.8 and earlier when called from plain inline
35129         or extern inline functions.
35131 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
35133         fflush, freadahead, fseeko: Fix for Android
35134         Suggested by Bruno Haible in:
35135         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
35136         * lib/stdio-impl.h: Use local __sfileext definition.
35138 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
35140         pmccabe2html: Portability to other awk versions.
35141         The functions systime() and strftime() are available
35142         in Gawk only.  Properly close two HTML-tags 'style'
35143         and 'span'.
35144         * build-aux/pmccabe2html (BEGIN): Store timing
35145         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
35146         systime() in HTML_COMMENT.
35147         (html_header): Correctly close tag 'style'.
35148         (END): Replace strftime() by CHRONOS_TIME.  Close
35149         tag 'span' correctly, not as 'div'.
35151 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
35153         getgroups: statement without effect
35154         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
35155         Change equality conditional to expected assignment.
35157 2013-09-09  Eric Blake  <eblake@redhat.com>
35159         glob: fix compilation
35160         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
35162 2013-09-07  Eric Blake  <eblake@redhat.com>
35164         glob: fix build for platforms without __THROW
35165         * lib/glob.in.h (__THROW): Add definition again.
35167 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
35169         regex-quote: fix buffer access out of bounds
35170         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
35171         * lib/regex-quote.c (regex_quote_spec_pcre):
35172         Fix typo that resulted in an out-of-bounds read.
35174 2013-09-04  Eric Blake  <eblake@redhat.com>
35176         glob: avoid -Wattribute warnings on glibc
35177         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
35178         __THROWNL, not __THROW, on static functions.
35179         * lib/glob.in.h (__THROW): Adjust...
35180         (__THROWNL): ...accordingly.
35182 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35184         headers: check that _GL_INLINE_HEADER_BEGIN is defined
35185         Suggested by Bruce Korb in:
35186         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
35187         * doc/extern-inline.texi (extern inline):
35188         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
35189         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
35190         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
35191         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
35192         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
35193         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
35194         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
35195         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35196         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
35197         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
35198         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
35199         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
35200         * lib/xtime.h:
35201         Check that _GL_INLINE_HEADER_BEGIN is defined.
35203 2013-08-29  Pádraig Brady  <P@draigBrady.com>
35205         bootstrap: remove the --version requirement from ancillary tools
35206         * build-aux/bootstrap (check_exists): A new refactored function to
35207         determine if a command exists.
35208         (find_tool): Use the new function which does not require the
35209         --version option to be supported.
35210         (check_versions): Use the new function.
35212 2013-08-26  Simon Josefsson  <simon@josefsson.org>
35214         gc: support HMAC-SHA256 and HMAC-SHA512.
35215         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
35216         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
35217         functions.
35218         (gc_hmac_md5): Use symbolic constant.
35219         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
35220         (gc_hmac_sha256, gc_hmac_sha512): New functions.
35221         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
35222         * m4/sha256.m4: Protect against empty expansion.
35223         * m4/sha512.m4: Likewise.
35224         * lib/hmac-sha256.c: New file.
35225         * lib/hmac-sha512.c: Likewise.
35226         * m4/gc-hmac-sha256.m4: Likewise.
35227         * m4/gc-hmac-sha512.m4: Likewise.
35228         * m4/gc-sha256.m4: Likewise.
35229         * m4/gc-sha512.m4: Likewise.
35230         * modules/crypto/gc-hmac-sha256: Likewise.
35231         * modules/crypto/gc-hmac-sha256-tests: Likewise.
35232         * modules/crypto/gc-hmac-sha512: Likewise.
35233         * modules/crypto/gc-hmac-sha512-tests: Likewise.
35234         * modules/crypto/hmac-sha256: Likewise.
35235         * modules/crypto/hmac-sha256-tests: Likewise.
35236         * modules/crypto/hmac-sha512: Likewise.
35237         * modules/crypto/hmac-sha512-tests: Likewise.
35238         * tests/test-gc-hmac-sha256.c: Likewise.
35239         * tests/test-gc-hmac-sha512.c: Likewise
35240         * tests/test-hmac-sha256.c: Likewise.
35241         * tests/test-hmac-sha512.c: Likewise
35243 2013-08-24  Daiki Ueno  <ueno@gnu.org>
35245         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
35246         of AC_CHECK_DECLS.
35248 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35250         selinux-at: omit unnecessary include
35251         * lib/selinux-at.c: Don't include dosname.h; not needed, since
35252         this source file doesn't use its macros, and subsidiary files that
35253         use the macros already include it.
35255 2013-08-21  Eric Blake  <eblake@redhat.com>
35257         d-ino: avoid false negative on symlink
35258         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
35259         Reported by Stephane Chazelas.
35261 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
35263         bootstrap: port to OpenBSD sed
35264         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
35265         does not interpret `-' as a file argument to mean stdin.
35267 2013-08-15  Eric Blake  <eblake@redhat.com>
35269         warnings: minor optimization
35270         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
35272         warnings: check -Wfoo rather than -Wno-foo
35273         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
35274         -Wno-, test if the compiler recognizes the positive form instead.
35276 2013-08-15  Karl Berry  <karl@gnu.org>
35278         * config/srclist-update: add option "doclicense" to placate
35279         pulling *.texi files from Emacs.  Write terse usage
35280         documentation at the top.
35282 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
35284         xvasprintf-tests: port to GCC with hardening flags
35285         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
35286         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
35287         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
35289 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35291         fpending: port to recent Cygwin change to stdio_ext.h
35292         Reported by LRN in
35293         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
35294         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
35295         just declare __fpending unless it's a macro.
35296         A duplicate decl shouldn't hurt.
35297         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
35298         call compiles and links, instead of separately checking for
35299         decl and lib function.
35300         * modules/fpending (configure-ac):
35301         Adjust to fpending.m4's renaming of shell variable.
35303 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35305         sys_time: port to OpenBSD
35306         * lib/sys_time.in.h: Simply delegate to the system's header
35307         in the BSDish cases as well.  Problem reported by Mike Miller in
35308         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
35309         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
35310         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
35311         wider than time_t.
35313 2013-08-09  Pádraig Brady  <P@draigBrady.com>
35315         bootstrap: support checksum utils having -c but not --status
35316         * build-aux/bootstrap: Only look for sha1sum if updating po files.
35317         Add sha1 to the list of supported checksum utils since it's now
35318         supported through adjustments below.
35319         (update_po_files): Remove the use of --status
35320         in a way that will suppress all error messages, but since this is
35321         only used to minimize updates, it shouldn't cause an issue.
35322         Exit early if there is a problem updating the po file checksums.
35323         (find_tool): Remove the check for --version support as this
35324         is optional as per commit 86186b17.  Don't even check for the
35325         presence of the command as if that is needed, it's supported
35326         through configuring prerequisites in bootstrap.conf.
35327         Prompt that when a tool isn't found, one can define an environment
35328         variable to add to the hardcoded search list.
35330 2013-08-05  Jim Meyering  <meyering@fb.com>
35332         regex: port to non-glibc/lock-using systems
35333         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35334         system with GNULIB_LOCK would fail due to absence of the
35335         included "glthread/lock.h".  This would affect any package
35336         for which the "lock" module is used only by the regex module,
35337         and not explicitly used.
35338         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35339         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35340         Add a dependency on the "lock" module.
35342 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35344         localecharset: make locale_charset thread-safe on Mac OS X
35345         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35346         instead of MB_CUR_MAX.
35348 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35350         gettext: update to version 0.18.3
35351         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35352         require AC_PROG_SED to allow user to specify custom sed command when
35353         generating en@quot PO file.
35355 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35357         bootstrap: use correct source when copying build-aux files
35358         * build-aux/bootstrap (gnulib_extra_files): This variable is
35359         relative to upstream gnulib layout, not downstream.
35361 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35363         tmpdir: fix bug in VMS port
35364         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35365         See Steven M. Schweda in
35366         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35368 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35370         tmpdir: port to VMS, to // != /, and to long dirs
35371         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35372         __secure_getenv, so that we're more like the glibc version.
35373         All uses changed.
35374         (path_search): Don't put slash after directory if __VMS.
35375         Problem reported by Steven M. Schweda in
35376         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35377         Simplify code to add slash; no need for a loop.
35378         Do not remove trailing slash from "//".
35379         Do not assume dlen <= INT_MAX.
35381 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35383         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35384         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35385         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35386         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35388         accept4, dup3, pipe2: port to Cygwin
35389         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35390         * lib/accept4.c (accept4) [O_BINARY]:
35391         * lib/dup3.c (dup3) [O_BINARY]:
35392         * lib/pipe2.c (pipe2) [O_BINARY]:
35393         Use set_binary_mode, not setmode.
35394         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35395         * modules/binary-io (Depends-on): Remove module indicator.
35396         These last two bits undo the previous change to pipe2 and binary-io.
35398 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35400         mountlist: add support for deallocating returned list entries
35401         * lib/mountlist.c (free_mount_entry): A new exported function
35402         to deallocate a mount list entry.
35403         (read_file_system_list): Refactor to use the new deallocation function.
35404         Suggested by Anton Ovchinnikov.
35406 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35408         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35409         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35410         * lib/stdalign.in.h (_Alignas, _Alignof):
35411         Port to FreeBSD 9.1, and to C11 and C++11.
35412         (_Alignas): Also support ICC.
35413         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35414         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35416 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35418         fnmatch: don't goto over declaration
35419         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35420         undefined behavior for goto over a declaration.
35421         Problem reported by Charlie Brown in
35422         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35424         pipe2: decouple from binary-io a bit
35425         This is for Emacs, which needs pipe2 but not binary-io.
35426         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35427         * modules/binary-io (Depends-on): Add module indicator.
35429 2013-07-03  Eric Blake  <eblake@redhat.com>
35431         mgetgroups: relax license to LGPLv2+
35432         * modules/getugroups (License): Change from GPLv3+.
35433         * modules/mgetgroups (License): Likewise.
35434         * modules/getgroups (License): Change from LGPLv3+.
35436         xalloc-oversized: relax license to LGPLv2+
35437         * modules/xalloc-oversized (License): Change from GPLv3+.
35439         nproc: relax license to LGPLv2+
35440         * modules/nproc (License): Change from LGPLv3+.
35442         bootstrap: honor --no-git
35443         * build-aux/bootstrap: Don't even try to use git when user is
35444         pointing to a static checkout.
35446 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35448         ignore-value: port to gcc -pedantic
35449         * lib/ignore-value.h (ignore_value):
35450         Port to gcc -pedantic, by using __extension__.
35451         Reindent as per usual gnulib style nowadays.
35452         Simplify GCC version check.
35454 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35456         extern-inline: port to gcc -std=c89
35457         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35458         Do not use __gnu_inline__ if pedantic and pre-C99.
35460 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35462         doc: document extern-inline
35463         * doc/extern-inline.texi: New file.
35464         * doc/gnulib.texi (alloca-opt): Include it.
35465         * m4/extern-inline.m4: Move some comments to documentation,
35466         and others closer to what they describe.
35468         doc: chatter less
35469         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35470         (updated-stamp): Use it.  This causes 'make' to output just
35471         one file name rather than zillions.
35473         fflush, fseeko: port to musl cross-compiles
35474         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35475         on some implementation that (1) is not known to be buggy,
35476         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35477         cross-compiled to so we can't easily check for lack of
35478         conformance.  This is for cross-compiling to musl.
35479         Reported by Rich Felker in
35480         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35481         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35482         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35483         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35484         Adjust to above change.
35485         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35486         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35487         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35488         known not to work, or unknown.
35490 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35492         msvc-inval: port to mingw-w64
35493         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35494         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35495         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35497 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35499         getcwd-lgpl: port to Tru64
35500         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35501         Problem reported by Steven M. Schweda in
35502         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35504         tests: port large-fd POSIX spawn tests to OS X
35505         Problem reported by Daiki Ueno in
35506         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35507         * tests/test-posix_spawn_file_actions_addclose.c:
35508         * tests/test-posix_spawn_file_actions_adddup2.c:
35509         * tests/test-posix_spawn_file_actions_addopen.c:
35510         Include <limits.h>, for OPEN_MAX, if available.
35511         (big_fd): New static function.
35512         (main): Use it.
35514 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35516         tests/nap.h: use an adaptive delay to avoid ctime update issues
35517         The recent change in nap.h (5191133e) decreased the probability of lost
35518         races to about a third, however such problems could still be observed
35519         in virtual machines and openSUSE's OBS.
35520         Before, nap() detected the needed time once empirically and then used
35521         that delay (together with a small correction multiplier) in further
35522         calls.  This problem has been reported and discussed several times,
35523         including guesses about possible kernel issues:
35524         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35525         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35526         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35527         http://bugs.gnu.org/12820
35528         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35529         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35530         Now, nap() avoids the race alltogether by verifying on a reference
35531         file whether a timestamp difference has happened.
35532         * tests/nap.h (nap_fd): Define file descriptor variable for the
35533         witness file.
35534         (nap_works): Change return value to bool.  Change passing
35535         the old file's status by value instead of by reference as this function
35536         does no longer update that timestamp; rename the function argument from
35537         st to old_st.  Remove the local variables cdiff and mdiff because that
35538         function now returns true/false instead of the precise delay.
35539         (guess_delay): Remove function.
35540         (clear_tmp_file): Add new function to close and unlink the witness file.
35541         (nap): Instead of re-using the delay which has been calculated during
35542         the first call, avoid the race by actually verifying that a timestamp
35543         difference can be observed on the current file system.  Use an adaptive
35544         approach for the delay to minimize execution time.  Assert that the
35545         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35546         = 2^31 - 1 = 2.1s.
35547         Use atexit to call clear_tmp_file when the process terminates.
35549 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35551         sig2str: port to C++
35552         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35553         Reported by Daniel J Sebald in
35554         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35556 2013-05-30  Eric Blake  <eblake@redhat.com>
35558         docs: mention cygwin shortcoming in <sys/un.h>
35559         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35561         vasnprintf: silence mingw compiler warning
35562         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35564 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35566         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35567         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35568         This fixes a porting bug I recently reintroduced in regex, and
35569         some other instances that I discovered while testing the fix.
35570         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35571         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35572         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35573         with an empty argument if this is a pedantic pre-C99 GCC.
35574         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35575         pre-C11 GCC.
35577         regex: adapt to locking regime instead of depending on pthread
35578         Instead of depending on pthread, adapt to whatever thread
35579         modules are in use.  Problem reported by Ludovic Courtès in
35580         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35581         and by Mats Erik Andersson in
35582         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35583         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35584         Support either the 'lock' module, or the 'pthread' module, or
35585         no module.
35586         (lock_lock, lock_unlock): New macros.
35587         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35588         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35589         * modules/regex (Depends-on): Remove pthread.
35591 2013-05-22  Eric Blake  <eblake@redhat.com>
35593         getgroups: document portability issues
35594         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35595         multithread safety.
35596         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35597         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35598         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35599         getugroups.
35600         * doc/posix-functions/getgroups.texi (getgroups): Mention
35601         multithread safety and mgetgroups.
35603 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35605         test-lchown, test-chown: also skip test if chown fails with EPERM
35606         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35607         skip this test, to handle FAT file systems.
35608         * tests/test-chown.h (test_chown): Likewise.
35610 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35612         regex: fix dfa race in multithreaded uses
35613         Problem reported by Ludovic Courtès in
35614         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35615         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35616         New macros.  All uses of __libc_lock_define, __libc_lock_init
35617         changed to use the first two of these.
35618         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35619         non-glibc platforms.
35620         (struct re_dfa_t): Define the lock unconditionally.
35621         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35622         '#ifdef _LIBC"s.
35623         * modules/regex (Depends-on): Add pthread, if we use the
35624         included regex.
35626         * lib/regcomp.c: Do actions that are not needed for glibc,
35627         but may be needed elsewhere.
35628         (regfree, re_compile_internal): Destroy the lock.
35629         (re_compile_internal): Check for lock-initialization failure.
35631         malloca: port to compilers that reject size-zero arrays
35632         This fixes a bug introduced in my previous patch.
35633         * lib/malloca.c (struct preliminary_header): Use an int
35634         rather than a character array of size int; that's simpler.
35635         (struct header): Remove, replacing with ...
35636         (union header): New type.  This avoids the need for declaring a
35637         character array of size zero, which is not allowed on some platforms.
35638         All uses changed.
35640 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35642         parse-datetime, tests: don't use "string" + int
35643         Recent versions of 'clang' complain about C source code that
35644         uses expressions of the form '"string literal" + integer',
35645         I guess on the theory that it's confusing for readers who are
35646         used to C++.  On those grounds I suppose it's OK to make this
35647         minor style change.
35648         * lib/parse-datetime.y (parse_datetime):
35649         * tests/test-fchdir.c (main):
35650         * tests/test-snprintf-posix.h (test_function):
35651         * tests/test-snprintf.c (main):
35652         * tests/test-vasnprintf-posix.c (test_function):
35653         * tests/test-vasnprintf.c (test_function):
35654         * tests/test-vsnprintf.c (main):
35655         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35656         Rewrite '"str" + E' to '&"str"[E]'.
35658 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35660         argmatch: port to C++
35661         * lib/argmatch.h [__cplusplus]: Add extern "C".
35663         argp: typo fix
35664         * lib/argp-help.c: Typo in comment.
35666 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35668         manywarnings: update for GCC 4.8.0
35669         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35670         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35671         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35672         -Wmissing-noreturn, as they are duplicates of other warnings.
35673         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35674         was documented to be flaky in earlier versions of GCC.
35676         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35677         * tests/test-spawn.c (main):
35678         * tests/test-sys_socket.c (main):
35679         * tests/test-sys_wait.c (main):
35680         Don't have a switch value that isn't covered by a case.
35682         getaddrinfo-tests: port --enable-gcc-warnings to clang
35683         * tests/test-getaddrinfo.c (simple):
35684         Avoid casts from looser to stricter-aligned pointers.
35686         thread: port --enable-gcc-warnings to clang
35687         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35688         Include <signal.h>, to pacify a warning about pthread_sigmask.
35690         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35691         * lib/stdio.in.h (fwrite):
35692         When working around bug 11959, use __REDIRECT rather than '#define
35693         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35694         fix the -Wunused-value issue with clang, and it works with GCC too.
35695         Problem with targeting reported by Eric Blake in
35696         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35697         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35698         debugging the fwrite issue.
35700         stdio: port --enable-gcc-warnings to clang
35701         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35702         since the GCC workaround for fwrite does not pacify clang.
35704         sig2str: port --enable-gcc-warnings to clang
35705         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35707         obstack: port --enable-gcc-warnings to clang
35708         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35709         Avoid casts from looser to stricter-aligned pointers.
35711         memchr2: port --enable-gcc-warnings to clang
35712         * lib/memchr2.c (memchr2):
35713         Avoid casts from looser to stricter-aligned pointers.
35715         mbsstr: port --enable-gcc-warnings to clang
35716         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35717         Avoid casts from looser to stricter-aligned pointers.
35719         malloca: port --enable-gcc-warnings to clang
35720         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35721         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35723         inttostr: port --enable-gcc-warnings to clang
35724         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35726         warnings: port to clang
35727         Problem reported by Daniel P. Berrange via Eric Blake in
35728         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35729         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35730         (gl_WARN_ADD): Use it.
35732 2013-05-11  Jim Meyering  <meyering@fb.com>
35734         quotearg: do not read beyond end of buffer
35735         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35736         end of an ARG for which no length was specified.  With an N-byte
35737         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35738         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35739         via coreutils' misc/sort-debug-keys.sh test and detected by running
35740         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35741         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35742         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35743         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35744         characters correctly."
35746 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35748         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35749         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35750         compilation target is Mac OS X 10.6.
35751         Problem reported by parafin and Andoni Morales in
35752         <http://savannah.gnu.org/bugs/?37844> and
35753         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35755 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35757         mkdir-p: remove assumptions about umask and mode
35758         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35759         umask is 0, or that MODE is a subset of MODE_BITS.
35761 2013-05-10  Eric Blake  <eblake@redhat.com>
35763         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35764         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35766 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35768         deps: require Automake >= 1.9.6 in generated Makefile fragments
35770         That is the same minimal version required in the DEPENDENCIES file.
35771         Moreover, the old code generated a requirement of Automake >= 1.5,
35772         and that is an insanely outdated version.
35774         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35775         * tests/havelib/rpathlx/Makefile.am: Likewise.
35776         * tests/havelib/rpathly/Makefile.am: Likewise.
35777         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35778         * tests/havelib/rpathlz/Makefile.am: Likewise.
35779         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35780         * tests/havelib/rpathx/Makefile.am: Likewise.
35781         * tests/havelib/rpathy/Makefile.am: Likewise.
35782         * tests/havelib/rpathz/Makefile.am: Likewise.
35784 2013-05-08  Eric Blake  <eblake@redhat.com>
35786         bootstrap: AC_INIT may have more than four parameters
35787         * build-aux/bootstrap (extract_package_name): Correctly extract
35788         non-empty tarname field.  Avoid range in regex.
35789         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35791 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35793         qacl: port to MS-Windows port of GNU Emacs
35794         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35795         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35796         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35797         <http://bugs.gnu.org/14295#14>.
35799 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35801         acl: include quote.h
35802         * lib/copy-acl.c: Include quote.h.
35803         * lib/set-acl.c: Likewise.
35805 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35807         fchownat, renameat, unlinkat: update statat dependencies
35808         These modules use statat and lstatat, not fstatat; so depend on
35809         the statat module, which was split out recently from fstatat.
35810         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35811         * modules/renameat: Likewise.  Also delete fstat.
35812         URL: http://bugs.gentoo.org/468790
35814 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35816         Assume gnulib is checked out from Git, not CVS
35818         In fact, access to the gnulib repository through CVS has been
35819         disabled, or more precisely, got broken and was never restored; see:
35820         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35822         Note that support for CVS is not removed completely and unthinkingly
35823         by this change: only support for CVS checkouts of gnulib itself is
35824         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35825         files and CVS directories, for the benefit of those poor gnulib clients
35826         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35828         * gnulib-tool: Simplify accordingly.
35829         * posix-modules: Likewise.
35830         * MODULES.html.sh: Likewise.
35831         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35832         repository.
35833         * doc/gnulib-intro.texi: Likewise.
35834         * doc/gnulib-readme.texi: Likewise.
35835         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35836         sample '.gitignore' file rather than a sample '.cvsignore'.
35837         * NEWS: Update.
35838         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35839         to "CVS Autoconf" rather than "git Autoconf".
35841 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35843         utimensat-tests, etc.: try to fix some races
35844         Problem reported by Bernhard Voelker in
35845         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35846         I don't know whether this patch fixes that race condition, but it
35847         fixes *some* race conditions, so it should be a win.
35848         * modules/chown-tests (Depends-on):
35849         * modules/fchownat-tests (Depends-on):
35850         * modules/fdutimensat-tests (Depends-on):
35851         * modules/futimens-tests (Depends-on):
35852         * modules/lchown-tests (Depends-on):
35853         * modules/stat-time-tests (Depends-on):
35854         * modules/utimens-tests (Depends-on):
35855         * modules/utimensat-tests (Depends-on):
35856         Depend on nanosleep, not usleep.
35857         * modules/chown-tests (test_chown_LDADD):
35858         * modules/lchown-tests (test_lchown_LDADD):
35859         * modules/stat-time-tests (test_stat_time_LDADD):
35860         New macro.
35861         * modules/fchownat-tests (test_fchownat_LDADD):
35862         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35863         * modules/futimens-tests (test_futimens_LDADD):
35864         * modules/utimens-tests (test_utimens_LDADD):
35865         * modules/utimensat-tests (test_utimensat_LDADD):
35866         Add $(LIB_NANOSLEEP).
35867         * modules/stat-time-tests (Files): Add tests/nap.h.
35868         * tests/nap.h: Include <limits.h>, for INT_MAX.
35869         (lt_mtime): Remove.
35870         (diff_timespec): New function.
35871         (get_stat): Rename from get_mtime.  All callers changed.
35872         (nap_works): Determine the needed delay by inspecting the
35873         file system's timestamp jumps; this should be more reliable.
35874         Look at both mtime and ctime, and take the maximum of the two jumps.
35875         (nap_works, guess_delay):
35876         Return a nanosecond count, not a microsecond count.
35877         All callers changed.
35878         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35879         failure.
35880         (nap): Multiply the guess by 1.125, to accommodate the case where
35881         the file system's clock is a bit slower than nanosleep's clock.
35882         * tests/test-stat-time.c (BASE): New macro.
35883         Include nap.h.
35884         (nap): Remove; nap.h now defines this.  This removes a duplicate
35885         implementation of 'nap'.
35887         utimens, utimensat: work around Solaris UTIME_OMIT bug
35888         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35889         Linux kernel 2.6.32 does.  Work around it in the same way.
35890         * doc/posix-functions/futimens.texi (futimens):
35891         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35892         * lib/utimens.c (fdutimens, lutimens):
35893         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35895         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35896         Formerly, it was your responsibility to do this for all Makefile.ams
35897         other than Gnulib's.  Now it's your responsibility to do it for
35898         Gnulib's Makefile.am, too.
35899         * NEWS: Document this.
35900         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35902         acl: include errno.h to get errno
35903         Reported by Daiki Ueno in
35904         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35905         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35907 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35909         tests: don't assume getdtablesize () <= 10000000
35910         * modules/cloexec-tests:
35911         * modules/dup2-tests:
35912         * modules/dup3-tests:
35913         * modules/nonblocking-tests:
35914         * modules/posix_spawn_file_actions_addclose-tests:
35915         * modules/posix_spawn_file_actions_adddup2-tests:
35916         * modules/posix_spawn_file_actions_addopen-tests:
35917         * modules/unistd-safer-tests:
35918         Depend on the getdtablesize module.
35919         * tests/test-cloexec.c:
35920         * tests/test-dup-safer.c:
35921         * tests/test-dup2.c:
35922         * tests/test-dup3.c:
35923         * tests/test-fcntl.c:
35924         * tests/test-nonblocking.c:
35925         * tests/test-posix_spawn_file_actions_addclose.c:
35926         * tests/test-posix_spawn_file_actions_adddup2.c:
35927         * tests/test-posix_spawn_file_actions_addopen.c:
35928         Don't assume getdtablesize () <= 10000000.
35930 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35932         extern-inline: work around bug in Sun c99
35933         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35934         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35936 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35938         qacl: new module, broken out from the acl module
35939         This is for GNU Emacs, which wants the acl functions but does
35940         not want 'error' invoked when they fail.
35941         * lib/acl-internal.h: Do not include error.h, quote.h.
35942         (ENOSYS, ENOTSUP): Remove; no longer needed.
35943         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35944         * lib/acl.h: Include <stdbool.h>.
35945         (acl_errno_valid): New function.
35946         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35947         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35948         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35949         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35950         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35951         * lib/file-has-acl.c (file_has_acl):
35952         * lib/qcopy-acl.c (qcopy_acl):
35953         * lib/qset-acl.c (qset_acl):
35954         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35955         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35956         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35957         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35958         Add lib/set-acl.c.
35959         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35960         Add qacl.
35961         (configure.ac): Move gl_FUNC_ACL to qacl module.
35962         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35963         Rename set-mode-acl.c to set-acl.c.
35964         * lib/acl-errno-valid.c: New file.
35965         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35966         copy_acl function remains in copy-acl.c.
35967         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35968         (_): Remove; not needed.
35969         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35970         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35971         * modules/qacl: New file, moved from the old modules/acl.
35972         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35973         Remove set-mode-acl.c, copy-acl.c.
35974         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35976         alignof, intprops, malloca: port better to IBM's C compiler
35977         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35978         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35979         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35981 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35983         wctype-h: fix gettext link error on mingw
35984         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35985         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35986         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35987         rpl_towupper and rpl_towupper.
35989 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35991         regex-tests, regex: allow glibc re_search behavior
35992         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35993         re_search input data to make the multi-character collating element
35994         in it clearly visible, and treat re_search return code 0 as valid.
35995         * m4/regex.m4 (gl_REGEX): Likewise.
35997 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35999         stdalign: doc fix
36000         * doc/posix-headers/stdalign.texi (stdalign.h):
36001         Gnulib doesn't support '_Alignof expr'.
36003 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36005         stdalign: port to stricter ISO C11
36006         ISO C11 says that _Alignof's operand must be a parenthesized type.
36007         Problem reported by Eli Zaretskii in
36008         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
36009         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
36010         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
36012 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
36014         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
36015         Problem reported by Marco Atzeri in
36016         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
36017         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
36018         Simply delegate to the system <sys/select.h> in this case too.
36019         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
36020         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
36021         be needed on Solaris either.
36022         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
36023         Simply delegate to the system <sys/time.h> in this case.
36025 2013-03-19  Karl Berry  <karl@gnu.org>
36027         * build-aux/gnupload: check for erroneous (with gnupload) use of
36028         ftp-upload.gnu.org, tweak help.
36030 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36032         copy-file, rpmatch: fix problems found by cppcheck
36033         Reported by Arno Onken in
36034         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
36035         * lib/rpmatch.c (try): Fix memory leak.
36036         * lib/copy-file.c: Include "ignore-value.h".
36037         (qcopy_file_preserving): Ignore chown value.
36038         * modules/copy-file (Depends-on): Add ignore-value.
36040 2013-01-27  Jim Meyering  <jim@meyering.net>
36042         prefix-gnulib-mk: give better diagnostics
36043         * build-aux/prefix-gnulib-mk: Don't just "die".
36044         Give better diagnostics upon failure.
36046 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
36048         putenv: port to Solaris 10
36049         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
36050         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
36051         is not what is wanted here.
36052         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
36053         declaration, not for its existence.
36055 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
36057         mktime: fix configure typo
36058         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
36060 2013-03-12  Eric Blake  <eblake@redhat.com>
36062         regex-tests: skip UTF-8 test on mingw
36063         * modules/regex-tests (Depends-on): Add localcharset.
36064         * tests/test-regex.c (main): Use it to skip test on mingw.
36066 2013-03-11  Eric Blake  <eblake@redhat.com>
36068         tests: make it easier to bypass alarm time in debugger
36069         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
36070         * tests/test-memmem.c (main): Likewise.
36071         * tests/test-passfd.c (main): Likewise.
36072         * tests/test-ptsname.c (main): Likewise.
36073         * tests/test-ptsname_r.c (main): Likewise.
36074         * tests/test-strcasestr.c (main): Likewise.
36075         * tests/test-strstr.c (main): Likewise.
36077         regex: port to mingw's recent addition of undeclared alarm
36078         * doc/posix-functions/alarm.texi (alarm): Document that alarm
36079         exists but still doesn't work in newer mingw.
36080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
36081         not existence.  Ensure SIGALRM is not trapped.
36082         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
36083         * m4/regex.m4 (gl_REGEX): Likewise.
36084         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
36085         * tests/test-regex.c (main): Use correct probe for alarm.
36087         putenv: avoid compilation warning on mingw
36088         * lib/putenv.c (_unsetenv): Protect variable declaration.
36089         (putenv): Fix indentation.
36091 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
36093         unistd: don't prevent Tru64 Unix from using gnulib strtod.
36094         * lib/unistd.in.h: be careful not to include un-needed system
36095         stdlib.h from here, because that prevents gnulib stdlib.h from
36096         defining rpl_strtod correctly.
36098 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
36100         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
36101         changesets, but for the 'precision 0' test.
36102         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36103         round-to-even, since POSIX says rounding is implementation-defined
36104         and OS X 10.8.2 rounds 1.51 to 1 here.
36106         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
36107         changeset.
36108         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36109         round-to-even, since POSIX says rounding is implementation-defined
36110         and OS X 10.8.2 rounds 1.5 to 1 here.
36112 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36114         vasnprintf-posix-tests: allow rounding 1.5 to 1
36115         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
36116         round-to-even, since POSIX says rounding is implementation-defined
36117         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
36118         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
36120         bootstrap: port to FreeBSD
36121         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
36122         that treat '--' differently.  Reported by Mats Erik Andersson in
36123         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
36125 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
36127         regex: rename remaining __attribute calls to __attribute__.
36128         2012-02-25 changed definition of __attribute, but left some uses
36129         unchanged, preventing compilation of regex module on most non-gcc
36130         environments.
36131         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
36132         (lookup_collation_sequence_value, build_range_exp)
36133         (build_collating_symbol): Set attributes with newly renamed
36134         __attribute__ decorator.
36135         * lib/regex_internal.c (re_string_peek_byte_case)
36136         (re_node_set_compare, re_node_set_contains): Likewise.
36137         * lib/regexec.c (acquire_init_state_context): Likewise.
36139 2013-03-06  Bruno Haible  <bruno@clisp.org>
36141         execute: Revert last change, but use a different condition.
36142         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
36143         on Windows.
36145 2013-03-05  Eric Blake  <eblake@redhat.com>
36147         execute: drop dead code
36148         * lib/execute.c (nonintr_close, nonintr_open): Delete.
36150 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
36152         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
36153         * m4/non-recursive-gnulib-prefix-hack.m4
36154         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
36155         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
36156         <http://bugs.gnu.org/10305#237>.
36158 2013-03-04  Eric Blake  <eblake@redhat.com>
36160         test-getsockopt: avoid compiler warning
36161         * tests/test-getsockopt.c (includes): Ensure close is declared.
36163 2013-03-02  Bruno Haible  <bruno@clisp.org>
36165         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
36166         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
36168 2013-03-02  Bruno Haible  <bruno@clisp.org>
36170         gettext: Update to version 0.18.2.
36171         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
36172         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
36173                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
36175 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36177         regex: merge patches from libc
36179         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36180         * lib/regex_internal.h (__attribute__): Rename from __attribute.
36181         All uses changed.
36182         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
36183         (re_string_wchar_at, re_string_elem_size_at):
36184         Mark function as possibly unused.
36186         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
36187         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
36188         elements compare against the byte sequence of it, not its name.
36190 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36192         putenv: port better to native Windows
36193         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36194         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
36195         (_unsetenv): Use _putenv if available.
36196         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
36197         a bit less likely to cause damage.
36198         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36199         Fix the wrong value with SetEnvironmentVariable.
36200         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
36201         code better.
36203 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36205         regex: ignore old-style-definition warnings
36206         * lib/regex.c: Add pragma to ignore these warnings.
36207         Problem reported for GNU tar by Pavel Raiskup.
36209 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36211         getcwd: support coreutils better
36212         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
36213         but this might not be correct in coreutils, which disables
36214         the raw decl checks.  Problem reported by Nagendra in
36215         <http://bugs.gnu.org/10305#192>.
36216         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
36217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36218         Test the getcwd function, not any macro, since getcwd.c wants the
36219         function.
36220         * m4/getcwd.m4 (gl_FUNC_GETCWD):
36221         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
36222         compile, as might happen if there's a macro but no function.
36224         strtod: support coreutils better
36225         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
36226         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
36227         disables the raw decl checks.  This assumes there is an underlying
36228         strtod, but that's a safe assumption these days.
36229         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
36231         mountlist: port to HP NonStop
36232         Reported by Joachim Schmitz in
36233         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
36234         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
36235         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
36237 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36239         extern-inline: avoid compilation error with HP-UX cc
36240         Reported by Richard Lloyd in
36241         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
36242         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36243         Suppress extern inline with HP-UX cc.  This should be safe,
36244         though it may hurt performance.  Perhaps someone with some HP-UX
36245         experience can come up with a higher-performance fix.
36247 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36249         putenv: fix heap corruption with mixed putenv/_putenv
36250         Problem reported by Michael Goffioul in
36251         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
36252         * lib/putenv.c (putenv) [HAVE__PUTENV]:
36253         Rely on _putenv to allocate the new environment.
36254         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36255         * modules/putenv (configure.ac): Use it.
36257 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
36259         unsetenv etc.: port to Solaris 11 + GNU Emacs
36260         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
36261         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
36262         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
36263         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
36264         idea but is too painful to fix right now), and without this gnulib
36265         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
36266         compiling unsetenv.c on Solaris 11.  Fix the problem for
36267         unsetenv.c, and fix other similar occurrences.
36269 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36271         secure_getenv: fix C++ declaration typo
36272         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
36273         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
36274         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
36276 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36278         careadlinkat: stop exporting careadlinkatcwd
36279         Only Emacs used it directly, and Emacs no longer needs it.
36280         * NEWS: Document this simplification.
36281         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
36282         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
36283         for readlink.
36284         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
36285         Don't include stdlib.h; no longer needed.
36286         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
36287         * lib/relocwrapper.c: Adjust comment to match new dependencies.
36288         * modules/areadlink (Depends-on): Add readlink.
36289         (Maintainer): Add self.
36290         * modules/careadlinkat (Depends-on): Remove readlink.
36292         extensions: port better to HP-UX
36293         This is merged from git Autoconf.
36294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36295         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
36296         so that it's compatible with the value used when compiling.
36298         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
36299         Problem reported by Mats Erik Andersson in
36300         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
36301         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36302         openpty function exists, not merely when we intend to replace it.
36303         This corrects the 2013-01-31 patch, which mistakenly defined
36304         HAVE_OPENPTY even on hosts that lacked it.
36306 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36308         secure_getenv: fix include typo
36309         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
36311         secure_getenv: port better to FreeBSD and Solaris
36312         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
36313         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
36314         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
36315         This works better on BSDish platforms.
36316         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
36317         Test for issetugid if __secure_getenv is missing.
36319 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36321         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
36322         Some of these changes are merged in from git Autoconf.
36323         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36324         When deciding whether to define _XOPEN_SOURCE, inspect the
36325         preprocessor macro __hpux instead of the more-heavyweight
36326         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36327         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36328         as the key for __EXTENSIONS__.
36330         unistd: avoid namespace pollution on non-glibc systems
36331         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36332         This avoids namespace pollution on non-glibc systems, by causing
36333         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36334         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36335         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36337 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36339         tmpdir: use secure_getenv
36340         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36341         Define to secure_getenv, not getenv.
36342         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36343         as that's now secure_getenv's job.
36344         * modules/tmpdir (Depends-on): Add secure_getenv.
36346         tempname: use secure_getenv
36347         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36348         Define to secure_getenv, not getenv.
36349         * modules/tempname (Depends-on):
36350         Add secure_getenv.
36352         secure_getenv: new module
36353         * MODULES.html.sh (Extra functions based on ANSI C 89):
36354         Add secure_getenv.
36355         * doc/glibc-functions/secure_getenv.texi: New file.
36356         * doc/gnulib.texi: Include it.
36357         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36358         New files.
36359         * lib/stdlib.in.h (secure_getenv): New decl.
36360         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36361         * modules/stdlib (stdlib.h):
36362         Add secure_getenv checks.
36364 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36366         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36367         Reported for OS X 10.8.2 by Assaf Gordon in
36368         <http://bugs.gnu.org/13516>.
36369         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36370         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36371         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36372         so that they can be kept in sync more easily.  Avoid PATH_MAX
36373         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36374         mkdir or chdir failure.
36375         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36376         lib/getcwd.c.
36377         (test_abort_bug): Do not test for the deep directory bug unless we
36378         have openat support.  Avoid PATH_MAX test on the Hurd.
36380         regex-tests, regex: fix bug: memset undeclared
36381         * tests/test-regex.c: Don't include regex.h twice.  Include
36382         string.h, to declare memset.  Christensen's report also mentioned
36383         this issue.
36384         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36385         test-regex.c, to avoid future problems like this.  Remove
36386         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36387         twice.
36389         regex-tests: fix link errors on older Solaris
36390         These need to link with @LIBINTL@ to get libintl_gettext.
36391         Problem reported by Tom G. Christensen in
36392         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36393         * modules/regex-tests (test_regex_LDADD): New macro.
36395 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36397         regex-tests: new module
36398         * modules/regex-tests, tests/test-regex.c: New files.
36400         regex: fix off-by-one error in configure test
36401         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36403 2013-01-31  Eric Blake  <eblake@redhat.com>
36405         regex: avoid infinite configure test
36406         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36408 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36410         openpty: fix bug where HAVE_OPENPTY wasn't defined
36411         See the thread starting at:
36412         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36413         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36414         openpty function exists, not merely when we intend to replace it.
36416 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36418         sys_time: port to Solaris 2.6
36419         There is a circularity problem on Solaris 2.6, where <time.h> includes
36420         <sys/time.h> for struct timespec.  The include nesting is gnulib
36421         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36422         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36423         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36424         <sys/siginfo.h>; the last, innermost file needs struct
36425         timestruc_t, which is defined in <sys/time.h>, which has not been
36426         fully parsed.  Problem reported by Tom G. Christensen in
36427         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36428         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36429         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36430         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36431         uses split double-inclusion guards.
36433 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36435         regex: test for buffer overrun
36436         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36437         for the just-fixed regex bug.
36439 2013-01-29  Andreas Schwab  <schwab@suse.de>
36441         regex: fix buffer overrun in regexp matcher [BZ #15078]
36442         * lib/regexec.c (extend_buffers): Add parameter min_len.
36443         (check_matching): Pass minimum needed length.
36444         (clean_state_log_if_needed): Likewise.
36445         (get_subexp): Likewise.
36447 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36449         mountlist: don't consider "devtmpfs" as dummy
36450         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36451         as there is storage associcated with it.
36453 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36455         futimens-tests, utimens-tests: Depend on gettext.
36456         This works around a problem introduced in my 2013-01-12 patch,
36457         which added @LIBINTL@ to these modules.
36458         * modules/futimens-tests (Depends-on):
36459         * modules/utimens-tests (Depends-on): Add gettext.
36461 2013-01-26  Eric Blake  <eblake@redhat.com>
36463         test-getpeername: fix typo
36464         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36466 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36468         bootstrap: remove the need for a sorted .gitignore file
36469         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36470         rename to insert_if_absent(), so that we don't need or generate
36471         a sorted .gitignore file.  We do require a .gitignore with no
36472         existing duplicate entries and enforce that.
36473         (sort_patterns): Remove this function as we now use the simpler
36474         technigue of inserting blacklist entries at the top of the file,
36475         assuming gnulib won't be inserting !whitelist entries.
36477 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36479         readlinkat: don't depend on gl_FUNC_OPENAT
36480         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36481         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36482         renameat.m4, symlinkat.m4; but one thing at a time.
36484         statat: new module, split out from fstatat
36485         GNU Emacs needs the POSIX-specified fstatat, but not the
36486         gnulib-specified statat and lstat.  Split the latter two into a
36487         new module 'statat'.
36488         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36489         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36490         Rename from FSTATAT_INLINE. All uses changed.
36491         * modules/fstatat (Files): Remove lib/statat.c.
36492         (gl_MODULE_INDICATOR([fstatat])): Remove.
36493         (lib_SOURCES): Remove.
36494         (Maintainer): Add self.
36495         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36496         * tests/test-fstatat.c (BASE): Don't define if already defined.
36497         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36499 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36501         tests: don't assume fd 99 is closed
36502         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36503         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36504         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36505         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36506         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36507         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36508         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36509         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36510         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36511         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36512         * tests/test-fwrite.c, tests/test-getpeername.c:
36513         * tests/test-getsockname.c, tests/test-getsockopt.c:
36514         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36515         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36516         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36517         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36518         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36519         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36520         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36521         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36522         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36523         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36524         Close file descriptor 99, instead of assuming it's already closed.
36526 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36528         stpncpy: port to OS X 10.8
36529         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36530         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36532 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36534         unistd: port to recent mingw
36535         * lib/unistd.in.h: Remove special invocation convention for mingw,
36536         which breaks for the latest mingw version.  See John W. Eaton in
36537         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36539         largefile: port better to Mac OS X 10.5
36540         This patch is backported from Autoconf git.
36541         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36542         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36543         with ino_t size being different for configuration time versus
36544         build/run time.  Problem reported by PHO in
36545         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36547 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36549         doc: clarify -Werror
36550         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36551         clarify that it's intended for developers, not for ordinary builds,
36552         and mention --enable-gcc-warnings as one possible use.
36554 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36556         stdint: fix build with Android's Bionic fox x86
36557         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36558         was already included as _SSIZE_T_DEFINED_ might also be defined
36559         in include/machine/_types.h, which is included by stdio.h
36561 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36563         net_if-tests: port to Solaris 7 + GCC 3.4.6
36564         Problem reported by Tom G. Christensen in
36565         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36566         * tests/test-net_if.c (ni): Move to next the code that uses it,
36567         so that it's declared only if needed.
36569 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36571         net_if-tests: port to older Solaris
36572         Problem reported by Tom G. Christensen in
36573         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36574         * modules/net_if-tests (NET_IF_LIB): New substitution.
36575         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36576         (HAVE_IF_NAMEINDEX): New C macro.
36577         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36579         system-quote-tests: port to older Solaris
36580         Problem reported by Tom G. Christensen in
36581         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36582         * tests/test-system-quote-child.c (fopen, fread): Undef.
36584         c-xvasprintf etc.: fix link errors on older Solaris
36585         These need to link with @LIBINTL@ to get libintl_gettext.
36586         Problem reported by Tom G. Christensen in
36587         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36588         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36589         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36590         * modules/futimens-tests (test_futimens_LDADD):
36591         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36593 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36595         locale: port to Solaris 2.6 and 7 + GNU gettext
36596         * lib/locale.in.h: Just include_next <locale.h> when
36597         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36598         when combining the localename module with GNU gettext 0.18.2.
36599         Problem reported by Tom G. Christensen in
36600         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36602 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36604         stdlib: port to Solaris 2.6
36605         Also, the code worked on Solaris 7 through 9 only by accident.
36606         Problem reported by Tom G. Christensen in
36607         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36608         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36609         simply include the system stdlib.h.
36610         * lib/getopt.in.h (__need_system_stdlib_h):
36611         * lib/pthread.in.h (__need_system_stdlib_h):
36612         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36613         Define when including <stdlib.h>, to avoid problems at least for
36614         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36615         with the system stdlib.h.
36617 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36619         doc: update main copyright year
36620         * doc/gnulib.texi: Update copyright date.
36622         doc: improve ISO 8601 discussion
36623         * doc/parse-datetime.texi (Combined date and time of day items):
36624         Specify more carefully what formats are supported and what is
36625         done with excess precision.
36627 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36629         doc: avoid small caps
36630         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36631         they're more trouble than they're worth.  Suggested by Karl Berry
36632         in <http://bugs.gnu.org/13360>.
36634         regex: conform to strict C
36635         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36636         From Aharon Robbins.
36638         gnulib-tool: fix incompatibility with autopoint 0.18.2
36639         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36640         Problem reported by Tom G. Christensen in
36641         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36643 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36645         fprintftime: bring back and reword fwrite comment
36646         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36648         stdio: remove now-unnecessary stdio.c
36649         Since stdio.in.h no longer uses inline functions, we no longer
36650         need to compile the extern versions.
36651         * lib/stdio.c: Remove.
36652         * modules/stdio (Files): Remove lib/stdio.c.
36653         (lib_SOURCES): Remove.
36655         unicodeio: depend on stdio, not ignore-value
36656         * lib/unicodeio.c: Do not include ignore-value.h.
36657         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36658         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36660         fprintftime: depend on stdio, not ignore-value
36661         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36662         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36663         since the stdio module arranges to silence that warning now.
36664         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36666 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36668         stdint-tests: Fix expanded-before-required-warning.
36669         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36671 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36673         fwrite: silence __wur only for older glibc versions
36674         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36675         This will help us remove this workaround some time in the far future.
36677 2013-01-03  Eric Blake  <eblake@redhat.com>
36679         fwrite: silence __wur without using inline
36680         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36681         just gcc, and in a way that avoids inline issues.
36682         * modules/stdio (Depends-on): Drop extern-inline.
36684 2013-01-03  Jim Meyering  <jim@meyering.net>
36686         update-copyright: avoid copyright notice date corruption
36687         Given a sequence of copyright year numbers in which the final
36688         one was a two-digit number that happened to be a substring of
36689         a preceding four-digit year number, we would mistakenly update
36690         the substring (from two- to four-digit) rather than the two-digit
36691         number at the end, which, combined with the addition of the current
36692         4-digit year number would yield two 5-digit year numbers, e.g.,
36693         here, it would convert the first "99" to "1999, 2013" rather than
36694         the final one:
36695           1991, 99
36696           11999, 20131, 1999
36697         * build-aux/update-copyright: Tighten a regexp.
36698         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36699         Reported by Joseph Myers in
36700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36702 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36704         regex: omit needless signed-pointer casts
36705         * lib/regcomp.c (build_charclass, build_charclass_op):
36706         Use char *, not unsigned char *, for class name and extra.
36707         The char values are always nonnegative so there's no need to
36708         insist on unsigned char * here, and using char * removes the need
36709         for casts.  Reported by Aharon Robbins in
36710         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36712         regex: support Gawk, which never uses alloca
36713         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36714         Do not include in this case.  Gawk doesn't supply a substitute
36715         alloca.h and doesn't need one.
36717         regex: port __libc_lock_define usage to C89
36718         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36719         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36720         does not conform to C89, as it has an empty macro argument.
36721         Reported by Aharon Robbins in
36722         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36724 2013-01-01  Eric Blake  <eblake@redhat.com>
36726         maint: update all copyright year number ranges
36727         Run "make update-copyright".
36729         version-etc: bump copyright year reported in --version
36730         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36732 2012-12-31  Eric Blake  <eblake@redhat.com>
36734         sigprocmask-tests: skip test if pid is unexpectedly large
36735         * tests/test-sigprocmask.c (main): Add range check.
36737         git-version-gen: avoid test -z portability glitch
36738         * build-aux/git-version-gen: Prefer portable test spelling, since
36739         git-version-gen is run on more than just developer machines.
36741 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36743         git-version-gen: add --fallback option to use if git is not present
36744         * build-aux/git-version-gen: Add support for the new option --fallback,
36745         which comes into play when there is no $tarball_version_file and
36746         git is not working.
36747         (scriptversion): Update.
36749         maint.mk: handle missing git with more grace
36750         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36751         Quietly proceed if git is not present.
36753 2012-12-31  Eric Blake  <eblake@redhat.com>
36755         dup2: work around cygwin bug
36756         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36757         * lib/dup2.c (rpl_dup2): Work around it.
36758         * doc/posix-functions/dup2.texi (dup2): Document it.
36760 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36762         regex: remove unnecessary dependency on localcharset.h
36763         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36764         hasn't been needed for years.
36765         * modules/regex (Depends-on): Remove localcharset.
36767         regex: revert single-byte change
36768         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36769         to this function.  This was alredy fixed in a different way, at
36770         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36771         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36772         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36774         regex: simplify based on Gawk version
36775         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36776         Reported by Aharon Robbins in
36777         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36779 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36781         regex: check that pattern char is single-byte
36782         Reported by Aharon Robbins in
36783         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36784         * lib/regexec.c (check_node_accept_bytes):
36785         Return 0 if the pattern string has a multibyte character here.
36787         regex: implement rational ranges
36788         Reported by Aharon Robbins in
36789         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36790         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36791         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36792         Implement rational ranges.
36794         regex: avoid redefining __wctype
36795         Reported by Aharon Robbins in
36796         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36797         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36798         #undef before defining.
36800         regex: port to hosts where malloc (0) == NULL
36801         Reported by Aharon Robbins in
36802         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36803         * lib/regex_internal.c (re_node_set_alloc):
36804         Don't assume that malloc (0) yields nonnull.
36805         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36806         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36807         * modules/regex (Files): Add m4/eealloc.m4.
36809         regex: port to C89
36810         Reported by Aharon Robbins in
36811         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36812         * lib/regcomp.c (init_word_char): Declaration before statement.
36814         regex: merge glibc changes
36815         Also, copy the license wording from glibc.  This simplifies
36816         merging changes.  gnulib-tool will change the wording to GPL as
36817         appropriate, when importing it to other packages.  The only
36818         glibc change made since the last merge, which needs merging, is:
36819         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36820         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36822         * users.txt: Add Emacs.
36824         doc: omit mention of version when not needed
36825         * doc/gnulib-intro.texi (Portability and Application Code):
36826         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36827         Don't mention particular dates or versions when not necessary, so
36828         that the documentation won't go out of date so quickly.
36830         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36832 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36834         bootstrap: pass --force to autoreconf.
36835         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36836         Add "--force" so that Automake's ylwrap and other such tools
36837         be updated at each bootstrap invocation.
36838         Use it.
36840 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36842         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36843         The earlier patch forgot to update one of the #if conditions, causing
36844         a problem on Debian testing i386 reported by Mats Erik Andersson
36845         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36846         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36847         (__argp_fmtstream_puts, argp_fmtstream_puts)
36848         (__argp_fmtstream_write, argp_fmtstream_write)
36849         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36851         * doc/gnulib-readme.texi: Minor fixups.
36852         (Portability guidelines): Modernize URLs.  Remove some repetition.
36853         (Indent with spaces not TABs): Reword to avoid too-long lines.
36854         Remove some '@ifset standalone' stuff that isn't used.
36856         * doc/gnulib-readme.texi (Portability guidelines):
36857         ctype.h, not ctime.h.
36859         Correct name of POSIX.1-2001.
36860         * doc/posix-functions/fgetc.texi (fgetc):
36861         * doc/posix-functions/fgets.texi (fgets):
36862         * doc/posix-functions/fread.texi (fread):
36863         * doc/posix-functions/fscanf.texi (fscanf):
36864         * doc/posix-functions/getc.texi (getc):
36865         * doc/posix-functions/getchar.texi (getchar):
36866         * doc/posix-functions/scanf.texi (scanf):
36867         POSIX.1-2001, not POSIX-2001.
36869         doc: move README into manual
36870         * README: Move contents to new file doc/gnulib-readme.texi.
36871         Replace with a one-line summary.
36872         * doc/gnulib.texi (Brief Overview): New section,
36873         with old intro preface.  Include gnulib-readme.texi for contents.
36874         (Philosophy): Rename from "Introduction", since this
36875         section no longer introduces the rest.  Write a new preface.
36876         * doc/gnulib-readme.texi: New file, with the old contents of
36877         README texinfo-ized.  This way, the README info appears
36878         in the online and printed manual.
36880 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36882         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36883         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36884         c_vasprintf() prototype.
36886 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36888         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36889         * lib/c-vasprintf.h: Remove stray semicolon.
36891 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36893         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36894         It is obsolete and is planned to be removed from Automake 1.14; see
36895         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36896         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36897         (installdirs-data, installdirs-data-yes):
36898         Use $(MKDIR_P), not $(mkdir_p).
36899         * m4/intl.m4 (AM_INTL_SUBDIR):
36900         * m4/po.m4 (AM_PO_SUBDIRS):
36901         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36903 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36905         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36906         On this platform, we are not optimizing but we are using
36907         the substitute for extern inlines, so compile as if
36908         C99-style extern inline, or a substitute, is available.
36909         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36910         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36911         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36912         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36913         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36914         Declare as ARGP_FS_EI, not as extern.
36915         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36916         (__option_is_short, _option_is_end, __option_is_end)
36917         [!_LIBC && __USE_EXTERN_INLINES]:
36918         Declare as ARGP_EI, not as extern.
36920 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36922         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36923         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36924         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36925         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36926         ...), as the latter is fatal with older Autoconfs.
36927         Problem reported and fix suggested by Eric Blake in thread starting at
36928         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36930 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36932         AC_PROG_MKDIR_P: don't workaround if not buggy
36933         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36934         Define only for Autoconf versions before 2.62.
36935         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36936         undocumented m4_PACKAGE_VERSION, for consistency with the
36937         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36938         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36939         was introduced in 2.62.
36941 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36943         New 'c-*printf' modules for formatted output in C locale.
36945         New module 'c-vasnprintf'.
36946         * modules/c-vasnprintf: New file.
36947         * lib/c-vasnprintf.c: New file.
36948         * lib/c-vasnprintf.h: New file.
36950         New module 'c-snprintf'.
36951         * modules/c-snprintf: New file.
36952         * modules/c-snprintf-tests: New file.
36953         * lib/c-snprintf.c: New file.
36954         * lib/c-snprintf.h: New file.
36955         * tests/test-c-snprintf.c: New file.
36956         * tests/test-c-snprintf.sh: New file.
36958         New module 'c-vsnprintf'.
36959         * modules/c-vsnprintf: New file.
36960         * modules/c-vsnprintf-tests: New file.
36961         * lib/c-vsnprintf.c: New file.
36962         * lib/c-vsnprintf.h: New file.
36963         * tests/test-c-vsnprintf.c: New file.
36964         * tests/test-c-vsnprintf.sh: New file.
36966         New module 'c-vasprintf'.
36967         * modules/c-vasprintf: New file.
36968         * modules/c-vasprintf-tests: New file.
36969         * lib/c-asprintf.c: New file.
36970         * lib/c-vasprintf.c: New file.
36971         * lib/c-vasprintf.h: New file.
36972         * tests/test-c-vasprintf.c  +: New file.
36973         * tests/test-c-vasprintf.sh: New file.
36975         New module 'c-xvasprintf'.
36976         * modules/c-xvasprintf: New file.
36977         * modules/c-xvasprintf-tests: New file.
36978         * lib/c-xasprintf.c: New file.
36979         * lib/c-xvasprintf.c: New file.
36980         * lib/c-xvasprintf.h: New file.
36981         * tests/test-c-xvasprintf.c: New file.
36982         * tests/test-c-xvasprintf.sh: New file.
36984 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36986         argp: better 'inline'
36987         Use extern-inline module to declare extern inline functions.
36988         This avoids some bogus warning diagnostics.  Problem discovered
36989         when modifying GNU tar to use the manywarnings module.
36990         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36991         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36992         Define based on extern-inline.
36993         * modules/argp (Depends-on): Add extern-inline.
36995 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36997         filemode, sys_stat: Handle MPX files a la AIX.
36998         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36999         * lib/sys_stat.in.h (S_ISMPX): New macro.
37000         * tests/test-sys_stat.c: Add tests for MPX files.
37002 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37004         x-to-1: honor $PERL
37005         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
37006         a chance to use his preferred version of Perl.  This is typically
37007         required by Darwin users whose default /usr/bin/perl does not have all
37008         the libraries required by help2man, and who need to use their MacPorts
37009         installation of Perl instead.
37011 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37013         gnu-web-doc-update: add all the new files, even in new directories
37014         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
37015         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
37016         Use it.
37017         (main): Don't use cvsutils to get the list of unknown files,
37018         just add all the existing files and directories.
37020 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37022         gnu-web-doc-update: improve --help
37023         * build-aux/gnu-web-doc-update: Move comments into --help.
37025 2012-12-07  Eric Wong  <normalperson@yhbt.net>
37027         mountlist: recognize more "dummy" file systems
37028         * lib/mountlist.c (ME_DUMMY_0):
37029         Add these dummy FS names to the list:
37030         - "debugfs" virtual filesystem for kernel debugging
37031         - "devpts" PTY slave filesystem
37032         - "devtmpfs" device filesystem on top of tmpfs/ramfs
37033         - "fusectl" control filesystem for FUSE
37034         - "mqueue" enumerates POSIX message queues
37035         - "rpc_pipefs" kernel <-> userspace bridge for NFS
37036         - "sysfs" is for exporting kernel objects
37037         - "devfs" device filesystem for Linux 2.4 and FreeBSD
37039 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37041         extern-inline: avoid incompatibility with Darwin Libc
37042         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
37043         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
37044         Problem reported by Akim Demaille in
37045         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
37047 2012-12-11  Simon Josefsson  <simon@josefsson.org>
37049         gnupload: Work with GnuPG using gpg-agent (for smartcards).
37050         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
37051         let it handle password prompting.
37053 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
37055         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
37056         * lib/canonicalize.c (canonicalize_filename_mode):
37057         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
37058         fetching the current directory.  Don't overrun the beginning of
37059         rpath if there's no slashes after the MS-Windows drive letter.
37061 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
37063         maint.mk: avoid extra forks
37064         * top/maint.mk (_cfg_mk): The GNU make manual documents that
37065         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
37066         So use that instead of "$(shell test -f FILE && echo FILE)".
37068 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37070         vasnprintf: fix ASCII_ONLY typo
37071         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37072         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37073         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37074         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
37075         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
37077 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37079         list, oset, xlist, xoset: fix extern inline issue with C99
37080         This was introduced by my recent changes for 'inline'.
37081         Problem reported for gettext by Daiki Ueno in
37082         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
37083         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
37084         (gl_list_nx_create, gl_list_size, gl_list_node_value)
37085         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
37086         (gl_list_previous_node, gl_list_get_at)
37087         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
37088         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
37089         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
37090         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
37091         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
37092         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
37093         (gl_list_iterator_free, gl_sortedlist_search)
37094         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
37095         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
37096         (gl_sortedlist_remove):
37097         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
37098         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
37099         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
37100         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
37101         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
37102         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
37103         (gl_list_add_at, gl_sortedlist_add):
37104         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
37105         Wrap these extern decls inside "#if 0", because they are implemented
37106         as inline functions, and extern inline is not what's wanted here.
37107         It would simplify these .h files to remove the extern decls entirely,
37108         although a downside would be less-clear separation between
37109         specification and implementation.
37111 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37113         sys_stat: no 'static inline'
37114         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
37115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
37117         extern-inline: no 'static inline'
37118         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
37119         Do not require AC_C_INLINE.
37120         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
37121         'static inline', for older compilers.
37123         snippet/warn-on-use: no 'static inline'
37124         * build-aux/snippet/warn-on-use.h:
37125         Remove unnecessary 'inline' in comment.
37127         rbtree-list, rbtreehash-list: no 'static inline'
37128         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
37129         * lib/gl_anytree_list2.h (node_at):
37130         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
37131         (gl_oset_first, add_nodes_to_buckets):
37132         Now static, not static inline.
37134         regex: no 'static inline'
37135         * lib/regex_internal.c (calc_state_hash):
37136         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
37137         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
37138         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
37139         Now static, not static inline.
37140         (inline) [__GNUC__ < 3 && _LIBC]:
37141         Remove macro; no longer needed.
37143         xvasprintf: no 'static inline'
37144         * lib/xvasprintf.c (xstrcat):
37145         Now static, not static inline.
37146         * m4/xvasprintf.m4 (gl_XVASPRINTF):
37147         Do not require AC_C_INLINE.
37149         parse-datetime, parse-duration: no 'static inline'
37150         * lib/parse-datetime.y (to_uchar):
37151         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
37152         (scale_n_add):
37153         Now static, not static inline.
37154         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
37155         * modules/parse-duration (configure.ac):
37156         Do not require AC_C_INLINE.
37158         getaddrinfo: no 'static inline'
37159         * lib/getaddrinfo.c (validate_family):
37160         Now static, not static inline.
37161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
37162         Do not require AC_C_INLINE.
37164         ftruncate, fts, lstat, openat, raise: no 'static inline'
37165         * lib/ftruncate.c (chsize_nothrow):
37166         * lib/fts.c (opendirat, diropen):
37167         * lib/lstat.c (orig_lstat):
37168         * lib/openat.c (orig_openat):
37169         * lib/raise.c (raise_nothrow):
37170         Now static, not static inline.
37171         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
37172         * m4/fts.m4 (gl_FUNC_FTS_CORE):
37173         * m4/lstat.m4 (gl_PREREQ_LSTAT):
37174         * m4/openat.m4 (gl_PREREQ_OPENAT):
37175         * m4/raise.m4 (gl_PREREQ_RAISE):
37176         Do not require AC_C_INLINE.
37178         fflush, stat: no 'static inline'
37179         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37180         (clear_ungetc_buffer, disable_seek_optimization)
37181         (restore_seek_optimization, update_fpos_cache):
37182         * lib/stat.c (orig_stat):
37183         Now static, not static inline.
37184         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
37185         (update_fpos_cache):
37186         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
37187         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
37188         * m4/stat.m4 (gl_PREREQ_STAT):
37189         Do not require AC_C_INLINE.
37191         error, filevercmp: no 'static inline'
37192         * lib/error.c (is_open, flush_stdout):
37193         * lib/filevercmp.c (order):
37194         Now static, not static inline.
37195         * m4/error.m4 (gl_PREREQ_ERROR):
37196         * modules/filevercmp (configure.ac):
37197         Do not require AC_C_INLINE.
37199         dup, execute, fatal-signal, etc.: no 'static inline'
37200         * lib/dup.c (dup_nothrow):
37201         * lib/execute.c (nonintr_close, nonintr_open):
37202         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
37203         * lib/fopen.c (orig_fopen):
37204         * lib/freadseek.c (freadptrinc):
37205         * lib/freopen.c (orig_freopen):
37206         * lib/fstat.c (orig_fstat, fstat_nothrow):
37207         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
37208         (get_rusage_as_via_iterator):
37209         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
37210         * lib/getdtablesize.c (_setmaxstdio_nothrow):
37211         * lib/isatty.c (_isatty_nothrow):
37212         * lib/open.c (orig_open):
37213         * lib/read.c (read_nothrow):
37214         * lib/sigprocmask.c (signal_nothrow):
37215         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
37216         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
37217         * lib/wait-process.c (unregister_slave_subprocess):
37218         * lib/write.c (write_nothrow):
37219         Now static, not static inline.
37220         * lib/spawn-pipe.c (nonintr_open): Define only if
37221         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
37222         * m4/dup.m4 (gl_PREREQ_DUP):
37223         * m4/execute.m4 (gl_EXECUTE):
37224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
37225         * m4/fopen.m4 (gl_PREREQ_FOPEN):
37226         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
37227         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
37228         * m4/fstat.m4 (gl_PREREQ_FSTAT):
37229         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
37230         * m4/isatty.m4 (gl_PREREQ_ISATTY):
37231         * m4/open.m4 (gl_PREREQ_OPEN):
37232         * m4/read.m4 (gl_PREREQ_READ):
37233         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
37234         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
37235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
37236         * m4/wait-process.m4 (gl_WAIT_PROCESS):
37237         * m4/write.m4 (gl_PREREQ_WRITE):
37238         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
37239         Do not require AC_C_INLINE.
37241         c-strtod, memcoll, readutmp: no 'static inline'
37242         * lib/c-strtod.c (c_locale):
37243         * lib/memcoll.c (strcoll_loop):
37244         * lib/readutmp.c (desirable_utmp_entry):
37245         Now static, not static inline.
37246         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
37247         * m4/memcoll.m4 (gl_MEMCOLL):
37248         * m4/readutmp.m4 (gl_READUTMP):
37249         Do not require AC_C_INLINE.
37251         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
37252         * lib/arctwo.c (to_uchar):
37253         * lib/md4.c (set_uint32):
37254         * lib/md5.c (set_uint32):
37255         * lib/sha1.c (set_uint32):
37256         * lib/sha256.c (set_uint32):
37257         * lib/sha512.c (set_uint64):
37258         Now static, not static inline.  This is a bit simpler, and doesn't
37259         affect performance with GCC and default optimization.
37260         * m4/arctwo.m4 (gl_ARCTWO):
37261         * m4/md4.m4 (gl_MD4):
37262         * m4/md5.m4 (gl_MD5):
37263         * m4/sha1.m4 (gl_SHA1):
37264         * m4/sha256.m4 (gl_SHA256):
37265         * m4/sha512.m4 (gl_SHA512):
37266         Do not require AC_C_INLINE.
37268         cond, lock, thread: better 'inline'
37269         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
37270         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
37271         New macros.  Use them instead of static inline, for header functions.
37272         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
37273         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37274         * lib/glthread/lock.c (gl_waitqueue_init)
37275         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37276         * lib/glthread/thread.c (get_current_thread_handle):
37277         Change 'static inline' to 'inline'.
37278         * lib/glthread/cond.h, lib/glthread/thread.h:
37279         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37280         * m4/cond.m4 (gl_COND):
37281         * m4/lock.m4 (gl_PREREQ_LOCK):
37282         * m4/thread.m4 (gl_THREAD):
37283         Do not require AC_C_INLINE.
37284         * modules/cond, modules/thread (Depends-on): Add extern-inline.
37286         chdir-long, cycle-check, savewd: better 'inline'
37287         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
37288         (find_non_slash):
37289         * lib/cycle-check.c (is_zero_or_power_of_two):
37290         * lib/savewd.c (savewd_delegating):
37291         Change 'static inline' to 'inline'.
37292         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
37293         Replace all remaining uses of 'static inline' with it.
37294         * lib/savewd.h:
37295         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37296         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
37297         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37298         * m4/savewd.m4 (gl_SAVEWD):
37299         Do not require AC_C_INLINE.
37300         * modules/savewd (Depends-on): Add extern-inline.
37302         base32, base64: no need for 'inline'
37303         * lib/base32.c (to_uchar, get_8, decode_8):
37304         * lib/base64.c (to_uchar, get_4, decode_4):
37305         Change 'static inline' to 'inline'.
37306         * m4/base32.m4 (gl_PREREQ_BASE32):
37307         * m4/base64.m4 (gl_PREREQ_BASE64):
37308         Do not require AC_C_INLINE.
37310         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
37311         * lib/gl_array_oset.c (gl_array_nx_add_at):
37312         (gl_array_remove_at):
37313         * lib/gl_linkedhash_list.c (hash_resize_after_add)
37314         (add_to_bucket, remove_from_bucket):
37315         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
37316         Change 'static inline' to 'static', as it's simpler to omit
37317         'inline' unless there's a significant performance advantage.
37319         list, oset, xlist, xoset, xsublist: simplify via extern inline
37320         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
37321         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
37322         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
37323         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
37324         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
37325         New macro.  Replace all uses of 'static inline' with it.
37326         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37327         instead of as macros FOO that are defined to static inline
37328         functions FOO_inline.
37329         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37330         * lib/gl_xsublist.c:
37331         Reimplement from scratch, by defining the corresponding *_INLINE
37332         macro and including the corresponding .h file.  This is simpler.
37333         * modules/list, modules/oset, modules/xlist, modules/xoset:
37334         (Files): Remove m4/gl_list.m4.
37335         (configure.ac): Remove gl_LIST.
37336         * m4/gl_list.m4: Remove.
37337         * modules/list, modules/oset, modules/xlist, modules/xoset:
37338         * modules/xsublist:
37339         (Depends-on): Depend on extern-inline, not inline.
37341         xalloc: better 'inline'
37342         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37343         New macro.  Replace all uses of 'static inline' with it.
37344         (static_inline): Remove.
37345         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37346         Let 'extern inline' do the work automatically, instead of doing
37347         it by hand.
37348         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37349         Remove.  All uses removed.
37350         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37352         gethrxtime: better 'inline'
37353         * lib/xtime.c: New file.
37354         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37355         * lib/xtime.h (XTIME_INCLUDE):
37356         New macros.  Replace all uses of 'static inline' with them.
37357         * lib/gethrxtime.c (gethrxtime): Define only if
37358         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37359         this source file is now always compiled, because of the extern inline.
37360         * lib/gethrxtime.h, lib/xtime.h:
37361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37362         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37363         if gethrtime works, as they're not needed in that case.
37364         (gl_XTIME): Do not require AC_C_INLINE.
37365         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37366         compiled now.  Move the check into gl_GETHRXTIME.
37367         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37368         (Depends-on): Add extern-inline.
37369         (configure.ac): gethrxtime is always compiled now.
37370         (lib_SOURCES): Add gethrxtime.c.
37372         wctype-h: better 'inline'
37373         * lib/wctype-h.c: New file.
37374         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37375         New macro.  Replace all uses of 'static inline' with it.
37376         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37377         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37378         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37379         (Depends-on): Add extern-inline.
37381         unistd: better 'inline'
37382         * lib/unistd.c: New file.
37383         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37384         New macro.  Replace all uses of 'static inline' with it.
37385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37386         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37387         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37388         (Depends-on): Add extern-inline.
37390         sys_socket: better 'inline'
37391         * lib/sys_socket.c: New file.
37392         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37393         New macro.  Replace all uses of 'static inline' with it.
37394         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37395         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37396         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37397         (Depends-on): Add extern-inline.
37399         stdio: better 'inline'
37400         * lib/stdio.c: New file.
37401         * lib/stdio.in.h (_GL_STDIO_INLINE):
37402         New macro.  Replace all uses of 'static inline' with it.
37403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37404         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37405         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37406         (Depends-on): Add extern-inline.
37408         sigaction: better 'inline'
37409         * lib/sig-handler.c: New file.
37410         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37411         New macro.  Replace all uses of 'static inline' with it.
37412         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37413         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37414         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37415         (Depends-on): Add extern-inline.
37417         selinux-h: better 'inline'
37418         * lib/se-context.c, lib/se-selinux.c: New files.
37419         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37420         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37421         New macro.  Replace all uses of 'static inline' with it.
37422         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37423         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37424         New macro.  Replace all uses of 'static inline' with it.
37425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37426         * modules/selinux-h (Files, lib_SOURCES):
37427         Add lib/se-context.c, lib/se-selinux.c.
37428         (Depends-on): Add extern-inline.
37429         (configure.ac): Do not require AC_C_INLINE.
37431         pthread: better 'inline'
37432         * lib/pthread.c: New file.
37433         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37434         New macro.  Replace all uses of 'static inline' with it.
37435         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37436         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37437         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37438         * modules/pthread (Files): Add lib/pthread.c.
37439         (Depends-on): Add extern-inline.
37441         math: better 'inline'
37442         * lib/math.c: New file.
37443         * lib/math.in.h (_GL_MATH_INLINE):
37444         New macro.  Replace all uses of 'static inline' with it.
37445         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37446         * m4/math_h.m4 (gl_MATH_H):
37447         Do not require AC_C_INLINE.
37448         * modules/math (Files, lib_SOURCES):
37449         Add lib/math.c.
37450         (Depends-on): Add extern-inline.
37452         count-one-bits: better 'inline'
37453         * lib/count-one-bits.c: New file.
37454         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37455         New macro.  Replace all uses of 'static inline' with it.
37456         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37457         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37458         Do not require AC_C_INLINE.
37459         * modules/count-one-bits (Files, lib_SOURCES):
37460         Add lib/count-one-bits.c.
37461         (Depends-on): Add extern-inline.
37463         count-leading-zeros: better 'inline'
37464         * lib/count-leading-zeros.c: New file.
37465         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37466         New macro.  Replace all uses of 'static inline' with it.
37467         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37468         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37469         Do not require AC_C_INLINE.
37470         * modules/count-leading-zeros (Files, lib_SOURCES):
37471         Add lib/count-leading-zeros.c.
37472         (Depends-on): Add extern-inline.
37474         bitrotate: better 'inline'
37475         * lib/bitrotate.c: New file.
37476         * lib/bitrotate.h (BITROTATE_INLINE):
37477         New macros.
37478         Replace all uses of 'static inline' with them.
37479         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37480         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37481         (Depends-on): Add extern-inline.
37482         (configure.ac): Do not require AC_C_INLINE.
37484 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37486         maint.mk: avoid gratuitous failure
37487         Reported by Stefano Lattarini in
37488         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37489         * top/maint.mk (public-submodule-commit): Quote more safely.
37491 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37493         canonicalize, canonicalize-lgpl: support MS-Windows file names
37494         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37495         for test cases, which it'd be nice to add at some point.
37496         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37497         * lib/canonicalize.c (canonicalize_filename_mode):
37498         * lib/canonicalize-lgpl.c (__realpath):
37499         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37500         slash is at the beginning of the file name.  Use ISSLASH, instead
37501         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37502         the first character with '/'.  Test for
37503         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37504         with a drive letter.
37505         * lib/canonicalize.c (SLASHES): New macro.
37506         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37508 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37510         fts: introduce FTS_VERBATIM
37511         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37512         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37513         * lib/fts.c (fts_open): Honor it.
37515 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37517         getlogin-tests: allow errno == ENXIO
37518         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37519         with errno == ENXIO (No controlling tty).
37520         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37521         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37522         with errno == ENOENT.  This was reported to happen in various
37523         situations on GNU/Linux.
37525 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37527         getlogin-tests: allow errno == ENOENT
37528         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37529         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37530         when running a test in an Emacs shell buffer.
37532 2012-11-08  Jim Meyering  <jim@meyering.net>
37534         tests/nap.h: avoid warning about unused variable
37535         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37537         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37538         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37539         white space before each of the special-cased file names, to avoid
37540         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37541         in http://bugs.gnu.org/12830.
37543 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37545         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37546         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37547         fails with errno == EBADF when fd is opened with O_PATH.
37548         Reported by Jim Meyering in
37549         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37550         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37551         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37553 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37555         test-utimens: speed up by taking shorter naps
37556         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37557         New functions.
37558         (nap): Use them, to do a better job of guessing the delay.
37559         On Fedora 17 with ext4 atop md atop hard disks, this made
37560         test-utimens run 10x faster, because the test napped for
37561         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37562         <http://bugs.gnu.org/12820#11>.
37564 2012-11-07  Jim Meyering  <jim@meyering.net>
37566         mountlist.c: fix a compilation failure
37567         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37568         I introduced while transforming commit v0.0-7683-g613bcb6
37570 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37572         errno: port to LynxOS 178 2.2.2
37573         Problem reported by Joel Brobecker in
37574         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37575         * doc/posix-headers/errno.texi (errno.h): Document this.
37576         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37577         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37578         Supply a string for EILSEQ.
37579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37581 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37583         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37584         Linux kernel 2.6.39 introduced O_PATH (see
37585         <http://lwn.net/Articles/433854/>) and this is a better fallback
37586         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37587         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37588         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37589         * lib/fcntl.in.h (O_ACCMODE):
37590         * tests/test-fcntl-h.c (main):
37591         Do not reject O_ACCMODE merely because it has more than the
37592         minimal number of bits, as POSIX allows extensions here.
37594 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37596         mountlist: do not classify a bind-mounted dir entry as "dummy"
37597         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37598         the "none"-testing clause.
37599         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37600         exception for bind-mounted directories.
37602 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37604         quote: provide a means to escape strings with nul characters
37605         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37606         (quote, quote_n): Rename formal arguments for consistency with
37607         quotearg.
37609 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37611         test-raise: don't assume 199 is an invalid signal
37612         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37614         sh-quote-tests: port to Solaris 9
37615         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37616         Problem reported by Dagobert Michelsen in
37617         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37619 2012-10-28  Jim Meyering  <jim@meyering.net>
37621         maint.mk: rename a new configurable variable
37622         * top/maint.mk (_gl_translatable_string_re): Rename from
37623         translation-markers: _gl_ prefix to insulate from user Makefile code,
37624         and the _re suffix to inform that it's a regular expression.
37626 2012-10-26  Eric Blake  <eblake@redhat.com>
37628         maint.mk: let packages tweak sc_po_check pattern
37629         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37630         finding files with other translation markers.
37632 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37634         euidaccess: speed up 'configure' on GNU hosts
37635         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37636         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37637         it's needed only in this case.  Use AC_CHECK_DECLS, not
37638         AC_CHECK_DECLS_ONCE.
37639         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37640         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37642         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37644 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37646         fchmodat, fchownat, fstatat: port to non-inlining compilers
37647         Problem reported for FreeBSD 9 by Jim Meyering in
37648         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37649         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37650         New files, which define FCHMODAT_INLINE etc.
37651         * lib/fchmodat.c (FCHMODAT_INLINE):
37652         * lib/fchownat.c (FCHOWNAT_INLINE):
37653         * lib/fstatat.c (FSTATAT_INLINE):
37654         Remove, as chmodat.c etc. now do this.
37655         * modules/fchmodat (Files): Add lib/chmodat.c.
37656         * modules/fchownat (Files): Add lib/chownat.c.
37657         * modules/fstatat (Files): Add lib/statat.c.
37659 2012-10-15  Jim Meyering  <jim@meyering.net>
37661         fchmodat.c, fchownat.c: compile-impeding typos
37662         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37663         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37664         Introduced in commit v0.0-7636-gd202279.
37666 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37668         fcntl-h: support GNU flags like O_IGNORE_CTTY
37669         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37670         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37671         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37672         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37673         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37674         Define to 0 if not already defined.
37675         * tests/test-fcntl-h.c: Test these new flags.
37677 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37679         faccessat, etc.: support AT_FDCWD-only use
37680         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37681         this function only if its first argument is AT_FDCWD.
37682         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37683         values other than AT_FDCWD, so it doesn't want all the openat
37684         machinery with fchdir etc.
37685         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37686         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37687         * modules/unlinkat (Files):
37688         Remove lib/openat-priv.h, as at-internal supplies this file.
37689         Removing this file here allows us to support programs like Emacs
37690         that avoid at-internal.
37692         faccessat: speed up 'configure' on mainstream hosts
37693         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37694         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37695         since it's only on unusual platforms that we need to check for
37696         'access', and it's better not to slow 'configure' down on all
37697         platforms.
37699         faccessat: port to Solaris 10
37700         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37701         Needed on Solaris 10, which doesn't have AT_EACCESS,
37702         so we need the Gnulib fcntl.h, which defines it.
37704 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37705         canonicalize: fix C89 compilation
37706         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37707         declarations so C89 is supported.  Also remove the comment
37708         referencing memorty allocation as the suggested feature could
37709         not be implemented as suggested.
37710         Reported by Michael Goffioul.
37712 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37714         group-member: omit unnecessary dependencies
37715         This is for Emacs, which has its own allocator and where we
37716         don't want to use xalloc.
37717         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37718         since we no longer use xmalloc.  Do not include stdbool.h, since
37719         the changes below happen to remove the only use of bool.
37720         (GROUPBUF_SIZE): New constant.
37721         (struct group_info): Remove n_groups member.  Add groupbuf member.
37722         This lets us get the groups without using malloc, usually.
37723         (free_group_info, get_group_info): Adjust to this.
37724         (get_group_info): Return the number of groups found, or -1 on error.
37725         Use plain malloc not xmalloc, and treat its failure as if there
37726         are no groups, as the user already loses in case of error.
37727         (group_member): Simplify, based on changes to get_group_info.
37728         * modules/group-member (Depends-on): Remove dependencies on
37729         xalloc and stdbool.  Add dependency on xalloc-oversized.
37731 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37733         gethrxtime: port to C++
37734         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37736 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37738         ptsname: fix macro-name typo
37739         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37741 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37743         inttostr: Relax license.
37744         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37746 2012-10-03  Eric Blake  <eblake@redhat.com>
37748         ptsname_r: support ptys returned by FreeBSD posix_openpt
37749         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37750         lives in /dev/pts/.
37752 2012-10-02  Eric Blake  <eblake@redhat.com>
37754         pselect: reject invalid file descriptors
37755         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37756         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37757         * modules/pselect (Depends-on): Add dup2.
37758         * doc/posix-functions/pselect.texi (pselect): Document this.
37760         select: reject invalid file descriptors
37761         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37762         * lib/select.c (rpl_select) [!win32]: Work around it.
37763         * modules/select (Depends-on): Add dup2.
37764         * doc/posix-functions/select.texi (select): Document this.
37766         select: enhance test
37767         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37768         New functions.
37769         (test_function): Enhance test.
37770         (do_select_bad_fd): Avoid any stale errno values.
37772         ptsname: reject invalid file descriptors
37773         http://www.austingroupbugs.net/view.php?id=503
37774         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37776         * modules/stdlib (Makefile.am): Replace witness.
37777         * lib/stdlib.in.h (ptsname): Allow for replacement.
37778         * modules/ptsname (configure.ac): Trigger replacement.
37779         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37781 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37783         hash-pjw-bare: new module
37784         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37785         * lib/hash-pjw-bare.h: Likewise.
37786         * modules/hash-pjw-bare: New file.
37787         * MODULES.html.sh (Misc): Add it.
37789 2012-10-02  Eric Blake  <eblake@redhat.com>
37791         manywarnings: cater to more gcc infelicities
37792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37793         -Wuninitialized without -O.
37795 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37797         select, poll tests: Make setsockopt invocation effective.
37798         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37799         the bind() call.
37800         * tests/test-select.h (open_server_socket): Likewise.
37802 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37804         sockets, sys_stat: restore AC_C_INLINE
37805         This undoes the 2012-09-22 patch.
37806         * m4/sockets.m4 (gl_SOCKETS):
37807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37808         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37809         and does not support plain 'inline'.  Reported by Bruno Haible in
37810         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37812 2012-09-30  Bruno Haible  <bruno@clisp.org>
37814         localeconv tests: Avoid test failure on OpenIndiana.
37815         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37816         skip the 'grouping' and 'mon_grouping' tests.
37817         Reported by Jim Meyering.
37819 2012-09-30  Bruno Haible  <bruno@clisp.org>
37821         havelib: Follow libtool developments.
37822         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37823         Suggested by Simon Josefsson.
37825 2012-09-29  Jim Meyering  <meyering@redhat.com>
37827         fstatat.c: fix a compile-impeding typo
37828         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37829         Introduced in commit v0.0-7636-gd202279.
37830         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37832 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37834         extern-inline: provide a -Wundef safe config.h
37835         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37836         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37837         to produce a -Wundef warning free config.h.
37839 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37841         hash-pjw: relax license to LGPLv2+
37842         * modules/hash-pjw (License): Relax, with consent of author.
37844 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37846         maint.mk: fix strict vs. lazy variable issues with RELEASE
37847         * top/maint.mk (_equal): New function.
37848         (member_check): Strip the result to avoid spurious spaces.
37849         (url_dir_list): Do not use ifeq, which is strict, as it will
37850         require RELEASE_TYPE to be defined.
37851         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37852         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37853         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37854         (announcement_Cc_beta,announcement_mail_headers_beta)
37855         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37856         (release): Do not depend on $(release-type), as it forces its
37857         evaluation.  Bounce to it.
37859 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37861         maint.mk: formatting changes
37862         * top/maint.mk: Indent bodies of if's.
37864 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37866         maint.mk: factor the validation of RELEASE_TYPE
37867         With help from Jim Meyering.
37868         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37869         * top/maint.mk (_empty, _sp): Move their definition earlier.
37870         (member-check, release-type): New.
37871         Use the latter instead of $(RELEASE_TYPE).
37872         Remove now useless local checks.
37874 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37876         maint.mk: provide "make upload" to ease uploading
37877         See
37878         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37879         Do not depend simply on the current $(VERSION), as there may have been
37880         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37881         as "make release-commit" already does.
37883         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37884         "make TYPE".
37886         * top/maint.mk (upload_command, upload, release): New.
37887         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37888         (VERSION): first word of $(RELEASE) is always right.
37889         (emit_upload_commands): Adjust.
37890         * top/README-release: Update.
37892 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37894         maint.mk: silent rules
37895         With help from Stefano Lattarini.
37896         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37897         (announcement): Use $(AM_V_at).
37899 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37901         localename: port gl_locale_name_thread_unsafe to FreeBSD
37902         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37903         and use the simpler FreeBSD implementation on Mac OS X as well.
37904         Original idea suggested by Ed Maste in
37905         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37907 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37909         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37910         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37911         * lib/mbuiter.c, lib/xsize.c: New files.
37912         * lib/binary-io.h (BINARY_IO_INLINE):
37913         * lib/eealloc.h (EEALLOC_INLINE):
37914         * lib/mbfile.h (MBFILE_INLINE):
37915         * lib/mbiter.h (MBITER_INLINE):
37916         * lib/mbuiter.h (MBUITER_INLINE):
37917         * lib/xsize.h (XSIZE_INLINE):
37918         New macros.
37919         Replace all uses of 'static inline' with them.
37920         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37921         * m4/eealloc.m4 (gl_EEALLOC):
37922         * m4/mbfile.m4 (gl_MBFILE):
37923         * m4/mbiter.m4 (gl_MBITER):
37924         * m4/xsize.m4 (gl_XSIZE):
37925         Do not require AC_C_INLINE.
37926         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37927         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37928         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37929         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37930         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37931         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37932         * modules/binary-io, modules/eealloc, modules/mbfile:
37933         * modules/mbiter, modules/mbuiter:
37934         (Depends-on): Add extern-inline.
37936         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37937         * lib/pipe-filter-aux.c: New file.
37938         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37939         Replace all uses of 'static inline' with it.
37940         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37941         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37942         (filter_retcode): No real need for inline here.
37943         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37944         (Files): Add lib/pipe-filter-aux.c.
37945         (Depends-on): Add extern-inline.
37946         (configure.ac): Do not require AC_C_INLINE.
37947         (lib_SOURCES): Add pipe-filter-aux.c.
37949         fdutimensat: omit unnecessary AC_C_INLINE
37950         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37952         fchmodat, fchownat, fstatat: use extern-inline
37953         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37954         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37955         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37956         New macros.
37957         * lib/openat.h:
37958         Replace all uses of 'static inline' with them.
37959         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37960         * modules/fchmodat, modules/fchownat, modules/fstatat:
37961         * modules/openat-h:
37962         (Depends-on):
37963         Add extern-inline.
37964         (configure.ac): Remove AC_C_INLINE.
37966         acl, mbchar, priv-set: use extern-inline
37967         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37968         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37969         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37970         New macros.
37971         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37972         Replace all uses of 'static inline' with it.
37973         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37974         * m4/acl.m4 (gl_FUNC_ACL):
37975         * m4/mbchar.m4 (gl_MBCHAR):
37976         * m4/priv-set.m4 (gl_PRIV_SET):
37977         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37978         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37979         Add extern-inline.
37981         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37982         * m4/sockets.m4 (gl_SOCKETS):
37983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37984         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37985         environments where it's already guaranteed to work, so we needn't
37986         check for it at 'configure'-time.
37988         tls-tests: omit unnecessary 'inline'
37989         * tests/test-tls.c (perhaps_yield): No longer inline.
37990         Simplicity and portability trump efficiency in test cases.
37992         utimens-tests: avoid unnecessary 'inline'
37993         * modules/fdutimensat-tests (configure.ac):
37994         * modules/futimens-tests (configure.ac):
37995         * modules/utimens-tests (configure.ac):
37996         * modules/utimensat-tests (configure.ac):
37997         Remove AC_C_INLINE.
37998         * tests/test-utimens-common.h (ctime_compare):
37999         No longer inline.  Simplicity and portability trump efficiency here.
38001         misc: don't limit commentary to inline functions
38002         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
38003         * lib/xalloc-oversized.h, lib/xsize.h:
38004         Contrast macros to functions in general, not just to inline functions,
38005         when the commentary does not apply only to inline functions.
38007 2012-09-20  Jim Meyering  <meyering@redhat.com>
38009         non-recursive-gnulib-prefix-hack: new module
38010         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
38011         the file that originated in Bison.
38012         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
38013         largely copied from a snippet that resided in bison's configure.ac.
38014         * modules/non-recursive-gnulib-prefix-hack: New file.
38015         * MODULES.html.sh (Support for maintaining and releasing projects):
38016         Add it.
38018 2012-09-18  Jim Meyering  <meyering@redhat.com>
38020         maint.mk: generalize _gl_tight_scope for non-recursive make
38021         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
38022         that *.h would describe additional .h files in the directory
38023         specified by $(_gl_TS_dir).  I.e., add this...
38024         (_gl_TS_other_headers): New variable.
38026         maint.mk: exempt trailing blanks found in "binary" files
38027         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
38028         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
38029         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38031 2012-09-17  Jim Meyering  <meyering@redhat.com>
38033         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
38034         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
38035         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
38036         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38038 2012-09-17  Jim Meyering  <meyering@redhat.com>
38040         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
38041         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
38042         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
38043         It is not in the same category as "exit (0)" or "exit (1)", and
38044         besides, I know of no symbolic name for that 77.  Reported by
38045         Richard W.M. Jones in
38046         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38048 2012-09-17  Jim Meyering  <meyering@redhat.com>
38050         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
38051         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
38052         all uses of #define, not just those that start in column 1.
38053         Richard W.M. Jones reported a false positive in
38054         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38056 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38058         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
38059         * lib/localcharset.c (locale_charset) [DARWIN7]:
38060         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
38061         as these two values are incompatible.  Problem reported by Max Horn.
38062         For more discussion, please see
38063         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
38065         doc: document sticky-EOF issue
38066         * doc/posix-functions/fgetc.texi (fgetc):
38067         * doc/posix-functions/fgets.texi (fgets):
38068         * doc/posix-functions/fread.texi (fread):
38069         * doc/posix-functions/fscanf.texi (fscanf):
38070         * doc/posix-functions/getc.texi (getc):
38071         * doc/posix-functions/getchar.texi (getchar):
38072         * doc/posix-functions/scanf.texi (scanf):
38073         Mention that glibc and default Solaris do not conform to
38074         C99 and POSIX-2001 or later, with respect to how getchar
38075         etc. behave when feof reports nonzero.
38077 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38079         poll: fix poll(0, NULL, msec)
38080         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
38081         but nfd is 0.  In that case poll should behave like select.
38083 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38084             Paolo Bonzini  <bonzini@gnu.org>
38086         poll: fix for systems that can't recv() on a non-socket
38087         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
38088         is readable.  In this case POLLHUP will not be supported.
38089         * doc/posix-functions/poll.texi: Document this.
38091 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
38093         poll/select: document portability problems not fixed by Gnulib.
38094         * doc/posix-functions/poll.texi: poll does not work well on
38095         pipes under Windows.  It has the same limitations as select on
38096         BeOS.
38097         * doc/posix-functions/select.texi: select does not work well
38098         on pipes under Windows.
38100 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
38102         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
38103         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
38104         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
38105         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
38107 2012-09-06  Eric Blake  <eblake@redhat.com>
38109         net_if: give more details about the bug being fixed
38110         * doc/posix-headers/net_if.texi: Add clarification.
38112 2012-09-05  Eric Blake  <eblake@redhat.com>
38114         net_if: new module
38115         * modules/net_if: New module, borrowing ideas from netinet_in.
38116         * m4/net_if_h.m4: New file.
38117         * lib/net_if.in.h: Likewise.
38118         * doc/posix-headers/net_if.texi (net/if.h): Document it.
38119         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38120         * tests/test-net_if.c: Make function checks conditional.
38121         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
38123 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
38125         readutmp: fix non-portable UT_PID use
38126         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
38127         Use `UT_PID (u) > 0' as absolute condition.
38129 2012-09-04  Jim Meyering  <meyering@redhat.com>
38131         fts: reduce two or more trailing spaces to just one, usually
38132         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
38133         or more slashes, trim all but the final one.  But if a name consists
38134         solely of two slashes, don't modify it.  If it consists solely of
38135         three or more slashes, strip all but one.
38137         This is part of the solution to a minor problem with rm:
38138         it would print a bogus ELOOP diagnostic when failing to remove
38139         the slash-decorated name of a symlink-to-directory:
38141             $ mkdir d && ln -s d s && env rm -r s/
38142             rm: cannot remove 's': Too many levels of symbolic links
38144         With the change below and a trivial don't-trim-trailing-slashes
38145         adjustment to remove.c, it does this:
38147             $ env rm -r s/
38148             rm: cannot remove 's/': Not a directory
38150         Improved by: Eric Blake
38152         fts: when there is no risk of overlap, use memcpy, not memmove
38153         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
38155 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
38157         stdbool: be more compatible with mixed C/C++ compiles
38158         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
38159         Define to bool, true, false, respectively, as GCC's builtin
38160         stdbool.h does.  Problem reported by Michael Goffioul in
38161         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
38163 2012-08-28  Jim Meyering  <meyering@redhat.com>
38165         revert last change: it was not needed
38166         * tests/test-vc-list-files-git.sh: There's already a test for
38167         a working git, just below.
38169 2012-08-28  Jim Meyering  <meyering@redhat.com>
38171         tests: test-vc-list-files-git.sh: skip if git is not available
38172         * tests/test-vc-list-files-git.sh: Skip this test when git is
38173         not available.
38175 2012-08-26  Bruno Haible  <bruno@clisp.org>
38177         gnulib-tool: Remove no-op option --no-changelog.
38178         * gnulib-tool (func_usage): Don't mention --no-changelog.
38179         (do_changelog): Remove variable.
38180         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38182 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38184         doc: remove fdl-1.2.texi
38185         It is no longer used or maintained, and its use of @acronym
38186         is problematic.  See the thread containing
38187         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
38188         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
38189         * doc/old-licenses/fdl-1.2.texi: Remove.
38191         execinfo: port to FreeBSD
38192         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
38193         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
38194         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
38195         * modules/execinfo (Link): Add $(LIB_EXECINFO).
38197 2012-08-23  Jim Meyering  <meyering@redhat.com>
38199         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
38200         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
38201         to placate gcc's -Wold-style-declaration.
38203 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38205         doc: do not use @acronym
38206         * doc/inet_ntoa.texi (inet_ntoa):
38207         * doc/parse-datetime.texi (Seconds since the Epoch)
38208         (Specifying time zone rules):
38209         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
38210         Don't use @acronym.  Problem reported by John Darlington in
38211         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
38213 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38215         stdnoreturn: port to newer GCCs
38216         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
38217         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
38218         Problem reported by Jim Meyering in
38219         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
38220         Also, rename the 'test' function to a void a clash with the
38221         already-supplied 'main' function; this fixes a bug that incorrectly
38222         rejected GCC 4.7.1's <stdnoreturn.h>.
38223         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
38224         Document GCC problem.
38226 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
38228         pipe-filter: fix comment typo
38229         * lib/pipe-filter.h: Mention correct function.
38231 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38233         execinfo: new module
38234         This is for Emacs.  Currently, it provides a no-effect stub
38235         on all platforms where it does not already work.
38236         It already works on glibc-based systems, and on Solaris 11.
38237         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
38238         New files.
38239         * doc/glibc-headers/execinfo.texi (execinfo.h):
38240         * MODULES.html.sh (Misc): Document it.
38242 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38244         extern-inline: support old GCC 'inline'
38245         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
38246         if available.  This applies to GCC versions 2.7 through 4.2, or
38247         when newer GCC is using -fgnu89-inline.  The goal is to address
38248         some of the performance issues mentioned by Bruno Haible in
38249         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
38251 2012-08-20  Eric Blake  <eblake@redhat.com>
38253         maint.mk: avoid redundant file name in message
38254         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38255         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
38256         (sc_makefile_path_separator_check): Remove bogus $(ME).
38258 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
38260         timer-time: fix link order when static linking on glibc
38261         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38262         _after_ -lrt so that it's significant.
38264 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38266         timespec: omit unnecessary AC_C_INLINE
38267         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
38269         stat-time: omit unnecessary AC_C_INLINE
38270         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38271         Do not require AC_C_INLINE.
38273         ignore-value: omit unnecessary AC_C_INLINE
38274         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
38276         sys_select: avoid 'static inline'
38277         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
38279         mktime: avoid 'static inline'
38280         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
38281         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
38283 2012-08-19  Bruno Haible  <bruno@clisp.org>
38285         gnulib-tool: Improve coding style.
38286         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
38287         func_emit_lib_Makefile_am.
38288         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38290 2012-08-19  Bruno Haible  <bruno@clisp.org>
38292         gnulib-tool: Fix indentation.
38293         * gnulib-tool (func_import): Fix indentation.
38295 2012-08-19  Bruno Haible  <bruno@clisp.org>
38297         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
38298         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
38299         on the list of removed files.
38301 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38303         test-parse-datetime: avoid glibc leap-second glitch
38304         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
38305         with the 2012 rules.  Problem reported by Bruce Dubbs in
38306         <http://bugs.gnu.org/12206>.
38308 2012-08-14  Bruno Haible  <bruno@clisp.org>
38310         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
38311         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
38312         from argument.
38313         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38315 2012-08-14  Eric Blake  <eblake@redhat.com>
38317         ldexp: relax license
38318         * modules/ldexp (License): Trivial relax, since the module only
38319         provides a permissively licensed m4 file.
38321 2012-08-13  Bruno Haible  <bruno@clisp.org>
38323         gnulib-tool: Fix persistence of --witness-c-macro option.
38324         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
38325         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38327 2012-08-11  Eric Blake  <eblake@redhat.com>
38329         count-leading-zeros: use a lookup table on non-gcc compilers
38330         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38331         alternate implementation, suggested by Jim Meyering.
38333 2012-08-10  Eric Blake  <eblake@redhat.com>
38335         count-leading-zeros: new module
38336         * modules/count-leading-zeros: New module.
38337         * m4/count-leading-zeros.m4: New file.
38338         * lib/count-leading-zeros.h: Likewise.
38339         * modules/count-leading-zeros-tests: New test.
38340         * tests/test-count-leading-zeros.c: New file.
38341         * MODULES.html.sh (Integer arithmetic functions): Document it.
38343 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38344             Jim Meyering  <meyering@redhat.com>
38346         maintainer-makefile: Fix syntax error with dash.
38347         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38348         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38350 2012-08-05  Jim Meyering  <meyering@redhat.com>
38352         extern-inline: also ignore -Wmissing-declarations
38353         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38354         required with gcc-4.8.0-to-be.
38356         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38357         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38358         for /error ?([^,]*)/.  This avoids false-positives for strings like
38359         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38361 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38363         gnumakefile: better interaction with Automake-NG
38364         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38365         Automake-NG always contain a definition of VPATH, even in non-VPATH
38366         builds (its value being simply '.' in that case).  So, in the
38367         'clean-GNUmakefile' rule, to determine whether running under a
38368         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38369         '$(VPATH)' expands to the empty string.
38371 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38373         base64: Use extern C scope in header file, for C++.
38374         * lib/base64.h: Add C++ namespace protection.
38376 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38378         stat-time, timespec, u64: support naive out-of-dir builds
38379         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38380         Use '#include "foo.h"', not '#include <foo.h>', when including
38381         one's own interface.  This works better when configuring with
38382         out-of-directory builds, since packages need not add an
38383         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38385 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38387         utimens: use extern-inline
38388         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38389         * lib/utimens.h: Add copyright notice, since this is now large enough
38390         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38391         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38392         * modules/utimens (Depends-on): Add extern-inline.
38394         u64: use extern-inline
38395         * lib/u64.c: New file.
38396         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38397         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38398         * modules/u64 (Files): Add lib/u64.c.
38399         (Depends-on): Add extern-inline.
38400         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38401         does that now.
38402         (lib_SOURCES): Add u64.c.
38404         timespec: use extern-inline
38405         * lib/timespec.c: New file.
38406         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38407         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38408         * modules/timespec (Files): Add lib/timespec.c.
38409         (Depends-on): Add extern-inline.
38410         (lib_SOURCES): Add timespec.c.
38412         stat-time: use extern-inline
38413         * lib/stat-time.c: New file.
38414         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38415         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38416         * modules/stat-time (Files): Add lib/stat-time.c.
38417         (Depends-on): Add extern-inline.
38418         (lib_SOURCES): Add stat-time.c.
38420         extern-inline: new module
38421         * modules/extern-inline, m4/extern-inline.m4: New files.
38422         This is for better support of 'extern inline' a la ISO C99,
38423         with a portable alternative on compilers that do not support
38424         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38425         of the Emacs executable, when compiled with debugging disabled,
38426         which is a typical way that Emacs is built while developing.
38428 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38430         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38431         * build-aux/do-release-commit-and-tag: Move variable definitions
38432         together.
38433         ($branch): Instead of defaulting to "master", default to the current
38434         branch (as gnu-web-doc-update does).
38435         (help): Display the current values of the option arguments.
38436         * top/maint.mk (release-commit): New.
38437         * top/README-release: Simplify the corresponding step.
38439 2012-07-30  Eric Blake  <eblake@redhat.com>
38441         passfd: fix comment on recvfd
38442         * lib/passfd.c (recvfd): Fix comment.
38443         Reported by Jann Horn <jannhorn@googlemail.com>.
38445 2012-07-30  Jim Meyering  <meyering@redhat.com>
38447         maint.mk: avoid a sub-shell
38448         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38450 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38452         maint.mk: use silent-rules support from Automake
38453         * top/maint.mk (news-check, vc-diff-check, announcement)
38454         (no-submodule-changes, alpha beta stable, release-prep)
38455         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38457 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38459         maint.mk: provide a web-manual-update target
38460         * top/maint.mk: here.
38461         * top/README-release: Use it to simplify the web manual update step.
38463 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38465         README-release: shorten the circuit to post a news
38466         * top/README-release: Point directly to the news submission form.
38468 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38470         gnu-web-doc-update: fix --help
38471         * build-aux/gnu-web-doc-update: The information "top level" was written
38472         twice.
38474 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38476         maint.mk: absolute VPATH issue
38477         * top/maint.mk (release-prep): Help Git find .git/.
38478         From Jim Meyering.
38480 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38482         gitlog-to-changelog: fix previous change
38483         * build-aux/gitlog-to-changelog: Fix condition.
38484         Add missing ";".
38486 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38488         gitlog-to-changelog: don't expect .git to be in $srcdir
38489         Reported by Bruno Haible.
38490         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38491         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38492         Use it.
38494 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38496         maint.mk: absolute VPATH build fix
38497         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38498         $(srcdir) is not a parent of $(builddir).
38500 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38502         clean-temp: Fix memory leak.
38503         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38504         'files' members of tmpdir.
38506 2012-07-27  Jim Meyering  <meyering@redhat.com>
38508         maint.mk: new rule: refresh-gnulib-patches
38509         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38510         Use this rule to refresh them.
38511         * top/maint.mk (refresh-gnulib-patches): New rule.
38513 2012-07-24  Bruno Haible  <bruno@clisp.org>
38515         gnulib-tool: Fix handling of inctests variable.
38516         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38517         Reported by Nick Bowler <nbowler@elliptictech.com>.
38519 2012-07-22  Bruno Haible  <bruno@clisp.org>
38521         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38522         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38523         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38524         Remove exemption for getpass.h.
38525         Suggested by Eric Blake.
38527 2012-07-20  Eric Blake  <eblake@redhat.com>
38529         verify: document conflict with -Wnested-externs
38530         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38532         maint.mk: forbid exit(-1)
38533         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38535 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38537         fsusage: port back to Solaris
38538         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38539         error (fsd not declared) on Solaris 10.  Reported privately by
38540         Andrew Borodin.
38542 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38544         gnu-web-doc-update: fix error messages
38545         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38547         gnu-web-doc-update: check the requirements.
38548         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38549         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38550         * build-aux/bootstrap (find_tool): Comment change.
38552 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38554         maint.mk: minor simplication.
38555         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38556         for default values.
38558 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38560         gitlog-to-changelog: VPATH build issues
38561         If builddir is not a subdirectory of srcdir, running git from it will
38562         fail.
38563         * build-aux/gitlog-to-changelog (--srcdir): New option.
38565 2012-07-15  Bruno Haible  <bruno@clisp.org>
38567         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38568         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38569         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38570         Remove exemption for fpending.h.
38571         Suggested by Eric Blake.
38573 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38575         pthread_sigmask: fix bug on FreeBSD 9
38576         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38577         Include string.h.
38578         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38579         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38580         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38581         but pthread_sigmask (1729, NULL, NULL) returns zero.
38582         See <http://bugs.gnu.org/11884>.
38583         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38584         by inspecting whether the main call changed the old mask.
38586 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38588         README-release: make it more legible
38589         * top/README-release: Improve typography slightly.
38591 2012-07-15  Jim Meyering  <meyering@redhat.com>
38593         maint: require that each sc_... command start with "@"
38594         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38595         "make sc_maint" helps us avoid this nit.
38597 2012-07-15  Jim Meyering  <meyering@redhat.com>
38599         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38600         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38602 2012-07-13  Eric Blake  <eblake@redhat.com>
38604         maint.mk: new syntax check for HAVE_DECL checks
38605         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38606         * cfg.mk
38607         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38608         Exempt some false positives.
38609         Based on a report by Karel Zak.
38611         argp: make HAVE_DECL usage consistent
38612         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38613         macros, not whether they are defined.
38614         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38615         convention with other declaration checks.
38616         Reported by Karel Zak, with suggestions from Paul Eggert.
38618         stat-time: relax license to LGPLv2+
38619         * modules/stat-time (License): Relax, with consent of all authors.
38621         strndup: fix m4 usage error
38622         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38623         defined, to either 0 or 1.
38624         Reported by Karel Zak.
38626 2012-07-11  Jim Meyering  <meyering@redhat.com>
38628         maint: enable the sc_avoid_if_before_free syntax-check rule
38629         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38630         (if_before_free_offenders_): Define.
38631         (if_before_free_basename_re_): Define.
38632         Exempt current files with useless if-before-free.
38634 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38636         gettext: do not assume '#define ... defined ...' behavior
38637         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38638         Do not use '#define FOO ... defined BAR ...', as the C standard says
38639         it's not portable to expect that this works after macro expansion.
38640         Problem reported for gzip by Steven M. Schweda in
38641         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38643 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38645         getloadavg: clean out old Emacs and Autoconf cruft
38646         See Glenn Morris in <http://bugs.gnu.org/11905>.
38647         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38648         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38649         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38650         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38652 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38654         bootstrap: let warn be like tests/init.sh's warn_
38655         Reported by Jim Meyering.
38656         * build-aux/bootstrap (warn): Remove, replaced by...
38657         (warnf_, warn_): these.
38658         Adjust callers.
38659         Shorten messages that no longer fit in 80 columns.
38661 2012-07-09  Bruno Haible  <bruno@clisp.org>
38663         getopt: Simplify after Emacs changed.
38664         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38665         (gl_GETOPT_IFELSE): Remove macro.
38667 2012-07-09  Jim Meyering  <meyering@redhat.com>
38669         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38670         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38672         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38673         Bugs in both of those conspired to make the
38674         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38675         _sc_search_regexp's handling of non-empty $in_files would filter
38676         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38677         choice of in_files value meant there would be no match in most
38678         projects, due to the presence of two or more Makefile.in files.
38679         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38680         Fix a bug in how a non-empty $$in_files was processed:
38681         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38682         in spite of the name, it's a regexp, not a list of file names.
38684 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38686         getloadavg, getopt: fix commentary re configure.in
38687         Autoconf is deprecating the name 'configure.in', so change it to
38688         to the new name 'configure.ac' in a couple of places.
38689         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38690         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38691         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38692         Emacs has renamed it to configure.ac, and it no longer refers
38693         to these macros anyway.
38695         timespec: mark functions with const attributes
38696         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38697         Mark with _GL_ATTRIBUTE_CONST.
38699 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38701         canonicalize[-lgpl]: handle "guessing" values when cross-building
38702         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38703         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38704         matches "*yes" instead of just "yes".  Regression introduced in commit
38705         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38707 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38708             Bruno Haible  <bruno@clisp.org>
38710         canonicalize: make the right guess when cross-compiling to GNU
38711         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38712         determine whether cross-compiling to glibc systems, so as to
38713         include GNU/Hurd.
38715 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38717         timespec-sub: avoid duplicate include
38718         * lib/timespec-sub.c: Do not include <config.h> twice.
38719         Reported by Juanma Barranquero.
38721 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38723         bootstrap: use a more consistent error reporting scheme
38724         * build-aux/bootstrap (warn, die): New.
38725         Use them.
38727 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38729         sys_time: allow too-wide tv_sec
38730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38731         timeval even if tv_sec is wider than time_t.  This allows
38732         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38733         as without this patch gnulib replaces struct timeval
38734         and OpenBSD futimes therefore has a type mismatch.
38735         * doc/posix-headers/sys_time.texi: Mention this.
38737         pthread: check for both pthread_create and pthread_join
38738         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38739         alter the check so that it tests for both pthread_create and
38740         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38741         Suggested by Bruno Haible and Richard Yao in
38742         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38744         parse-datetime: doc tuneup
38745         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38746         spacing issues.
38748 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38750         do-release-commit-and-tag: fix the previous commit
38751         * build-aux/do-release-commit-and-tag: Actually the test was right,
38752         but the comment and the error message were misleading.
38753         Fix comment, and improve error message.
38754         Perform check first, so that NEWS is not modified uselessly.
38756         do-release-commit-and-tag: fix typo
38757         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38758         _not_ start with a stub.
38760 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38762         pthread: check for pthread_create, not pthread_join
38763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38764         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38765         pthread_join in libc.  I hope this removes the need for all the
38766         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38767         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38769 2012-07-04  Jim Meyering  <meyering@redhat.com>
38771         parse-datetime: fix failure to diagnose invalid input
38772         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38773         rather than diagnosing the invalid input.  Now it reports this:
38774         date: invalid date '\260'
38775         * lib/parse-datetime.y (to_uchar): Define.
38776         (yylex): Don't sign-extend "other" bytes.
38777         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38778         Thanks to Bruno Haible for the patch to this file.
38779         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38780         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38782 2012-07-03  Jim Meyering  <meyering@redhat.com>
38784         bootstrap: do not require now-removed build-aux/missing
38785         Now that build-aux/missing is, er, missing, bootstrap would
38786         silently fail.
38787         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38788         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38789         no longer part of gnulib.
38790         Diagnose the failure.
38792 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38794         alloca: add support for HP NonStop TNS/E native
38795         * lib/alloca.in.h (alloca): Support the new host.
38796         From a suggestion by Joachim Schmitz in
38797         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38799 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38801         fsusage: remove code not needed on non GNU/Linux systems.
38803         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38804         Don't include headers no longer needed in this case.
38805         * lib/fsusage.c [STAT_STATVFS &&
38806         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38807         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38809 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38811         fsusage: include files needed for glibc 2.6 fallback
38812         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38813         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38814         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38815         Problem reported by Ludovic Courtès in
38816         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38818         fsusage: avoid needless check on GNU/Linux
38819         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38820         on GNU/Linux systems, since it can't possibly work.
38822 2012-07-01  Bruno Haible  <bruno@clisp.org>
38824         log: Fix an autoconf >= 2.64 warning.
38825         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38826         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38828 2012-06-28  Bruno Haible  <bruno@clisp.org>
38830         log10f: Fix possible configuration problem.
38831         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38832         $LOGF_LIBM.
38833         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38835 2012-06-28  Bruno Haible  <bruno@clisp.org>
38837         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38838         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38839         not gl_cv_func_unlink_works.
38840         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38842 2012-06-27  Eric Blake  <eblake@redhat.com>
38844         config: drop scripts that automake says are not independent
38845         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38846         * build-aux/elisp-comp: Delete.
38847         * build-aux/missing: Likewise.
38848         * build-aux/ylwrap: Likewise.
38849         * modules/elisp-comp: Likewise.
38850         * MODULES.html.sh: Drop mention of elisp-comp.
38851         * NEWS: Mention this.
38853 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38855         root-uid: new module
38856         This is for portability to Tandem's NonStop Kernel.
38857         * lib/root-uid.h, modules/root-uid: New files.
38858         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38859         * lib/write-any-file.c, tests/test-sethostname2.c:
38860         Include "root-uid.h".
38861         * lib/euidaccess.c (euidaccess):
38862         * lib/pt_chown.c (main):
38863         * lib/unlinkdir.c (cannot_unlink_dir):
38864         * lib/write-any-file.c (can_write_any_file):
38865         * m4/mknod.m4 (gl_FUNC_MKNOD):
38866         * tests/test-sethostname2.c (geteuid, main):
38867         Don't assume ROOT_UID == 0.
38868         * modules/euidaccess (Depends-on):
38869         * modules/pt_chown (Depends-on):
38870         * modules/sethostname-tests (Depends-on):
38871         * modules/unlinkdir (Depends-on):
38872         * modules/write-any-file (Depends-on):
38873         Add root-uid.
38875         regex: use locale-independent comparison for codeset name
38876         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38877         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38878         for codeset name.
38879         * lib/regex_internal.h: Do not include <strings.h>, since we
38880         no longer use strcasecmp.
38881         * modules/regex (Depends-on): Remove strcase.
38883 2012-06-23  Bruno Haible  <bruno@clisp.org>
38885         getopt-posix: No longer guarantee that option processing is resettable.
38886         * doc/posix-functions/getopt.texi: Drop description of problem with
38887         internal state. Fix info about mingw and msvc9.
38888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38889         option processing by getopt(). Run three test programs instead of one.
38890         Simplify cross-compilation guess.
38891         * NEWS: Mention the change.
38892         Reported by Rich Felker <dalias@aerifal.cx>.
38894 2012-06-26  Bruno Haible  <bruno@clisp.org>
38896         argp, regex: Ensure strcasecmp gets declared.
38897         * lib/argp-help.c: Include <strings.h>.
38898         * lib/regex_internal.h: Likewise.
38899         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38901 2012-06-24  Bruno Haible  <bruno@clisp.org>
38903         ptsname_r: Make it consistent with ptsname on AIX.
38904         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38905         implementation as for OSF/1.
38906         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38907         a pty master.
38909         ptsname_r: Make it consistent with ptsname on OSF/1.
38910         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38911         OSF/1.
38913 2012-06-24  Bruno Haible  <bruno@clisp.org>
38915         ttyname_r: Fix result on OSF/1, Solaris.
38916         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38918 2012-06-24  Bruno Haible  <bruno@clisp.org>
38920         ptsname_r: Add support for Solaris.
38921         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38922         Solaris.
38924         ptsname_r: Fix test failure on native Windows.
38925         * modules/ptsname_r (Depends-on): Add isatty.
38927         ptsname_r: Fix test failures on IRIX, Solaris.
38928         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38929         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38930         accordingly.
38931         * lib/ptsname_r.c: Include <fcntl.h>.
38932         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38933         set errno if fd is invalid.
38934         * tests/test-isatty.c (main): Update comments.
38936 2012-06-24  Bruno Haible  <bruno@clisp.org>
38938         ptsname test: Extend test.
38939         * tests/test-ptsname.c: Include <errno.h>.
38940         (main): Test behaviour with invalid file descriptor.
38942 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38944         time: fix obsolete comment
38945         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38946         reference to HAVE_STRUCT_TIMESPEC in comment.
38948 2012-06-23  Bruno Haible  <bruno@clisp.org>
38950         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38952         does not handle abbreviated long options with equivalent
38953         disambiguations, set gl_replace_getopt to yes.
38954         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38956 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38958         time_r: fix typo that always overrode localtime_r decl
38959         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38960         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38961         not in a standard include.
38963 2012-06-22  Bruno Haible  <bruno@clisp.org>
38965         Write "Mac OS X" instead of "MacOS X".
38966         * README: Write "Mac OS X" instead of "MacOS X".
38967         * build-aux/bootstrap: Likewise.
38968         * build-aux/install-reloc: Likewise.
38969         * lib/acl-internal.h: Likewise.
38970         * lib/acl_entries.c: Likewise.
38971         * lib/argp-ba.c: Likewise.
38972         * lib/argp-pv.c: Likewise.
38973         * lib/config.charset: Likewise.
38974         * lib/copy-acl.c: Likewise.
38975         * lib/csharpexec.c: Likewise.
38976         * lib/euidaccess.c: Likewise.
38977         * lib/fbufmode.c: Likewise.
38978         * lib/fflush.c: Likewise.
38979         * lib/file-has-acl.c: Likewise.
38980         * lib/filemode.h: Likewise.
38981         * lib/fpurge.c: Likewise.
38982         * lib/freadable.c: Likewise.
38983         * lib/freadahead.c: Likewise.
38984         * lib/freading.c: Likewise.
38985         * lib/freadptr.c: Likewise.
38986         * lib/freadseek.c: Likewise.
38987         * lib/fseeko.c: Likewise.
38988         * lib/fseterr.c: Likewise.
38989         * lib/fsusage.c: Likewise.
38990         * lib/fwritable.c: Likewise.
38991         * lib/fwriting.c: Likewise.
38992         * lib/get-rusage-as.c: Likewise.
38993         * lib/get-rusage-data.c: Likewise.
38994         * lib/getdomainname.c: Likewise.
38995         * lib/idpriv-drop.c: Likewise.
38996         * lib/idpriv-droptemp.c: Likewise.
38997         * lib/localcharset.c: Likewise.
38998         * lib/locale.in.h: Likewise.
38999         * lib/localename.c: Likewise.
39000         * lib/mbsrtowcs-state.c: Likewise.
39001         * lib/nproc.c: Likewise.
39002         * lib/passfd.c: Likewise.
39003         * lib/posix_openpt.c: Likewise.
39004         * lib/printf-parse.c: Likewise.
39005         * lib/progreloc.c: Likewise.
39006         * lib/safe-read.h: Likewise.
39007         * lib/safe-write.h: Likewise.
39008         * lib/sched.in.h: Likewise.
39009         * lib/set-mode-acl.c: Likewise.
39010         * lib/signal.in.h: Likewise.
39011         * lib/stdint.in.h: Likewise.
39012         * lib/stdio-impl.h: Likewise.
39013         * lib/stdlib.in.h: Likewise.
39014         * lib/strtod.c: Likewise.
39015         * lib/sys_select.in.h: Likewise.
39016         * lib/tcgetsid.c: Likewise.
39017         * lib/unistd.in.h: Likewise.
39018         * lib/unlockpt.c: Likewise.
39019         * lib/vasnprintf.c: Likewise.
39020         * lib/vma-iter.c: Likewise.
39021         * lib/wcsrtombs-state.c: Likewise.
39022         * m4/acl.m4: Likewise.
39023         * m4/acosl.m4: Likewise.
39024         * m4/asinl.m4: Likewise.
39025         * m4/atanl.m4: Likewise.
39026         * m4/c-stack.m4: Likewise.
39027         * m4/cosl.m4: Likewise.
39028         * m4/expl.m4: Likewise.
39029         * m4/extensions.m4: Likewise.
39030         * m4/fdatasync.m4: Likewise.
39031         * m4/fmal.m4: Likewise.
39032         * m4/frexp.m4: Likewise.
39033         * m4/frexpf.m4: Likewise.
39034         * m4/frexpl.m4: Likewise.
39035         * m4/fsusage.m4: Likewise.
39036         * m4/getdomainname.m4: Likewise.
39037         * m4/getloadavg.m4: Likewise.
39038         * m4/getopt.m4: Likewise.
39039         * m4/gettext.m4: Likewise.
39040         * m4/gnulib-common.m4: Likewise.
39041         * m4/intdiv0.m4: Likewise.
39042         * m4/intlmacosx.m4: Likewise.
39043         * m4/largefile.m4: Likewise.
39044         * m4/ldexpl.m4: Likewise.
39045         * m4/link-follow.m4: Likewise.
39046         * m4/locale-ar.m4: Likewise.
39047         * m4/locale-fr.m4: Likewise.
39048         * m4/locale-ja.m4: Likewise.
39049         * m4/locale-tr.m4: Likewise.
39050         * m4/locale-zh.m4: Likewise.
39051         * m4/locale_h.m4: Likewise.
39052         * m4/lock.m4: Likewise.
39053         * m4/logl.m4: Likewise.
39054         * m4/mathfunc.m4: Likewise.
39055         * m4/minus-zero.m4: Likewise.
39056         * m4/mktime.m4: Likewise.
39057         * m4/mmap-anon.m4: Likewise.
39058         * m4/multiarch.m4: Likewise.
39059         * m4/nanosleep.m4: Likewise.
39060         * m4/nocrash.m4: Likewise.
39061         * m4/poll.m4: Likewise.
39062         * m4/printf-frexpl.m4: Likewise.
39063         * m4/printf.m4: Likewise.
39064         * m4/signbit.m4: Likewise.
39065         * m4/sinl.m4: Likewise.
39066         * m4/sqrtl.m4: Likewise.
39067         * m4/strerror_r.m4: Likewise.
39068         * m4/tanl.m4: Likewise.
39069         * m4/threadlib.m4: Likewise.
39070         * m4/ttyname_r.m4: Likewise.
39071         * m4/unlink.m4: Likewise.
39072         * m4/visibility.m4: Likewise.
39073         * m4/wcwidth.m4: Likewise.
39074         * tests/minus-zero.h: Likewise.
39075         * tests/test-alloca-opt.c: Likewise.
39076         * tests/test-copy-acl.sh: Likewise.
39077         * tests/test-copy-file.sh: Likewise.
39078         * tests/test-fdatasync.c: Likewise.
39079         * tests/test-file-has-acl.sh: Likewise.
39080         * tests/test-flock.c: Likewise.
39081         * tests/test-fsync.c: Likewise.
39082         * tests/test-localename.c: Likewise.
39083         * tests/test-malloca.c: Likewise.
39084         * tests/test-nonblocking-pipe.h: Likewise.
39085         * tests/test-nonblocking-socket.h: Likewise.
39086         * tests/test-openpty.c: Likewise.
39087         * tests/test-posix_openpt.c: Likewise.
39088         * tests/test-ptsname.c: Likewise.
39089         * tests/test-ptsname_r.c: Likewise.
39090         * tests/test-sameacls.c: Likewise.
39091         * tests/test-select.h: Likewise.
39092         * tests/test-set-mode-acl.sh: Likewise.
39093         * tests/test-snprintf-posix.h: Likewise.
39094         * tests/test-sprintf-posix.h: Likewise.
39095         * tests/test-strtod.c: Likewise.
39096         * tests/test-time.c: Likewise.
39097         * tests/test-vasnprintf-posix.c: Likewise.
39098         * tests/test-vasprintf-posix.c: Likewise.
39099         * doc/acl-resources.txt: Likewise.
39100         * doc/**/*.texi: Likewise.
39101         Reported by Max Horn <max@quendi.de>.
39103 2012-06-22  Bruno Haible  <bruno@clisp.org>
39105         grantpt: Relax requirement regarding invalid file descriptors.
39106         * lib/grantpt.c: Don't include <fcntl.h>.
39107         (grantpt): Don't verify the validity of the file descriptor.
39108         * modules/grantpt (Depends-on): Remove fcntl-h.
39109         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
39110         file descriptors.
39111         * doc/posix-functions/grantpt.texi: Document more platforms on which
39112         grantpt succeeds for invalid file descriptors.
39113         Reported by Rich Felker <dalias@aerifal.cx>.
39115 2012-06-22  Bruno Haible  <bruno@clisp.org>
39117         fbufmode test: Don't test unportable behaviour.
39118         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
39119         (main): Invoke it three times.
39120         Reported by Szabolcs Nagy <nsz@port70.net>
39121         and Rich Felker <dalias@aerifal.cx>.
39123 2012-06-21  Bruno Haible  <bruno@clisp.org>
39125         gnulib-tool: Refactor inctests variable.
39126         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
39127         (func_modules_transitive_closure,
39128         func_modules_transitive_closure_separately,
39129         func_import, func_create_testdir): Update.
39131         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
39132         * gnulib-tool: Accept option --without-tests.
39133         (func_usage): Document --without-tests option. Rearrange.
39134         (inctests): Normalize according to the mode.
39135         * NEWS: Mention the change.
39136         Suggested by Simon Josefsson.
39138 2012-06-21  Bruce Korb  <bkorb@gnu.org>
39140         parse-duration test: Avoid spurious output.
39141         * tests/test-parse-duration.sh: Reindent with leading tabs.
39143 2012-06-21  Jim Meyering  <meyering@redhat.com>
39145         maint: disable the strncpy prohibition
39146         * cfg.mk: Do not prohibit strncpy here.
39148 2012-06-21  Bruno Haible  <bruno@clisp.org>
39150         nonblocking: Avoid compilation error on mingw64.
39151         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
39152         fscanf.
39153         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
39154         * modules/vfscanf (configure.ac): Likewise.
39155         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
39156         definition only if stdio.h has prepared it.
39157         Reported by Daniel P. Berrange <berrange@redhat.com>.
39159 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
39161         gnulib-tool: Use readlink if it is available.
39162         * gnulib-tool (func_readlink): Choose function more appropriately.
39164 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39166         posixtm-tests: port to buggy compiler
39167         Problem reported by Simon Josefsson in
39168         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
39169         * modules/posixtm-tests (Depends-on): Add stdint.
39170         * tests/test-posixtm.c (struct posixtm_test.t_expected):
39171         Now of type int_least64_t, not int64_t, both because that's
39172         what INT64_C returns and because int_least64_t works even
39173         on 72-bit hosts.
39174         (T): Use INT64_C on constants outside the traditional int range,
39175         to work around compiler bug noted by Simon.
39177         mktime: fix integer overflow in 'configure'-time test
39178         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
39179         after integer overflow.  Problem reported by Rich Felker in
39180         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
39181         Also, don't look for further instances of a bug if we've already
39182         found one instance; this helps 'configure' run faster.
39184 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
39186         tmpfile, clean-temp: Fix invocation of GetVersionEx.
39187         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
39188         GetVersionEx correctly.
39189         * lib/clean-temp.c (supports_delete_on_close): Likewise.
39191 2012-06-20  Bruno Haible  <bruno@clisp.org>
39193         fdopen: Allow implementations that don't reject invalid fd arguments.
39194         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
39195         succeeds.
39196         Reported by Rich Felker <dalias@aerifal.cx>.
39198 2012-06-20  Simon Josefsson  <simon@josefsson.org>
39200         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
39201         bring in LIBINTL.
39203 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39205         init.sh: do not rely on autoupated PWD
39206         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
39207         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
39208         Although Nelson's bug was not necessarily fixed by this patch,
39209         it seems wise to make the change for safety.
39210         * tests/init.sh (path_prepend_): Do not rely on PWD updating
39211         automagically after 'cd'; this is not reliable on older shells.
39212         (setup_): Fail if we cannot cd to temporary directory.
39214 2012-06-19  Bruno Haible  <bruno@clisp.org>
39216         stat, fstat: Avoid warnings on mingw64.
39217         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
39218         redefining.
39219         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
39220         Reported by Daniel P. Berrange <berrange@redhat.com>.
39222 2012-06-19  Bruno Haible  <bruno@clisp.org>
39224         stdioext: Add support for musl libc.
39226         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
39227         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
39229         * m4/fseterr.m4: New file.
39230         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
39231         function exists.
39232         * modules/fseterr (Files): Add m4/fseterr.m4.
39233         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
39234         __fseterr does not exist.
39235         (Makefile.am): Remove fseterr.c from lib_SOURCES.
39237         * lib/freadable.h: Update comment.
39239         * lib/fwritable.h: Update comment.
39241         * lib/freading.h: Update comment.
39243         * lib/fwriting.h: Update comment.
39245         * m4/freadahead.m4: New file.
39246         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
39247         that function exists.
39248         * modules/freadahead (Files): Add m4/freadahead.m4.
39249         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
39250         __freadahead does not exist.
39251         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39253         * m4/freadptr.m4: New file.
39254         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
39255         function exists.
39256         * modules/freadptr (Files): Add m4/freadptr.m4.
39257         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
39258         __freadptr does not exist.
39259         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39261         * m4/freadseek.m4: New file.
39262         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
39263         exists.
39264         * modules/freadseek (Files): Add m4/freadseek.m4.
39265         (configure.ac): Invoke gl_FUNC_FREADSEEK.
39267         * lib/fpurge.c (fpurge): Update comment.
39269         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
39271 2012-06-19  Bruno Haible  <bruno@clisp.org>
39273         *printf-posix: Put more info into config.log.
39274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
39275         exit code into config.log.
39277 2012-06-19  Bruno Haible  <bruno@clisp.org>
39279         getopt-gnu: Fix exit code overflow in autoconf test.
39280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
39281         to keep them below < 128.
39283 2012-06-17  Jim Meyering  <meyering@redhat.com>
39285         maint.mk: fix typo in code to derive GPG key at release time
39286         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
39288 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
39290         regex: avoid warning when pointers are not long
39291         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
39292         and uintptr_t, not long, for portability to hosts where pointers and
39293         long have different sizes.  Issue noted by Daniel P. Berrange in
39294         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
39295         and fix suggested by Bruno Haible in
39296         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
39298 2012-06-17  Bruno Haible  <bruno@clisp.org>
39300         dummy: Relicense into the public domain.
39301         * modules/dummy (License): Set to "public domain".
39302         Suggested by Reuben Thomas.
39304 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39306         announce-gen: VPATH issues
39307         * build-aux/announce-gen (--srcdir): New option, used to trim the
39308         $srcdir part of the path from $builddir to NEWS.
39309         * top/maint.mk (announcement): Adjust.
39311 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39313         gnu-web-doc-update: VPATH builds
39314         * build-aux/gnu-web-doc-update (--builddir): New option.
39315         Revamp the handling of options.
39316         Prefer $(...) to `...`.
39317         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
39318         the template, and it is GNU mktemp specific.
39319         Prefer set -e to long series of &&.
39320         Restore the initial git branch, not "master".
39321         Properly initialize submodules (don't rely only on bootstrap).
39322         Do not reconfigure blindly, use config.status.
39323         * top/README-release: Update instructions for gnu-web-doc-update.
39325 2012-06-11  Jim Meyering  <meyering@redhat.com>
39327         maint.mk: revert most of the previous change re "all these"
39328         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39329         For rationale, see the discussion at
39330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39332 2012-06-10  Karl Berry  <karl@gnu.org>
39334         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39336         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39338 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39340         parse-duration: Relicense under LGPLv2+.
39341         * modules/parse-duration (License): Change to LGPLv2+.
39343 2012-06-10  Jim Meyering  <meyering@redhat.com>
39345         maint.mk: prohibit common grammar error: "all these"
39346         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39347         the list of prohibited word sequences.  It should be "all of these".
39348         * lib/tempname.c (__gen_tempname): Fix one of them.
39350 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39352         do-release-commit-and-tag: support VPATH builds
39353         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39354         (noteworthy): Defined earlier to factor its value.
39355         (noteworthy_stub): New.
39356         Use it to factor.
39357         (help_version): Split into...
39358         (help, version): these.
39359         Adjust the option processing part.
39360         Support "--option=value" in addition to "--option value".
39361         (builddir): New.
39362         (--builddir): New option.
39363         * top/README-release: Document this.
39364         Reword slightly so that the reader cannot understand that he
39365         has to do these steps before calling do-release-commit-and-tag.
39367 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39369         readme-release: also require announce-gen and maintainer-makefile
39370         * modules/readme-release (Depends-on): here.
39371         * modules/announce-gen, modules/do-release-commit-and-tag,
39372         modules/gnu-web-doc-update, modules/maintainer-makefile
39373         (Description): Point to readme-release.
39375 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39377         maint.mk: fix VPATH issues.
39378         * top/maint.mk (news-check): GNU Make understand $< very well.
39379         (release-prep): NEWS is in $(srcdir).
39381 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39383         readme-release: require the promoted modules.
39384         * modules/readme-release (Depends-on): Add
39385         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39386         in this text.
39388 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39389             Bruno Haible  <bruno@clisp.org>
39391         error, strerror-override: Support mingw64 from Fedora 17.
39392         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39393         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39394         EINPROGRESS.
39395         * lib/strerror-override.h (strerror_override): Test it.
39396         * lib/strerror-override.c (strerror_override): Likewise.
39397         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39399 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39400             Bruno Haible  <bruno@clisp.org>
39402         error, strerror-override: Support mingw64 from Fedora 17.
39403         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39404         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39405         * lib/strerror-override.h (strerror_override): Test it.
39406         * lib/strerror-override.c (strerror_override): Likewise.
39408 2012-06-03  Bruno Haible  <bruno@clisp.org>
39410         error, strerror-override: Support new errno values from POSIX:2008.
39411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39412         ENOTRECOVERABLE.
39413         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39414         platforms.
39415         * lib/strerror-override.c (strerror_override): Conditionalize the
39416         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39417         * lib/strerror-override.h (strerror_override): Declare also if
39418         GNULIB_defined_EOWNERDEAD is defined.
39419         * tests/test-errno.c (e130, e131): New variables.
39420         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39421         ENOTRECOVERABLE.
39422         Reported by Paolo Bonzini.
39424 2012-05-31  Jim Meyering  <meyering@redhat.com>
39426         savewd: add missing dependency on sys_wait module
39427         * modules/savewd (Depends-on): Add sys_wait, needed at least
39428         for MSVC.  Report and suggested change by Michael Goffioul.
39430 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39432         system-quote-tests: port to CentOS 5
39433         Problem reported by Tom G. Christensen in
39434         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39435         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39437 2012-05-29  Jim Meyering  <meyering@redhat.com>
39439         maint: fix typos in comments and ChangeLog
39440         Culprits identified and fixed mostly automatically using these commands:
39441         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39442         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39443         using http://github.com/lyda/misspell-check
39444         * ChangeLog: Fix typos.
39445         * doc/solaris-versions: Likewise.
39446         * lib/regexec.c (re_search_stub): Likewise.
39447         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39449 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39451         manywarnings: remove duplicate -Wmultichar entry
39452         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39453         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39454         so keep the entry marked as documented.
39456 2012-05-27  Karl Berry  <karl@gnu.org>
39458         * config/srclist.txt (mktime.c): remove last libc sync,
39459         perhaps just temporarily.
39461 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39463         regex: don't assume uint64_t or uint32_t
39464         * lib/regcomp.c (init_word_char): Don't assume that the types
39465         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39466         them, and on some 32-bit compilers there is no uint64_t.
39467         Problem reported by Gianluigi Tiesi in
39468         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39470 2012-05-25  Jim Meyering  <meyering@redhat.com>
39472         maint.mk: add strncpy-prohibiting syntax-check rule
39473         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39475 2012-05-24  Jim Meyering  <meyering@redhat.com>
39477         maint.mk: compute $(gpg_key_ID) more portably
39478         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39479         That use of sed is not portable to some fringe systems.
39480         Reported by Paul Eggert in
39481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39483 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39485         mktime: sync from glibc
39486         * config/srclist.txt: Uncomment mktime.c.
39487         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39488         First, indent with tabs, since glibc uses tabs and doesn't want to
39489         change and we'd rather be identical to glibc.  Also, two small
39490         coding changes:
39491         (isdst_differ): Use &&, not &, as && is the usual style.
39492         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39493         for clarity.
39495 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39497         announce-gen: du -h is more portable than du --human
39498         * build-aux/announce-gen (sizes): Invoke du with -h instead
39499         of --human.  Accept leading white space in its output.
39501 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39503         announce-gen: Improve diagnostics.
39504         * build-aux/announce-gen: When parsing command line options,
39505         prefer "announce-gen: option --release-type requires an argument"
39506         to "Option release-type requires an argument".
39508 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39510         maint.mk: gpg_key_ID: use sed more portably
39511         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39512         the closing brace.
39513         (refresh-po): Fuse two sed invocations into one.
39515 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39517         gitlog-to-changelog: support the log message format used in Bison.
39518         * build-aux/gitlog-to-changelog: Support --strip-tab and
39519         --strip-cherry-picked.
39521 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39523         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39524         the rest of the current time slice to another thread in the current
39525         process. So if the thread that feeds the file decscriptor we're
39526         polling is not in the current process, we get busy-waiting.
39527         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39528         Patch from Theodore Leblond.
39529         * lib/select.c: Split polling out of the loop that sets the output
39530         fd_sets.  Check for zero result and loop if the wait timeout is
39531         infinite.
39533 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39535         select: Fix build error on IRIX 6.5.
39536         * lib/select.c: Include stddef.h for NULL.
39538 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39540         gc: fix libgcrypt detection on older machines.
39541         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39542         copyright years because the file has been distributed every year
39543         since it was created.
39545 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39547         crypto: fix bug in large buffer handling
39548         Problem reported by Serge Belyshev for glibc in
39549         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39550         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39551         * lib/md4.c (md4_process_block):
39552         * lib/md5.c (md5_process_block):
39553         * lib/sha1.c (sha1_process_block):
39554         * lib/sha256.c (sha256_process_block):
39555         Don't assume the buffer length is less than 2**32.
39556         * lib/sha512.c (sha512_process_block): Likewise.
39557         Here, the bug is present only in the rare case where the host does
39558         not support uint64_t or where size_t is wider than 64 bits.
39559         Use u64size to work around the problems.
39560         * lib/u64.h (u64size): New macro.
39562 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39564         fsusage: fix block size returned on older Linux 2.6
39566         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39567         which is available since Linux 2.6.
39568         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39569         when the member is available so it can be used as a fallback.
39570         * doc/posix-functions/statvfs.texi: Mention the hang issue
39571         on Linux < 2.6.36.
39573 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39575         bootstrap: suppress stderr chatter
39576         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39577         Omit unnecessary chatter to stderr.  The main program chatter
39578         was there only inadvertantly.
39580         bootstrap: .gitignore files created by autopoint, libtool
39581         I ran into this problem when bootstrapping the latest diffutils.
39582         After './bootstrap', 'git status' reported lots of untracked files
39583         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39584         autopoint and do not need to be version-controlled.
39585         * build-aux/bootstrap: Put into .gitignore the files that
39586         autopoint and libtool create, by keeping track of files that exist
39587         after but not before these programs are run.
39588         (version_controlled_file): Move up.  2nd arg is now full file
39589         name, not base name; this is more convenient.  Put CVS at the end,
39590         as it's now somewhat deprecated.
39592 2012-05-14  Jim Meyering  <meyering@redhat.com>
39594         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39595         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39596         definition.  Reported by Bruno Haible.
39598 2012-05-13  Bruno Haible  <bruno@clisp.org>
39599             Paul Eggert  <eggert@cs.ucla.edu>
39601         binary-io: Define set_binary_mode function.
39602         * lib/binary-io.h (set_binary_mode): New function.
39603         (SET_BINARY): Define in terms of set_binary_mode.
39604         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39605         * tests/test-binary-io.c (main): Accept an argument, and test either
39606         set_binary_mode or SET_BINARY depending on the argument.
39607         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39608         argument. Clean up also t-bin-out0.tmp.
39610 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39612         bootstrap: take advantage of POSIX shell features
39614         The 'bootstrap' script offered by Gnulib script already uses POSIX
39615         shell features (like $((...)) arithmetic expansions) that are not
39616         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39617         means that bootstrap must already be run using a proper POSIX shell,
39618         which will thus provide more features, like ${var#pattern} parameter
39619         expansion or inversion of a command exit status with '!'.  We can
39620         thus use these features to improve the clarity and the performances
39621         of the bootstrap script.
39623         Suggested by Eric Blake.
39625         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39626         of sed/expr plus command substitutions, to save some forks.  While
39627         we are at it, prefer the POSIX $(...) form of command substitution,
39628         rather than the legacy form `...` (since the former is visually
39629         clearer and interacts better with quoting), and prefer the idiom:
39630           "if ! CMD; then ACTION ..."
39631         over the idiom:
39632           "if CMD; then :; else ACTION ..."
39633         which was required by legacy Bourne shells not supporting '!'.
39635 2012-05-12  Bruno Haible  <bruno@clisp.org>
39637         system-quote: Add more comments.
39638         * lib/system-quote.h: Add more comments about wilcards and limitations.
39639         Suggested by Eli Zaretskii <eliz@gnu.org>.
39641         sh-quote, system-quote: Add comments about wildcards.
39642         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39643         * lib/system-quote.h: Likewise.
39644         Reported by Eli Zaretskii <eliz@gnu.org>.
39646 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39648         fsusage: check for GNU/Linux statvfs problem dynamically
39649         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39650         Define STAT_STATFS2_BSIZE too, since in this case the code now
39651         checks dynamically whether statvfs is reliable, falling back on
39652         Linux-style statfs otherwise.
39653         (statvfs_works): New function, for dynamically testing statvfs.
39654         (get_fs_usage) [STAT_STATVFS]: Use it.
39655         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39656         statvfs on GNU/Linux hosts, since it's now done dynamically.
39658 2012-05-10  Bruno Haible  <bruno@clisp.org>
39660         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39661         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39662         '?' character.
39663         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39664         * tests/test-system-quote-main.c (check_all): Check also strings like
39665         "??????????".
39666         Reported by Eli Zaretskii <eliz@gnu.org>.
39668 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39670         _Noreturn: port config.h to gcc -Wundef
39671         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39672         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39673         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39675 2012-05-10  Bruno Haible  <bruno@clisp.org>
39677         system-quote: Refactor.
39678         * lib/system-quote.h (system_quote_copy): Fix comment.
39679         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39680         New functions, extracted from system_quote_copy.
39681         (system_quote_length, system_quote_copy): Use these functions.
39682         Reported by Paul Eggert.
39684 2012-05-08  Bruno Haible  <bruno@clisp.org>
39686         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39687         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39689 2012-05-08  Bruno Haible  <bruno@clisp.org>
39691         Tests for module 'system-quote'.
39692         * modules/system-quote-tests: New file.
39693         * tests/test-system-quote.sh: New file.
39694         * tests/test-system-quote-main.c: New file.
39695         * tests/test-system-quote-child.c: New file.
39697         New module 'system-quote'.
39698         * lib/system-quote.h: New file.
39699         * lib/system-quote.c: New file.
39700         * modules/system-quote: New file.
39702 2012-05-08  Bruno Haible  <bruno@clisp.org>
39704         sh-quote: Make C++ safe and allow multiple inclusion.
39705         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39706         declarations in extern "C".
39708 2012-05-08  Bruno Haible  <bruno@clisp.org>
39710         sh-quote tests: Make tests stricter.
39711         * tests/test-sh-quote.c (check_one): Check the return value of
39712         shell_quote_copy.
39713         (main): Check a string with a CR character. Check a string that
39714         contains UCHAR_MAX.
39716 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39718         warnings.m4: provide a means to specify the program to compile.
39719         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39720         (gl_WARN_ADD): here.
39721         Use gl_AS_VAR_APPEND.
39722         Support an argument to specify the program to compile.
39723         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39724         AC_SUBST the WARN_CFLAGS when they are used.
39725         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39726         leave this to gl_WARN_ADD.
39728 2012-05-08  Eric Blake  <eblake@redhat.com>
39730         doc: recommendations on gettext version
39731         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39732         choice between versions.
39733         * DEPENDENCIES (gettext): Cover both approaches.
39735 2012-05-08  Jim Meyering  <meyering@redhat.com>
39737         init.sh: explain why EXEEXT support uses aliases rather than functions
39738         * tests/init.sh: Add a comment.
39740         init.sh: don't let bash aliases interfere with tests
39741         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39742         is bash.  This avoids problems for those who alias standard commands to
39743         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39744         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39746 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39748         stdint: be more consistent with glibc, SunOS libc
39749         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39750         (gl_int_fast16_t, gl_uint_fast16_t)
39751         (gl_int_fast32_t, gl_uint_fast32_t)
39752         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39753         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39754         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39755         Be consistent with glibc by default, and with SunOS 5.10 and later
39756         if __sun is defined.  This lessens the likelihood of clashes if
39757         code compiled for older hosts is combined with code compiled for
39758         newer ones.  Problem reported by Niels Möller in
39759         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39761 2012-05-07  Eric Blake  <eblake@redhat.com>
39763         isatty: relax license to LGPLv2+
39764         * modules/isatty (License): Relax license.
39766 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39768         stat-size: comment fix
39769         * lib/stat-size.h: Remove obsolete comment about indenting.
39771 2012-05-06  Bruno Haible  <bruno@clisp.org>
39773         Tests for module 'sh-quote'.
39774         * modules/sh-quote-tests: New file.
39775         * tests/test-sh-quote.c: New file.
39777 2012-05-06  Bruno Haible  <bruno@clisp.org>
39779         sh-quote: Improve shell_quote_argv's signature.
39780         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39781         * lib/sh-quote.c (shell_quote_argv): Likewise.
39783 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39785         stdint: document issues with int_fast8_t etc.
39786         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39787         stdint.h substitutes may define these types differently.  See
39788         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39790 2012-05-05  Bruno Haible  <bruno@clisp.org>
39792         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39794         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39795         or 'guessing no (mishandles large arguments)'.
39797 2012-05-05  Bruno Haible  <bruno@clisp.org>
39799         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39800         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39801         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39802         set gl_cv_func_link_follows_symlink to "guessing no".
39804 2012-05-05  Bruno Haible  <bruno@clisp.org>
39806         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39807         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39808         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39809         "guessing no".
39810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39812 2012-05-05  Bruno Haible  <bruno@clisp.org>
39814         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39815         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39816         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39817         set gl_cv_struct_dirent_d_ino to "guessing yes".
39819 2012-05-05  Bruno Haible  <bruno@clisp.org>
39821         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39822         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39823         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39824         "guessing yes".
39826 2012-05-05  Bruno Haible  <bruno@clisp.org>
39828         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39829         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39830         compiling to a glibc system, set gl_cv_func_signbit and
39831         gl_cv_func_signbit_gcc to "guessing yes".
39833 2012-05-05  Bruno Haible  <bruno@clisp.org>
39835         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39836         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39837         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39838         to "guessing yes".
39839         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39840         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39842 2012-05-05  Bruno Haible  <bruno@clisp.org>
39844         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39845         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39846         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39847         gl_cv_func_realpath_works to "guessing yes".
39849 2012-05-05  Bruno Haible  <bruno@clisp.org>
39851         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39853         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39855 2012-05-04  Bruno Haible  <bruno@clisp.org>
39857         Tweak last commit.
39858         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39859         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39861 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39863         unistd_h: make it easier to avoid sys_types_h
39864         This is useful for Emacs, which has its own method of porting to
39865         Windows, and which therefore does not need the sys_types_h module.
39866         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39867         code moved here from gl_SYS_TYPES_H.
39868         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39869         using the code directly.
39870         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39871         gl_SYS_TYPES_H.
39872         * modules/sys_types (Files):
39873         * modules/unistd (Files): Add m4/off_t.m4.
39875 2012-05-03  Bruno Haible  <bruno@clisp.org>
39877         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39878         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39879         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39880         "guessing yes" or "guessing no".
39881         (gl_FUNC_LSTAT): Update.
39882         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39883         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39884         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39886 2012-05-03  Bruno Haible  <bruno@clisp.org>
39888         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39889         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39890         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39891         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39892         cross-compiling, choose the first alternative on glibc systems.
39893         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39895 2012-05-03  Bruno Haible  <bruno@clisp.org>
39897         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39898         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39899         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39901 2012-05-03  Bruno Haible  <bruno@clisp.org>
39903         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39904         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39906 2012-05-03  Bruno Haible  <bruno@clisp.org>
39908         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39909         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39910         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39911         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39912         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39913         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39914         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39915         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39916         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39917         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39918         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39919         gl_cv_func_chown_ctime_works to "guessing yes".
39920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39921         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39922         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39923         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39924         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39926         compiling to glibc systems, set gl_cv_func_open_directory_works to
39927         "guessing yes".
39928         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39929         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39930         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39931         "guessing yes".
39932         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39933         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39934         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39935         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39936         "guessing yes".
39937         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39938         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39939         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39940         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39941         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39942         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39943         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39944         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39945         "guessing yes".
39946         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39947         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39948         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39949         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39950         "guessing yes".
39951         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39952         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39953         "guessing yes".
39954         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39955         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39956         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39957         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39958         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39959         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39960         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39961         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39962         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39963         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39964         "guessing yes".
39965         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39966         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39967         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39968         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39969         "guessing yes".
39970         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39971         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39972         "guessing yes".
39973         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39974         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39975         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39976         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39977         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39978         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39979         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39980         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39981         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39982         "guessing yes".
39983         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39984         compiling to glibc systems, set gl_cv_func_mknod_works to
39985         "guessing yes".
39986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39987         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39988         "guessing yes".
39989         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39990         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39991         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39992         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39993         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39994         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39995         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39996         compiling to glibc systems, set gl_cv_func_svid_putenv to
39997         "guessing yes".
39998         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39999         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
40000         "guessing yes".
40001         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
40002         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
40003         "guessing yes".
40004         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
40005         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
40006         to "guessing yes".
40007         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
40008         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
40009         to "guessing yes".
40010         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
40011         compiling to glibc systems, set gl_cv_func_rmdir_works to
40012         "guessing yes".
40013         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
40014         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
40015         gl_cv_func_unlink_parent_fails to "guessing yes".
40016         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
40017         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
40018         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
40019         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
40020         gl_cv_func_rename_dest_works to "guessing yes".
40021         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
40022         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
40023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
40024         compiling to glibc systems, set gl_cv_func_roundf_ieee to
40025         "guessing yes".
40026         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
40027         compiling to glibc systems, set gl_cv_func_roundl_ieee to
40028         "guessing yes".
40029         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
40030         compiling to glibc systems, set gl_cv_func_setenv_works to
40031         "guessing yes".
40032         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
40033         compiling to glibc systems, set gl_cv_func_unsetenv_works to
40034         "guessing yes".
40035         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
40036         compiling to glibc systems, set gl_cv_func_sleep_works to
40037         "guessing yes".
40038         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
40039         compiling to glibc systems, set gl_cv_func_stat_file_slash to
40040         "guessing yes".
40041         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
40042         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
40043         "guessing yes".
40044         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
40045         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
40046         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
40047         compiling to glibc systems, set gl_cv_func_truncf_ieee to
40048         "guessing yes".
40049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
40050         compiling to glibc systems, set gl_cv_func_truncl_ieee to
40051         "guessing yes".
40052         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
40053         compiling to glibc systems, set gl_cv_func_usleep_works to
40054         "guessing yes".
40055         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
40056         compiling to glibc systems, set gl_cv_func_futimesat_works to
40057         "guessing yes".
40059 2012-05-03  Bruno Haible  <bruno@clisp.org>
40061         Say "guessing yes" or "guessing no" when cross-compiling.
40062         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
40063         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
40064         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
40065         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
40066         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
40067         am_cv_func_working_getline to "guessing yes" or "guessing no".
40068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
40069         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
40070         (gl_FUNC_MEMMEM): When cross-compiling, set
40071         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
40072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
40073         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
40074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
40075         set gl_cv_func_strcasestr_works_always to "guessing yes" or
40076         "guessing no".
40077         (gl_FUNC_STRCASESTR): When cross-compiling, set
40078         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
40079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
40080         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
40081         (gl_FUNC_STRSTR): When cross-compiling, set
40082         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
40083         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
40084         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
40085         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
40086         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
40088 2012-05-01  Bruno Haible  <bruno@clisp.org>
40090         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
40091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
40092         * build-aux/reloc-ldflags: Likewise.
40093         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
40095 2012-05-01  Bruno Haible  <bruno@clisp.org>
40097         gnulib-tool: Remove transitional code.
40098         * gnulib-tool: Don't warn about --import with 0 arguments any more.
40099         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
40101 2012-05-01  Bruno Haible  <bruno@clisp.org>
40103         getcwd: Fix misindentation.
40104         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
40106 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
40108         exclude: process exclude and include directives in order
40109         This restores the pre-2009 behavior, and is part of a fix of a
40110         grep bug reported by Quentin Arce in
40111         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
40112         * lib/exclude.c (struct exclude): Remove 'tail' member.
40113         (new_exclude_segment): Prepend the new segment instead of appending.
40114         Return void, since that's now more convenient.
40115         (file_pattern_matches): Renamed from excluded_file_pattern_p.
40116         (file_name_matches): Renamed from excluded_file_name_p.
40117         (file_pattern_matches, file_name_matches):
40118         Return true if the pattern matches, not if it excludes.
40119         All callers changed.
40120         (excluded_file_name): Process the list in reverse order;
40121         since the list is now reversed this restores the pre-2009 behavior.
40122         (add_exclude): Adjust to new reversed-order list.  Use local var
40123         rather than macro, for clarity.
40124         * tests/test-exclude7.sh: Adjust to corrected behavior.
40126         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
40127         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
40128         it's not possible here.  Handle the case of \ at end of pattern
40129         without dumping core.
40130         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
40132         _Noreturn: future-proof non-GNU and non-MSVC compilers
40133         * build-aux/snippet/_Noreturn.h (_Noreturn):
40134         * m4/gnulib-common.m4 (gl_COMMON_BODY):
40135         Do not define _Noreturn if __STDC_VERSION__ indicates this is
40136         C11 or later.  This is more likely to work with random future C
40137         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
40138         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
40140         exclude: handle wildcards with FNM_EXTMATCH
40141         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
40142         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
40143         comment that "has wildcards" really means "has or may have
40144         wildcards".  Simplify by avoiding the need to call strcspn.
40146 2012-04-29  Bruno Haible  <bruno@clisp.org>
40148         gnulib-tool: Fix list of authors.
40149         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
40151 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
40153         bootstrap: support Automake-NG in $buildreq
40154         * bootstrap (check_versions): Handle automake and aclocal from
40155         Automake-NG specially.  They can be specified as respectively
40156         the "automake-ng" and "aclocal-ng" requirements.
40158 2012-04-25  Eric Blake  <eblake@redhat.com>
40160         bootstrap: only force latest Makefile.in.in for gettext module
40161         * build-aux/bootstrap (with_gettext): Only install latest
40162         Makefile.in.in for projects requesting bleeding edge gettext.
40164 2012-04-22  Bruno Haible  <bruno@clisp.org>
40166         doc: Mention reason for replacement on glibc/Linux systems.
40167         * doc/posix-functions/dprintf.texi: Mention the problem with special
40168         'long double' values.
40169         * doc/posix-functions/fprintf.texi: Likewise.
40170         * doc/posix-functions/printf.texi: Likewise.
40171         * doc/posix-functions/snprintf.texi: Likewise.
40172         * doc/posix-functions/sprintf.texi: Likewise.
40173         * doc/posix-functions/vdprintf.texi: Likewise.
40174         * doc/posix-functions/vfprintf.texi: Likewise.
40175         * doc/posix-functions/vprintf.texi: Likewise.
40176         * doc/posix-functions/vsnprintf.texi: Likewise.
40177         * doc/posix-functions/vsprintf.texi: Likewise.
40178         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
40179         platforms with F_DUPFD_CLOEXEC problems.
40180         * doc/posix-functions/glob.texi: Mention which platforms are affected
40181         by the problem with symbolic links.
40182         * doc/posix-functions/linkat.texi: Mention the problem with
40183         AT_SYMLINK_FOLLOW on Linux.
40185 2012-04-22  Bruno Haible  <bruno@clisp.org>
40187         pwrite: Don't replace on all platforms.
40188         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
40190 2012-04-22  Bruno Haible  <bruno@clisp.org>
40192         rint* tests: Avoid gcc warnings.
40193         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
40194         * tests/test-rintf.c (INFINITY, NAN): Likewise.
40195         * tests/test-rintl.c (INFINITY, NAN): Likewise.
40197 2012-04-21  Bruno Haible  <bruno@clisp.org>
40199         users.txt: Update.
40200         * users.txt: Add freedink, wdiff. Update URLs for projects that have
40201         switched from CVS to git, bzr, or svn.
40203 2012-04-21  Bruno Haible  <bruno@clisp.org>
40205         Large File Support for native Windows platforms.
40207         * m4/largefile.m4 (gl_LARGEFILE): New macro.
40208         * modules/largefile (configure.ac): Require gl_LARGEFILE.
40210         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
40211         type.
40212         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
40213         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
40214         * doc/posix-headers/sys_types.texi: Mention the effect of the
40215         'largefile' module.
40217         * lib/fcntl.in.h: Add comments about off_t.
40218         * modules/fcntl-h (Depends-on): Add sys_types.
40220         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
40221         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
40222         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
40223         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
40224         * modules/unistd (Depends-on): Add sys_types.
40225         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
40227         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
40228         instead of lseek.
40229         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
40230         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
40231         * modules/lseek (Depends-on): Add sys_types.
40233         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
40234         msvc-nothrow.h.
40235         (SetFileSize): New function.
40236         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
40237         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
40238         if Large File Support is requested.
40239         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
40240         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
40242         * lib/stdio.in.h: Add comments about off_t.
40243         * modules/stdio (Depends-on): Add sys_types.
40245         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
40246         instead of ftello.
40247         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
40248         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
40249         (gl_PREREQ_FTELLO): New macro.
40250         * modules/ftello (Depends-on): Add sys_types.
40251         (configure.ac): Incoke gl_PREREQ_FTELLO.
40253         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
40254         instead of fseeko.
40255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
40256         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
40257         (gl_PREREQ_FSEEKO): New macro.
40258         * modules/fseeko (Depends-on): Add sys_types.
40259         (configure.ac): Invoke gl_PREREQ_FSEEKO.
40261         * lib/sys_stat.in.h: Add comments about off_t.
40262         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
40263         64-bit integer for st_size in 'struct stat'.
40264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
40265         Define _GL_WINDOWS_64_BIT_ST_SIZE.
40266         * modules/sys_stat (Depends-on): Add sys_types.
40267         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
40269         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
40270         instead of stat or _stat.
40272         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
40273         'struct _stati64' instead of fstat and 'struct stat'.
40274         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
40275         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
40277         Reported by Ray Satiro <raysatiro@yahoo.com>.
40279 2012-04-19  Eric Blake  <eblake@redhat.com>
40281         bootstrap: accommodate older libtool
40282         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
40283         Reported by Daniel P. Berrange.
40285 2012-04-19  Jim Meyering  <meyering@redhat.com>
40287         announce-gen: avoid failure due to lack of Digest::SHA1
40288         Even with the preferred Digest::SHA available, this script
40289         would fail when the backup module, Digest::SHA1, was not installed.
40290         * build-aux/announce-gen: Quote the conditional use of "use".
40291         Reported by Reuben Thomas in:
40292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
40294         bootstrap: don't let a user's CDPATH setting affect this script
40295         When CDPATH is set, cd will sometimes generate output.
40296         When "cd" is run in a subshell whose output matters, that
40297         surprising-to-some output can cause malfunction.
40298         Unsetting CDPATH turns off this shell "feature."
40299         * build-aux/bootstrap (CDPATH): Unset.
40300         Reported by Reuben Thomas in:
40301         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
40302         and inspired by his patch here:
40303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
40305 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
40306         and Jim Meyering  <meyering@redhat.com>
40308         maint.mk: catch "see @xref{}" and similar
40309         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
40310         prohibit "See also @xref{", "Also see @pxref{", and similar.
40312 2012-04-16  Jim Meyering  <meyering@redhat.com>
40314         bootstrap: really use gnulib's po/Makefile.in.in
40315         * build-aux/bootstrap: Correct the source file name in previous change.
40316         Reported by Akim Demaille.
40318         configmake: correct minor inconsistency in Makefile rule
40319         * modules/configmake (Makefile.am): All other rules like this one
40320         run the final "mv -f ..." in the same backslash-continued command
40321         as the one that does everything else.  This one put the mv -f ...
40322         command on a separate, non-backslash-continued line.
40323         Make it like the others.
40325         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
40326         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40327         the one from gettext.  Reported by Akim Demaille.
40329 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40331         Fix recursion of install-* into po directories.
40332         Bison's install-pdf bug reported by Hans Aberg at
40333         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40334         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40335         (install-info, install-pdf, install-ps): New targets.
40337 2012-04-16  Jim Meyering  <meyering@redhat.com>
40339         maint: avoid spurious "make sc_maint" failure
40340         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40341         exempt all *.class file names, for lib/javaversion.class.
40343 2012-04-15  Bruno Haible  <bruno@clisp.org>
40345         lseek: Make configure test independent of environment.
40346         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40347         Windows, we know that lseek() on pipes is broken; skip the runtime
40348         test.
40350 2012-04-14  Bruno Haible  <bruno@clisp.org>
40352         stat: Bypass buggy override in mingw64.
40353         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40354         * lib/stat.c (stat) [mingw64]: Define to _stat.
40355         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40357 2012-04-14  Bruno Haible  <bruno@clisp.org>
40359         pathmax: Fix compilation error on MSVC 9.
40360         * modules/pathmax (Depends-on): Add unistd.
40362 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40364         README: document pointer comparison assumption
40365         * README (Portability guidelines): Document assumption about
40366         pointer comparisons, in response to a recent bug-gnulib comment by
40367         Jeffrey Kegler.
40369 2012-04-12  Bruno Haible  <bruno@clisp.org>
40371         Tests for module 'getrusage'.
40372         * modules/getrusage-tests: New file.
40373         * tests/test-getrusage.c: New file.
40375         New module 'getrusage'.
40376         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40377         warn-on-use.h.
40378         (getrusage): New declaration.
40379         * lib/getrusage.c: New file.
40380         * m4/getrusage.m4: New file.
40381         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40382         is declared.
40383         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40384         HAVE_GETRUSAGE.
40385         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40386         snippet/c++defs, snippet/warn-on-use.
40387         (Makefile.am): Update generation of sys/resource.h. Substitute
40388         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40389         * modules/getrusage: New file.
40390         * doc/posix-functions/getrusage.texi: Mention the new module.
40392 2012-04-12  Bruno Haible  <bruno@clisp.org>
40394         Tests for module 'sys_resource'.
40395         * modules/sys_resource-tests: New file.
40396         * tests/test-sys_resource.c: New file.
40398         New module 'sys_resource'.
40399         * lib/sys_resource.in.h: New file.
40400         * m4/sys_resource_h.m4: New file.
40401         * modules/sys_resource: New file.
40402         * doc/posix-headers/sys_resource.texi: Mention the new module.
40404 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40406         ioctl: Fix compilation error on mingw.
40407         * lib/ioctl.c: Include <windows.h>.
40408         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40410 2012-04-04  Jim Meyering  <meyering@redhat.com>
40412         regex: correct #pragma guard expression
40413         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40414         not 4.3.  Correct its cpp guard expression.
40416 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40418         regex: remove unnecessary type punning
40419         Problem reported by Vladimir Serbinenko in
40420         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40421         * lib/regex.h (struct re_pattern_buffer): Change the type of
40422         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40423         Fix comment to match code.
40424         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40425         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40426         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40427         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40428         (set_regs):
40429         Omit no-longer-necessary casts.
40431 2012-04-03  Bruno Haible  <bruno@clisp.org>
40433         Tests for module 'ilogbl'.
40434         * modules/ilogbl-tests: New file.
40435         * tests/test-ilogbl.c: New file.
40437         New module 'ilogbl'.
40438         * lib/math.in.h (ilogbl): New declaration.
40439         * lib/ilogbl.c: New file.
40440         * m4/ilogbl.m4: New file.
40441         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40443         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40444         Split sed invocation, to avoid the limit of 100 substitutions of
40445         HP-UX 'sed'.
40446         * modules/ilogbl: New file.
40447         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40448         * doc/posix-functions/ilogbl.texi: Mention the new module.
40450 2012-04-03  Bruno Haible  <bruno@clisp.org>
40452         Tests for module 'ilogbf'.
40453         * modules/ilogbf-tests: New file.
40454         * tests/test-ilogbf.c: New file.
40456         New module 'ilogbf'.
40457         * lib/math.in.h (ilogbf): New declaration.
40458         * lib/ilogbf.c: New file.
40459         * m4/ilogbf.m4: New file.
40460         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40462         REPLACE_ILOGBF.
40463         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40464         REPLACE_ILOGBF.
40465         * modules/ilogbf: New file.
40466         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40467         * doc/posix-functions/ilogbf.texi: Mention the new module.
40469 2012-04-03  Bruno Haible  <bruno@clisp.org>
40471         Tests for module 'ilogb'.
40472         * modules/ilogb-tests: New file.
40473         * tests/test-ilogb.c: New file.
40474         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40475         tests/test-logb-ieee.h.
40477         New module 'ilogb'.
40478         * lib/math.in.h (ilogb): New declaration.
40479         * lib/ilogb.c: New file.
40480         * m4/ilogb.m4: New file.
40481         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40483         REPLACE_ILOGB.
40484         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40485         REPLACE_ILOGB.
40486         * modules/ilogb: New file.
40487         * tests/test-math-c++.cc: Check the declaration of ilogb.
40488         * doc/posix-functions/ilogb.texi: Mention the new module.
40490 2012-04-03  Bruno Haible  <bruno@clisp.org>
40492         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40493         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40494         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40495         (main): Check their values.
40496         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40497         problem.
40499 2012-04-03  Bruno Haible  <bruno@clisp.org>
40501         Tests for module 'logbl-ieee'.
40502         * modules/logbl-ieee-tests: New file.
40503         * tests/test-logbl-ieee.c: New file.
40505         New module 'logbl-ieee'.
40506         * modules/logbl-ieee: New file.
40508         Tests for module 'logb-ieee'.
40509         * modules/logb-ieee-tests: New file.
40510         * tests/test-logb-ieee.c: New file.
40512         New module 'logb-ieee'.
40513         * modules/logb-ieee: New file.
40515         Tests for module 'logbf-ieee'.
40516         * modules/logbf-ieee-tests: New file.
40517         * tests/test-logbf-ieee.c: New file.
40518         * tests/test-logb-ieee.h: New file.
40520         New module 'logbf-ieee'.
40521         * modules/logbf-ieee: New file.
40523 2012-04-03  Bruno Haible  <bruno@clisp.org>
40525         Tests for module 'logbl'.
40526         * modules/logbl-tests: New file.
40527         * tests/test-logbl.c: New file.
40529         New module 'logbl'.
40530         * lib/math.in.h (logbl): New declaration.
40531         * lib/logbl.c: New file.
40532         * m4/logbl.m4: New file.
40533         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40535         REPLACE_LOGBL.
40536         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40537         REPLACE_LOGBL.
40538         * modules/logbl: New file.
40539         * tests/test-math-c++.cc: Check the declaration of logbl.
40540         * doc/posix-functions/logbl.texi: Mention the new module.
40542 2012-04-02  Bruno Haible  <bruno@clisp.org>
40544         Tests for module 'logbf'.
40545         * modules/logbf-tests: New file.
40546         * tests/test-logbf.c: New file.
40548         New module 'logbf'.
40549         * lib/math.in.h (logbf): New declaration.
40550         * lib/logbf.c: New file.
40551         * m4/logbf.m4: New file.
40552         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40554         REPLACE_LOGBF.
40555         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40556         REPLACE_LOGBF.
40557         * modules/logbf: New file.
40558         * tests/test-math-c++.cc: Check the declaration of logbf.
40559         * doc/posix-functions/logbf.texi: Mention the new module.
40561 2012-04-02  Bruno Haible  <bruno@clisp.org>
40563         logb tests: More tests.
40564         * tests/test-logb.h: New file, based on tests/test-logb.c and
40565         tests/test-frexp.h.
40566         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40567         (main): Just invoke test_function.
40568         * modules/logb-tests (Files): Add tests/test-logb.h,
40569         tests/minus-zero.h, tests/randomd.c.
40570         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40572         logb: Provide replacement and workarounds.
40573         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40574         is 1.
40575         * lib/logb.c: New file.
40576         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40577         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40579         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40580         * modules/logb (Files): Add lib/logb.c.
40581         (Depends-on): Add isfinite, frexp, isnand.
40582         (configure.ac): Compile the replacement code logb.c if needed.
40583         * tests/test-math-c++.cc: Check the declaration of logb.
40584         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40585         with subnormal numbers.
40587 2012-04-02  Bruno Haible  <bruno@clisp.org>
40589         log10* tests: Speed up.
40590         * tests/test-log10.h (test_function): Reduce amount of random numbers
40591         to test.
40593 2012-04-01  Bruno Haible  <bruno@clisp.org>
40595         logf-ieee: Fix test whether logf works.
40596         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40598 2012-04-01  Bruno Haible  <bruno@clisp.org>
40600         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40601         * lib/log10l.c: Include <float.h>
40602         (log10l): On IRIX, normalize the +Infinity value.
40603         * modules/log10l (Depends-on): Add 'float'.
40604         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40605         +Infinity.
40607         log10f-ieee: Work around test failure on NetBSD 5.1.
40608         * m4/log10f-ieee.m4: New file.
40609         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40610         test whether log10f works with a negative argument. Replace it if not.
40611         * lib/log10f.c (log10f): For negative arguments, return NaN.
40612         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40613         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40614         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40616         log10f-ieee: Work around test failure on Solaris 9.
40617         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40618         (configure.ac): Require gl_FUNC_LOG10F.
40620         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40621         * m4/log10-ieee.m4: New file.
40622         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40623         whether log10 works with a negative argument. Replace it if not.
40624         * lib/log10.c (log10): For negative arguments, return NaN.
40625         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40626         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40627         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40629         Tests for module 'log10l-ieee'.
40630         * modules/log10l-ieee-tests: New file.
40631         * tests/test-log10l-ieee.c: New file.
40633         New module 'log10l-ieee'.
40634         * modules/log10l-ieee: New file.
40636         Tests for module 'log10-ieee'.
40637         * modules/log10-ieee-tests: New file.
40638         * tests/test-log10-ieee.c: New file.
40640         New module 'log10-ieee'.
40641         * modules/log10-ieee: New file.
40643         Tests for module 'log10f-ieee'.
40644         * modules/log10f-ieee-tests: New file.
40645         * tests/test-log10f-ieee.c: New file.
40646         * tests/test-log10-ieee.h: New file.
40648         New module 'log10f-ieee'.
40649         * modules/log10f-ieee: New file.
40651 2012-04-01  Bruno Haible  <bruno@clisp.org>
40653         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40654         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40655         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40656         workaround.
40657         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40658         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40660         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40661         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40662         (Depends-on): Update conditions.
40663         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40664         IRIX 6.5, OSF/1 5.1 problems.
40666 2012-04-01  Bruno Haible  <bruno@clisp.org>
40668         log10f: Work around OSF/1 5.1 bug.
40669         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40670         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40671         workaround.
40672         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40673         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40675         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40676         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40677         (Depends-on): Update conditions.
40678         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40680 2012-04-01  Bruno Haible  <bruno@clisp.org>
40682         log10: Work around OSF/1 5.1 bug.
40683         * lib/math.in.h (log10): New declaration.
40684         * lib/log10.c: New file.
40685         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40686         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40687         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40689         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40690         * modules/log10 (Files): Add lib/log10.c.
40691         (Depends-on): Add math.
40692         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40693         * tests/test-math-c++.cc: Check the declaration of log10.
40694         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40696 2012-03-31  Bruno Haible  <bruno@clisp.org>
40698         log10l tests: More tests.
40699         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40700         tests/minus-zero.h, tests/randoml.c.
40701         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40702         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40703         (main): Invoke test_function.
40705         log10f tests: More tests.
40706         * modules/log10f-tests (Files): Add tests/test-log10.h,
40707         tests/minus-zero.h, tests/randomf.c.
40708         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40709         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40710         (main): Invoke test_function.
40712         log10 tests: More tests.
40713         * tests/test-log10.h: New file.
40714         * modules/log10-tests (Files): Add tests/test-log10.h,
40715         tests/minus-zero.h, tests/randomd.c.
40716         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40717         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40718         (main): Invoke test_function.
40720 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40722         fflush: Fix syntax error.
40723         * lib/fflush.c: Include unused-parameter.h, needed for
40724         _GL_UNUSED_PARAMETER.
40725         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40727 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40729         regex: pacify GCC when compiling GRUB
40730         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40731         a diagnostic.  Reported by Vladimir Serbinenko in
40732         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40734 2012-03-29  Eric Blake  <eblake@redhat.com>
40736         stdio: don't assume gets any more
40737         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40738         support.
40739         * modules/stdio (Makefile.am): Likewise.
40740         * lib/stdio-read.c (gets): Likewise.
40741         * tests/test-stdio-c++.cc: Likewise.
40742         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40743         * lib/stdio.in.h (gets): Make warning occur in more places.
40744         * doc/posix-functions/gets.texi (gets): Update documentation.
40745         Reported by Christer Solskogen.
40747         maint.mk: fix syntax checks without exclusions
40748         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40749         Reported by Daniel P. Berrange.
40751         strerror_r: avoid compiler warning
40752         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40753         level.
40755         fflush: avoid compiler warning
40756         * lib/fflush.c (update_fpos_cache): Mark variables that are
40757         potentially unused.
40759 2012-03-25  Bruno Haible  <bruno@clisp.org>
40761         Tests for module 'localeconv'.
40762         * modules/localeconv-tests: New file.
40763         * tests/test-localeconv.c: New file.
40765         New module 'localeconv'.
40766         * lib/locale.in.h (localeconv): New declaration.
40767         * lib/localeconv.c: New file.
40768         * m4/localeconv.m4: New file.
40769         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40770         REPLACE_LOCALECONV.
40771         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40772         REPLACE_LOCALECONV.
40773         * modules/localeconv: New file.
40774         * modules/nl_langinfo (Depends-on): Add localeconv.
40775         * modules/human (Depends-on): Likewise.
40776         * doc/posix-functions/localeconv.texi: Mention the new module.
40778 2012-03-25  Bruno Haible  <bruno@clisp.org>
40780         locale: Provide a complete 'struct lconv'.
40781         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40782         'struct lconv' does not contain int_p_cs_precedes.
40783         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40784         * doc/posix-headers/locale.texi: Update.
40786         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40787         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40788         * doc/posix-headers/locale.texi: Update.
40790         locale: Provide a working 'struct lconv'.
40791         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40792         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40793         'struct lconv' does not even contain decimal_point.
40794         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40795         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40796         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40797         * doc/posix-headers/locale.texi: Mention the problems with
40798         'struct lconv'.
40799         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40801 2012-03-24  Bruno Haible  <bruno@clisp.org>
40803         Enable common subexpression optimization in GCC.
40804         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40805         macros.
40806         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40807         GCC attribute 'const'.
40808         (uc_locale_language): Declare with GCC attribute 'pure'.
40809         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40810         with GCC attribute 'const'.
40811         * lib/unictype.in.h (uc_is_general_category_withtable,
40812         uc_combining_class, uc_combining_class_name,
40813         uc_combining_class_long_name, uc_bidi_class_name,
40814         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40815         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40816         uc_decimal_value, uc_digit_value, uc_numeric_value,
40817         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40818         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40819         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40820         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40821         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40822         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40823         Declare with GCC attribute 'const'.
40824         (uc_general_category_name, uc_general_category_long_name,
40825         uc_general_category_byname, uc_general_category,
40826         uc_is_general_category, uc_combining_class_byname,
40827         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40828         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40829         Declare with GCC attribute 'pure'.
40830         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40831         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40832         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40833         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40834         with GCC attribute 'pure'.
40835         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40836         'const'.
40837         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40838         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40839         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40840         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40841         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40842         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40843         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40844         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40845         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40846         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40847         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40848         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40849         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40850         GCC attribute 'pure'.
40851         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40852         'const'.
40853         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40854         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40855         u32_strwidth): Declare with GCC attribute 'pure'.
40857         Enable common subexpression optimization in GCC.
40858         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40859         (alphasort): Declare with GCC attribute 'pure'.
40860         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40861         (atoll): Declare with GCC attribute 'pure'.
40862         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40863         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40864         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40865         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40866         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40867         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40868         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40870 2012-03-24  Bruno Haible  <bruno@clisp.org>
40872         gnulib-tool: Avoid unintended error output from 'cmp'.
40873         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40874         "cmp -s", not "cmp > /dev/null".
40876 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40878         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40880         It's not just Automake versions < 1.9b that creates an empty
40881         pkgdatadir at installation time if pkgdata_DATA is specified
40882         to empty; modern automake versions do this as well, at least
40883         until automake 1.11.4 (not yet released at the moment of writing,
40884         but soon to appear).  That behaviour was generally considered a
40885         feature rather than a bug, at least until this discussion:
40886         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40888         See also automake bugs #10997 and #11030.
40890         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40891         reference to relevant automake bug numbers.
40892         (func_emit_tests_Makefile_am): Likewise.
40894 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40896         announce-gen: use Digest::SHA when possible
40897         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40898         back to Digest::SHA1 if necessary.
40900 2012-03-20  Jim Meyering  <meyering@redhat.com>
40902         tests: avoid gcc warnings about argv vs. const initializers
40903         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40904         warnings about discarding 'const' qualifier from pointer target type.
40905         * tests/test-posix_spawn2.c (main): Likewise.
40907 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40909         README-release: simplify slightly
40910         * top/README-release: Run "git checkout master" only once.
40912 2012-03-15  Mark Wielaard  <mark@klomp.org>
40914         git-merge-changelog: add specific example on how to use with hg.
40915         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40917 2012-03-18  Mark Wielaard  <mark@klomp.org>
40919         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40921 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40923         git-version-gen: don't let "prefix" envvar cause trouble
40924         * build-aux/git-version-gen (prefix): Initialize properly,
40925         so as not to use a value specified via the environment.
40926         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40928 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40930         regex: diagnose too-large repeat counts in EREs
40931         Previously, the code did not diagnose the too-large repeat count
40932         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40933         as if it were 'b\{1000000000}', which is unexpected.
40934         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40935         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40936         is a reasonable one for this problem.  Another option would be to
40937         create a new REG_OVERFLOW error for repeat counts that are too large.
40938         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40939         count is too large, so that the caller can distinguish the two cases.
40940         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40941         "Too large" return code, and that repeat counts are one example of this.
40943 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40945         doc: some glibc x32 integer width issues
40946         * doc/posix-headers/sys_types.texi (sys/types.h):
40947         * doc/posix-headers/time.texi (time.h):
40948         Mention that glibc x32 does not conform to POSIX in a couple of
40949         areas related to integer widths.
40951 2012-03-15  Bruno Haible  <bruno@clisp.org>
40953         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40954         * lib/fma.c (VOLATILE): New macro.
40955         (FUNC): Use it to work around a GCC compiler bug.
40957 2012-03-13  Bruno Haible  <bruno@clisp.org>
40959         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40960         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40961         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40962         REPLACE_HYPOTL to 1.
40963         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40965 2012-03-13  Bruno Haible  <bruno@clisp.org>
40967         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40968         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40969         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40970         REPLACE_REMAINDERL to 1.
40971         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40972         bug.
40974 2012-03-13  Bruno Haible  <bruno@clisp.org>
40976         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40977         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40978         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40979         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40980         too big rounding errors.
40981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40982         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40983         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40984         (Depends-on): Update conditions.
40985         * tests/test-sqrtl.c (my_ldexpl): New function.
40986         (main): Add test of a particular value.
40987         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40989 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40991         doc: Update timer_* platform portability notes.
40992         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40993         that always return ENOSYS.
40994         * doc/posix-functions/timer_delete.texi: Likewise.
40995         * doc/posix-functions/timer_gettime.texi: Likewise.
40996         * doc/posix-functions/timer_settime.texi: Likewise.
40998 2012-03-13  Bruno Haible  <bruno@clisp.org>
41000         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41001         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
41002         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
41003         REPLACE_CBRTL to 1.
41004         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41006 2012-03-13  Bruno Haible  <bruno@clisp.org>
41008         remainderl: Avoid compilation error on AIX >= 5.2.
41009         * lib/math.in.h (remainderl): Undefine macro from the system header.
41011 2012-03-13  Bruno Haible  <bruno@clisp.org>
41013         Avoid compilation errors with MSVC option -fp:strict.
41014         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
41015         * lib/cbrtf.c: Likewise.
41016         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41018 2012-03-12  Bruno Haible  <bruno@clisp.org>
41020         uninorm: Don't crash in out-of-memory conditions.
41021         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
41022         gracefully.
41023         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
41024         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
41026 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
41028         quote: fix syntax-check
41029         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
41030         also exports quote_quoting_options.
41032 2012-03-12  Simon Josefsson  <simon@josefsson.org>
41034         Collapse list of copyright years to ranges.  See
41035         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
41036         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
41037         build-aux/csharpexec.sh.in, build-aux/gnupload,
41038         build-aux/install-reloc, build-aux/javacomp.sh.in,
41039         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
41040         build-aux/move-if-change, build-aux/reloc-ldflags,
41041         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
41043 2012-03-11  Bruno Haible  <bruno@clisp.org>
41045         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41046         * m4/log2f-ieee.m4: New file.
41047         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
41048         whether log2f works with a minus zero argument. Replace it if not.
41049         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
41050         (Depends-on): Add log2-ieee.
41051         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
41052         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
41054         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41055         * m4/log2-ieee.m4: New file.
41056         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
41057         whether log2 works with a minus zero argument. Replace it if not.
41058         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
41059         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
41060         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
41062         Tests for module 'log2l-ieee'.
41063         * modules/log2l-ieee-tests: New file.
41064         * tests/test-log2l-ieee.c: New file.
41066         New module 'log2l-ieee'.
41067         * modules/log2l-ieee: New file.
41069         Tests for module 'log2-ieee'.
41070         * modules/log2-ieee-tests: New file.
41071         * tests/test-log2-ieee.c: New file.
41073         New module 'log2-ieee'.
41074         * modules/log2-ieee: New file.
41076         Tests for module 'log2f-ieee'.
41077         * modules/log2f-ieee-tests: New file.
41078         * tests/test-log2f-ieee.c: New file.
41079         * tests/test-log2-ieee.h: New file.
41081         New module 'log2f-ieee'.
41082         * modules/log2f-ieee: New file.
41084 2012-03-11  Bruno Haible  <bruno@clisp.org>
41086         Tests for module 'log2l'.
41087         * modules/log2l-tests: New file.
41088         * tests/test-log2l.c: New file.
41090         New module 'log2l'.
41091         * lib/math.in.h (log2l): New declaration.
41092         * lib/log2l.c: New file.
41093         * m4/log2l.m4: New file.
41094         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
41095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
41096         REPLACE_LOG2L.
41097         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
41098         REPLACE_LOG2L.
41099         * modules/log2l: New file.
41100         * tests/test-math-c++.cc: Check the declaration of log2l.
41101         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
41102         and OSF/1 problems.
41104 2012-03-11  Bruno Haible  <bruno@clisp.org>
41106         Tests for module 'log2f'.
41107         * modules/log2f-tests: New file.
41108         * tests/test-log2f.c: New file.
41110         New module 'log2f'.
41111         * lib/math.in.h (log2f): New declaration.
41112         * lib/log2f.c: New file.
41113         * m4/log2f.m4: New file.
41114         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
41115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
41116         REPLACE_LOG2F.
41117         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
41118         REPLACE_LOG2F.
41119         * modules/log2f: New file.
41120         * tests/test-math-c++.cc: Check the declaration of log2f.
41121         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
41122         and OSF/1 and Cygwin problems.
41124 2012-03-11  Bruno Haible  <bruno@clisp.org>
41126         Tests for module 'log2'.
41127         * modules/log2-tests: New file.
41128         * tests/test-log2.c: New file.
41129         * tests/test-log2.h: New file.
41131         New module 'log2'.
41132         * lib/math.in.h (log2): New declaration.
41133         * lib/log2.c: New file.
41134         * m4/log2.m4: New file.
41135         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
41136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
41137         REPLACE_LOG2.
41138         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
41139         REPLACE_LOG2.
41140         * modules/log2: New file.
41141         * tests/test-math-c++.cc: Check the declaration of log2.
41142         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
41143         and OSF/1 and Cygwin problems.
41145 2012-03-11  Bruno Haible  <bruno@clisp.org>
41147         exp2* tests: More tests.
41148         * tests/test-exp2.h (test_function): Test all integral arguments that
41149         don't need to overflow or denormalized numbers.
41150         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
41151         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
41152         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
41154 2012-03-10  Bruno Haible  <bruno@clisp.org>
41156         log1pl-ieee: Work around test failure on AIX 7.1.
41157         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
41159         log1pl-ieee: Work around test failure on IRIX 6.5.
41160         * m4/log1pl-ieee.m4: New file.
41161         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
41162         test whether log1pl works with a minus zero argument. Replace it if
41163         not.
41164         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
41165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
41166         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
41167         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
41168         (Depends-on): Update conditions.
41169         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41170         m4/signbit.m4.
41171         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
41172         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
41174         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
41175         * m4/log1pf-ieee.m4: New file.
41176         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
41177         test whether log1pf works with a minus zero argument. Replace it if
41178         not.
41179         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
41180         m4/signbit.m4.
41181         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
41182         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
41184         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
41185         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
41186         (configure.ac): Require gl_FUNC_LOG1PF.
41188         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
41189         * m4/log1p-ieee.m4: New file.
41190         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
41191         whether log1p works with a minus zero argument. Replace it if not.
41192         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
41193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
41194         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
41195         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
41196         (Depends-on): Update conditions.
41197         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41198         m4/signbit.m4.
41199         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
41200         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
41202         Tests for module 'log1pl-ieee'.
41203         * modules/log1pl-ieee-tests: New file.
41204         * tests/test-log1pl-ieee.c: New file.
41206         New module 'log1pl-ieee'.
41207         * modules/log1pl-ieee: New file.
41209         Tests for module 'log1p-ieee'.
41210         * modules/log1p-ieee-tests: New file.
41211         * tests/test-log1p-ieee.c: New file.
41213         New module 'log1p-ieee'.
41214         * modules/log1p-ieee: New file.
41216         Tests for module 'log1pf-ieee'.
41217         * modules/log1pf-ieee-tests: New file.
41218         * tests/test-log1pf-ieee.c: New file.
41219         * tests/test-log1p-ieee.h: New file.
41221         New module 'log1pf-ieee'.
41222         * modules/log1pf-ieee: New file.
41224 2012-03-10  Bruno Haible  <bruno@clisp.org>
41226         Tests for module 'log1pl'.
41227         * modules/log1pl-tests: New file.
41228         * tests/test-log1pl.c: New file.
41230         New module 'log1pl'.
41231         * lib/math.in.h (log1pl): New declaration.
41232         * lib/log1pl.c: New file.
41233         * m4/log1pl.m4: New file.
41234         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
41235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
41236         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
41237         * modules/log1pl: New file.
41238         * tests/test-math-c++.cc: Check the declaration of log1pl.
41239         * doc/posix-functions/log1pl.texi: Mention the new module.
41241 2012-03-10  Bruno Haible  <bruno@clisp.org>
41243         Tests for module 'log1pf'.
41244         * modules/log1pf-tests: New file.
41245         * tests/test-log1pf.c: New file.
41247         New module 'log1pf'.
41248         * lib/math.in.h (log1pf): New declaration.
41249         * lib/log1pf.c: New file.
41250         * m4/log1pf.m4: New file.
41251         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
41252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
41253         REPLACE_LOG1PF.
41254         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
41255         REPLACE_LOG1PF.
41256         * modules/log1pf: New file.
41257         * tests/test-math-c++.cc: Check the declaration of log1pf.
41258         * doc/posix-functions/log1pf.texi: Mention the new module.
41260 2012-03-10  Bruno Haible  <bruno@clisp.org>
41262         log1p tests: More tests.
41263         * tests/test-log1p.h: New file.
41264         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
41265         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
41266         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
41267         (main): Invoke test_function.
41269         log1p: Provide replacement for Minix and MSVC.
41270         * lib/math.in.h (log1p): New declaration.
41271         * lib/log1p.c: New file.
41272         * m4/log1p.m4: New file.
41273         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
41274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
41275         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
41276         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
41277         (Depends-on): Add math, isnand, log, round.
41278         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
41279         HAVE_LOG1P is 0.
41280         * tests/test-math-c++.cc: Check the declaration of log1p.
41281         * doc/posix-functions/log1p.texi: Mention the replacement.
41283 2012-03-10  Bruno Haible  <bruno@clisp.org>
41285         math tests: Small simplification.
41286         * tests/test-exp.h (test_function): Use the same err_bound for
41287         'double' on platforms with sizeof (long double) == sizeof (double)
41288         than on platforms with sizeof (long double) > sizeof (double).
41289         * tests/test-exp2.h (test_function): Likewise.
41290         * tests/test-expm1.h (test_function): Likewise.
41291         * tests/test-log.h (test_function): Likewise.
41293 2012-03-10  Bruno Haible  <bruno@clisp.org>
41295         Fix some comments.
41296         * lib/expl.c: Fix an ambiguous comment.
41297         * lib/expm1.c: Likewise.
41298         * lib/expm1l.c: Likewise.
41299         * lib/exp2.c: Likewise.
41300         * lib/exp2l.c: Likewise.
41302 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
41304         regex: allow inclusion of <regex.h> before <limits.h>
41305         Without this patch, portable programs had to include <limits.h> before
41306         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41307         I ran into this problem with a test version of GNU grep on Solaris 8.
41308         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
41309         This is done conditionally so that this change can be merged
41310         back to glibc.
41311         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
41312         using the included regex.
41314         fts: depend on fdopendir
41315         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
41316         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
41317         problem was introduced when fdopendir was split out.
41319 2012-03-10  Bruno Haible  <bruno@clisp.org>
41321         Remove unused variables.
41322         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41323         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41325 2012-03-10  Bruno Haible  <bruno@clisp.org>
41327         isnanf-nolibm: Fix last commit.
41328         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41330         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41331         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41333 2012-03-10  Bruno Haible  <bruno@clisp.org>
41335         logf-ieee: Work around test failure on NetBSD 5.1.
41336         * m4/logf-ieee.m4: New file.
41337         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41338         whether logf works with a negative argument. Replace it if not.
41339         * lib/logf.c (logf): For negative arguments, return NaN.
41340         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41341         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41342         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41344         logf-ieee: Work around test failure on Solaris 9.
41345         * modules/logf-ieee (Depends-on): Add log-ieee.
41346         (configure.ac): Require gl_FUNC_LOGF.
41348         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41349         * m4/log-ieee.m4: New file.
41350         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41351         log works with a negative argument. Replace it if not.
41352         * lib/log.c (log): For negative arguments, return NaN.
41353         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41354         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41355         * doc/posix-functions/log.texi: Mention the log-ieee module.
41357         Tests for module 'logl-ieee'.
41358         * modules/logl-ieee-tests: New file.
41359         * tests/test-logl-ieee.c: New file.
41361         New module 'logl-ieee'.
41362         * modules/logl-ieee: New file.
41364         Tests for module 'log-ieee'.
41365         * modules/log-ieee-tests: New file.
41366         * tests/test-log-ieee.c: New file.
41368         New module 'log-ieee'.
41369         * modules/log-ieee: New file.
41371         Tests for module 'logf-ieee'.
41372         * modules/logf-ieee-tests: New file.
41373         * tests/test-logf-ieee.c: New file.
41374         * tests/test-log-ieee.h: New file.
41376         New module 'logf-ieee'.
41377         * modules/logf-ieee: New file.
41379 2012-03-10  Bruno Haible  <bruno@clisp.org>
41381         log: Fix bug introduced on 2012-03-09.
41382         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41384 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41386         timer-time: link explicitly with pthreads on glibc
41387         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41388         to support static linking, when newer glibc is
41389         detected, as that contains pthread emulation of
41390         POSIX timer functions where required.
41391         * modules/timer-time: Depend on threadlib to
41392         pull in the appropriate library to link.
41394 2012-03-10  Bruno Haible  <bruno@clisp.org>
41396         log* tests: More tests.
41397         * tests/test-log.h: New file.
41398         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41399         (main): Invoke test_function.
41400         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41401         (main): Invoke test_function.
41402         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41403         (main): Invoke test_function.
41404         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41405         tests/randomd.c.
41406         (Makefile.am): Add randomd.c to test_log_SOURCES.
41407         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41408         tests/randomf.c.
41409         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41410         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41411         tests/randoml.c.
41412         (Depends-on): Add 'float'.
41413         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41415 2012-03-09  Bruno Haible  <bruno@clisp.org>
41417         logl: Work around OSF/1 5.1 bug.
41418         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41419         * lib/logl.c (logl): If logl exists, use it and provide just the
41420         workaround.
41421         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41422         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41424         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41425         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41426         (Depends-on): Update conditions.
41427         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41429 2012-03-09  Bruno Haible  <bruno@clisp.org>
41431         logf: Work around OSF/1 5.1 bug.
41432         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41433         * lib/logf.c (logf): If logf exists, use it and provide just the
41434         workaround.
41435         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41436         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41438         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41439         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41440         (Depends-on): Update conditions.
41441         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41443 2012-03-09  Bruno Haible  <bruno@clisp.org>
41445         log: Work around OSF/1 5.1 bug.
41446         * lib/math.in.h (log): New declaration.
41447         * lib/log.c: New file.
41448         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41449         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41450         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41452         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41453         * modules/log (Files): Add lib/log.c.
41454         (Depends-on): Add math.
41455         (configure.ac): If REPLACE_LOG is 1, compile an override.
41456         * tests/test-math-c++.cc: Check the declaration of log.
41457         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41459 2012-03-09  Jim Meyering  <meyering@redhat.com>
41461         readtokens.c: adjust wording in a comment
41462         * lib/readtokens.c: Insert omitted "that" in a comment.
41464 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41466         modechange: add notations +40, 00440, etc.
41467         * lib/modechange.c (mode_compile): Support new notations
41468         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41470 2012-03-08  Bruno Haible  <bruno@clisp.org>
41472         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41473         * m4/exp2l-ieee.m4: New file.
41474         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41475         test whether exp2l works with a NaN argument and with a negative
41476         infinity argument. Replace it if not.
41477         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41479         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41480         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41481         (Depends-on): Update conditions.
41482         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41483         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41484         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41486         Tests for module 'exp2l-ieee'.
41487         * modules/exp2l-ieee-tests: New file.
41488         * tests/test-exp2l-ieee.c: New file.
41490         New module 'exp2l-ieee'.
41491         * modules/exp2l-ieee: New file.
41493         Tests for module 'exp2-ieee'.
41494         * modules/exp2-ieee-tests: New file.
41495         * tests/test-exp2-ieee.c: New file.
41497         New module 'exp2-ieee'.
41498         * modules/exp2-ieee: New file.
41500         Tests for module 'exp2f-ieee'.
41501         * modules/exp2f-ieee-tests: New file.
41502         * tests/test-exp2f-ieee.c: New file.
41503         * tests/test-exp2-ieee.h: New file.
41505         New module 'exp2f-ieee'.
41506         * modules/exp2f-ieee: New file.
41508 2012-03-08  Bruno Haible  <bruno@clisp.org>
41510         Tests for module 'exp2l'.
41511         * modules/exp2l-tests: New file.
41512         * tests/test-exp2l.c: New file.
41514         New module 'exp2l'.
41515         * lib/math.in.h (exp2l): New declaration.
41516         * lib/exp2l.c: New file.
41517         * lib/expl-table.c: New file, extracted from lib/expl.c.
41518         * lib/expl.c (gl_expl_table): New declaration.
41519         (expl): Remove expl_table. Update reference.
41520         * m4/exp2l.m4: New file.
41521         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41523         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41524         * modules/exp2l: New file.
41525         * modules/expl (Files): Add lib/expl-table.c.
41526         (configure.ac): Compile also expl-table.c.
41527         * tests/test-math-c++.cc: Check the declaration of exp2l.
41528         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41529         problem.
41531 2012-03-08  Bruno Haible  <bruno@clisp.org>
41533         Tests for module 'exp2f'.
41534         * modules/exp2f-tests: New file.
41535         * tests/test-exp2f.c: New file.
41537         New module 'exp2f'.
41538         * lib/math.in.h (exp2f): New declaration.
41539         * lib/exp2f.c: New file.
41540         * m4/exp2f.m4: New file.
41541         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41543         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41544         * modules/exp2f: New file.
41545         * tests/test-math-c++.cc: Check the declaration of exp2f.
41546         * doc/posix-functions/exp2f.texi: Mention the new module and the
41547         IRIX problem.
41549 2012-03-08  Bruno Haible  <bruno@clisp.org>
41551         Tests for module 'exp2'.
41552         * modules/exp2-tests: New file.
41553         * tests/test-exp2.c: New file.
41554         * tests/test-exp2.h: New file.
41556         New module 'exp2'.
41557         * lib/math.in.h (exp2): New declaration.
41558         * lib/exp2.c: New file.
41559         * m4/exp2.m4: New file.
41560         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41562         REPLACE_EXP2.
41563         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41564         REPLACE_EXP2.
41565         * modules/exp2: New file.
41566         * tests/test-math-c++.cc: Check the declaration of exp2.
41567         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41568         and OpenBSD problems.
41570 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41572         savedir: fix comment typo
41573         * lib/savedir.c (savedirstream): Fix typo in comment.
41575 2012-03-08  Bruno Haible  <bruno@clisp.org>
41577         test-readtokens.c: use const; remove unwarranted cast
41578         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41580 2012-03-08  Bruno Haible  <bruno@clisp.org>
41582         fmal: Avoid compilation error on AIX.
41583         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41584         AIX 5.2..7.1.
41586 2012-03-08  Bruno Haible  <bruno@clisp.org>
41588         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41589         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41590         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41591         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41592         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41593         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41594         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41596 2012-03-08  Bruno Haible  <bruno@clisp.org>
41598         remainderf: Override buggy system function on IRIX 6.5.
41599         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41600         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41601         when it exists.
41602         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41604 2012-03-08  Jim Meyering  <meyering@redhat.com>
41606         test-readtokens.c: avoid const-related compilation warnings
41607         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41609 2012-03-07  Jim Meyering  <meyering@redhat.com>
41610             Bruno Haible  <bruno@clisp.org>
41612         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41613         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41614         tests/randomd.c.
41615         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41616         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41617         tests/randoml.c.
41618         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41620 2012-03-07  Bruno Haible  <bruno@clisp.org>
41622         expm1l: Avoid compilation error on AIX.
41623         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41624         AIX 5.2..7.1.
41626 2012-03-07  Bruno Haible  <bruno@clisp.org>
41628         expm1l: Don't override undeclared system function on IRIX 6.5.
41629         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41630         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41631         it exists. Set HAVE_DECL_EXPM1L.
41632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41633         HAVE_EXPM1L.
41634         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41635         HAVE_EXPM1L.
41636         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41638 2012-03-07  Bruno Haible  <bruno@clisp.org>
41640         remainderl: Don't override undeclared system function on IRIX 6.5.
41641         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41642         HAVE_REMAINDERL.
41643         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41644         declared when it exists. Set HAVE_DECL_REMAINDERL.
41645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41646         not HAVE_REMAINDERL.
41647         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41648         HAVE_REMAINDERL.
41649         * doc/posix-functions/remainderl.texi: Mention missing declaration
41650         problem.
41652 2012-03-07  Bruno Haible  <bruno@clisp.org>
41654         rintf: Don't override undeclared system function on IRIX 6.5.
41655         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41656         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41657         exists. Set HAVE_DECL_RINTF.
41658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41659         HAVE_RINTF.
41660         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41661         HAVE_RINTF.
41662         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41664 2012-03-07  Bruno Haible  <bruno@clisp.org>
41666         roundl: Avoid compilation error on AIX.
41667         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41668         AIX 5.2..7.1.
41670 2012-03-07  Bruno Haible  <bruno@clisp.org>
41672         roundl: Don't override undeclared system function on IRIX 6.5.
41673         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41674         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41675         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41676         * modules/roundl (configure.ac): For replacement code, test
41677         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41678         (Depends-on): Update conditions.
41679         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41681 2012-03-07  Bruno Haible  <bruno@clisp.org>
41683         roundf: Don't override undeclared system function on IRIX 6.5.
41684         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41685         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41686         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41687         * modules/roundf (configure.ac): For replacement code, test
41688         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41689         (Depends-on): Update conditions.
41690         * modules/roundf-ieee (Depends-on): Update conditions.
41691         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41693 2012-03-07  Bruno Haible  <bruno@clisp.org>
41695         round: Don't override undeclared system function on IRIX 6.5.
41696         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41697         argument.
41698         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41699         also when it is not declared. Set HAVE_ROUND. For replacement code,
41700         test HAVE_ROUND, not HAVE_DECL_ROUND.
41701         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41702         not HAVE_DECL_ROUND.
41703         (Depends-on): Update conditions.
41704         * modules/round-ieee (Depends-on): Update conditions.
41705         * doc/posix-functions/round.texi: Mention the IRIX problem.
41707 2012-03-07  Bruno Haible  <bruno@clisp.org>
41709         copysignf: Don't override undeclared system function on IRIX 6.5.
41710         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41711         HAVE_COPYSIGNF.
41712         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41713         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41715         not HAVE_COPYSIGNF.
41716         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41717         HAVE_COPYSIGNF.
41718         * doc/posix-functions/copysignf.texi: Mention missing declaration
41719         problem.
41721 2012-03-07  Jim Meyering  <meyering@redhat.com>
41723         readtokens: add tests
41724         * modules/readtokens-tests: New file.
41725         * tests/test-readtokens.c: New file.
41727 2012-03-07  Jim Meyering  <meyering@redhat.com>
41729         quotearg: the module must now include quote.h
41730         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41731         So must the module.
41732         * modules/quotearg (Files): Add quote.h.
41734 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41736         readtokens: avoid core dumps with unusual calling patterns
41737         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41738         * lib/readtokens.c: Include limits.h.
41739         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41740         (readtoken): Don't cache the delimiters; the cache code was buggy
41741         if !delim && saved_delim, or if the new n_delim differs from the old.
41742         Also, it wasn't thread-safe.
41744 2012-03-07  Bruno Haible  <bruno@clisp.org>
41746         quote: Adhere to common module description layout.
41747         * modules/quote (Makefile.am): Add back empty section.
41749 2012-03-06  Akim Demaille  <demaille@gostai.com>
41751         quote: fuse into quotearg
41752         This patch is made for the benefit of Bison.
41753         quote does not leave the choice of the quoting style to the user.
41754         quoting_style provides poor customizability, yet quoting_options,
41755         which is very rich, is hidden inside quotearg.c.  So in order to
41756         allow quote customization, move its implementation to quotearg.c.
41757         * lib/quote.c: Remove.
41758         * modules/quote: Adjust.
41759         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41760         warning: provide all the members of literal structs.
41761         (quote_quoting_options): New.
41762         (quote, quote_n): Import implementation from quote.c.
41763         * lib/quote.h: Import the comments from quote.c.
41764         (quote_quoting_options): New.
41766 2012-03-06  Bruno Haible  <bruno@clisp.org>
41768         Tests for module 'expm1l-ieee'.
41769         * modules/expm1l-ieee-tests: New file.
41770         * tests/test-expm1l-ieee.c: New file.
41772         New module 'expm1l-ieee'.
41773         * modules/expm1l-ieee: New file.
41775         Tests for module 'expm1f-ieee'.
41776         * modules/expm1f-ieee-tests: New file.
41777         * tests/test-expm1f-ieee.c: New file.
41779         New module 'expm1f-ieee'.
41780         * modules/expm1f-ieee: New file.
41782         Tests for module 'expm1-ieee'.
41783         * modules/expm1-ieee-tests: New file.
41784         * tests/test-expm1-ieee.c: New file.
41785         * tests/test-expm1-ieee.h: New file.
41787         New module 'expm1-ieee'.
41788         * modules/expm1-ieee: New file.
41789         * m4/expm1-ieee.m4: New file.
41790         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41791         whether expm1 works with a minus zero argument. Replace it if not.
41792         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41794         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41795         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41796         (Depends-on): Update conditions.
41797         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41798         AIX problem.
41800 2012-03-06  Bruno Haible  <bruno@clisp.org>
41802         Work around expm1f bug on IRIX 6.5.
41803         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41804         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41805         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41806         not work.
41807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41808         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41809         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41810         (Depends-on): Update conditions.
41811         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41813 2012-03-06  Bruno Haible  <bruno@clisp.org>
41815         Tests for module 'expm1l'.
41816         * modules/expm1l-tests: New file.
41817         * tests/test-expm1l.c: New file.
41819         New module 'expm1l'.
41820         * lib/math.in.h (expm1l): New declaration.
41821         * lib/expm1l.c: New file.
41822         * m4/expm1l.m4: New file.
41823         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41824         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41825         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41826         * modules/expm1l: New file.
41827         * tests/test-math-c++.cc: Check the declaration of expm1l.
41828         * doc/posix-functions/expm1l.texi: Mention the new module.
41830 2012-03-06  Bruno Haible  <bruno@clisp.org>
41832         Tests for module 'expm1f'.
41833         * modules/expm1f-tests: New file.
41834         * tests/test-expm1f.c: New file.
41836         New module 'expm1f'.
41837         * lib/math.in.h (expm1f): New declaration.
41838         * lib/expm1f.c: New file.
41839         * m4/expm1f.m4: New file.
41840         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41842         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41843         * modules/expm1f: New file.
41844         * tests/test-math-c++.cc: Check the declaration of expm1f.
41845         * doc/posix-functions/expm1f.texi: Mention the new module.
41847 2012-03-06  Bruno Haible  <bruno@clisp.org>
41849         Tests for module 'expm1'.
41850         * modules/expm1-tests: New file.
41851         * tests/test-expm1.c: New file.
41852         * tests/test-expm1.h: New file.
41854         New module 'expm1'.
41855         * lib/math.in.h (expm1): New declaration.
41856         * lib/expm1.c: New file.
41857         * m4/expm1.m4: New file.
41858         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41860         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41861         * modules/expm1: New file.
41862         * tests/test-math-c++.cc: Check the declaration of expm1.
41863         * doc/posix-functions/expm1.texi: Mention the new module.
41865 2012-03-06  Bruno Haible  <bruno@clisp.org>
41867         math: Ensure declarations of math functions.
41868         * modules/acosf (Depends-on): Add 'extensions'.
41869         * modules/asinf (Depends-on): Likewise.
41870         * modules/atan2f (Depends-on): Likewise.
41871         * modules/atanf (Depends-on): Likewise.
41872         * modules/cbrt (Depends-on): Likewise.
41873         * modules/cbrtf (Depends-on): Likewise.
41874         * modules/cbrtl (Depends-on): Likewise.
41875         * modules/copysignf (Depends-on): Likewise.
41876         * modules/copysignl (Depends-on): Likewise.
41877         * modules/cosf (Depends-on): Likewise.
41878         * modules/coshf (Depends-on): Likewise.
41879         * modules/expf (Depends-on): Likewise.
41880         * modules/fabsf (Depends-on): Likewise.
41881         * modules/fabsl (Depends-on): Likewise.
41882         * modules/fmaf (Depends-on): Likewise.
41883         * modules/fmal (Depends-on): Likewise.
41884         * modules/fmodf (Depends-on): Likewise.
41885         * modules/fmodl (Depends-on): Likewise.
41886         * modules/frexpf (Depends-on): Likewise.
41887         * modules/frexpl (Depends-on): Likewise.
41888         * modules/hypot (Depends-on): Likewise.
41889         * modules/hypotf (Depends-on): Likewise.
41890         * modules/hypotl (Depends-on): Likewise.
41891         * modules/ldexpf (Depends-on): Likewise.
41892         * modules/ldexpl (Depends-on): Likewise.
41893         * modules/log10f (Depends-on): Likewise.
41894         * modules/log10l (Depends-on): Likewise.
41895         * modules/log1p (Depends-on): Likewise.
41896         * modules/logb (Depends-on): Likewise.
41897         * modules/logf (Depends-on): Likewise.
41898         * modules/modff (Depends-on): Likewise.
41899         * modules/modfl (Depends-on): Likewise.
41900         * modules/powf (Depends-on): Likewise.
41901         * modules/remainderf (Depends-on): Likewise.
41902         * modules/remainderl (Depends-on): Likewise.
41903         * modules/rintf (Depends-on): Likewise.
41904         * modules/rintl (Depends-on): Likewise.
41905         * modules/sinf (Depends-on): Likewise.
41906         * modules/sinhf (Depends-on): Likewise.
41907         * modules/sqrtf (Depends-on): Likewise.
41908         * modules/tanf (Depends-on): Likewise.
41909         * modules/tanhf (Depends-on): Likewise.
41910         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41911         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41912         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41913         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41914         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41915         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41916         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41917         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41918         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41919         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41920         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41921         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41922         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41923         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41924         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41925         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41926         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41927         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41928         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41929         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41930         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41931         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41932         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41933         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41935         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41936         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41937         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41938         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41939         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41940         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41941         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41942         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41943         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41944         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41945         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41946         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41947         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41948         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41949         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41950         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41952 2012-03-06  Bruno Haible  <bruno@clisp.org>
41954         math: Update module names in warnings.
41955         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41956         tanl): Use specific module name in warn-on-use warning.
41958 2012-03-06  Bruno Haible  <bruno@clisp.org>
41960         expl: Simplify computation.
41961         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41963 2012-03-05  Bruno Haible  <bruno@clisp.org>
41965         exp* tests: More tests.
41966         * tests/test-exp.h: New file.
41967         * tests/test-exp.c: Include <float.h> and test-exp.h.
41968         (main): Invoke test_function.
41969         * tests/test-expf.c: Include <float.h> and test-exp.h.
41970         (main): Invoke test_function.
41971         * tests/test-expl.c: Include <float.h> and test-exp.h.
41972         (main): Invoke test_function.
41973         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41974         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41975         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41976         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41977         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41978         (Depends-on): Add 'float'.
41979         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41981         expl: Fix precision of computed result.
41982         * lib/expl.c: Completely rewritten.
41983         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41984         (Maintainer): Add me.
41985         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41987 2012-03-05  Bruno Haible  <bruno@clisp.org>
41989         cbrt* tests: More tests.
41990         * tests/test-cbrt.h: New file.
41991         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41992         (main): Invoke test_function.
41993         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41994         (main): Invoke test_function.
41995         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41996         (main): Invoke test_function.
41997         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41998         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41999         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
42000         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
42001         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
42002         (Depends-on): Add 'float'.
42003         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
42005 2012-03-05  Bruno Haible  <bruno@clisp.org>
42007         hypot* tests: More tests.
42008         * tests/test-hypot.h: New file, partially extracted from
42009         tests/test-hypotl.c.
42010         * tests/test-hypot.c: Include test-hypot.h.
42011         (main): Invoke test_function.
42012         * tests/test-hypotf.c: Include test-hypot.h.
42013         (main): Invoke test_function.
42014         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
42015         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
42016         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
42017         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
42018         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
42019         tests/randomf.c.
42020         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
42021         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
42022         tests/randoml.c.
42023         (Depends-on): Add 'fpucw', 'float'.
42024         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
42026 2012-03-05  Bruno Haible  <bruno@clisp.org>
42028         fpucw: Doc about FreeBSD.
42029         * lib/fpucw.h: Mention FreeBSD in comments.
42031 2012-03-04  Bruno Haible  <bruno@clisp.org>
42033         sqrt* tests: More tests.
42034         * tests/test-sqrt.h: New file.
42035         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
42036         (main): Invoke test_function.
42037         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
42038         (main): Invoke test_function.
42039         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
42040         (main): Invoke test_function.
42041         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
42042         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
42043         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
42044         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
42045         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
42046         (Depends-on): Add 'float'.
42047         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
42049 2012-03-04  Bruno Haible  <bruno@clisp.org>
42051         remainder* tests: More tests.
42052         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
42053         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
42054         (main): Invoke test_function.
42055         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
42056         (main): Invoke test_function.
42057         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
42058         (main): Invoke test_function.
42059         * modules/remainder-tests (Files): Add tests/test-remainder.h,
42060         tests/randomd.c.
42061         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
42062         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
42063         tests/randomf.c.
42064         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
42065         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
42066         tests/randoml.c.
42067         (Depends-on): Add 'float'.
42068         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
42070 2012-03-04  Bruno Haible  <bruno@clisp.org>
42072         remainder, remainderf, remainderl: Fix computation for large quotients.
42073         * lib/remainder.c: Completely rewritten.
42074         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
42075         USE_FLOAT.
42076         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
42077         USE_LONG_DOUBLE.
42078         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
42079         isnand, isinf. Remove round, fma.
42080         * modules/remainderf (Files): Add lib/remainder.c.
42081         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
42082         Remove roundf, fmaf.
42083         * modules/remainderl (Files): Add lib/remainder.c.
42084         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
42085         isinf. Remove roundl, fmal.
42086         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
42087         REMAINDER_LIBM.
42088         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
42089         REMAINDERF_LIBM.
42090         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
42091         REMAINDERL_LIBM.
42093 2012-03-04  Bruno Haible  <bruno@clisp.org>
42095         fmod* tests: More tests.
42096         * tests/test-fmod.h (my_ldexp): New function.
42097         (test_function): Reduce amount of random numbers to test. Add tests
42098         of very large quotients x / y.
42099         * tests/test-fmod.c (MAX_EXP): New macro.
42100         * tests/test-fmodf.c (MAX_EXP): Likewise.
42101         * tests/test-fmodl.c (MAX_EXP): Likewise.
42103 2012-03-04  Bruno Haible  <bruno@clisp.org>
42105         fmod, fmodl: Fix computation for large quotients x / y.
42106         * lib/fmod.c: Completely rewritten.
42107         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
42108         USE_LONG_DOUBLE.
42109         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
42110         isnand. Remove fma.
42111         * modules/fmodl (Files): Add lib/fmod.c.
42112         (Depends-on): Add float, isfinite, signbit, fabsl,
42113         frexpl, ldexpl, isnanl. Remove fma.
42114         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
42115         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
42117 2012-03-03  Bruno Haible  <bruno@clisp.org>
42119         fmod* tests: More tests.
42120         * tests/test-fmod.h: New file.
42121         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
42122         (main): Invoke test_function.
42123         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
42124         (main): Invoke test_function.
42125         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
42126         (main): Invoke test_function.
42127         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
42128         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
42129         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
42130         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
42131         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
42132         (Depends-on): Add 'float'.
42133         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
42135 2012-03-03  Bruno Haible  <bruno@clisp.org>
42137         rint* tests: More tests.
42138         * tests/test-rint.h: New file, partially extracted from
42139         tests/test-rintl.c.
42140         * tests/test-rint.c: Include test-rint.h.
42141         (main): Invoke test_function.
42142         * tests/test-rintf.c: Include test-rint.h.
42143         (main): Invoke test_function.
42144         * tests/test-rintl.c: Include test-rint.h.
42145         (main): Invoke test_function.
42146         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
42147         (Makefile.am): Add randomd.c to test_rint_SOURCES.
42148         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
42149         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
42150         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
42151         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
42153 2012-03-03  Bruno Haible  <bruno@clisp.org>
42155         modf* tests: More tests.
42156         * tests/test-modf.h: New file.
42157         * tests/test-modf.c: Include <float.h> and test-modf.h.
42158         (main): Invoke test_function.
42159         * tests/test-modff.c: Include <float.h> and test-modf.h.
42160         (main): Invoke test_function.
42161         * tests/test-modfl.c: Include <float.h> and test-modf.h.
42162         (main): Invoke test_function.
42163         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
42164         (Makefile.am): Add randomd.c to test_modf_SOURCES.
42165         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
42166         (Makefile.am): Add randomf.c to test_modff_SOURCES.
42167         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
42168         (Depends-on): Add 'float'.
42169         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
42171 2012-03-03  Bruno Haible  <bruno@clisp.org>
42173         fabs* tests: More tests.
42174         * tests/test-fabs.h: New file, partially extracted from
42175         tests/test-fabsl.c.
42176         * tests/test-fabs.c (RANDOM): New macro.
42177         * tests/test-fabsf.c (RANDOM): New macro.
42178         * tests/test-fabsl.c (RANDOM): New macro.
42179         * modules/fabs-tests (Files): Add tests/randomd.c.
42180         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
42181         * modules/fabsf-tests (Files): Add tests/randomf.c.
42182         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
42183         * modules/fabsl-tests (Files): Add tests/randoml.c.
42184         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
42186 2012-03-03  Bruno Haible  <bruno@clisp.org>
42188         ldexp* tests: More tests.
42189         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
42190         * tests/test-ldexp.c (RANDOM): New macro.
42191         * tests/test-ldexpf.c (RANDOM): New macro.
42192         * tests/test-ldexpl.c (RANDOM): New macro.
42193         * modules/ldexp-tests (Files): Add tests/randomd.c.
42194         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
42195         * modules/ldexpf-tests (Files): Add tests/randomf.c.
42196         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
42197         * modules/ldexpl-tests (Files): Add tests/randoml.c.
42198         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
42200 2012-03-03  Bruno Haible  <bruno@clisp.org>
42202         frexp* tests: More tests.
42203         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
42204         * tests/test-frexp.c (RANDOM): New macro.
42205         * tests/test-frexpf.c (RANDOM): New macro.
42206         * tests/test-frexpl.c (RANDOM): New macro.
42207         * modules/frexp-tests (Files): Add tests/randomd.c.
42208         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
42209         * modules/frexpf-tests (Files): Add tests/randomf.c.
42210         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
42211         * modules/frexpl-tests (Files): Add tests/randoml.c.
42212         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
42214 2012-03-03  Bruno Haible  <bruno@clisp.org>
42216         Support for pseudo-random numbers in tests.
42217         * tests/randomf.c: New file.
42218         * tests/randomd.c: New file.
42219         * tests/randoml.c: New file.
42220         * tests/macros.h (randomf, randomd, randoml): New declarations.
42222 2012-03-03  Bruno Haible  <bruno@clisp.org>
42224         frexp* tests: Refactor.
42225         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
42226         * tests/test-frexp.c: Include and use it.
42227         * tests/test-frexpf.c: Likewise.
42228         * tests/test-frexpl.c: Likewise.
42229         * modules/frexp-tests (Files): Add tests/test-frexp.h.
42230         * modules/frexpf-tests (Files): Likewise.
42231         * modules/frexpl-tests (Files): Likewise.
42233 2012-03-02  Jim Meyering  <meyering@redhat.com>
42235         maint: don't specify XZ_OPT=-9ev in dist-related rule
42236         Using xz's -9 option is warranted only if you have a very large
42237         tarball (see xz's documentation for the sizes vs. presets), and
42238         requires 64MiB of memory at decompression time.
42239         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
42240         Automake's default of just "-e" is fine.  Override on a
42241         per-package basis by setting XZ_OPT e.g., in cfg.mk.
42243 2012-03-01  Eric Blake  <eblake@redhat.com>
42245         maint.mk: allow announcement for non-gnulib project
42246         * maint.mk (announcement): Skip gnulib version if not used.
42248 2012-03-01  Jim Meyering  <meyering@redhat.com>
42250         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
42251         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
42252         envvar settings cannot interfere.  Otherwise, setting envvars like
42253         prohibit=foo require=bar, etc. would cause spurious test failures.
42255 2012-03-01  Eric Blake  <eblake@redhat.com>
42257         maint.mk: add per-line exclusions to prohibitions
42258         * maint.mk (_sc_search_regexp): Add $exclude parameter.
42259         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
42260         (sc_const_long_option): Use it.
42262 2012-03-01  Bruno Haible  <bruno@clisp.org>
42264         Tests for module 'expl-ieee'.
42265         * modules/expl-ieee-tests: New file.
42266         * tests/test-expl-ieee.c: New file.
42268         New module 'expl-ieee'.
42269         * modules/expl-ieee: New file.
42271         Tests for module 'exp-ieee'.
42272         * modules/exp-ieee-tests: New file.
42273         * tests/test-exp-ieee.c: New file.
42275         New module 'exp-ieee'.
42276         * modules/exp-ieee: New file.
42278         Tests for module 'expf-ieee'.
42279         * modules/expf-ieee-tests: New file.
42280         * tests/test-expf-ieee.c: New file.
42281         * tests/test-exp-ieee.h: New file.
42283         New module 'expf-ieee'.
42284         * modules/expf-ieee: New file.
42286 2012-02-29  Bruno Haible  <bruno@clisp.org>
42288         cbrtl-ieee: Work around test failure on IRIX 6.5.
42289         * m4/cbrtl-ieee.m4: New file.
42290         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
42291         test whether cbrtl works with a minus zero argument. Replace it if not.
42292         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
42293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
42294         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
42295         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
42296         (Depends-on): Update conditions.
42297         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
42298         m4/signbit.m4.
42299         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
42300         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
42301         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
42303         Tests for module 'cbrtl-ieee'.
42304         * modules/cbrtl-ieee-tests: New file.
42305         * tests/test-cbrtl-ieee.c: New file.
42307         New module 'cbrtl-ieee'.
42308         * modules/cbrtl-ieee: New file.
42310         Tests for module 'cbrt-ieee'.
42311         * modules/cbrt-ieee-tests: New file.
42312         * tests/test-cbrt-ieee.c: New file.
42314         New module 'cbrt-ieee'.
42315         * modules/cbrt-ieee: New file.
42317         Tests for module 'cbrtf-ieee'.
42318         * modules/cbrtf-ieee-tests: New file.
42319         * tests/test-cbrtf-ieee.c: New file.
42320         * tests/test-cbrt-ieee.h: New file.
42322         New module 'cbrtf-ieee'.
42323         * modules/cbrtf-ieee: New file.
42325 2012-02-29  Bruno Haible  <bruno@clisp.org>
42327         cbrtf: Work around bug in IRIX 6.5 system function.
42328         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42329         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42330         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42331         work.
42332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42333         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42334         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42335         (Depends-on): Update conditions.
42336         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42338 2012-02-29  Bruno Haible  <bruno@clisp.org>
42340         Tests for module 'cbrtl'.
42341         * modules/cbrtl-tests: New file.
42342         * tests/test-cbrtl.c: New file.
42344         New module 'cbrtl'.
42345         * lib/math.in.h (cbrtl): New declaration.
42346         * lib/cbrtl.c: New file.
42347         * m4/cbrtl.m4: New file.
42348         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42350         HAVE_DECL_CBRTL.
42351         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42352         HAVE_DECL_CBRTL.
42353         * modules/cbrtl: New file.
42354         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42355         * doc/posix-functions/cbrtl.texi: Mention the new module.
42357 2012-02-29  Bruno Haible  <bruno@clisp.org>
42359         Tests for module 'cbrtf'.
42360         * modules/cbrtf-tests: New file.
42361         * tests/test-cbrtf.c: New file.
42363         New module 'cbrtf'.
42364         * lib/math.in.h (cbrtf): New declaration.
42365         * lib/cbrtf.c: New file.
42366         * m4/cbrtf.m4: New file.
42367         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42369         HAVE_DECL_CBRTF.
42370         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42371         HAVE_DECL_CBRTF.
42372         * modules/cbrtf: New file.
42373         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42374         * doc/posix-functions/cbrtf.texi: Mention the new module.
42376 2012-02-29  Bruno Haible  <bruno@clisp.org>
42378         cbrt: Provide replacement on MSVC and Minix.
42379         * lib/math.in.h (cbrt): New declaration.
42380         * lib/cbrt.c: New file.
42381         * m4/cbrt.m4: New file.
42382         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42384         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42385         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42386         (Depends-on): Add dependencies.
42387         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42388         * tests/test-math-c++.cc: Check the declaration of cbrt.
42389         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42390         replacement.
42392 2012-02-29  Bruno Haible  <bruno@clisp.org>
42394         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42395         * m4/hypotl-ieee.m4: New file.
42396         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42397         test whether hypotl works with mixed NaN and Infinity arguments.
42398         Replace it if not.
42399         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42401         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42402         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42403         (Depends-on): Update conditions.
42404         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42405         (Depends-on): Add hypot-ieee.
42406         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42407         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42409         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42410         * m4/hypotf-ieee.m4: New file.
42411         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42412         test whether hypotf works with mixed NaN and Infinity arguments.
42413         Replace it if not.
42414         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42415         (Depends-on): Add hypot-ieee.
42416         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42417         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42419         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42420         * lib/math.in.h (hypot): New declaration.
42421         * lib/hypot.c: New file.
42422         * m4/hypot-ieee.m4: New file.
42423         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42424         whether hypot works with mixed NaN and Infinity arguments. Replace it
42425         if not.
42426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42427         REPLACE_HYPOT.
42428         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42429         * modules/hypot (Files): Add lib/hypot.c.
42430         (Depends-on): Add dependencies.
42431         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42432         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42433         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42434         * tests/test-math-c++.cc: Check the declaration of hypot.
42435         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42437         Tests for module 'hypotl-ieee'.
42438         * modules/hypotl-ieee-tests: New file.
42439         * tests/test-hypotl-ieee.c: New file.
42441         New module 'hypotl-ieee'.
42442         * modules/hypotl-ieee: New file.
42444         Tests for module 'hypot-ieee'.
42445         * modules/hypot-ieee-tests: New file.
42446         * tests/test-hypot-ieee.c: New file.
42448         New module 'hypot-ieee'.
42449         * modules/hypot-ieee: New file.
42451         Tests for module 'hypotf-ieee'.
42452         * modules/hypotf-ieee-tests: New file.
42453         * tests/test-hypotf-ieee.c: New file.
42454         * tests/test-hypot-ieee.h: New file.
42456         New module 'hypotf-ieee'.
42457         * modules/hypotf-ieee: New file.
42459 2012-02-29  Bruno Haible  <bruno@clisp.org>
42461         Remove unused variables.
42462         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42463         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42464         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42465         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42467 2012-02-29  Eric Blake  <eblake@redhat.com>
42469         termios: fix pid_t always, not just for tcgetsid
42470         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42471         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42472         just when building tcgetsid.
42474 2012-02-29  Bruno Haible  <bruno@clisp.org>
42476         Tests for module 'hypotl'.
42477         * modules/hypotl-tests: New file.
42478         * tests/test-hypotl.c: New file.
42480         New module 'hypotl'.
42481         * lib/math.in.h (hypotl): New declaration.
42482         * lib/hypotl.c: New file.
42483         * m4/hypotl.m4: New file.
42484         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42486         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42487         * modules/hypotl: New file.
42488         * tests/test-math-c++.cc: Check the hypotl declaration.
42489         * doc/posix-functions/hypotl.texi: Mention the new module.
42491 2012-02-29  Eric Blake  <eblake@redhat.com>
42493         tcgetsid: fix cygwin header bug
42494         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42496         docs: update cygwin progress
42497         * doc/posix-functions/llround.texi (llround): Added in cygwin
42498         1.7.8.
42499         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42500         * doc/glibc-functions/program_invocation_name.texi
42501         (program_invocation_name): Likewise.
42502         * doc/glibc-functions/program_invocation_short_name.texi
42503         (program_invocation_short_name): Likewise.
42504         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42505         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42506         Likewise.
42507         * doc/posix-functions/pthread_spin_destroy.texi
42508         (pthread_spin_destroy): Added in cygwin 1.7.10.
42509         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42510         Likewise.
42511         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42512         Likewise.
42513         * doc/posix-functions/pthread_spin_trylock.texi
42514         (pthread_spin_trylock): Likewise.
42515         * doc/posix-functions/pthread_spin_unlock.texi
42516         (pthread_spin_unlock): Likewise.
42517         * doc/posix-functions/pthread_setschedprio.texi
42518         (pthread_setschedprio): Likewise.
42519         * doc/posix-functions/pthread_attr_getstack.texi
42520         (pthread_attr_getstack): Likewise.
42521         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42522         (pthread_attr_getstackaddr): Likewise.
42523         * doc/glibc-functions/pthread_getattr_np.texi
42524         (pthread_getattr_np): Likewise.
42525         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42526         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42527         * doc/posix-functions/clock_settime.texi (clock_settime):
42528         Likewise.
42529         * doc/posix-functions/pthread_attr_getguardsize.texi
42530         (pthread_attr_getguardsize): Likewise.
42531         * doc/posix-functions/pthread_attr_setguardsize.texi
42532         (pthread_attr_setguardsize): Likewise.
42533         * doc/posix-functions/pthread_attr_setstack.texi
42534         (pthread_attr_setstack): Likewise.
42535         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42536         (pthread_attr_setstackaddr): Likewise.
42537         * doc/posix-functions/clock_getcpuclockid.texi
42538         (clock_getcpuclockid): Likewise.
42539         * doc/posix-functions/pthread_getcpuclockid.texi
42540         (pthread_getcpuclockid): Likewise.
42541         * doc/glibc-functions/error.texi (error): Likewise.
42542         * doc/glibc-functions/error_at_line.texi (error_at_line):
42543         Likewise.
42544         * doc/glibc-functions/error_message_count.texi
42545         (error_message_count): Likewise.
42546         * doc/glibc-functions/error_one_per_line.texi
42547         (error_one_per_line): Likewise.
42548         * doc/glibc-functions/error_print_progname.texi
42549         (error_print_progname): Likewise.
42550         * doc/posix-functions/pthread_condattr_getclock.texi
42551         (pthread_condattr_getclock): Likewise.
42552         * doc/posix-functions/pthread_condattr_setclock.texi
42553         (pthread_condattr_setclock): Likewise.
42554         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42555         Likewise.
42556         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42557         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42558         * doc/glibc-functions/get_current_dir_name.texi
42559         (get_current_dir_name): Likewise.
42560         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42561         Likewise.
42562         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42563         wrong return type.
42564         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42565         1.7.11.
42567 2012-02-29  Bruno Haible  <bruno@clisp.org>
42569         Tests for module 'hypotf'.
42570         * modules/hypotf-tests: New file.
42571         * tests/test-hypotf.c: New file.
42573         New module 'hypotf'.
42574         * lib/math.in.h (hypotf): New declaration.
42575         * lib/hypotf.c: New file.
42576         * m4/hypotf.m4: New file.
42577         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42579         REPLACE_HYPOTF.
42580         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42581         REPLACE_HYPOTF.
42582         * modules/hypotf: New file.
42583         * tests/test-math-c++.cc: Check the hypotf declaration.
42584         * doc/posix-functions/hypotf.texi: Mention the new module.
42586         hypot: Prepare for hypotf module.
42587         * m4/hypot.m4: New file.
42588         * modules/hypot (Files): Add m4/hypot.m4.
42589         (configure.ac): Invoke gl_FUNC_HYPOT.
42591 2012-02-29  Bruno Haible  <bruno@clisp.org>
42593         hypot tests: More tests.
42594         * tests/test-hypot.c: Include <float.h>.
42595         (main): Add tests about overflow and underflow.
42597 2012-02-29  Bruno Haible  <bruno@clisp.org>
42599         math code: Add comments.
42600         * lib/acosl.c: Add comment about related glibc source files.
42601         * lib/asinl.c: Likewise.
42602         * lib/atanl.c: Likewise.
42603         * lib/expl.c: Likewise.
42604         * lib/logl.c: Likewise.
42605         * lib/sincosl.c: Likewise.
42606         * lib/sinl.c: Likewise.
42607         * lib/tanl.c: Likewise.
42608         * lib/trigl.c: Likewise.
42609         * lib/cosl.c: Likewise. Fix comments.
42611 2012-02-28  Bruno Haible  <bruno@clisp.org>
42613         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42614         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42615         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42616         HUGE_VALL are defined.
42617         (numeric_equald): Renamed from numeric_equal.
42618         (numeric_equalf, numeric_equall): New functions.
42619         (main): Check also HUGE_VALF, HUGE_VALL.
42620         * modules/math-tests (Files): Add tests/macros.h.
42621         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42622         HUGE_VALL.
42624 2012-02-28  Bruno Haible  <bruno@clisp.org>
42626         doc: Move ISO C11 feature notes into POSIX chapters.
42627         * doc/posix-functions/aligned_alloc.texi: Renamed from
42628         doc/glibc-functions/aligned_alloc.texi.
42629         * doc/posix-functions/quick_exit.texi: Renamed from
42630         doc/glibc-functions/quick_exit.texi.
42631         * doc/posix-headers/uchar.texi: Renamed from
42632         doc/glibc-headers/uchar.texi.
42633         * doc/posix-functions/c16rtomb.texi: Renamed from
42634         doc/glibc-functions/c16rtomb.texi.
42635         * doc/posix-functions/c32rtomb.texi: Renamed from
42636         doc/glibc-functions/c32rtomb.texi.
42637         * doc/posix-functions/mbrtoc16.texi: Renamed from
42638         doc/glibc-functions/mbrtoc16.texi.
42639         * doc/posix-functions/mbrtoc32.texi: Renamed from
42640         doc/glibc-functions/mbrtoc32.texi.
42641         * doc/gnulib.texi: Update.
42642         (Glibc uchar.h): Remove section.
42643         Suggested by Eric Blake.
42645 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42647         stdnoreturn: port to MSVC better
42648         MSVC standard headers use __declspec(noreturn), so #define noreturn
42649         to empty on that platform.  Reported by Bruno Haible in
42650         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42651         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42652         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42654 2012-02-28  Bruno Haible  <bruno@clisp.org>
42656         doc: Mention new glibc headers and functions.
42657         * doc/glibc-headers/uchar.texi: New file.
42658         * doc/glibc-functions/aligned_alloc.texi: New file.
42659         * doc/glibc-functions/c16rtomb.texi: New file.
42660         * doc/glibc-functions/c32rtomb.texi: New file.
42661         * doc/glibc-functions/clock_adjtime.texi: New file.
42662         * doc/glibc-functions/fanotify_init.texi: New file.
42663         * doc/glibc-functions/fanotify_mark.texi: New file.
42664         * doc/glibc-functions/inet6_opt_append.texi: New file.
42665         * doc/glibc-functions/inet6_opt_find.texi: New file.
42666         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42667         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42668         * doc/glibc-functions/inet6_opt_init.texi: New file.
42669         * doc/glibc-functions/inet6_opt_next.texi: New file.
42670         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42671         * doc/glibc-functions/inet6_rth_add.texi: New file.
42672         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42673         * doc/glibc-functions/inet6_rth_init.texi: New file.
42674         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42675         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42676         * doc/glibc-functions/inet6_rth_space.texi: New file.
42677         * doc/glibc-functions/login.texi: New file.
42678         * doc/glibc-functions/mbrtoc16.texi: New file.
42679         * doc/glibc-functions/mbrtoc32.texi: New file.
42680         * doc/glibc-functions/name_to_handle_at.texi: New file.
42681         * doc/glibc-functions/ntp_gettimex.texi: New file.
42682         * doc/glibc-functions/open_by_handle_at.texi: New file.
42683         * doc/glibc-functions/prlimit.texi: New file.
42684         * doc/glibc-functions/process_vm_readv.texi: New file.
42685         * doc/glibc-functions/process_vm_writev.texi: New file.
42686         * doc/glibc-functions/recvmmsg.texi: New file.
42687         * doc/glibc-functions/scandirat.texi: New file.
42688         * doc/glibc-functions/sendmmsg.texi: New file.
42689         * doc/glibc-functions/setns.texi: New file.
42690         * doc/glibc-functions/timespec_get.texi: New file.
42691         * doc/gnulib.texi: Include them.
42692         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42693         sections.
42694         Reported by Eric Blake.
42696 2012-02-28  Bruno Haible  <bruno@clisp.org>
42698         Avoid compilation errors with MSVC option -fp:strict.
42699         * lib/floor.c: Use MSVC specific pragma fenv_access.
42700         * lib/ceil.c: Likewise.
42701         * lib/trunc.c: Likewise.
42702         * lib/round.c: Likewise.
42703         * lib/rint.c: Likewise.
42704         * lib/fma.c: Likewise.
42705         * lib/integer_length.c: Likewise.
42706         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42707         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42708         * tests/test-floor2.c: Likewise.
42709         * tests/test-floorf2.c: Likewise.
42710         * tests/test-ceil2.c: Likewise.
42711         * tests/test-ceilf2.c: Likewise.
42712         * tests/test-trunc2.c: Likewise.
42713         * tests/test-truncf2.c: Likewise.
42714         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42716 2012-02-27  Bruno Haible  <bruno@clisp.org>
42718         Tests for module 'sqrtl-ieee'.
42719         * modules/sqrtl-ieee-tests: New file.
42720         * tests/test-sqrtl-ieee.c: New file.
42722         New module 'sqrtl-ieee'.
42723         * modules/sqrtl-ieee: New file.
42725         Tests for module 'sqrt-ieee'.
42726         * modules/sqrt-ieee-tests: New file.
42727         * tests/test-sqrt-ieee.c: New file.
42729         New module 'sqrt-ieee'.
42730         * modules/sqrt-ieee: New file.
42732         Tests for module 'sqrtf-ieee'.
42733         * modules/sqrtf-ieee-tests: New file.
42734         * tests/test-sqrtf-ieee.c: New file.
42735         * tests/test-sqrt-ieee.h: New file.
42737         New module 'sqrtf-ieee'.
42738         * modules/sqrtf-ieee: New file.
42740 2012-02-27  Bruno Haible  <bruno@clisp.org>
42742         remainderl-ieee: Work around test failure on OSF/1.
42743         * m4/remainderl-ieee.m4: New file.
42744         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42745         present, test whether remainderl works with a zero second argument.
42746         Replace it if not.
42747         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42749         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42750         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42751         (Depends-on): Update conditions.
42752         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42753         (Depends-on): Add remainder-ieee.
42754         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42755         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42756         module.
42758         remainderf-ieee: Work around test failure on OSF/1.
42759         * m4/remainderf-ieee.m4: New file.
42760         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42761         present, test whether remainderf works with a zero second argument.
42762         Replace it if not.
42763         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42765         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42766         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42767         (Depends-on): Update conditions.
42768         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42769         (Depends-on): Add remainder-ieee.
42770         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42771         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42772         module.
42774         remainder-ieee: Work around test failure on OSF/1.
42775         * m4/remainder-ieee.m4: New file.
42776         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42777         present, test whether remainder works with a zero second argument.
42778         Replace it if not.
42779         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42781         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42782         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42783         (Depends-on): Update dependencies.
42784         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42785         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42786         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42788         Tests for module 'remainderl-ieee'.
42789         * modules/remainderl-ieee-tests: New file.
42790         * tests/test-remainderl-ieee.c: New file.
42792         New module 'remainderl-ieee'.
42793         * modules/remainderl-ieee: New file.
42795         Tests for module 'remainder-ieee'.
42796         * modules/remainder-ieee-tests: New file.
42797         * tests/test-remainder-ieee.c: New file.
42799         New module 'remainder-ieee'.
42800         * modules/remainder-ieee: New file.
42802         Tests for module 'remainderf-ieee'.
42803         * modules/remainderf-ieee-tests: New file.
42804         * tests/test-remainderf-ieee.c: New file.
42805         * tests/test-remainder-ieee.h: New file.
42807         New module 'remainderf-ieee'.
42808         * modules/remainderf-ieee: New file.
42810 2012-02-27  Bruno Haible  <bruno@clisp.org>
42812         modff, modfl: Fix configure syntax error.
42813         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42814         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42816 2012-02-27  Bruno Haible  <bruno@clisp.org>
42818         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42819         * m4/fmodl-ieee.m4: New file.
42820         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42821         whether fmodl works with zero arguments. Replace it if not.
42822         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42823         (Depends-on): Add fmod-ieee.
42824         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42825         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42827         fmodf-ieee: Work around test failure on OSF/1.
42828         * m4/fmodf-ieee.m4: New file.
42829         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42830         whether fmodf works with zero arguments. Replace it if not.
42831         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42833         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42834         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42835         (Depends-on): Update dependencies.
42836         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42837         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42838         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42840         fmodf-ieee: Work around test failure on MSVC 9.
42841         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42842         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42844         fmod-ieee: Work around test failures on OSF/1, mingw.
42845         * m4/fmod-ieee.m4: New file.
42846         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42847         whether fmod works with zero arguments. Replace it if not.
42848         * lib/math.in.h (fmod): New declaration.
42849         * lib/fmod.c: New file.
42850         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42852         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42853         * modules/fmod (Files): Add lib/fmod.c.
42854         (Depends-on): Add math, isinf, trunc, fma.
42855         (configure.ac): Arrange to compile lib/fmod.c if needed.
42856         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42857         m4/signbit.m4.
42858         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42859         * tests/test-math-c++.cc: Check the declaration of fmod.
42860         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42862         fmodl-ieee: Fix test failures.
42863         * lib/fmodl.c (fmodl): Treat Inf specially.
42864         * modules/fmodl (Depends-on): Add isinf.
42866         Tests for module 'fmodl-ieee'.
42867         * modules/fmodl-ieee-tests: New file.
42868         * tests/test-fmodl-ieee.c: New file.
42870         New module 'fmodl-ieee'.
42871         * modules/fmodl-ieee: New file.
42873         Tests for module 'fmod-ieee'.
42874         * modules/fmod-ieee-tests: New file.
42875         * tests/test-fmod-ieee.c: New file.
42877         New module 'fmod-ieee'.
42878         * modules/fmod-ieee: New file.
42880         Tests for module 'fmodf-ieee'.
42881         * modules/fmodf-ieee-tests: New file.
42882         * tests/test-fmodf-ieee.c: New file.
42883         * tests/test-fmod-ieee.h: New file.
42885         New module 'fmodf-ieee'.
42886         * modules/fmodf-ieee: New file.
42888 2012-02-27  Bruno Haible  <bruno@clisp.org>
42890         Tests for module 'rintl-ieee'.
42891         * modules/rintl-ieee-tests: New file.
42892         * tests/test-rintl-ieee.c: New file.
42894         New module 'rintl-ieee'.
42895         * modules/rintl-ieee: New file.
42897         Tests for module 'rint-ieee'.
42898         * modules/rint-ieee-tests: New file.
42899         * tests/test-rint-ieee.c: New file.
42901         New module 'rint-ieee'.
42902         * modules/rint-ieee: New file.
42904         Tests for module 'rintf-ieee'.
42905         * modules/rintf-ieee-tests: New file.
42906         * tests/test-rintf-ieee.c: New file.
42907         * tests/test-rint-ieee.h: New file.
42909         New module 'rintf-ieee'.
42910         * modules/rintf-ieee: New file.
42912 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42914         regex: re_search etc. should return -2 when memory exhausted
42915         This bug was uncovered when testing 'grep'.  Without the fix,
42916         re_search and friends return -1 when memory is exhausted, but -1
42917         means no match, and this causes grep to falsely report no-match
42918         instead of memory-exhaustion.  See
42919         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42920         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42921         trouble; this can occur if re_search_internal ran out of memory.
42923 2012-02-26  Bruno Haible  <bruno@clisp.org>
42925         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42926         * m4/modfl-ieee.m4: New file.
42927         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42928         whether modfl works with Inf. Replace it if not.
42929         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42931         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42932         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42933         (Depends-on): Update dependencies.
42934         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42935         m4/signbit.m4.
42936         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42937         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42939         modfl-ieee: Fix dependencies.
42940         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42942         modfl-ieee: Fix test failures.
42943         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42944         * modules/modfl (Depends-on): Add isfinite, isinf.
42946         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42947         * m4/modff-ieee.m4: New file.
42948         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42949         whether modff works with NaN and Inf. Replace it if not.
42950         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42952         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42953         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42954         (Depends-on): Update dependencies.
42955         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42956         m4/signbit.m4.
42957         (Depends-on): Add modf-ieee.
42958         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42959         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42961         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42962         * m4/modf-ieee.m4: New file.
42963         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42964         whether modf works with NaN and Inf. Replace it if not.
42965         * lib/math.in.h (modf): New declaration.
42966         * lib/modf.c: New file.
42967         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42969         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42970         * modules/modf (Files): Add lib/modf.c.
42971         (Depends-on): Add math, isfinite, trunc, isinf.
42972         (configure.ac): Addrange to compile lib/modf.c if needed.
42973         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42974         m4/signbit.m4.
42975         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42976         * tests/test-math-c++.cc: Check the declaration of modf.
42977         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42979         Tests for module 'modfl-ieee'.
42980         * modules/modfl-ieee-tests: New file.
42981         * tests/test-modfl-ieee.c: New file.
42983         New module 'modfl-ieee'.
42984         * modules/modfl-ieee: New file.
42986         Tests for module 'modf-ieee'.
42987         * modules/modf-ieee-tests: New file.
42988         * tests/test-modf-ieee.c: New file.
42990         New module 'modf-ieee'.
42991         * modules/modf-ieee: New file.
42993         Tests for module 'modff-ieee'.
42994         * modules/modff-ieee-tests: New file.
42995         * tests/test-modff-ieee.c: New file.
42996         * tests/test-modf-ieee.h: New file.
42998         New module 'modff-ieee'.
42999         * modules/modff-ieee: New file.
43001 2012-02-26  Bruno Haible  <bruno@clisp.org>
43003         Tests for module 'fabsl-ieee'.
43004         * modules/fabsl-ieee-tests: New file.
43005         * tests/test-fabsl-ieee.c: New file.
43007         New module 'fabsl-ieee'.
43008         * modules/fabsl-ieee: New file.
43010         Tests for module 'fabs-ieee'.
43011         * modules/fabs-ieee-tests: New file.
43012         * tests/test-fabs-ieee.c: New file.
43014         New module 'fabs-ieee'.
43015         * modules/fabs-ieee: New file.
43017         Tests for module 'fabsf-ieee'.
43018         * modules/fabsf-ieee-tests: New file.
43019         * tests/test-fabsf-ieee.c: New file.
43020         * tests/test-fabs-ieee.h: New file.
43022         New module 'fabsf-ieee'.
43023         * modules/fabsf-ieee: New file.
43025 2012-02-26  Bruno Haible  <bruno@clisp.org>
43027         Tests for module 'fmal-ieee'.
43028         * modules/fmal-ieee-tests: New file.
43029         * tests/test-fmal-ieee.c: New file.
43031         New module 'fmal-ieee'.
43032         * modules/fmal-ieee: New file.
43034         Tests for module 'fma-ieee'.
43035         * modules/fma-ieee-tests: New file.
43036         * tests/test-fma-ieee.c: New file.
43038         New module 'fma-ieee'.
43039         * modules/fma-ieee: New file.
43041         Tests for module 'fmaf-ieee'.
43042         * modules/fmaf-ieee-tests: New file.
43043         * tests/test-fmaf-ieee.c: New file.
43044         * tests/test-fma-ieee.h: New file.
43046         New module 'fmaf-ieee'.
43047         * modules/fmaf-ieee: New file.
43049 2012-02-26  Bruno Haible  <bruno@clisp.org>
43051         Tests for module 'ldexpl-ieee'.
43052         * modules/ldexpl-ieee-tests: New file.
43053         * tests/test-ldexpl-ieee.c: New file.
43055         New module 'ldexpl-ieee'.
43056         * modules/ldexpl-ieee: New file.
43058         Tests for module 'ldexp-ieee'.
43059         * modules/ldexp-ieee-tests: New file.
43060         * tests/test-ldexp-ieee.c: New file.
43062         New module 'ldexp-ieee'.
43063         * modules/ldexp-ieee: New file.
43065         Tests for module 'ldexpf-ieee'.
43066         * modules/ldexpf-ieee-tests: New file.
43067         * tests/test-ldexpf-ieee.c: New file.
43068         * tests/test-ldexp-ieee.h: New file.
43070         New module 'ldexpf-ieee'.
43071         * modules/ldexpf-ieee: New file.
43073 2012-02-26  Bruno Haible  <bruno@clisp.org>
43075         Refactor frexp*-ieee tests.
43076         * tests/test-frexp-ieee.h: New file.
43077         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
43078         (main): Just call test_function.
43079         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
43080         (main): Just call test_function.
43081         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
43082         (main): Just call test_function.
43083         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
43084         * modules/frexp-ieee-tests (Files): Likewise.
43085         * modules/frexpl-ieee-tests (Files): Likewise.
43087         Tests for module 'frexpl-ieee'.
43088         * modules/frexpl-ieee-tests: New file.
43089         * tests/test-frexpl-ieee.c: New file.
43091         New module 'frexpl-ieee'.
43092         * modules/frexpl-ieee: New file.
43094         Tests for module 'frexp-ieee'.
43095         * modules/frexp-ieee-tests: New file.
43096         * tests/test-frexp-ieee.c: New file.
43098         New module 'frexp-ieee'.
43099         * modules/frexp-ieee: New file.
43101         Tests for module 'frexpf-ieee'.
43102         * modules/frexpf-ieee-tests: New file.
43103         * tests/test-frexpf-ieee.c: New file.
43105         New module 'frexpf-ieee'.
43106         * modules/frexpf-ieee: New file.
43108 2012-02-26  Bruno Haible  <bruno@clisp.org>
43110         roundl-ieee tests: More tests.
43111         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43112         (main): Add tests for [MX] shaded specification in POSIX.
43113         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43114         (Depends-on): Add isnanl-nolibm.
43116         round-ieee tests: More tests.
43117         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43118         (main): Add tests for [MX] shaded specification in POSIX.
43119         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43120         (Depends-on): Add isnand-nolibm.
43122         roundf-ieee tests: More tests.
43123         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43124         (main): Add tests for [MX] shaded specification in POSIX.
43125         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43126         (Depends-on): Add isnanf-nolibm.
43128         truncl-ieee tests: More tests.
43129         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43130         (main): Add tests for [MX] shaded specification in POSIX.
43131         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43132         (Depends-on): Add isnanl-nolibm.
43134         trunc-ieee tests: More tests.
43135         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43136         (main): Add tests for [MX] shaded specification in POSIX.
43137         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43138         (Depends-on): Add isnand-nolibm.
43140         truncf-ieee tests: More tests.
43141         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43142         (main): Add tests for [MX] shaded specification in POSIX.
43143         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43144         (Depends-on): Add isnanf-nolibm.
43146         ceill-ieee tests: More tests.
43147         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43148         (main): Add tests for [MX] shaded specification in POSIX.
43149         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43150         (Depends-on): Add isnanl-nolibm.
43152         ceil-ieee tests: More tests.
43153         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43154         (main): Add tests for [MX] shaded specification in POSIX.
43155         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43156         (Depends-on): Add isnand-nolibm.
43158         ceilf-ieee tests: More tests.
43159         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43160         (main): Add tests for [MX] shaded specification in POSIX.
43161         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43162         (Depends-on): Add isnanf-nolibm.
43164         floorl-ieee tests: More tests.
43165         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43166         (main): Add tests for [MX] shaded specification in POSIX.
43167         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43168         (Depends-on): Add isnanl-nolibm.
43170         floor-ieee tests: More tests.
43171         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43172         (main): Add tests for [MX] shaded specification in POSIX.
43173         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43174         (Depends-on): Add isnand-nolibm.
43176         floorf-ieee tests: More tests.
43177         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43178         (main): Add tests for [MX] shaded specification in POSIX.
43179         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43180         (Depends-on): Add isnanf-nolibm.
43182 2012-02-26  Bruno Haible  <bruno@clisp.org>
43184         fpieee: More comments.
43185         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
43187 2012-02-25  Bruno Haible  <bruno@clisp.org>
43189         Tests for module 'log10l'.
43190         * modules/log10l-tests: New file.
43191         * tests/test-log10l.c: New file.
43192         * tests/test-math-c++.cc: Check the declaration of log10l.
43194         New module 'log10l'.
43195         * lib/math.in.h (log10l): New declaration.
43196         * lib/log10l.c: New file.
43197         * m4/log10l.m4: New file.
43198         * modules/log10l: New file.
43199         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
43200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
43201         HAVE_DECL_LOG10L.
43202         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
43203         HAVE_DECL_LOG10L.
43204         * doc/posix-functions/log10l.texi: Mention the new module.
43206 2012-02-25  Bruno Haible  <bruno@clisp.org>
43208         fmodl, remainder*: Avoid wrong results due to rounding errors.
43209         * lib/fmodl.c (fmodl): Correct the result if it is not within the
43210         expected bounds.
43211         * lib/remainderf.c (remainderf): Likewise.
43212         * lib/remainder.c (remainder): Likewise.
43213         * lib/remainderl.c (remainderl): Likewise.
43215 2012-02-25  Bruno Haible  <bruno@clisp.org>
43217         Tests for module 'remainderl'.
43218         * modules/remainderl-tests: New file.
43219         * tests/test-remainderl.c: New file.
43220         * tests/test-math-c++.cc: Check the declaration of remainderl.
43222         New module 'remainderl'.
43223         * lib/math.in.h (remainderl): New declaration.
43224         * lib/remainderl.c: New file.
43225         * m4/remainderl.m4: New file.
43226         * modules/remainderl: New file.
43227         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
43228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
43229         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
43230         HAVE_REMAINDERL.
43231         * doc/posix-functions/remainderl.texi: Mention the new module.
43233 2012-02-25  Bruno Haible  <bruno@clisp.org>
43235         Tests for module 'remainderf'.
43236         * modules/remainderf-tests: New file.
43237         * tests/test-remainderf.c: New file.
43238         * tests/test-math-c++.cc: Check the declaration of remainderf.
43240         New module 'remainderf'.
43241         * lib/math.in.h (remainderf): New declaration.
43242         * lib/remainderf.c: New file.
43243         * m4/remainderf.m4: New file.
43244         * modules/remainderf: New file.
43245         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
43246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
43247         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
43248         HAVE_REMAINDERF.
43249         * doc/posix-functions/remainderf.texi: Mention the new module.
43251 2012-02-25  Bruno Haible  <bruno@clisp.org>
43253         remainder: Support for MSVC.
43254         * lib/math.in.h (remainder): New declaration.
43255         * lib/remainder.c: New file.
43256         * m4/remainder.m4: New file.
43257         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
43258         (Depends-on): Add math, round, fma.
43259         (configure.ac): Use results of gl_FUNC_REMAINDER.
43260         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
43261         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
43262         HAVE_DECL_REMAINDER.
43263         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
43264         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
43265         * tests/test-math-c++.cc: Check the declaration of remainder.
43266         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
43267         problems are fixed.
43269 2012-02-25  Bruno Haible  <bruno@clisp.org>
43271         Tests for module 'fmodl'.
43272         * modules/fmodl-tests: New file.
43273         * tests/test-fmodl.c: New file.
43274         * tests/test-math-c++.cc: Check the declaration of fmodl.
43276         New module 'fmodl'.
43277         * lib/math.in.h (fmodl): New declaration.
43278         * lib/fmodl.c: New file.
43279         * m4/fmodl.m4: New file.
43280         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
43281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
43282         REPLACE_FMODL.
43283         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
43284         REPLACE_FMODL.
43285         * modules/fmodl: New file.
43286         * doc/posix-functions/fmodl.texi: Mention the new module.
43288 2012-02-25  Bruno Haible  <bruno@clisp.org>
43290         Tests for module 'modfl'.
43291         * modules/modfl-tests: New file.
43292         * tests/test-modfl.c: New file.
43293         * tests/test-math-c++.cc: Check the declaration of modfl.
43295         New module 'modfl'.
43296         * lib/math.in.h (modfl): New declaration.
43297         * lib/modfl.c: New file.
43298         * m4/modfl.m4: New file.
43299         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
43300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
43301         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
43302         * modules/modfl: New file.
43303         * doc/posix-functions/modfl.texi: Mention the new module.
43305 2012-02-25  Bruno Haible  <bruno@clisp.org>
43307         Tests for module 'fabsl'.
43308         * modules/fabsl-tests: New file.
43309         * tests/test-fabsl.c: New file.
43310         * tests/test-math-c++.cc: Check the declaration of fabsl.
43312         New module 'fabsl'.
43313         * lib/math.in.h (fabsl): New declaration.
43314         * lib/fabsl.c: New file.
43315         * m4/fabsl.m4: New file.
43316         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
43317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
43318         REPLACE_FABSL.
43319         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
43320         REPLACE_FABSL.
43321         * modules/fabsl: New file.
43322         * doc/posix-functions/fabsl.texi: Mention the new module.
43324 2012-02-25  Bruno Haible  <bruno@clisp.org>
43326         fabs tests: More tests.
43327         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43328         (zero): New variable.
43329         (main): Add tests for signed zero.
43330         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43332         fabsf tests: More tests.
43333         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43334         (zero): New variable.
43335         (main): Add tests for signed zero.
43336         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43338 2012-02-24  Bruno Haible  <bruno@clisp.org>
43340         atanl: Provide function definition on MSVC.
43341         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43342         function pointer.
43343         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43345 2012-02-24  Bruno Haible  <bruno@clisp.org>
43347         acosl: Provide function definition on MSVC.
43348         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43349         function pointer.
43350         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43352 2012-02-24  Bruno Haible  <bruno@clisp.org>
43354         asinl: Provide function definition on MSVC.
43355         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43356         function pointer.
43357         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43359 2012-02-24  Bruno Haible  <bruno@clisp.org>
43361         tanl: Provide function definition on MSVC.
43362         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43363         function pointer.
43364         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43366 2012-02-24  Bruno Haible  <bruno@clisp.org>
43368         cosl: Provide function definition on MSVC.
43369         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43370         function pointer.
43371         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43373 2012-02-24  Bruno Haible  <bruno@clisp.org>
43375         sinl: Provide function definition on MSVC.
43376         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43377         function pointer.
43378         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43380 2012-02-24  Bruno Haible  <bruno@clisp.org>
43382         logl: Provide function definition on MSVC.
43383         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43384         function pointer.
43385         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43387 2012-02-24  Bruno Haible  <bruno@clisp.org>
43389         expl: Provide function definition on MSVC.
43390         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43391         function pointer.
43392         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43394 2012-02-24  Bruno Haible  <bruno@clisp.org>
43396         sqrtl: Provide function definition on MSVC.
43397         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43398         a function pointer.
43399         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43401 2012-02-24  Bruno Haible  <bruno@clisp.org>
43403         ceill: Provide function definition on MSVC.
43404         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43405         used as a function pointer.
43406         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43408 2012-02-24  Bruno Haible  <bruno@clisp.org>
43410         floorl: Provide function definition on MSVC.
43411         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43412         used as a function pointer.
43413         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43415 2012-02-24  Bruno Haible  <bruno@clisp.org>
43417         ceilf: Provide function definition on MSVC.
43418         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43419         used as a function pointer.
43420         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43422 2012-02-24  Bruno Haible  <bruno@clisp.org>
43424         floorf: Provide function definition on MSVC.
43425         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43426         used as a function pointer.
43427         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43429 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43431         stdnoreturn: new module
43432         This implements a replacement for C11's <stdnoreturn.h>.
43433         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43434         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43435         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43436         * tests/test-stdnoreturn.c: New files.
43438 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43440         regex: fix false multibyte matches in some regular expressions
43441         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43442         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43443         * lib/regex_internal.c (re_string_skip_chars):
43444         Fix miscomputation of remain_len that may cause incomplete
43445         multi-byte character and false match.
43447 2012-02-24  Jim Meyering  <meyering@redhat.com>
43449         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43450         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43451         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43452         Remove now-unnecessary str''cmp obfuscation.
43453         Suggested by Akim Demaille.
43455 2012-02-24  Bruno Haible  <bruno@clisp.org>
43457         streq: Rename macro.
43458         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43459         * NEWS: Mention the change.
43460         * lib/mbrtowc.c (mbrtowc): Update.
43461         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43462         * lib/wcwidth.c (wcwidth): Update.
43463         Suggested by Akim Demaille and Jim Meyering.
43465 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43467         regex: fix typo in definition of MIN
43468         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43469         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43471 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43472             Bruno Haible  <bruno@clisp.org>
43474         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43475         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43476         entries into a stack-allocated buffer directly.
43477         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43479 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43480             Bruno Haible  <bruno@clisp.org>
43482         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43484          - There were several instances of this pattern:
43486              for (;;) {
43487                n = acl (f, GETACLCNT, 0, NULL);
43488                [ allocate an array A of size N ]
43489                if (acl (f, GETACL, n, a) == n)
43490                  break;
43491              }
43493            This loop might never terminate if some other process is constantly
43494            manipulating the file's ACL.  The loop should be rewritten to
43495            terminate.
43497          - The acl (... GETACLNT ...) call is merely an optimization; its value
43498            is merely a hint as to how big to make the array.  A better
43499            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43500            and just guess a reasonably-big size, growing the size and trying
43501            again if it's not large enough.  This guarantees termination, and
43502            saves a system call.
43504         * lib/acl-internal.h: Include <limits.h>.
43505         (MIN, SIZE_MAX): New macros.
43506         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43507         a stack-allocated buffer, and use malloc if it does not fit. Don't
43508         use GETACLCNT.
43509         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43511 2012-02-19  Bruno Haible  <bruno@clisp.org>
43513         acl: Fix endless loop on Solaris with vxfs.
43514         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43515         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43516         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43517         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43518         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43519         Reported by Bill Jones in
43520         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43522 2012-02-19  Bruno Haible  <bruno@clisp.org>
43524         acl: Fix copy-acl test failure on Solaris 11.0.
43525         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43526         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43527         that this function returns 0 in some more cases.
43529 2012-02-19  Bruno Haible  <bruno@clisp.org>
43531         acl: Update doc references.
43532         * doc/acl-resources.txt: Update links to Solaris documentation.
43534 2012-02-19  Bruno Haible  <bruno@clisp.org>
43536         Fix test failure in many locales on Solaris 11.
43537         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43538         'tr' arguments.
43539         * tests/test-pipe-filter-ii1.c (main): Likewise.
43540         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43541         expressions in the C locale.
43542         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43543         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43545 2012-02-19  Bruno Haible  <bruno@clisp.org>
43547         gnulib-tool: Improve usage message.
43548         * gnulib-tool (func_usage): Move doc of --help and --version to the
43549         section "Operation modes".
43551 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43553         README-release: make it easier to execute commands
43554         * top/README-release: break commands out on to separate lines.
43556 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43558         GNUmakefile: simplify detection of unconfigured trees
43559         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43560         whether the tree make is being run from is already configured or
43561         not.  Related simplifications.
43563 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43565         * gnulib-tool (func_usage): Document --help and --version.
43567 2012-02-11  Jim Meyering  <meyering@redhat.com>
43569         bootstrap: don't exit 0 upon gnulib-tool failure
43570         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43571         its exit status, not 0.
43573 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43575         README-release: various improvements
43576         * top/README-release: Give a command to push changes for the
43577         release.  Add "distcheck" to list of other pre-release checks.
43578         Fix instance of "make stable" which should be "make TYPE".
43580 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43582         maint: replace FSF snail-mail addresses with URLs
43583         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43584         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43585         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43586         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43587         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43588         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43589         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43590         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43591         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43592         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43593         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43594         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43595         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43596         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43597         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43598         * lib/glthread/thread.c, lib/glthread/thread.h:
43599         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43600         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43601         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43602         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43603         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43604         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43605         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43606         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43607         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43608         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43609         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43610         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43611         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43612         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43613         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43614         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43615         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43616         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43617         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43618         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43619         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43620         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43621         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43622         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43623         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43624         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43625         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43626         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43627         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43628         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43629         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43630         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43631         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43632         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43633         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43634         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43635         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43636         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43637         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43638         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43639         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43640         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43641         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43642         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43643         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43644         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43645         * tests/test-poll.c, tests/test-quotearg-simple.c:
43646         * tests/test-quotearg.c, tests/test-quotearg.h:
43647         * tests/test-round-ieee.c, tests/test-round1.c:
43648         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43649         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43650         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43651         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43652         * tests/test-strerror.c, tests/test-strerror_r.c:
43653         * tests/test-strsignal.c, tests/test-strverscmp.c:
43654         * tests/test-xmemdup0.c:
43655         Replace FSF snail mail addresses with URLs, as per GNU coding
43656         standards.  See glibc bug
43657         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43659 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43661         README-release: capitalize a word and split a line
43662         * top/README-release: Fix punctuation and spacing.
43664 2012-02-08  Akim Demaille  <demaille@gostai.com>
43666         fatal-signal: use C prototypes (with explicit void).
43667         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43668         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43670 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43672         regex: spelling fix
43673         * lib/regexec.c: spelling fix
43675         regex: rely on stdint.h for SIZE_MAX
43676         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43678 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43680         regex: merge glibc changes
43682         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43683         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43684         (init_word_char): Work even if bitset words are not exactly 32 or
43685         64 bits wide.  Don't assume there are no padding bits.
43686         * lib/regex.c [_LIBC]: Do not include <config.h>.
43687         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43688         and -Wtype-limits.
43689         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43690         needless disagreement with glibc.  All uses changed.  Define it to
43691         1 only if _GNU_SOURCE, to match glibc.
43692         (_REG_RM_NAME): Remove; no longer needed, since the names in
43693         question are now all protected by __USE_GNU.
43694         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43695         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43696         * lib/regex_internal.h (MIN): New macro.
43698         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43699         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43701         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43702         * lib/regex_internal.c (re_string_fetch_byte_case):
43703         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43704         is miscompiled, and it turns out it is because of an incorrect
43705         attribute on re_string_fetch_byte_case.  Unlike
43706         re_string_peek_byte_case, this one is really not pure, it modifies
43707         memory (increments pstr->cur_idx), and with the pure attribute GCC
43708         assumed it doesn't and it cached the presumed value of
43709         regexp->cur_idx in a variable across the
43710          for (;; ++i)
43711            {
43712              if (i >= BRACKET_NAME_BUF_SIZE)
43713                return REG_EBRACK;
43714              if (token->type == OP_OPEN_CHAR_CLASS)
43715                ch = re_string_fetch_byte_case (regexp);
43716              else
43717                ch = re_string_fetch_byte (regexp);
43718              if (re_string_eoi(regexp))
43719                return REG_EBRACK;
43720              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43721                break;
43722              elem->opr.name[i] = ch;
43723            }
43725         2011-11-29 Andreas Schwab <schwab@redhat.com>
43726         * lib/regcomp.c (build_equiv_class):
43727         Fix access after end of search string in regex matcher.
43729         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43730         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43732         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43733         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43735         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43736         * lib/regcomp.c (parse_branch, parse_sub_exp):
43737         More regex memory leak fixes and tests.
43738         (parse_sub_exp, parse_bracket_exp):
43739         Fix memory leak for some invalid regular expressions.
43741         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43742         * lib/regex_internal.c, lib/regexec.c:
43743         Fix unnecessary overallocation due to incomplete character.  When
43744         incomplete characters are found at the end of a string the code
43745         ran amok and allocated lots of memory.  Stricter limits are now in
43746         place.
43748         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43749         * lib/regex.h: Update documentation.
43751         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43752         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43754         2010-05-05 Andreas Schwab <schwab@redhat.com>
43755         * lib/regexec.c (find_collation_sequence_value):
43756         Fix lookup of collation sequence value during regexp matching.
43758         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43759         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43761         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43762         * lib/regex.h: Cleanup namespace.
43764         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43765         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43767         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43768         * lib/regex_internal.h: Prevent some declarations and definitions
43769         to be seen when used in tests.
43771         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43772         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43773         __libc_lock_* macros if not _LIBC.
43774         (struct re_dfa_t): Add lock.
43776 2012-02-07  Eric Blake  <eblake@redhat.com>
43778         maint.mk: also prohibit lower-case @var@
43779         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43780         lower case, like @top_srcdir@.
43782 2012-02-04  Eric Blake  <eblake@redhat.com>
43784         canonicalize: avoid uninitialized memory use
43785         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43786         random '/' left in dest.
43787         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43789 2012-02-04  Bruno Haible  <bruno@clisp.org>
43791         isatty: Fix test failure of ptsname_r on native Windows.
43792         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43793         and don't set errno.
43794         (isatty): Test first whether fd is valid. Set errno when returning 0.
43796 2012-02-04  Bruno Haible  <bruno@clisp.org>
43798         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43799         * tests/test-spawn-pipe-main.c: Include progname.h.
43800         (main): Invoke set_program_name.
43801         * modules/spawn-pipe-tests (Depends-on): Add progname.
43803         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43804         * tests/test-nonblocking-socket-main.c: Include progname.h.
43805         (main): Invoke set_program_name.
43806         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43808         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43809         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43810         (main): Invoke set_program_name.
43811         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43813 2012-02-04  Eric Blake  <eblake@redhat.com>
43815         canonicalize-lgpl: fix // handling
43816         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43818         canonicalize: fix // handling
43819         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43820         /// to //, since only // is special.
43822 2012-02-04  Bruno Haible  <bruno@clisp.org>
43824         ioctl: Fix test failure on native Windows.
43825         * lib/ioctl.c: Include msvc-nothrow.h.
43826         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43828 2012-02-04  Bruno Haible  <bruno@clisp.org>
43830         fsync: Avoid test failure on native Windows.
43831         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43832         read-only.
43834 2012-02-04  Bruno Haible  <bruno@clisp.org>
43836         sys_select: Avoid syntax error on OpenBSD 5.0.
43837         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43838         currently being included, just include the system's <sys/select.h>.
43840 2012-02-04  Bruno Haible  <bruno@clisp.org>
43842         sys_select: Avoid syntax error on OpenBSD 5.0.
43843         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43844         <sys/select.h>, not before.
43845         Reported by Jiri B <jirib@devio.us>.
43847 2012-02-04  Bruno Haible  <bruno@clisp.org>
43849         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43850         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43851         global variables.
43852         * tests/test-get-rusage-data.c (main): Likewise.
43853         Reported by Jim Meyering.
43855 2012-02-04  Bruno Haible  <bruno@clisp.org>
43857         stdioext: Fix last commit.
43858         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43860 2012-02-03  Bruno Haible  <bruno@clisp.org>
43862         stdioext: Add tentative support for Plan9.
43863         * lib/stdio-impl.h: Include <errno.h>.
43864         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43865         * lib/freadable.c (freadable): Likewise.
43866         * lib/fwritable.c (fwritable): Likewise.
43867         * lib/fbufmode.c (fbufmode): Likewise.
43868         * lib/freading.c (freading): Likewise.
43869         * lib/fwriting.c (fwriting): Likewise.
43870         * lib/freadptr.c (freadptr): Likewise.
43871         * lib/freadseek.c (freadptrinc): Likewise.
43872         * lib/freadahead.c (freadahead): Likewise.
43873         * lib/fpurge.c (fpurge): Likewise.
43874         * lib/fseeko.c (rpl_fseeko): Likewise.
43875         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43876         Reported by Jens Staal <staal1978@gmail.com>.
43878 2012-02-02  Jim Meyering  <meyering@redhat.com>
43880         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43881         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43882         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43883         not even to try to add the attribute.  Instead, add a pragma to suppress
43884         the suggestion/warning.
43886 2012-01-31  Karl Berry  <karl@gnu.org>
43888         setstate doc: typo.
43889         * doc/posix-functions/setstate.texi (setstate): { not (.
43891 2012-01-31  Bruno Haible  <bruno@clisp.org>
43893         popen: Make more robust on Windows.
43894         * lib/popen.c: On native Windows, use the _popen based code even if
43895         HAVE_POPEN is set.
43896         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43897         environment variable on native Windows.
43899 2012-01-30  Bruno Haible  <bruno@clisp.org>
43901         pclose: Fix typo.
43902         * lib/stdio.in.h (pclose): Fix typo in warning message.
43904 2012-01-30  Bruno Haible  <bruno@clisp.org>
43906         doc about getlogin_r, setstate.
43907         * doc/posix-functions/getlogin_r.texi: List the incompatible
43908         declaration problem under "not fixed by gnulib".
43909         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43910         problem on Solaris 11 and other platforms.
43912 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43913             Bruno Haible  <bruno@clisp.org>
43915         poll tests: Make test more robust.
43916         * tests/test-poll.c: Include macros.h.
43917         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43918         return value of various I/O operations.
43919         * modules/poll-tests (Files): Add tests/macros.h.
43921 2012-01-30  Bruno Haible  <bruno@clisp.org>
43923         sys_stat: Fix support for mingw64 and MSVC.
43924         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43925         header files already do it.
43926         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43927         stat itself.
43928         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43930 2012-01-30  Bruno Haible  <bruno@clisp.org>
43932         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43934         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43936 2012-01-29  Bruno Haible  <bruno@clisp.org>
43938         quotearg: Fix test failure on MacOS X 10.5.
43939         * tests/test-quotearg-simple.c: Include localcharset.h.
43940         (main): If the locale encoding is not ASCII, bypass the tests of
43941         locale_quoting_style and clocale_quoting_style.
43942         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43944 2012-01-29  Jim Meyering  <meyering@redhat.com>
43946         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43947         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43948         detect uses of canonicalize_file_name.
43950 2012-01-28  Bruno Haible  <bruno@clisp.org>
43952         test-framework-sh: Fix test failure with AIX 7.1 diff.
43953         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43954         in column 1, like 'diff -c' does.
43955         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43956         whether 'diff -u' is used. Instead, test whether the output contains
43957         some '@' character.
43959 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43961         strtoimax: eliminate need for stdint.h, inttypes.h checks
43962         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43963         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43964         the prerequisites for a recently-introduced strtoimax test.
43965         I guess this might cause strtoimax to be replaced when not
43966         strictly necessary on older hosts, but this shouldn't introduce
43967         any bugs and it should make Emacs 'configure' faster on typical
43968         modern hosts.  Problem discovered when importing the latest gnulib
43969         to an Emacs test version.
43970         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43972 2012-01-28  Bruno Haible  <bruno@clisp.org>
43974         sys_time: Override 'struct timeval' on some native Windows platforms.
43975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43976         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43977         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43978         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43979         needs to be overridden.
43980         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43981         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43982         * tests/test-sys_select.c: Check that the tv_sec member has the same
43983         size as a 'time_t'.
43984         * tests/test-sys_time.c: Likewise.
43985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43986         is set, set also REPLACE_GETTIMEOFDAY.
43987         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43988         convert the resulting 'struct timeval' before returning.
43989         * lib/select.c: Include <sys/time.h>.
43990         (select, timeval): Undefine at the right place.
43991         * modules/select (Depends-on): Add sys_time.
43992         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43993         some Windows platforms.
43994         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43996 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43998         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43999         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
44000         an integer.
44001         * lib/fcntl.c (dupfd): Likewise.
44002         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
44004 2012-01-28  Bruno Haible  <bruno@clisp.org>
44006         fcntl: Avoid compilation error on native Windows.
44007         * modules/fcntl (Depends-on): Add 'close'.
44009 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44011         select, poll, isatty: Avoid warnings on x86_64 mingw64.
44012         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
44013         pointer to an integer.
44014         * lib/poll.c (IsConsoleHandle): Likewise.
44015         * lib/isatty.c (IsConsoleHandle): Likewise.
44017 2012-01-28  Jim Meyering  <meyering@redhat.com>
44019         doc: clarify README-release
44020         * top/README-release: Clarify: you should make a point to have
44021         the latest stable versions of build tools in your PATH, and the
44022         reference to buildreq is solely for its list of tool names, not
44023         for its minimal-functional version numbers.
44024         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
44026         maint.mk: use more readable (yet functionally equivalent) quoting
44027         It is common to quote a single quote in a single quoted string like
44028         this:  '...'\''...'.  Unless you know the idiom, that looks like
44029         gibberish, so prefer to double-quote the string when possible.
44030         Then you can use a more readable, lone single quote: "...'..."
44031         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
44032         "don't" is more readable than the equivalent 'don'\''t'.
44033         (sc_cast_of_x_alloc_return_value): Likewise.
44034         (sc_cast_of_alloca_return_value): Likewise.
44035         (sc_makefile_path_separator_check): Similar: use ":" in '...',
44036         rather than '\'':'\''.
44038 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44040         stdalign: relax _Alignof and tighten _Alignas test
44041         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
44042         as it was too strict: alignof must divide offsetof, but it need
44043         not equal offsetof.  Inspired by Joseph S. Myers's comment
44044         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
44045         Conversely, tighten the _Alignas test a bit, as the resulting
44046         alignment must be exactly 8.
44048 2012-01-27  Bruno Haible  <bruno@clisp.org>
44050         stdalign: Document the last change.
44051         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
44053 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44055         stdalign: check that alignof and offsetof are consistent
44056         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
44057         Problem reported for gnulib by Richard W.M. Jones in
44058         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
44060 2012-01-27  Jim Meyering  <meyering@redhat.com>
44062         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
44063         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
44064         convert a sequence with gaps to the minimal containing range.
44065         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
44066         * tests/test-update-copyright.sh: Test for this.
44067         The FSF confirmed it is ok to do this, assuming there is at
44068         least one significant change per year in the affected range:
44069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
44071 2012-01-26  Bruno Haible  <bruno@clisp.org>
44073         pipe2: refine doc about thread-safety
44074         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
44075         multithread-safety problem.
44076         * doc/glibc-functions/accept4.texi: Likewise.
44078 2012-01-26  Bruno Haible  <bruno@clisp.org>
44080         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
44081         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
44082         In the test program, include <fcntl.h>, for O_RDONLY.
44084 2012-01-26  Eric Blake  <eblake@redhat.com>
44086         pipe2: document lack of thread-safety in replacement
44087         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
44088         issue in replacement.
44089         * doc/glibc-functions/accept4.texi (accept4): Likewise.
44090         Based on a report by Eric Wong.
44092 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44093             Bruno Haible  <bruno@clisp.org>
44095         malloca: Avoid warnings on x86_64 mingw64.
44096         * lib/malloca.c: Include <stdint.h>.
44097         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
44098         * modules/malloca (Depends-on): Add stdint.
44099         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
44101 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44103         obstack: remove __STDC__ conditionals
44104         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
44105         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
44106         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
44107         m4/include_next.m4 as the only gnulib-maintained places that still
44108         refer to __STDC__.
44110 2012-01-24  Bruno Haible  <bruno@clisp.org>
44112         havelib: Modern quoting.
44113         * build-aux/config.rpath: Quote 'like this', not `like this', as per
44114         the recent change to the GNU coding standards.
44116 2012-01-24  Bruno Haible  <bruno@clisp.org>
44118         stdint: Improve support for Android.
44119         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
44120         Reported by Simon Josefsson <simon@josefsson.org>.
44122 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44124         doc: omit trailing empty lines from INSTALL etc.
44125         * doc/Makefile (INSTALL): Omit trailing empty lines.
44126         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
44127         omit trailing empty lines.  This simplifies the build procedure.
44129 2012-01-23  Jim Meyering  <meyering@redhat.com>
44131         tests: avoid spurious warnings about gl_sockets_startup
44132         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
44133         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
44134         reporting a "statement with no effect".
44135         * tests/test-accept.c (main): Mark as "(void)".
44136         * tests/test-accept4.c (main): Likewise.
44137         * tests/test-bind.c (main): Likewise.
44138         * tests/test-connect.c (main): Likewise.
44139         * tests/test-getpeername.c (main): Likewise.
44140         * tests/test-getsockname.c (main): Likewise.
44141         * tests/test-getsockopt.c (main): Likewise.
44142         * tests/test-listen.c (main): Likewise.
44143         * tests/test-recv.c (main): Likewise.
44144         * tests/test-recvfrom.c (main): Likewise.
44145         * tests/test-send.c (main): Likewise.
44146         * tests/test-sendto.c (main): Likewise.
44147         * tests/test-setsockopt.c (main): Likewise.
44148         * tests/test-shutdown.c (main): Likewise.
44150 2012-01-21  Bruno Haible  <bruno@clisp.org>
44152         locale-fr.m4: Fix for Android.
44153         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
44154         failure of the test program on Bionic libc.
44156 2012-01-21  Jim Meyering  <meyering@redhat.com>
44158         bootstrap: fail when bootstrap_post_import_hook fails
44159         Otherwise, it's far too easy to miss diagnostics emitted
44160         between gnulib-tool's output and that of running configure.
44161         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
44163 2012-01-17  Jim Meyering  <meyering@redhat.com>
44165         maint: enable sc_trailing_blank
44166         * build-aux/pmccabe.css: Remove trailing blanks.
44167         * doc/acl-cygwin.txt: Likewise.
44168         * doc/gnu-oids.texi: Likewise
44169         * cfg.mk: Enable sc_trailing_blank.
44170         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
44172 2012-01-17  Jim Meyering  <meyering@redhat.com>
44174         maint: enable sc_prohibit_openat_without_use
44175         * cfg.mk: Enable sc_prohibit_openat_without_use.
44176         Exempt lib/selinux-at.c.
44178 2012-01-17  Jim Meyering  <meyering@redhat.com>
44180         maint: enable sc_prohibit_cloexec_without_use
44181         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
44182         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
44184 2012-01-17  Jim Meyering  <meyering@redhat.com>
44186         maint: enable sc_prohibit_intprops_without_use
44187         * cfg.mk: Enable sc_prohibit_intprops_without_use
44188         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
44190 2012-01-17  Jim Meyering  <meyering@redhat.com>
44192         maint: enable sc_prohibit_hash_pjw_without_use
44193         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
44194         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
44195         to match any use of \<hash_pjw\>, i.e., not necessarily with a
44196         following " (".
44198 2012-01-17  Jim Meyering  <meyering@redhat.com>
44200         maint: enable double-word-prohibiting rule
44201         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
44202         Exempt three files.
44204 2012-01-17  Jim Meyering  <meyering@redhat.com>
44206         maint: remove empty lines at EOF, but excluding modules/*
44207         Apply syntax rules at home as well as abroad.  Most changes
44208         were induced by running this:
44209           make srcdir=. _build-aux=build-aux -f top/maint.mk \
44210             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
44211             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
44212         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
44213         Exempt modules/* and two binary files.
44214         Also exempt doc/INSTALL*, per request from Bruno Haible.
44215         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
44216         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
44217         * doc/Copyright/request-assign.future: Likewise.
44218         * doc/Copyright/request-disclaim.changes: Likewise.
44219         * doc/INSTALL: Likewise.
44220         * doc/INSTALL.ISO: Likewise.
44221         * doc/INSTALL.UTF-8: Likewise.
44222         * doc/acl-cygwin.txt: Likewise.
44223         * doc/acl-resources.txt: Likewise.
44224         * doc/fdl-1.2.texi: Likewise.
44225         * doc/fdl-1.3.texi: Likewise.
44226         * doc/fdl.texi: Likewise.
44227         * lib/argp-pin.c: Likewise.
44228         * lib/round.c: Likewise.
44229         * lib/unicase/u16-totitle.c: Likewise.
44230         * lib/unictype/block_test.c: Likewise.
44231         * lib/uninorm/canonical-decomposition.c: Likewise.
44232         * m4/README: Likewise.
44233         * m4/relocatable-lib.m4: Likewise.
44234         * tests/test-isnand-nolibm.c: Likewise.
44235         * tests/test-isnand.c: Likewise.
44236         * tests/uninorm/NormalizationTest.txt: Likewise.
44238 2012-01-17  Jim Meyering  <meyering@redhat.com>
44240         maint: add framework to run syntax-check rules against gnulib sources
44241         * cfg.mk: New file, to disable all currently-failing tests.
44242         We'll enable them one by one, as they are made to pass.
44243         * Makefile (sc_maint): New rule.
44245 2012-01-21  Bruno Haible  <bruno@clisp.org>
44247         stdint: Add support for Android.
44248         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
44249         include the system's <stdint.h>.
44250         Reported by Simon Josefsson <simon@josefsson.org>.
44252 2012-01-19  Jim Meyering  <meyering@redhat.com>
44254         bootstrap: add bootstrap_post_import_hook
44255         Bison does still need something like the gnulib_mk_hook whose
44256         invocation I had to remove along with slurp in commit 767ccd40.
44257         Technically, we could get along without it, but doing so would
44258         have required living with a warning and a mandatory post-bootstrap
44259         automake rerun.
44260         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
44261         (bootstrap_post_import_hook): New function.
44262         Invoke it after gnulib-tool --import and before autoreconf.
44264 2012-01-18  Jim Meyering  <meyering@redhat.com>
44266         gitlog-to-changelog: don't use "no_"-prefixed variable name
44267         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
44268         to enable both --cluster and --no-cluster.  Change variable name,
44269         s/\$no_cluster/$cluster/, and reverse usage to match.
44271         gitlog-to-changelog: use "||", not "or" in expressions
44272         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
44273         expressions.
44275 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
44277         gitlog-to-changelog: new option --no-cluster
44278         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
44279         clustering of adjacent commit messages.
44281 2012-01-17  Jim Meyering  <meyering@redhat.com>
44283         maint: spell file systems with two words, not one
44284         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
44285         two words, not one.
44287 2012-01-16  Jim Meyering  <meyering@redhat.com>
44289         bootstrap: add a FIXME comment to ensure we eventually remove the hack
44290         * build-aux/bootstrap (gnulib_tool_options): Add comment.
44292 2012-01-16  Eric Blake  <eblake@redhat.com>
44294         bootstrap: cater to autoconf 2.59
44295         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
44296         is not available.
44298         bootstrap: properly check for libtool
44299         * build-aux/bootstrap (libtoolize): Also run libtool when older
44300         usage is detected.
44302 2012-01-15  Bruno Haible  <bruno@clisp.org>
44304         Improve support for MSVC 9.
44305         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
44306         clashes on MSVC.
44307         * lib/fcntl.in.h: Likewise.
44308         * lib/stdlib.in.h: Likewise.
44309         * lib/sys_stat.in.h: Likewise.
44311 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
44313         gnupload: we hold the master copy of this script now
44314         For motivation and more information, see:
44315         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
44316         * build-aux/gnupload: Make it clear in the heading comments that the
44317         master copy of this file is maintained by gnulib.  Since we are at
44318         it, bump its copyright year and ...
44319         ($scriptversion): ... the date in its version.
44320         ($usage): Patches and bug reports should be sent to the gnulib list,
44321         not the automake one.
44322         * config/srclist.txt: Don't try to sync 'gnupload' from automake
44323         anymore.
44325 2012-01-15  Bruno Haible  <bruno@clisp.org>
44327         Fix module 'random'.
44328         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44329         initstate, setstate are declared.
44331 2012-01-14  Bruno Haible  <bruno@clisp.org>
44333         Tests for module 'random'.
44334         * modules/random-tests: New file.
44335         * tests/test-random.c: New file, based on tests/test-random_r.c.
44337         New module 'random'.
44338         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44339         declarations.
44340         * lib/random.c: New file, based on glibc/stdlib/random.c.
44341         * m4/random.m4: New file.
44342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44343         HAVE_RANDOM.
44344         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44345         * modules/random: New file.
44346         * config/srclist.txt: Add an entry for random.c.
44347         * doc/posix-functions/random.texi: Mention the 'random' module.
44348         * doc/posix-functions/initstate.texi: Likewise.
44349         * doc/posix-functions/setstate.texi: Likewise.
44350         * doc/posix-functions/srandom.texi: Likewise.
44352 2012-01-12  Bruno Haible  <bruno@clisp.org>
44354         random_r: Use common idioms.
44355         * lib/random_r.c: Include <stdlib.h> first.
44357         random_r: Override incompatible API on AIX, OSF/1.
44358         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44359         Override the system function if REPLACE_RANDOM_R is 1.
44360         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44361         and OSF/1, set REPLACE_RANDOM_R.
44362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44363         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44364         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44365         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44366         * doc/glibc-functions/random_r.texi: Likewise.
44367         * doc/glibc-functions/setstate_r.texi: Likewise.
44369         random_r: Support for MSVC 9.
44370         * lib/random_r.c: Include stdint.h, not inttypes.h.
44372 2012-01-12  Eric Blake  <eblake@redhat.com>
44374         inet_ntop: guard extra work by IF_LINT
44375         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44376         better code generation when not checking for warnings.
44377         Suggested by Paul Eggert and Jim Meyering.
44379         strptime: fix regression on mingw
44380         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44381         Fix regression.  Reported by Bruno Haible.
44383 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44384             Bruno Haible  <bruno@clisp.org>
44386         copy-file: add error-code-returning variant.
44387         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44388         (qcopy_file_preserving): New declaration.
44389         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44390         copy_file_preserving. Change return type to 'int'. Don't emit an error
44391         message here.
44392         (copy_file_preserving): New function.
44393         * tests/test-copy-file.c: Include <stdlib.h>.
44394         (main): Test qcopy_file_preserving if the environment variable
44395         NO_STDERR_OUTPUT is set.
44396         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44397         with NO_STDERR_OUTPUT
44398         * tests/test-copy-file-2.sh: Likewise.
44400 2012-01-10  Bruno Haible  <bruno@clisp.org>
44402         copy-file: Use 'quote' module consistently.
44403         * lib/copy-file.c (copy_file_preserving): Use quote().
44405         copy-file: Refactor.
44406         * lib/copy-file.c: Include quote.h.
44407         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44408         message here.
44409         * modules/copy-file (Depends-on): Add quote.
44411         acl: Export qcopy_acl.
44412         * lib/acl.h (qcopy_acl): New declaration.
44413         * lib/copy-acl.c (qcopy_acl): Make non-static.
44415         acl: Rename a local variable.
44416         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44418         acl: Align return values of copy_acl and qcopy_acl.
44419         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44420         maybe < -1.
44422 2012-01-11  Eric Blake  <eblake@redhat.com>
44424         strptime: silence gcc warnings
44425         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44426         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44427         Reported by Daniel P. Berrange.
44429         inet_ntop: silence gcc warning
44430         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44431         Reported by Daniel P. Berrange.
44433 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44435         getloadavg test: skip the test on GNU/Linux without /proc mounted
44436         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44437         file.  When /proc is not mounted, it always fails with ENOENT.
44438         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44439         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44441 2012-01-10  Bruno Haible  <bruno@clisp.org>
44443         regex: Avoid link error on MSVC 9.
44444         * modules/regex (Depends-on): Add wctype.
44446 2012-01-10  Bruno Haible  <bruno@clisp.org>
44448         doc: Mention --with-tests option.
44449         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44450         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44451         --with-tests.
44452         Reported by Reuben Thomas.
44454 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44456         users.txt: order package names lexicographically.
44457         * users.txt: Order package names lexicographically.
44459 2012-01-10  Jim Meyering  <meyering@redhat.com>
44461         maint.mk: fix description in comment
44462         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44464         ignore-value: remove deprecated ignore_ptr function
44465         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44466         * NEWS: Note this.
44468 2012-01-09  Jim Meyering  <meyering@redhat.com>
44470         test-init.sh: avoid a subshell
44471         * tests/test-init.sh: Remove protective subshell.
44472         Suggested by Bernhard Voelker.  While a subshell is normally
44473         required to protect against older shells (Solaris, FreeBSD) that
44474         warn about a missing program before performing redirection, the
44475         shell-selection tests performed by init.sh probably exclude any
44476         offending shell.
44478 2012-01-08  Bruno Haible  <bruno@clisp.org>
44480         setlocale tests: Avoid test failure on Solaris 11.0.
44481         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44482         variable.
44484 2012-01-08  Bruno Haible  <bruno@clisp.org>
44486         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44487         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44489         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44490         macro.
44491         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44492         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44493         * lib/spawn_faction_addopen.c: Add workaround implementation if
44494         HAVE_WORKING_POSIX_SPAWN.
44495         * modules/spawn (Makefile): Substitute
44496         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44497         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44498         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44499         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44500         (Depends-on): Update conditions.
44501         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44502         the Solaris 11 bug.
44504 2012-01-08  Bruno Haible  <bruno@clisp.org>
44506         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44507         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44509         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44510         macro.
44511         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44512         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44513         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44514         HAVE_WORKING_POSIX_SPAWN.
44515         * modules/spawn (Makefile): Substitute
44516         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44517         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44518         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44519         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44520         (Depends-on): Update conditions.
44521         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44522         the Solaris 11 bug.
44524 2012-01-08  Bruno Haible  <bruno@clisp.org>
44526         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44527         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44528         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44529         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44530         HAVE_WORKING_POSIX_SPAWN.
44531         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44532         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44534         * lib/spawn_faction_addclose.c: Add workaround implementation if
44535         HAVE_WORKING_POSIX_SPAWN.
44536         * modules/spawn (Makefile): Substitute
44537         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44538         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44539         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44540         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44541         (Depends-on): Update conditions.
44542         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44543         the Solaris 11 bug.
44545 2012-01-08  Bruno Haible  <bruno@clisp.org>
44547         doc: Update for Solaris 11.0.
44548         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44549         * m4/printf.m4: Update comments.
44551 2012-01-08  Bruno Haible  <bruno@clisp.org>
44553         mktime: Avoid compilation error on Solaris 11.
44554         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44556 2012-01-08  Bruno Haible  <bruno@clisp.org>
44558         doc: Small fix.
44559         * doc/posix-headers/nl_types.texi: Correct platforms list.
44561 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44563         Add lgpl-3.0 module.
44564         * MODULES.html.sh (Support for building documentation): Add
44565         lgpl-3.0.
44566         * modules/lgpl-3.0: New file.
44568 2012-01-08  Jim Meyering  <meyering@redhat.com>
44570         select.c: indent with spaces, not TABs
44571         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44573 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44575         quotearg: do not use grave accent for left quote
44576         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44577         locale_quoting_style.
44578         (quotearg_buffer_restyled): Fix example.
44579         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44581 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44583         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44584         Most programs do not have translation catalogs for English and much
44585         less separate catalogs for British and American English.  Drop the
44586         suggestion to translators about these two, and provide it
44587         automatically for Unicode locales.  Like most programs, even those
44588         using American English, we use single quotation marks.  This conflicts
44589         with the American typographic convention, but works better when you
44590         cite the entire error message within double quotes.  It also tries not
44591         to clash with established practice and with what non-gnulib programs
44592         will usually do.
44593         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44594         using an UTF-8 or GB-18030 locale.  The list of other locales with
44595         quotes was provided by Bruno Haible.
44596         (quotearg_buffer_restyled): Adjust instructions to translators.
44597         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44598         text, since this would be wrong when using Unicode.
44599         * modules/quotearg: Depend on c-strcaseeq.
44601 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44603         quotearg: fix Wikipedia link
44604         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44606 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44608         Fix for mingw with MSVC9.
44609         * m4/ld-version-script.m4: Check that compiler rejects version
44610         scripts with syntax errors.  Reported by Bruno Haible
44611         <bruno@clisp.org>.
44613 2012-01-06  Bruno Haible  <bruno@clisp.org>
44615         Talk about "native Windows API", not "Woe32".
44616         * lib/accept4.c: Update comments to mention native Windows.
44617         * lib/execute.c: Likewise.
44618         * lib/fatal-signal.c: Likewise.
44619         * lib/localcharset.c: Likewise.
44620         * lib/nanosleep.c: Likewise.
44621         * lib/nl_langinfo.c: Likewise.
44622         * lib/pclose.c: Likewise.
44623         * lib/pipe-filter-gi.c: Likewise.
44624         * lib/pipe-filter-ii.c: Likewise.
44625         * lib/pipe.c: Likewise.
44626         * lib/pipe2.c: Likewise.
44627         * lib/popen.c: Likewise.
44628         * lib/progreloc.c: Likewise.
44629         * lib/relocatable.c: Likewise.
44630         * lib/sigaction.c: Likewise.
44631         * lib/sigprocmask.c: Likewise.
44632         * lib/spawn-pipe.h: Likewise.
44633         * lib/spawn-pipe.c: Likewise.
44634         * lib/spawni.c: Likewise.
44635         * lib/stat-time.h: Likewise.
44636         * lib/w32spawn.h: Likewise.
44637         * tests/test-isatty.c: Likewise.
44638         * lib/config.charset: More comments.
44639         * doc/gnulib-intro.texi: Mention native Windows.
44640         * doc/posix-functions/_Exit_C99.texi: Likewise.
44641         * doc/posix-headers/fcntl.texi: Likewise.
44643 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44645         argp: Avoid crash if translator uses % characters in a translation.
44646         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44647         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44649 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44651         doc: C11 and C++11 are now official
44652         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44653         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44654         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44655         * modules/stdalign:
44656         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44658 2012-01-06  Bruno Haible  <bruno@clisp.org>
44660         uc-is-grapheme-break tests: Tweak.
44661         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44662         message.
44664 2012-01-06  Bruno Haible  <bruno@clisp.org>
44666         test-init.sh: correct the test for diff -u
44667         * tests/test-init.sh: Also redirect stdout to /dev/null.
44669 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44671         Use ', not `, for quoting output.
44672         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44673         (print_changelog_deltas, get_tool_versions, main program):
44674         * build-aux/git-version-gen:
44675         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44676         * build-aux/move-if-change (help):
44677         * build-aux/useless-if-before-free (usage, main program):
44678         * check-module (parse_module_file, usage)
44679         (find_included_lib_files, check_module):
44680         * lib/argmatch.c (main) [TEST]:
44681         * lib/argp-help.c (_help):
44682         * lib/getopt1.c (main) [TEST]:
44683         * lib/git-merge-changelog.c (usage):
44684         * lib/xstrtol-error.c (xstrtol_error):
44685         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44686         * m4/argz.m4 (gl_FUNC_ARGZ):
44687         * m4/bison.m4 (gl_BISON):
44688         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44689         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44690         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44691         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44692         * m4/gc-random.m4 (gl_GC_RANDOM):
44693         * m4/intl.m4 (gt_CHECK_DECL):
44694         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44696         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44698         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44699         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44700         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44701         * tests/test-dirname.c (main):
44702         * tests/test-getpass.c (main):
44703         * tests/test-iconvme.c (main):
44704         * tests/test-parse-datetime.c (LOG):
44705         * tests/test-xstrtoimax.sh:
44706         * tests/test-xstrtol.sh:
44707         * tests/test-xstrtoll.sh:
44708         * tests/test-xstrtoumax.sh:
44709         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44710         * top/GNUmakefile (abort-due-to-no-makefile):
44711         Quote 'like this', not `like this', as per the recent change to
44712         the GNU coding standards.
44714 2012-01-05  Bruno Haible  <bruno@clisp.org>
44716         strtoimax: Don't force a replacement on systems where intmax_t is int.
44717         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44718         'intmax_t' is not larger than 'int'.
44719         Reported by Pádraig Brady <P@draigBrady.com>.
44721 2012-01-05  Bruno Haible  <bruno@clisp.org>
44723         doc: Mention NetBSD bugs.
44724         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44725         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44727 2012-01-05  Bruno Haible  <bruno@clisp.org>
44729         strtoumax tests: Enhance tests.
44730         * tests/test-strtoumax.c (main): Add tests for large values.
44732 2012-01-05  Bruno Haible  <bruno@clisp.org>
44734         strtoimax: Work around AIX 5.1 bug.
44735         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44736         definition.
44737         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44738         Set HAVE_STRTOIMAX.
44739         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44740         REPLACE_STRTOIMAX.
44741         * modules/inttypes-incomplete (Makefile.am): Substitute
44742         REPLACE_STRTOIMAX.
44743         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44744         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44745         (Depends-on): Update conditions.
44746         * tests/test-strtoimax.c (main): Add tests for large values.
44747         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44749 2012-01-05  Bruno Haible  <bruno@clisp.org>
44751         inttypes: Modernize.
44752         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44753         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44754         (Makefile.am): Update inttypes.h rule.
44756 2012-01-05  Jim Meyering  <meyering@redhat.com>
44758         init.sh: don't waste a subshell just to redirect stderr
44759         * tests/init.sh: In testing for diff -u and diff -c, use a
44760         stderr-redirecting exec inside `...` rather than a subshell.
44762         test-init.sh: avoid failure on HP-UX 11.00
44763         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44764         resolves to diff -c or cmp.  Reported by Bruno Haible.
44766 2012-01-05  Bruno Haible  <bruno@clisp.org>
44768         Tests for module 'strtoull'.
44769         * modules/strtoull-tests: New file.
44770         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44772 2012-01-05  Bruno Haible  <bruno@clisp.org>
44774         Tests for module 'strtoll'.
44775         * modules/strtoll-tests: New file.
44776         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44778 2012-01-05  Bruno Haible  <bruno@clisp.org>
44780         Tests for module 'strtoul'.
44781         * modules/strtoul-tests: New file.
44782         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44784 2012-01-05  Bruno Haible  <bruno@clisp.org>
44786         Tests for module 'strtol'.
44787         * modules/strtol-tests: New file.
44788         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44790 2012-01-04  Jim Meyering  <meyering@redhat.com>
44792         test-init.sh: accommodate Solaris 5.10's different diff -u output
44793         * tests/test-init.sh: Also exempt @@ lines from the comparison
44794         of diff output, since Solaris 5.10 and GNU diff formats differ.
44795         Reported by Stefano Lattarini.
44797 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44799         test-posixtm: don't assume signed integer wraparound
44800         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44801         after signed integer overflow.  Inspired by (though it may not
44802         fix) Bruno Haible's bug report in
44803         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44805         Spell out "Windows 9x" and "Windows XP".
44806         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44807         "Windows 9x" and "WinXP" with "Windows XP".
44809 2012-01-04  Jim Meyering  <meyering@redhat.com>
44811         test-vc-list-files-cvs.sh: remove obsolete comment
44812         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44813         double exit.  Now that's all encapsulated via skip_ and Exit.
44815 2012-01-04  Bruno Haible  <bruno@clisp.org>
44817         Talk about "native Windows API", not "Win32".
44818         * lib/classpath.c: Update comments to mention native Windows.
44819         * lib/csharpexec.c: Likewise.
44820         * lib/dup2.c: Likewise.
44821         * lib/error.c: Likewise.
44822         * lib/fcntl.c: Likewise.
44823         * lib/filename.h: Likewise.
44824         * lib/findprog.c: Likewise.
44825         * lib/get-rusage-as.c: Likewise.
44826         * lib/get-rusage-data.c: Likewise.
44827         * lib/getpagesize.c: Likewise.
44828         * lib/javaexec.c: Likewise.
44829         * lib/msvc-inval.c: Likewise.
44830         * lib/msvc-nothrow.c: Likewise.
44831         * lib/nanosleep.c: Likewise.
44832         * lib/nonblocking.c: Likewise.
44833         * lib/printf-parse.c: Likewise.
44834         * lib/setlocale.c: Likewise.
44835         * lib/sigaction.c: Likewise.
44836         * lib/strerror_r.c: Likewise.
44837         * lib/tmpdir.c: Likewise.
44838         * lib/vasnprintf.c: Likewise.
44839         * lib/w32spawn.h: Likewise.
44840         * lib/waitpid.c: Likewise.
44841         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44842         * m4/locale-ar.m4: Likewise.
44843         * m4/locale-fr.m4: Likewise.
44844         * m4/locale-ja.m4: Likewise.
44845         * m4/locale-tr.m4: Likewise.
44846         * m4/locale-zh.m4: Likewise.
44847         * m4/printf.m4: Likewise.
44848         * tests/test-cloexec.c: Likewise.
44849         * tests/test-copy-acl.sh: Likewise.
44850         * tests/test-copy-file.sh: Likewise.
44851         * tests/test-file-has-acl.sh: Likewise.
44852         * tests/test-set-mode-acl.sh: Likewise.
44853         * tests/test-dup-safer.c: Likewise.
44854         * tests/test-dup2.c: Likewise.
44855         * tests/test-dup3.c: Likewise.
44856         * tests/test-fcntl.c: Likewise.
44857         * tests/test-nonblocking-pipe.h: Likewise.
44858         * tests/test-nonblocking-socket.h: Likewise.
44859         * tests/test-pipe.c: Likewise.
44860         * tests/test-pipe2.c: Likewise.
44861         * tests/test-spawn-pipe-child.c: Likewise.
44862         * doc/acl-resources.txt: Likewise.
44863         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44864         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44865         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44866         * lib/localcharset.c: Update comments to mention native Windows.
44867         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44868         * lib/localename.c: Likewise.
44869         * lib/progreloc.c: Likewise.
44870         * lib/relocatable.c: Likewise.
44871         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44872         (windows_compute_revents): Renamed from win32_compute_revents.
44873         (windows_compute_revents_socket): Renamed from
44874         win32_compute_revents_socket.
44875         * lib/select.c: Update comments to mention native Windows.
44876         (windows_poll_handle): Renamed from win32_poll_handle.
44877         * m4/threadlib.m4: Update comments to mention native Windows.
44878         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44879         --enable-threads=windows instead of --enable-threads=win32. Set
44880         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44881         * lib/glthread/lock.h: Update comments to mention native Windows.
44882         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44883         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44884         USE_WIN32_THREADS.
44885         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44886         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44887         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44888         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44889         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44890         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44891         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44892         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44893         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44894         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44895         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44896         * tests/test-tls.c: Likewise.
44897         Rationale:
44898         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44899         on both 32-bit and 64-bit Windows systems.
44900         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44901         line of distinction is between "native Windows" on one side and Unix/
44902         POSIX systems on the other side. More details in
44903         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44904         Suggested by Paul Eggert.
44906 2012-01-03  Bruno Haible  <bruno@clisp.org>
44908         isatty: Support for MSVC 9.
44909         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44910         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44911         (_isatty_nothrow): New function.
44912         (isatty): Use it instead of _isatty.
44913         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44914         * lib/poll.c (IsConsoleHandle): Likewise.
44915         * lib/select.c (IsConsoleHandle): Likewise.
44916         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44917         (gl_PREREQ_ISATTY): New macro.
44918         * modules/isatty (Depends-on): Add msvc-inval.
44919         (configure.ac): Invoke gl_PREREQ_ISATTY.
44921 2012-01-03  Jim Meyering  <meyering@redhat.com>
44923         maint.mk: remove temporary transition aid from over 1.5 years ago
44924         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44925         purpose was to aid in the transition (avoiding silent malfunction)
44926         from that old name to the new _sc_search_regexp.  This shim was
44927         added by commit 219c504b.
44929         init.sh: do not try to accommodate compare arguments starting with "-"
44930         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44931         compare arguments that start with "-".  Besides, we do not worry
44932         about this when invoking diff or cmp; why start now with sed?
44933         Using "--" to separate options from argument would trigger sed
44934         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44935         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44937 2012-01-02  Bruno Haible  <bruno@clisp.org>
44939         Enhance tests for module 'isatty'.
44940         * modules/isatty-tests (Depends-on): Add pipe-posix.
44941         * tests/test-isatty.c: Include <fcntl.h>.
44942         (DEV_NULL): New macro.
44943         (main): Test the resut of isatty() also on regular files, pipes, and
44944         /dev/null.
44946         New module 'isatty'.
44947         * lib/unistd.in.h (isatty): New declaration.
44948         * lib/isatty.c: New file, based on an idea of
44949         Bastien Roucariès <roucaries.bastien@gmail.com>.
44950         * m4/isatty.m4: New file.
44951         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44952         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44953         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44954         REPLACE_ISATTY.
44955         * modules/isatty: New file.
44956         * doc/posix-functions/isatty.texi: Mention the new module.
44957         Suggested by Paolo Bonzini.
44959 2012-01-02  Bruno Haible  <bruno@clisp.org>
44961         canonicalize: Tweak 2011-12-29 commit.
44962         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44963         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44965 2012-01-02  Jim Meyering  <meyering@redhat.com>
44967         gitlog-to-changelog: describe input syntax in --help output
44968         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44970         gitlog-to-changelog: fix typo in --help: show backslash before email @
44971         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44972         in sources, but not in actual output.
44974 2011-12-30  Jim Meyering  <meyering@redhat.com>
44976         gitlog-to-changelog: don't malfunction when name contains %-directive
44977         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44978         in a name string cause trouble.  E.g., with a user name of "%s",
44979         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44981 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44983         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44984         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44985         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44986         the "  (tiny change)" notation that is appended to the standard
44987         ChangeLog "date  name  email" header line.
44989 2012-01-01  Jim Meyering  <meyering@redhat.com>
44991         test-framework-sh: init.sh: fix "make dist" failure
44992         When using gnulib-tool's --with-tests option and any module that
44993         depends on test-framework-sh, "make dist" would fail due to the
44994         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44995         in the gltests directory, and not in the gllib/ directory.
44996         One way to work around that is to move the EXTRA_DIST += init.sh
44997         from the primary module to the -tests one:
44998         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44999         * modules/test-framework-sh (Makefile.am): ...not here.
45000         Reported by Tom G. Christensen in
45001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
45003         version-etc: update copyright year reported by --version
45004         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
45006 2011-12-31  Pádraig Brady  <P@draigBrady.com>
45008         canonicalize: only stat() if required
45009         * lib/canonicalize.c (canonicalize_filename_mode):
45010         Avoid calling l?stat() when both CAN_MISSING,
45011         and CAN_NOLINKS are set, as we neither need
45012         to resolve symlinks or test component existence.
45014 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
45016         doc: cover st_ino issues once; add OpenVMS etc.
45017         * doc/posix-functions/stat.texi (stat):
45018         * doc/posix-functions/lstat.texi (lstat):
45019         * doc/posix-functions/fstatat.texi (fstatat):
45020         * doc/posix-functions/fstat.texi (fstat):
45021         Move general 'struct stat' stuff to sys_stat.texi,
45022         leaving behind a pointer.
45023         * doc/posix-headers/sys_stat.texi (sys/stat.h):
45024         Merge duplicate info about 'struct stat' problems into here.
45025         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
45026         and suggest partial workarounds.
45028         same-inode: port to OpenVMS
45029         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
45030         three st_ino values.
45032 2011-12-30  Pádraig Brady  <P@draigBrady.com>
45034         canonicalize: fix references to stat() and lstat()
45035         * lib/canonicalize.c (canonicalize_filename_mode):
45036         Ensure references always resolve to a replacement
45037         function if required (even via a macro).
45039 2011-12-30  Jim Meyering  <meyering@redhat.com>
45041         gitlog-to-changelog: remove a little duplication
45042         * build-aux/gitlog-to-changelog (main): Grep @lines once,
45043         rather than twice.
45045 2011-12-29  Pádraig Brady  <P@draigBrady.com>
45047         canonicalize: add support for not resolving symlinks
45048         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
45049         indicate we don't want to follow symlinks.  Also
45050         provide CAN_MODE_MASK to aid setting these existing
45051         mutually exclusive values.
45052         * lib/canonicalize.c (canonicalize_filename_mode):
45053         Extract the flags from can_mode parameter, which
45054         are currently just used to select between stat()
45055         and lstat().  Also ensure that mutually exclusive
45056         values are flagged immediately as invalid.
45057         * tests/test-canonicalize.c: Verify symlinks are
45058         not followed, and that invalid flag combinations
45059         are diagnosed.
45061 2011-12-25  Jim Meyering  <meyering@redhat.com>
45063         gitlog-to-changelog: do not clump multi-paragraph entries
45064         Identical header lines (date,name,email+coauthors) are suppressed,
45065         thus putting all entries with those same characteristics under
45066         a single header.  However, when a log entry consists of two or
45067         more paragraphs, it may not be clear where it starts and ends.
45068         This change makes it so that such an entry is always separated
45069         from others by a header line, even when that header would
45070         otherwise be suppressed.
45071         * build-aux/gitlog-to-changelog: Implement the above.
45072         Inspired by a related request from Stefano Lattarini in
45073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
45075 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45077         announce-gen: fix `cmd' typo in diagnostic
45078         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
45079         diagnostic: a missing '$' meant that the command was not output.
45081 2011-12-23  Jim Meyering  <meyering@redhat.com>
45083         test-framework-sh: distribute init.sh
45084         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
45085         Otherwise, "make -C gnulib-tests check" (at least in grep) would
45086         fail due to the lack of init.sh.
45088         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
45089         * modules/atexit-tests: Rather than listing tests/init.sh,
45090         now that there's a module for it, simply depend on that new module.
45091         * modules/closein-tests: Likewise.
45092         * modules/exclude-tests: Likewise.
45093         * modules/getcwd-tests: Likewise.
45094         * modules/perror-tests: Likewise.
45095         * modules/pread-tests: Likewise.
45096         * modules/pwrite-tests: Likewise.
45097         * modules/vc-list-files-tests: Likewise.
45098         * modules/verify-tests: Likewise.
45099         * modules/xalloc-die-tests: Likewise.
45100         * modules/xstrtoimax-tests: Likewise.
45101         * modules/xstrtol-tests: Likewise.
45102         * modules/xstrtoll-tests: Likewise.
45103         * modules/xstrtoumax-tests: Likewise.
45104         * modules/yesno-tests: Likewise.
45106 2011-12-22  Jim Meyering  <meyering@redhat.com>
45108         test-framework-sh: add minimal tests of init.sh's compare function
45109         * modules/test-framework-sh-tests: New file.
45110         * tests/test-init.sh: New file.
45112         test-framework-sh: new module
45113         * modules/test-framework-sh: New file.
45114         * MODULES.html.sh (Support for maintaining and releasing projects):
45115         List it.
45117         init.sh: do not emit simulated diff output to stderr
45118         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
45120 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
45122         .gitignore: ignore gnulib.dvi and regex.info
45123         * doc/.gitignore:add gnulib.dvi and regex.info
45125 2011-12-22  Jim Meyering  <meyering@redhat.com>
45127         init.sh: correct previous change
45128         * tests/init.sh (compare): My previous change was wrong.
45129         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
45131         init.sh: avoid unwarranted test failure when using "set -e"
45132         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
45133         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
45134         a use like "compare exp out" would get evoke an unconditional failure.
45136 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
45138         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
45139         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
45140         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
45141         autoreconf that did not.
45142         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
45143         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
45145 2011-12-17  Jim Meyering  <meyering@redhat.com>
45147         bootstrap: remove some now-unneeded code
45148         This script arose back when gnulib-tool was young.
45149         Since then, it has seen improvements that render much of this
45150         script unnecessary.  In particular, it can now make symlinks
45151         to the files it uses.  Also, I no longer see as much value in
45152         marking files as read-only via comments.
45153         If you relied on the symlink-creation feature of the preceding
45154         version of this script, you can get most of that functionality
45155         by adding the --symlink option to the definition of
45156         gnulib_tool_option_extras in your bootstrap.conf file.
45157         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
45158         Run autopoint and libtoolize *before* gnulib-tool.
45159         After it, run an abbreviated autoreconf, rather than a loop around
45160         all tools.
45161         (slirp, bt_mark_as_generated): Remove functions.
45163 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45165         ftoastr: fix typo
45166         * lib/ftoastr.h: Fix misspelling in comment.
45168 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
45170         * top/README-release: fix punctuation.
45172 2011-12-17  Jim Meyering  <meyering@redhat.com>
45174         bootstrap: correct the recent buildreq change
45175         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
45176         had no effect.
45177         * build-aux/bootstrap (buildreq): Bracket each search term with
45178         "*...*", so that the shell "case" statement works as intended.
45179         Add comments.
45181 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
45183         build: let bootstrap resort to wget when downloading .po files
45184         * build-aux/bootstrap (download_po_files): Fallback to wget when
45185         downloading the .po files via rsync fails.  This is necessary to
45186         bootstrap from behind a strict firewall.
45188 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45190         stdint: don't assume C++11 when compiling with g++
45191         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
45192         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
45193         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
45194         work also in C++ before C++11, as that improperly inhibits
45195         generating a substitute stdint.h for that case.
45197 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45199         alloca: protect comment from gnulib-tool
45200         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
45201         that gnulib-tool doesn't think it's a license, and munge it to
45202         say "GCC version 3".
45204 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
45206         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
45207         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
45208         $(abs_top_builddir) instead of $(top_builddir).
45210 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
45212         strftime-tests: also test nanoseconds
45213         * tests/test-strftime.c (T): Add a test of %N.
45215 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45217         inttypes, stdint: add C++11 support
45218         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
45219         when including inttypes.h and stdint.h.  Support this change to
45220         the standard.
45221         * doc/posix-headers/inttypes.texi (inttypes.h):
45222         * doc/posix-headers/stdint.texi (stdint.h): Document this.
45223         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
45224         Define if not defined already, for the benefit of pre-C++11 hosts.
45225         Define the standard format macros (e.g., PRId8) always.
45226         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
45227         Likewise, if __cpluspus.  Define the standard constant and limit
45228         macros (e.g., INT8_C, INT8_MAX) always.
45229         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
45230         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
45231         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
45232         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
45233         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
45234         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
45235         Likewise.
45237 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
45239         nonblocking tests: Fix test failure on Linux/PPC.
45240         Suggested by Prerna Saxena in
45241         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
45242         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
45243         Set to 1100000.
45245 2011-12-12  Jim Meyering  <meyering@redhat.com>
45247         argmatch: don't hard-code `' when listing valid option arguments
45248         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
45249         use the quote function to add quotes.  Use fputs rather than
45250         fprintf for the format string with no format directive.
45252 2011-12-07  Eric Blake  <eblake@redhat.com>
45254         bootstrap: detect tools required by gnulib-tool
45255         * build-aux/bootstrap (buildreq): Provide minimum implicit
45256         dependencies.
45257         * DEPENDENCIES: Mention patch as a prereq.
45259 2011-12-04  Bruno Haible  <bruno@clisp.org>
45261         sethostname: Port to Windows platforms.
45262         * lib/sethostname.c: Provide an alternate implementation for Windows
45263         platforms.
45264         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
45265         (main): Skip the test if sethostname() fails with EPERM. On Windows
45266         platforms, don't check the result of gethostname().
45268 2011-12-04  Bruno Haible  <bruno@clisp.org>
45269             Jim Meyering  <meyering@redhat.com>
45271         tests: Avoid spurious error message on platforms without mktemp program.
45272         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
45274 2011-12-04  Bruno Haible  <bruno@clisp.org>
45276         sethostname: Fix documentation.
45277         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
45278         "not fixed" section.
45280 2011-12-03  Bruno Haible  <bruno@clisp.org>
45282         gnulib-tool: Verify that the License field is present and non-empty.
45283         * gnulib-tool (func_get_license_raw): New function, extracted from
45284         func_get_license.
45285         (func_get_license): Use it. Warn if the module is not a test module and
45286         has no license.
45287         Suggested by Jim Meyering.
45289 2011-12-03  Bruno Haible  <bruno@clisp.org>
45291         sethostname tests: Fix link error on mingw.
45292         * tests/test-sethostname1.c: New file, extracted from
45293         tests/test-sethostname.c.
45294         * tests/test-sethostname2.c: New file, extracted from
45295         tests/test-sethostname.c.
45296         * tests/test-sethostname.c: Remove file.
45297         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
45298         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
45299         (Depends-on): Add gethostname.
45300         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
45301         Link the latter with $(GETHOSTNAME_LIB).
45303         sethostname tests: Fix compilation error on mingw.
45304         * tests/test-sethostname.c: Don't include <sys/types.h>.
45305         (geteuid): Use a dummy value without uid_t.
45306         * modules/sethostname-tests (Depends-on): Remove sys_types.
45308         sethostname tests: Avoid a gcc warning.
45309         * tests/test-sethostname.c (main): Remove an unused variable.
45311         Tweak last commit.
45312         * modules/sethostname-tests (Files): Sort by decreasing importance.
45313         (configure.ac): Check for geteuid.
45314         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
45315         the test when there's nothing to test. Drop an unnecessary cast.
45316         Improve an error message. Verify that the final sethostname() call
45317         succeeds.
45319 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45321         Add a test suite for the sethostname module.
45322         * modules/sethostname-tests: New file.  A test program
45323         for the sethostname module.
45324         * tests/test-sethostname.c: Likewise.
45326 2011-12-03  Bruno Haible  <bruno@clisp.org>
45328         Tweak last commit.
45329         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45330         Fix preprocessor directives indentation. Fix typos.
45331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45332         * modules/unistd (Makefile): Likewise.
45334 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45336         Integrate the sethostname module into unistd.
45337         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45338         into the unistd.h header.
45339         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45340         preprocessor directives.
45341         * modules/unistd: Setup the Makefile substitutions of the
45342         SETHOSTNAME preprocessor directives.
45344 2011-12-03  Bruno Haible  <bruno@clisp.org>
45346         Tweak last commit.
45347         * lib/sethostname.c: Don't include <string.h>.
45348         (sethostname): No need to copy the argument string to the stack. Don't
45349         call clearerr. Preserve errno when fprintf failed.
45350         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45351         Don't invoke AC_REPLACE_FUNCS.
45352         * modules/sethostname (Link): Remove empty section.
45353         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45354         failure problem.
45356 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45358         New module 'sethostname'.
45359         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45360         for systems that lack it.
45361         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45362         sethostname declaration and function.
45363         * modules/sethostname: New file.  Define the sethostname module.
45365 2011-12-03  Bruno Haible  <bruno@clisp.org>
45367         Tweak last commit.
45368         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45370 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45372         Split the HOST_NAME_MAX detection into a separate m4 macro.
45373         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45374         macro so it can be used by the pending sethostname module.
45376 2011-12-03  Bruno Haible  <bruno@clisp.org>
45378         Fix module descriptions syntax.
45379         * modules/argv-iter (License): Fix syntax.
45380         * modules/di-set (License): Likewise.
45381         * modules/ino-map (License): Likewise.
45382         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45384 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45386         stdalign: port to Clang 3.0
45387         Problem reported by Simon Josefsson in
45388         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45389         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45390         which has <stdalign.h> but which does not define alignof.
45391         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45393 2011-12-01  Eric Blake  <eblake@redhat.com>
45395         mktempd: silence dd usage
45396         * build-aux/mktempd (rand_bytes): Silence dd.
45398 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45400         manywarnings: Don't mention gcc version in docstring.
45401         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45402         Jim Meyering <meyering@redhat.com>.
45404 2011-11-30  Jim Meyering  <meyering@redhat.com>
45406         hash: mark a few floating point constants with "f" suffix
45407         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45408         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45409         floating point constants with "f", since they're destined to be
45410         saved/used as "float"s.
45412 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45414         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45415         * tests/test-float.c (test_long_double): Correct and re-enable the
45416         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45418 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45420         Avoid subtracting two pointers that don't point into the same block.
45421         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45422         only pointers into the same memory block are subtracted. We cannot
45423         assume that sizeof (ptrdiff_t) == sizeof (void *).
45425 2011-11-29  Eric Blake  <eblake@redhat.com>
45427         maint.mk: add syntax check for use of compare from init.sh
45428         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45429         moved here from coreutils.
45431         manywarnings: drop -Wunsuffixed-float-constants
45432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45433         '1.0D', which is the only way to silence this warning for 'double'.
45435 2011-11-29  Jim Meyering  <meyering@redhat.com>
45437         hash: mark compute_bucket_size with the pure attribute
45438         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45440         quotearg, propername: correct pragma guard expression
45441         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45442         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45444 2011-11-28  Jim Meyering  <meyering@redhat.com>
45446         propername: do not mark proper_name with the const attribute
45447         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45448         since it examines data pointed to by its parameter.
45449         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45450         the suggestion from -Wsuggest-attribute=const.
45452         propername: mark one more function as const
45453         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45455 2011-11-27  Jim Meyering  <meyering@redhat.com>
45457         mark functions with const and pure attributes
45459         Mark functions per suggestions from gcc-4.6 when using these options:
45460         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45461         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45462         Follow these guidelines: when possible, apply the attribute to
45463         an extern declaration, not to its definition.  Apply it to the
45464         definition only when the definition is static.
45465         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45466         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45467         * lib/base64.h (isbase64): Likewise.
45468         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45469         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45470         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45471         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45472         (c_tolower, c_toupper): Likewise.
45473         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45474         * lib/chdir-long.c (find_non_slash): Likewise.
45475         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45476         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45477         * lib/file-type.h (file_type): Likewise.
45478         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45479         * lib/filevercmp.c (verrevcmp): Likewise.
45480         * lib/freadahead.h (freadahead): Likewise.
45481         * lib/fts.c (fts_maxarglen): Likewise.
45482         * lib/hash-pjw.h (hash_pjw): Likewise.
45483         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45484         * lib/hash.c (is_prime, next_prime): Likewise.
45485         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45486         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45487         (hash_table_ok, hash_get_first, hash_string): Likewise.
45488         (compute_bucket_size): Likewise.
45489         * lib/i-ring.h (i_ring_empty): Likewise.
45490         * lib/isnan.c (isnanl): Likewise.
45491         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45492         * lib/memcasecmp.h (memcasecmp): Likewise.
45493         * lib/memchr2.h (memchr2): Likewise.
45494         * lib/memcmp2.h (memcmp2): Likewise.
45495         * lib/parse-datetime.y (lookup_zone): Likewise.
45496         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45497         [!WINDOWS_SOCKETS]: Likewise.
45498         * lib/strnlen1.h (strnlen1): Likewise.
45499         * lib/uniwidth.in.h (uc_width): Likewise.
45500         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45501         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45502         (quoting_options_from_style): Add a comment.
45503         * lib/propername.h (proper_name): Add a comment.
45505 2011-11-27  Bruno Haible  <bruno@clisp.org>
45507         Remove unused macros from !_LIBC code in glibc-borrowed files.
45508         * lib/fnmatch.c (STRCOLL): Remove macro.
45509         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45510         * lib/glob.c (__stat, __readdir64): Remove macros.
45511         * lib/tempname.c (__open64, __xstat64): Remove macros.
45512         Suggested by Paul Eggert.
45514 2011-11-27  Bruno Haible  <bruno@clisp.org>
45516         getcwd: Fix link error on MSVC 9.
45517         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45519 2011-11-27  Bruno Haible  <bruno@clisp.org>
45521         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45522         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45523         HAVE_OPENDIR is 0.
45524         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45525         HAVE_CLOSEDIR is 0.
45526         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45527         is 0.
45528         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45530 2011-11-27  Bruno Haible  <bruno@clisp.org>
45532         getcwd: Fix bug from 2011-08-17.
45533         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45534         platforms that need it.
45535         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45536         code of 4 to be a failure, not a success. This ensures that
45537         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45539 2011-11-27  Bruno Haible  <bruno@clisp.org>
45541         binary-io tests: Avoid test failure on mingw when libtool is used.
45542         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45543         Don't verify the size of t-bin-out1.tmp here.
45544         * tests/test-binary-io.sh: Verify it here.
45545         Reported by Simon Josefsson.
45547 2011-11-26  Bruno Haible  <bruno@clisp.org>
45549         Fix conflict between two instantiations of module 'unistd'.
45550         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45551         ${include_guard_prefix} also in the autoconf snippet.
45552         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45554         GNULIB_UNISTD_H_GETOPT.
45555         * modules/getopt-posix (configure.ac): Set the
45556         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45557         * modules/getopt-gnu (configure.ac): Likewise.
45558         * modules/unistd (Makefile.am): Change the substitution value of
45559         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45560         Reported by Simon Josefsson.
45562 2011-11-25  Bruno Haible  <bruno@clisp.org>
45564         pagealign_alloc: Doc and comments.
45565         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45566         module.
45567         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45569 2011-11-25  Jim Meyering  <meyering@redhat.com>
45571         test-update-copyright.sh: avoid false-positive failure
45572         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45573         around false positive failure on Cygwin/Windows.  The latter was
45574         matching erroneously-created files with names like
45575         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45577 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45579         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45580         * m4/valgrind-tests.m4: Check that the parameters that will be
45581         used works, not just a subset of them.  Reported by Bruno Haible
45582         <bruno@clisp.org>.
45584 2011-11-24  Jim Meyering  <meyering@redhat.com>
45586         test-stdalign.c: comment out long double tests
45587         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45588         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45589         error: '_Alignas' specifiers cannot reduce alignment of \
45590         'static_longdouble_alignas'.
45592 2011-11-22  Jim Meyering  <meyering@redhat.com>
45594         init.sh: make "compare /dev/null FILE" output more readable
45595         * tests/init.sh (compare_): Document the preferred order of arguments.
45596         (emit_diff_u_header_): New function.
45597         (compare_dev_null_): Emit a simulated diff, rather than just the
45598         contents of the unexpected file.  Suggestion from Bruno Haible.
45600 2011-11-21  Jim Meyering  <meyering@redhat.com>
45601             Eric Blake  <eblake@redhat.com>
45603         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45604         * tests/init.sh: Make our compare function slightly more portable.
45605         Reported by Bruno Haible in
45606         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45608 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45610         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45611         before using it, in code that ends up in config.h.
45613 2011-11-20  Bruno Haible  <bruno@clisp.org>
45615         getcwd: Work around getcwd bug on AIX 5..7.
45616         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45617         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45618         Use a different value for gl_cv_func_getcwd_path_max. Move the
45619         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45620         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45621         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45622         Define HAVE_MINIMALLY_WORKING_GETCWD.
45623         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45624         where it is not even minimally working, that is, on AIX.
45625         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45626         m4/getcwd-path-max.m4.
45627         (main): Update exit code computation.
45628         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45629         getcwd does not handle long file names.
45631 2011-11-20  Bruno Haible  <bruno@clisp.org>
45633         getcwd: Fix bug from 2009-09-10.
45634         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45635         like "no".
45637 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45639         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45641 2011-11-20  Bruno Haible  <bruno@clisp.org>
45643         fma tests: Avoid shadowing local variables.
45644         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45645         expected.
45647 2011-11-20  Bruno Haible  <bruno@clisp.org>
45649         copysignf tests: Fix.
45650         * tests/test-copysignf.c: Fix signature check.
45652 2011-11-20  Bruno Haible  <bruno@clisp.org>
45654         fma: Remove unused code.
45655         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45656         unused macros.
45658 2011-11-20  Bruno Haible  <bruno@clisp.org>
45660         sethostname: Fix doc about AIX.
45661         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45662         sethostname; it has it.
45664         sethostname: Mention more portability problems.
45665         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45666         problem.
45667         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45669 2011-11-19  Bruno Haible  <bruno@clisp.org>
45671         Depend on module fcntl-h when AT_FDCWD is used.
45672         * modules/utimens (Depends-on): Add fcntl-h.
45673         * modules/areadlinkat (Depends-on): Likewise.
45674         * modules/areadlinkat-with-size (Depends-on): Likewise.
45675         * modules/faccessat (Depends-on): Likewise.
45676         * modules/fchmodat (Depends-on): Likewise.
45677         * modules/fchownat (Depends-on): Likewise.
45678         * modules/getcwd (Depends-on): Likewise.
45679         * modules/mkdirat (Depends-on): Likewise.
45680         * modules/mkfifoat (Depends-on): Likewise.
45681         * modules/readlinkat (Depends-on): Likewise.
45682         * modules/symlinkat (Depends-on): Likewise.
45683         * modules/dup2-tests (Depends-on): Likewise.
45684         * modules/fdutimensat-tests (Depends-on): Likewise.
45685         * modules/futimens-tests (Depends-on): Likewise.
45687 2011-11-19  Bruno Haible  <bruno@clisp.org>
45689         euidaccess: Update a comment.
45690         * lib/euidaccess.c: Update comment about platforms with faccessat.
45692 2011-11-19  Bruno Haible  <bruno@clisp.org>
45694         openat: Fix file list.
45695         * modules/openat (Files): Remove lib/at-func.c.
45697 2011-11-19  Bruno Haible  <bruno@clisp.org>
45699         fstatat: Simplify.
45700         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45701         gnulib should define rpl_fstatat, there is a
45702         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45704 2011-11-19  Bruno Haible  <bruno@clisp.org>
45706         Ensure 'inline' can be used in tests/test-utimens-common.h.
45707         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45708         * modules/futimens-tests (configure.ac): Likewise.
45709         * modules/utimens-tests (configure.ac): Likewise.
45710         * modules/utimensat-tests (configure.ac): Likewise.
45712 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45714         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45715         not hash_insert0.
45716         (hash_insert_if_absent): Doc fix.
45718 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45720         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45722 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45724         test-getcwd: disambiguate exit status
45725         * tests/test-getcwd.c (test_long_name): Return 0..7.
45726         (main): Exit with an unambiguous exit status.  The old
45727         code yielded a mysterious mixture of two failure codes.
45729         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45730         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45731         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45732         rpl_fstatat or fstatat.  This should fix the other problem
45733         reported by Kai Habel in
45734         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45735         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45736         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45737         and I reproduced it on a Solaris 8 host we still have in production.
45739 2011-11-18  Jim Meyering  <meyering@redhat.com>
45741         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45742         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45743         Add a sentence to the comment.
45744         (hash_insert0): New function that simply calls hash_insert_if_absent.
45745         * lib/hash.h (hash_insert_if_absent): Declare it.
45746         (hash_insert0): Add deprecation attribute.
45747         (_GL_ATTRIBUTE_DEPRECATED): Define.
45748         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45749         not hash_insert0.
45750         * NEWS: Mention it, even though it's not really an incompatible change.
45752 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45754         openat: avoid compilation failure due to lack of <errno.h> inclusion
45755         * lib/openat.c: Include <errno.h>.
45757 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45759         * modules/getcwd (Depends-on): Add fdopendir.
45760         This fixes one of the two problems reported by Kai Habel in
45761         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45763         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45764         stdalign problem reported by Ian Beckwith in
45765         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45766         * modules/crypto/gc-arcfour (Depends-on):
45767         Depend conditionally on crypto/arcfour.
45768         * modules/crypto/gc-arctwo (Depends-on):
45769         Depend conditionally on crypto/arctwo.
45770         * modules/crypto/gc-des (Depends-on):
45771         Depend conditionally on crypto/des.
45772         * modules/crypto/gc-hmac-md5 (Depends-on):
45773         Depend conditionally on crypto/hmac-md5.
45774         * modules/crypto/gc-hmac-sha1 (Depends-on):
45775         Depend conditionally on crypto/hmac-sha1.
45776         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45777         * modules/crypto/gc-md4 (Depends-on):
45778         Depend conditionally on crypto/md4.
45779         * modules/crypto/gc-md5 (Depends-on):
45780         Depend conditionally on crypto/md5.
45781         * modules/crypto/gc-rijndael (Depends-on):
45782         Depend conditionally on crypto/rijndael.
45783         * modules/crypto/gc-sha1 (Depends-on):
45784         Depend conditionally on crypto/sha1.
45785         * modules/crypto/gc-arcfour:
45786         * modules/crypto/gc-arctwo:
45787         * modules/crypto/gc-des:
45788         * modules/crypto/gc-hmac-md5:
45789         * modules/crypto/gc-hmac-sha1:
45790         * modules/crypto/gc-md2:
45791         * modules/crypto/gc-md4:
45792         * modules/crypto/gc-md5:
45793         * modules/crypto/gc-rijndael:
45794         * modules/crypto/gc-sha1:
45795         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45796         now that the conditional dependencies do the work for us.
45798 2011-11-17  Jim Meyering  <meyering@redhat.com>
45800         tests: factor st_ctime-comparison out of two headers
45801         * tests/test-utimens-common.h (ctime_compare): Define.
45802         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45803         * tests/test-lutimens.h (test_lutimens): Likewise.
45804         * tests/test-utimens.h (test_utimens): Likewise.
45806         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45807         Invoke the test program via an init.sh-using wrapper.
45808         * tests/test-getcwd.sh: New file.
45809         * modules/getcwd-tests (Files): Add it.
45810         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45812 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45814         gitlog-to-changelog: support multi-author commits.
45815         The FSF cares about keeping track of all authors of patches to its
45816         projects, but Git doesn't provide obvious support for multi-author
45817         changesets. Consensus seems to be forming around the use of extra
45818         Signed-off-by inspired lines in the log message formatted as
45819         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45820         multi-author commits between version control systems.
45821         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45822         log message and output in standard ChangeLog multi-author format.
45823         Reported by Peter Rosin <peda@lysator.liu.se>
45825 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45826             Bruno Haible  <bruno@clisp.org>
45828         Fix some modules' file list.
45829         * modules/fstatat (Files): Add m4/lstat.m4.
45830         * modules/openat (Files): Likewise.
45831         * modules/unlinkat (Files): Likewise.
45833 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45835         maint.mk: fix tight-scope.mk generation in VPATH builds.
45836         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45837         reference with $(srcdir) so that the file is found correctly even
45838         when running `make syntax-check' in a VPATH build.
45840 2011-11-13  Bruno Haible  <bruno@clisp.org>
45841             Jim Meyering  <meyering@redhat.com>
45843         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45844         * tests/init.sh (compare): Remove "No differences encountered" or
45845         synonymous output from the 'diff' program.
45847 2011-11-13  Bruno Haible  <bruno@clisp.org>
45849         Makefile: Tweak indentation.
45850         * Makefile: Use tab as first character in every line that contains rule
45851         commands.
45853 2011-11-13  Bruno Haible  <bruno@clisp.org>
45855         Syntax check for copyright statements.
45856         * check-copyright: New file.
45857         * Makefile (sc_check_copyright): New rule.
45859 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45861         * build-aux/git-version-gen: Add --prefix to configure the tag
45862         match string.
45864 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45866         * build-aux/git-version-gen: Add --help and --version.
45868 2011-11-12  Jim Meyering  <meyering@redhat.com>
45870         revamp the other test-exclude?.sh scripts to use init.sh, too
45871         * tests/test-exclude1.sh: Use init.sh.
45872         * tests/test-exclude2.sh: Likewise.
45873         * tests/test-exclude3.sh: Likewise.
45874         * tests/test-exclude4.sh: Likewise.
45875         * tests/test-exclude5.sh: Likewise.
45876         * tests/test-exclude6.sh: Likewise.
45877         * tests/test-exclude7.sh: Likewise.
45878         * tests/test-exclude8.sh: Likewise.
45879         * modules/exclude-tests (Files): List init.sh.
45881         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45882         These shell scripts ignored failure of the binary test-exclude,
45883         so making the latter return 77 didn't cause them to be skipped.
45884         * tests/test-exclude5.sh: Exit with test-exclude's error status
45885         when that program fails.  Revamp to use init.sh.
45886         * tests/test-exclude2.sh: Likewise.
45888         test-exclude: fix a typo
45889         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45891 2011-11-11  Bruno Haible  <bruno@clisp.org>
45893         obstack: Fix compilation error on MSVC 9.
45894         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45896 2011-11-11  Jim Meyering  <meyering@redhat.com>
45898         test-exclude: skip tests rather than failing on deficient systems
45899         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45900         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45901         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45902         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45904 2011-11-10  Bruno Haible  <bruno@clisp.org>
45906         ptsname_r test: Avoid gcc warning on glibc systems.
45907         * tests/test-ptsname_r.c (null_ptr): New function.
45908         (test_errors): Use it.
45910 2011-11-10  Bruno Haible  <bruno@clisp.org>
45912         ptsname_r: Avoid compilation error on OSF/1 5.1.
45913         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45915         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45916         function is not declared or incompatibly declared.
45917         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45918         * modules/ptsname_r (Depends-on, configure.ac): Update.
45919         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45921 2011-11-10  Bruno Haible  <bruno@clisp.org>
45923         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45924         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45925         When cross-compiling, guess yes on all platforms except AIX.
45926         Reported by Ludovic Courtès <ludo@gnu.org>.
45928 2011-11-09  Bruno Haible  <bruno@clisp.org>
45930         ptsname_r tests: Fix bugs.
45931         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45932         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45934 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45936         fstatat: work with cross-compilation
45937         Problem reported by Ludovic Courtès in
45938         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45939         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45940         "cross-compiling" and assume the bug is present.  Replace
45941         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45942         an inverted sense, to be more conservative about our assumptions.
45943         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45945 2011-11-09  Bruno Haible  <bruno@clisp.org>
45947         Improve MODULES.html output.
45948         * modules/mkfifoat (Description): Use the word "function".
45949         * modules/readlinkat (Description): Likewise.
45950         * modules/symlinkat (Description): Likewise.
45952 2011-11-09  Eric Blake  <eblake@redhat.com>
45954         ptsname_r-tests: new test module
45955         * modules/ptsname_r-tests: New module.
45956         * tests/test-ptsname_r.c: New file.
45958         ptsname_r: new module
45959         * modules/ptsname_r: New module.
45960         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45961         * lib/ptsname.c (__ptsname_r): Split...
45962         * lib/ptsname_r.c: ...into new file.
45963         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45964         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45965         * modules/stdlib (Makefile.am): Substitute witnesses.
45966         * lib/stdlib.in.h (ptsname_r): Declare it.
45967         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45968         * MODULES.html.sh (Misc): Likewise.
45969         * modules/ptsname (Depends-on): Alter dependency.
45970         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45972 2011-11-09  Jim Meyering  <meyering@redhat.com>
45974         announce-gen: be more concise when there's only one URL+tarball
45975         * build-aux/announce-gen (get_tool_versions): When you distribute
45976         only one type of tarball, combine the first two "Here are..."
45977         sections and make the key-checking grammar independent of
45978         how many tarballs there are.
45980 2011-11-09  Eric Blake  <eblake@redhat.com>
45982         openpty: provide a stub on mingw
45983         * lib/pty.in.h (includes): Provide forward declarations.
45984         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45986         raise: fix mingw handling of SIGPIPE
45987         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45989 2011-11-08  Bruno Haible  <bruno@clisp.org>
45991         More conditional dependencies.
45992         * modules/faccessat (Depends-on): Add conditions.
45993         * modules/fchmodat (Depends-on): Likewise.
45994         * modules/fchownat (Depends-on): Likewise.
45995         * modules/fstatat (Depends-on): Likewise.
45996         * modules/mkfifoat (Depends-on): Likewise.
45997         * modules/readlinkat (Depends-on): Likewise.
45998         * modules/symlinkat (Depends-on): Likewise.
45999         * modules/unlinkat (Depends-on): Likewise.
46000         * modules/utimensat (Depends-on): Likewise.
46001         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
46002         * modules/linkat (Depends-on): Refine the conditions.
46003         * modules/renameat (Depends-on): Likewise.
46005 2011-11-08  Bruno Haible  <bruno@clisp.org>
46007         faccessat: Move AC_LIBOBJ invocation to module description.
46008         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
46009         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
46010         invocation from here...
46011         * modules/faccessat (configure.ac): ... to here. Invoke
46012         gl_PREREQ_FACCESSAT.
46014 2011-11-08  Bruno Haible  <bruno@clisp.org>
46016         faccessat: Simplify autoconf macro.
46017         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
46018         gl_FUNC_EUIDACCESS.
46020 2011-11-08  Bruno Haible  <bruno@clisp.org>
46022         renameat: Fix dependencies.
46023         * modules/renameat (Depends-on): Add stdbool.
46025 2011-11-08  Bruno Haible  <bruno@clisp.org>
46027         mkfifoat: Fix module description.
46028         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
46029         not gl_UNISTD_MODULE_INDICATOR.
46031 2011-11-08  Bruno Haible  <bruno@clisp.org>
46033         fstatat: Remove unused dependency.
46034         * modules/fstatat (Depends-on): Remove fstat.
46036 2011-11-08  Simon Josefsson  <simon@josefsson.org>
46038         GNUmakefile: behave when Makefile is missing.
46039         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
46041 2011-11-08  Bruno Haible  <bruno@clisp.org>
46043         openat: Conditionalize dependencies.
46044         * lib/openat.c: Reduce the scope of some #includes.
46045         * modules/openat (Depends-on): Add conditions.
46047 2011-11-07  Jim Meyering  <meyering@redhat.com>
46049         maint.mk: extract GPG key ID without using a temporary file
46050         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
46051         without using a temporary file.  Based on a suggestion from Werner Koch
46052         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
46054 2011-11-07  Eric Blake  <eblake@redhat.com>
46056         grantpt: fix typo
46057         * lib/stdlib.in.h (grantpt): Check correct function.
46059         maint.mk: silence new syntax check
46060         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
46062 2011-11-06  Bruno Haible  <bruno@clisp.org>
46064         Doc about floating-point and math API.
46065         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
46066         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
46068 2011-11-06  Bruno Haible  <bruno@clisp.org>
46070         stdalign tests: Skip the test when compiled by Sun C.
46071         * tests/test-stdalign.c (main): Skip the test on Sun C.
46073 2011-11-06  Bruno Haible  <bruno@clisp.org>
46075         ansi-c++-opt: Complete the 2011-06-05 change.
46076         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
46077         does not support namespaces, set the variable to "no", not to ":".
46079 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46081         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
46083 2011-11-06  Bruno Haible  <bruno@clisp.org>
46085         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
46086         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
46087         (minus_zerol) [HP-UX]: New macro.
46088         (unary_minus) [HP-UX]: New function.
46089         (copysignl) [HP-UX]: Use unary_minus function.
46091 2011-11-06  Bruno Haible  <bruno@clisp.org>
46093         ldexp, ldexpf, ldexpl: Enhance tests.
46094         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
46095         and tests/test-ldexpl.c.
46096         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
46097         LDEXP, MIN_EXP, MAX_EXP): New macros.
46098         Include test-ldexp.h.
46099         (main): Just call test_function.
46100         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
46101         infinity.h, nan.h.
46102         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46103         MAX_EXP): New macros.
46104         Include test-ldexp.h.
46105         (x, y): Remove variables.
46106         (main): Just call test_function.
46107         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
46108         infinity.h, nan.h.
46109         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46110         MAX_EXP): New macros.
46111         Include test-ldexp.h.
46112         (x, y): Remove variables.
46113         (main): Just call test_function.
46114         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
46115         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
46116         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46117         (Depends-on): Add isnand-nolibm, signbit, float.
46118         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
46119         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46120         (Depends-on): Add isnanf-nolibm, signbit, float.
46122 2011-11-06  Bruno Haible  <bruno@clisp.org>
46124         math tests: Cosmetics.
46125         * tests/test-math-c++.cc: Reorder declarations.
46127 2011-11-05  Bruno Haible  <bruno@clisp.org>
46129         fma*: Simplify test.
46130         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
46131         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
46133         Tests for module 'fmal'.
46134         * modules/fmal-tests: New file.
46135         * tests/test-fmal1.c: New file.
46136         * tests/test-fmal2.c: New file.
46138         New module 'fmal'.
46139         * lib/math.in.h (fmal): New declaration.
46140         * lib/fmal.c: New file.
46141         * m4/fmal.m4: New file.
46142         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
46143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
46144         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
46145         REPLACE_FMAL.
46146         * modules/fmal: New file.
46147         * doc/posix-functions/fmal.texi: Mention the new module and the various
46148         bugs.
46150         Tests for module 'fmaf'.
46151         * modules/fmaf-tests: New file.
46152         * tests/test-fmaf1.c: New file.
46153         * tests/test-fmaf2.c: New file.
46155         New module 'fmaf'.
46156         * lib/math.in.h (fmaf): New declaration.
46157         * lib/fmaf.c: New file.
46158         * m4/fmaf.m4: New file.
46159         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
46160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
46161         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
46162         REPLACE_FMAF.
46163         * modules/fmaf: New file.
46164         * doc/posix-functions/fmaf.texi: Mention the new module and the various
46165         bugs.
46167         Tests for module 'fma'.
46168         * modules/fma-tests: New file.
46169         * tests/test-fma1.c: New file.
46170         * tests/test-fma1.h: New file.
46171         * tests/test-fma2.c: New file.
46172         * tests/test-fma2.h: New file.
46174         New module 'fma'.
46175         * lib/math.in.h (fma): New declaration.
46176         * lib/fma.c: New file.
46177         * m4/fma.m4: New file.
46178         * m4/fegetround.m4: New file.
46179         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
46180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
46181         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
46182         REPLACE_FMA.
46183         * modules/fma: New file.
46184         * doc/posix-functions/fma.texi: Mention the new module and the various
46185         bugs.
46187         Extend gl_MATHFUNC.
46188         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
46189         Support 'void' as argument type.
46190         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
46192 2011-11-05  Jim Meyering  <meyering@redhat.com>
46194         maint.mk: also prohibit inclusion of dirent.h without use
46195         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
46197 2011-11-05  Bruno Haible  <bruno@clisp.org>
46199         ldexpl tests: Avoid test failure on MSVC 9.
46200         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
46201         value. Needed in order to enforce the conversion from a value greater
46202         than LDBL_MAX to Infinity.
46204 2011-11-05  Bruno Haible  <bruno@clisp.org>
46206         New modules 'at-internal', 'openat-h', split off from module 'openat'.
46207         * modules/at-internal: New file, extracted from modules/openat.
46208         * modules/openat-h: New file.
46209         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
46210         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
46211         * modules/openat (Description): Add reference to POSIX function.
46212         (Files): Remove lib/openat.h, lib/openat-proc.c.
46213         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
46214         intprops, unistd.
46215         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
46216         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
46217         gl_FCNTL_MODULE_INDICATOR.
46218         (Include): Remove unistd.h, openat.h.
46219         * modules/areadlinkat (Files): Add lib/at-func.c.
46220         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46221         openat-die, openat-h, save-cwd.
46222         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
46223         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46224         openat-die, openat-h, save-cwd, unistd.
46225         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
46226         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46227         openat-h, save-cwd. Remove fcntl-h, openat.
46228         * modules/fchmodat (Files): Remove lib/openat.h.
46229         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46230         openat, stdbool, unistd.
46231         * modules/fchownat (Files): Remove lib/openat.h.
46232         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46233         openat, stdbool, sys_stat.
46234         * modules/fdopendir (Files): Remove lib/openat-priv.h,
46235         lib/openat-proc.c.
46236         (Depends-on): Add at-internal.
46237         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
46238         * modules/fstatat (Files): Remove lib/openat.h.
46239         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46240         stdbool, unistd.
46241         * modules/fts (Depends-on): Add openat-h.
46242         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
46243         openat.
46244         * modules/mkdirat (Files): Remove lib/openat.h.
46245         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46246         openat, stdbool, sys_stat.
46247         * modules/mkfifoat (Files): Add lib/at-func.c.
46248         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46249         openat-h, save-cwd. Remove fcntl-h, openat.
46250         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46251         * modules/readlinkat (Files): Add lib/at-func.c.
46252         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46253         openat-h, save-cwd. Remove fcntl-h, openat.
46254         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
46255         openat.
46256         * modules/selinux-at (Files): Add lib/at-func.c.
46257         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46258         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
46259         * modules/symlinkat (Files): Add lib/at-func.c.
46260         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46261         openat-h, save-cwd. Remove fcntl-h, openat.
46262         * modules/unlinkat (Files): Remove lib/openat.h.
46263         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46264         stdbool.
46265         * modules/utimensat (Files): Add lib/at-func.c.
46266         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
46267         openat-die, openat-h, save-cwd.
46268         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
46269         * modules/fdutimensat-tests (Depends-on): Add openat.
46270         * modules/fstatat-tests (Depends-on): Add openat-h.
46271         * modules/readlinkat-tests (Depends-on): Add openat.
46272         * modules/symlinkat-tests (Depends-on): Add openat.
46274 2011-11-05  Bruno Haible  <bruno@clisp.org>
46276         openat: Include <stdbool.h>.
46277         * lib/openat.c: Include <stdbool.h>.
46279 2011-11-04  Bruno Haible  <bruno@clisp.org>
46281         fchownat, renameat, unlinkat: Fix dependencies.
46282         * modules/fchownat (Depends-on): Add fstatat.
46283         * modules/renameat (Depends-on): Likewise.
46284         * modules/unlinkat (Depends-on): Likewise.
46286 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
46288         openat: remove direct dependency on dirent
46289         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
46290         and hasn't been needed ever since fdopendir was split into its own
46291         module on 2009-08-31.
46292         * modules/openat (Depends-on): Remove dirent.
46294 2011-11-04  Bruno Haible  <bruno@clisp.org>
46296         renameat: Optimize code size.
46297         * modules/renameat (configure.ac): Don't compile at-func2.c if
46298         REPLACE_RENAMEAT is 1.
46300 2011-11-04  Bruno Haible  <bruno@clisp.org>
46302         openat tests: Fix file list.
46303         * modules/openat-tests (Files): Add tests/test-open.h.
46305 2011-11-04  Bruno Haible  <bruno@clisp.org>
46307         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
46308         * modules/fchmodat (Depends-on): Add openat-die.
46309         * modules/fchownat (Depends-on): Likewise.
46310         * modules/linkat (Depends-on): Likewise.
46311         * modules/renameat (Depends-on): Likewise.
46312         * modules/openat (Depends-on): Add dirent.
46314 2011-11-04  Jim Meyering  <meyering@redhat.com>
46316         at-func*.c: fix comments
46317         * lib/at-func2.c: Correct/improve first-line comment.
46318         * lib/at-func.c: Correct grammar in first-line comment.
46320 2011-11-04  Bruno Haible  <bruno@clisp.org>
46322         New module 'mkdirat', split off from module 'openat'.
46323         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
46324         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
46325         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
46326         * modules/mkdirat: New file, extracted from modules/openat.
46327         * modules/openat (Files): Remove lib/mkdirat.c.
46328         (Depends-on): Remove mkdir.
46329         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46330         (Include): Remove <sys/stat.h>.
46331         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46332         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46333         tests/test-mkdir.h.
46334         (Depends-on): Remove ignore-value.
46335         (Makefile.am): Remove rules for test-mkdirat.
46336         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46337         of module 'openat'.
46338         * NEWS: Mention the change.
46340 2011-11-04  Bruno Haible  <bruno@clisp.org>
46342         closedir: Avoid warning on mingw.
46343         * lib/closedir.c: Include <unistd.h>.
46345 2011-11-04  Bruno Haible  <bruno@clisp.org>
46347         New module 'fstatat', split off from module 'openat'.
46348         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46349         defined.
46350         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46351         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46352         gl_FUNC_FSTATAT.
46353         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46354         * modules/fstatat: New file, extracted from modules/openat.
46355         * modules/openat (Files): Remove lib/fstatat.c.
46356         (Depends-on): Remove lstat.
46357         (configure.ac): Remove AC_LIBOBJ of fstatat.
46358         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46359         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46360         tests/test-lstat.h, tests/test-stat.h.
46361         (Depends-on): Remove getcwd-lgpl.
46362         (Makefile.am): Remove rules for test-fstatat.
46363         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46364         of module 'openat'.
46365         * NEWS: Mention the change.
46366         * modules/getcwd (Depends-on): Add fstatat.
46367         * modules/linkat (Depends-on): Likewise.
46368         * modules/mkfifoat-tests (Depends-on): Likewise.
46369         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46371 2011-11-03  Bruno Haible  <bruno@clisp.org>
46373         New module 'unlinkat', split off from module 'openat'.
46374         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46375         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46376         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46377         * modules/unlinkat: New file, extracted from modules/openat. Correct
46378         the dependency conditions.
46379         * modules/openat (Files): Remove lib/unlinkat.c.
46380         (Depends-on): Remove rmdir, unlink.
46381         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46382         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46383         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46384         tests/test-rmdir.h, tests/test-unlink.h.
46385         (Depends-on): Remove unlinkdir.
46386         (Makefile.am): Remove rules for test-unlinkat.
46387         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46388         of module 'openat'.
46389         * NEWS: Mention the change.
46390         * modules/linkat-tests (Depends-on): Add unlinkat.
46391         * modules/mkfifoat-tests (Depends-on): Likewise.
46392         * modules/readlinkat-tests (Depends-on): Likewise.
46394 2011-11-02  Bruno Haible  <bruno@clisp.org>
46396         New module 'fchmodat', split off from module 'openat'.
46397         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46398         defined.
46399         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46400         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46401         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46402         * modules/fchmodat: New file, extracted from modules/openat.
46403         * modules/openat (Files): Remove lib/fchmodat.c.
46404         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46405         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46406         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46407         (Makefile.am): Remove rules for test-fchmodat.
46408         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46409         of module 'openat'.
46410         * NEWS: Mention the change.
46412 2011-11-02  Jim Meyering  <meyering@redhat.com>
46414         putenv: indent #definition of "environ" to placate cppi
46415         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46417         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46418         Git logs are often treated as immutable, because editing them
46419         changes the SHA1 checksums of all descendants.  Thus, errors in
46420         git logs tend to stay there forever.  However, when we generate
46421         a ChangeLog file -- typically for distribution -- from that git log,
46422         we can actually make corrections in the generated file.  The key
46423         lies in recording in machine-readable/applicable form the desired
46424         corrections.  See --help for description and an example.
46425         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46426         (usage): Describe it; alphabetize option descriptions.
46427         (main): Honor the new option, carefully.
46429 2011-11-01  Jim Meyering  <meyering@redhat.com>
46431         gitlog-to-changelog: avoid an infloop
46432         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46433         that ends up being empty.
46435 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46437         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46438         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46439         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46440         contains (possibly-quoted) backslashes.  This should avoid
46441         all-too-common shell bugs if COMPLICATED contains backslashes in
46442         the "wrong" places.  Reported by David Evans in
46443         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46444         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46445         because we want ASCII ranges.  Is there some reason we don't use
46446         the C locale everywhere in this script?
46447         (func_module, top level): Avoid unwanted pathname expansion when
46448         $repo_url_prefix or $repo_url_suffix_repl contain shell
46449         metacharacters like '?' and '*'.
46451 2011-11-01  Bruno Haible  <bruno@clisp.org>
46453         fchownat: Improve description.
46454         * modules/fchownat (Description): Add link to function.
46456 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46458         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46459         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46460         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46461         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46463 2011-11-01  Bruno Haible  <bruno@clisp.org>
46465         alignof: Avoid collision with stdalign module.
46466         * lib/alignof.h (alignof): Remove macro.
46467         * NEWS: Mention the change.
46468         Reported by Paul Eggert.
46470 2011-11-01  Bruno Haible  <bruno@clisp.org>
46472         New module 'fchownat', split off from module 'openat'.
46473         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46474         defined.
46475         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46476         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46477         invoke gl_FUNC_FCHOWNAT.
46478         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46479         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46480         * modules/fchownat: New file, extracted from modules/openat.
46481         * modules/openat (Files): Remove lib/fchownat.c.
46482         (Depends-on): Remove lchown.
46483         (configure.ac): Remove AC_LIBOBJ of fchownat.
46484         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46485         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46486         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46487         (Depends-on): Remove mgetgroups, usleep, stat-time.
46488         (configure.ac): Remove test for getegid.
46489         (Makefile.am): Remove rules for test-fchownat.
46490         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46491         of module 'openat'.
46492         * NEWS: Mention the change.
46494 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46496         stdalign: port better to MSVC and to Sun C 5.11
46497         This fixes some of the problems reported by Bruno Haible in
46498         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46499         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46500         shortcomings of MSVC and of Sun C 5.11.
46501         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46502         around __declspec arg.
46503         * modules/stdalign-tests (Files): Add tests/macros.h.
46504         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46505         Include macros.h, for ASSERT.
46506         (DECLARE_ALIGNED): Remove.
46507         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46508         to catch bug), and to 1 if not (simplifies the rest of the code).
46509         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46510         (CHECK_AUTO): Remove.
46511         (CHECK_ALIGNED): Check only the alignment of the static vars,
46512         since auto var alignment isn't supported by Sun C 5.11.
46513         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46514         ASSERT failures are easier to diagnose.
46516 2011-10-31  Bruno Haible  <bruno@clisp.org>
46518         doc about some IRIX 5.3 problems.
46519         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46520         on IRIX 5.3.
46521         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46522         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46523         5.3.
46524         * doc/posix-functions/grantpt.texi: Likewise.
46525         * doc/posix-functions/unlockpt.texi: Likewise.
46526         * doc/posix-functions/lgamma.texi: Likewise.
46527         * doc/posix-functions/nextafter.texi: Likewise.
46528         * doc/posix-functions/remainder.texi: Likewise.
46529         * doc/posix-functions/select.texi: Mention misplaced declaration on
46530         IRIX 5.3.
46531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46533 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46535         gitlog-to-changelog: fix git-log invocation.
46536         git-log mishandles date strings before 1970-01-01 UTC, and there is
46537         no use to specify --since=1970-01-01 by default anyway.
46538         * build-aux/gitlog-to-changelog: By default, when no --since option
46539         was given, do not specify explicit --since option to git-log.
46541 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46543         gitlog-to-changelog: new option --append-dot.
46544         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46545         first non-blank line of each commit message terminated with a dot.
46547 2011-10-30  Bruno Haible  <bruno@clisp.org>
46549         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46550         * lib/ffsl.h: Include <config.h>.
46551         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46553 2011-10-30  Jim Meyering  <meyering@redhat.com>
46555         GNUmakefile: reenable "make syntax-check" for most projects
46556         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46557         build-aux variable", "syntax-check" would do nothing but succeed with
46558         the "No version control files detected..." diagnostic (unless you
46559         happened to override _build-aux via cfg.mk).
46560         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46561         to precede inclusion of maint.mk.  Otherwise, these variables would
46562         be used undefined in any project that does not override the default.
46564 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46566         gitlog-to-changelog: treat a message with only blank lines as empty.
46567         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46568         trailing blank lines before the code that issues a warning about an
46569         empty commit message.
46571 2011-10-30  Jim Meyering  <meyering@redhat.com>
46573         test-parse-datetime.c: avoid new DST-related false positive test failure
46574         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46575         based on the time/date we'll convert, not the current time.
46576         Otherwise, the moment we cross a DST boundary like today's in
46577         Europe, (CEST to CET), that offset ends up being one hour off.
46579 2011-10-27  Bruno Haible  <bruno@clisp.org>
46581         fstat: Tweak documentation.
46582         * modules/fstat (Description): More precise description.
46584 2011-10-27  Bruno Haible  <bruno@clisp.org>
46586         Update documentation regarding 'largefile' module.
46587         * doc/posix-functions/fstat.texi: Tweak wording.
46588         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46589         problems with huge directories and/or small ino_t types.
46590         * doc/posix-functions/readdir.texi: Likewise.
46591         * doc/posix-functions/rewinddir.texi: Likewise.
46593 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46595         maint.mk: don't maintain a second build-aux variable.
46596         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46597         depends on GNUmakefile, which already maintains a cfg.mk
46598         overridable $(_build-aux) for projects with a non-standard
46599         build-aux directory location, although without the $(srcdir)
46600         prefix.  Use that variable consistently instead of introducing a
46601         second one.  Adjust all call sites.
46603 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46605         Add stdalign module and use it in other modules.
46606         This is based on a previous proposal by Bruno Haible
46607         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46609         stdalign: new module
46610         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46611         * modules/stdalign: New files.
46612         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46613         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46615         stdalign-tests: new module
46616         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46618         argp: use stdalign
46619         * lib/argp-parse.c: Include <stdalign.h>.
46620         (alignof): Remove.
46621         * modules/argp (Depends-on): Add stdalign.
46623         crypto libraries: use stdalign
46624         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46625         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46626         Do not include <stdlib.h> twice, in md4.c.
46627         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46628         because we are accessing a pointer's bit-pattern, not a size.
46629         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46630         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46631         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46632         * modules/crypto/sha512: Likewise.
46634         sys_socket: use stdalign, not alignof
46635         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46636         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46638 2011-10-27  Bruno Haible  <bruno@clisp.org>
46640         raise test: Avoid a test failure on Linux/MIPS.
46641         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46642         because 99 is a valid signal on Linux/MIPS.
46644 2011-10-27  Bruno Haible  <bruno@clisp.org>
46646         nonblocking tests: Fix test failure on Linux/MIPS.
46647         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46648         Set to 270000.
46650 2011-10-27  Bruno Haible  <bruno@clisp.org>
46652         utimensat: Work around problem on Linux/hppa.
46653         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46654         values.
46655         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46657 2011-10-25  Jim Meyering  <meyering@redhat.com>
46659         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46660         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46661         after symbols like NULL, size_t, etc.
46662         Reported by Alfred M. Szmidt.
46664         maint.mk: exempt ENODATA from a syntax-check rule
46665         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46666         from the sc_prohibit_always-defined_macros syntax-check rule.
46667         Add a comment.  See this for more details:
46668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46670 2011-10-23  Jim Meyering  <meyering@redhat.com>
46672         fts: close parent dir FD before returning from post-traversal fts_read
46673         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46674         unlink A, even though an FD open on A remained.  This is suboptimal
46675         (holding a file descriptor open longer than needed), but otherwise not
46676         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46677         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46678         that represents a real problem: it causes the removal of A to fail
46679         with e.g., "rm: cannot remove `A': Device or resource busy"
46681         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46682         directory file descriptors.  After completing the final, FTS_DP,
46683         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46684         cache, but then proceeded to add a new FD to it via the subsequent
46685         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46686         final file descriptor would be closed only via fts_close's call to
46687         fd_ring_clear.  Now, it is usually closed earlier, via the final
46688         FTS_DP-returning fts_read call.
46689         * lib/fts.c (restore_initial_cwd): New function, converted from
46690         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46691         Update callers.
46692         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46693         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46695 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46696             Bruno Haible  <bruno@clisp.org>
46697             Jim Meyering  <jim@meyering.net>
46699         readme-release: improve safety of release prep instructions.
46700         * README-release: Don't git pull all branches when only master
46701         is needed for the release process.
46702         Run make maintainer-clean before changing trees and merging.
46703         Don't try to run ./configure right after git pull in case files
46704         that influence the bootstrap process have changed, move the
46705         ./configure step to after running ./bootstrap.
46706         Don't bootstrap "one last time"... it's the first time!
46708 2011-10-22  Bruno Haible  <bruno@clisp.org>
46710         errno, strerror-override: Support for MSVC 10.
46711         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46712         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46713         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46714         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46715         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46716         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46717         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46718         Assign values compatible with MSVC 10.
46719         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46720         New macros.
46721         (GNULIB_defined_EWINSOCK): New macro.
46722         * lib/strerror-override.c (strerror_override): Update accordingly.
46723         * lib/strerror-override.h: Likewise.
46724         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46725         longer equal to the corresponding errno value.
46726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46728 2011-10-22  Bruno Haible  <bruno@clisp.org>
46730         perror: Recognize when test program crashes.
46731         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46732         strerror, set gl_cv_func_perror_works to no.
46733         Reported by Daniel Richard G. <skunk@iskunk.org>.
46735         perror: Fix indentation.
46736         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46738 2011-10-22  Bruno Haible  <bruno@clisp.org>
46740         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46741         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46742         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46743         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46744         functions, not as a macro.
46745         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46746         macros.
46747         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46748         absence of macro.
46749         Suggested by Eric Blake.
46750         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46752 2011-10-21  Bruno Haible  <bruno@clisp.org>
46754         relocatable-prog-wrapper: Don't leave object files behind.
46755         * build-aux/install-reloc: Re-synchronize list of .o files to be
46756         removed with list of compilation units.
46758 2011-10-20  Bruno Haible  <bruno@clisp.org>
46760         openpty, posix_openpt: Remove code duplication.
46761         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46762         * lib/openpty.c: Include <stdlib.h>.
46763         (openpty): Use posix_openpt on all platforms except IRIX.
46764         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46766 2011-10-20  Bruno Haible  <bruno@clisp.org>
46768         unlockpt: Detect invalid argument.
46769         * lib/unlockpt.c: Include <fcntl.h>.
46770         (unlockpt): Check whether fd is valid, using fcntl().
46771         * modules/unlockpt (Depends-on): Add fcntl-h.
46773 2011-10-20  Bruno Haible  <bruno@clisp.org>
46775         openpty: Avoid compilation error on AIX 6.1.
46776         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46778 2011-10-20  Bruno Haible  <bruno@clisp.org>
46780         posix_openpt: Support for OpenBSD.
46781         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46782         (posix_openpt) [OpenBSD]: New code.
46783         * lib/grantpt.c: Include <fcntl.h>.
46784         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46785         * modules/grantpt (Depends-on): Add fcntl-h.
46787 2011-10-20  Bruno Haible  <bruno@clisp.org>
46789         posix_openpt test: Coding style.
46790         * tests/test-posix_openpt.c: Use GNU coding style.
46792 2011-10-20  Bruno Haible  <bruno@clisp.org>
46794         grantpt: Support --avoid=pt_chown.
46795         * modules/grantpt (Files): Add lib/pty-private.h.
46797 2011-10-20  Bruno Haible  <bruno@clisp.org>
46799         posix_openpt: Fix autoconf macro.
46800         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46801         unneeded check for _getpty.
46803 2011-10-20  Bruno Haible  <bruno@clisp.org>
46805         openpty: Update comments.
46806         * lib/openpty.c: Add comments about Minix.
46808 2011-10-19  Eric Blake  <eblake@redhat.com>
46810         openpty: relax license
46811         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46813         pt_chown: use configmake to simplify build
46814         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46816         ptsname and others: relax license
46817         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46818         * modules/unlockpt (License): Likewise.
46819         * modules/pt_chown (License): Likewise.
46820         * modules/ptsname (License): Likewise.
46821         * modules/ttyname_r (License): Likewise.
46823 2011-10-19  Jim Meyering  <meyering@redhat.com>
46825         posix_openpt: remove spurious #endif
46826         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46828 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46830         maint.mk: Respect $(build_aux) in web-manual rule.
46831         * top/maint.mk (web-manual): Find gen-announce script in user's
46832         $(build_aux) directory instead of hard-coding 'build-aux'.
46834 2011-10-19  Bruno Haible  <bruno@clisp.org>
46836         posix_openpt: Fix compilation error.
46837         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46838         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46839         Mention the openpty module as an alternative.
46841 2011-10-19  Bruno Haible  <bruno@clisp.org>
46843         Support for old NeXTstep 3.3 frexp().
46844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46845         execution time of the test to 5 seconds.
46846         Reported by Daniel Richard G. <skunk@iskunk.org>.
46848 2011-10-19  Bruno Haible  <bruno@clisp.org>
46850         Support for old NeXTstep 3.3 sed.
46851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46852         part, use /.../, not \|...|. Escape periods in the header file name.
46853         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46854         Reported by Daniel Richard G. <skunk@iskunk.org>.
46856 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46858         Support for old NeXTstep 3.3 gcc.
46859         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46860         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46861         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46862         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46863         * lib/regex.h (_Restrict_arr_): Likewise.
46864         * lib/regex_internal.h (re_token_t): Likewise.
46865         * lib/regexec.c (check_node_accept_bytes): Likewise.
46866         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46868 2011-10-18  Eric Blake  <eblake@redhat.com>
46870         posix_openpt: new module
46871         * modules/posix_openpt: New module.
46872         * m4/posix_openpt.m4: New file.
46873         * lib/posix_openpt.c: Likewise.
46874         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46875         (gl_STDLIB_H_DEFAULTS): Set defaults.
46876         * modules/stdlib (Makefile.am): Substitute macros.
46877         * lib/stdlib.in.h (posix_openpt): Declare.
46878         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46879         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46880         * modules/posix_openpt-tests: New test module.
46881         * tests/test-posix_openpt.c: New test.
46883 2011-10-15  Bruno Haible  <bruno@clisp.org>
46885         xstrtoll: Fix compilation failure.
46886         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46887         from lib/strtol.c.
46888         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46889         some platforms.
46890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46892 2011-10-15  Bruno Haible  <bruno@clisp.org>
46894         vasnprintf: Optimize bit search operation.
46895         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46897         gl_DOUBLE_EXPONENT_LOCATION.
46898         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46899         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46900         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46901         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46902         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46903         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46904         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46905         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46906         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46908 2011-10-15  Bruno Haible  <bruno@clisp.org>
46910         vasnprintf: Fix comments.
46911         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46913 2011-10-14  Bruno Haible  <bruno@clisp.org>
46915         Tests for module 'integer_length_ll'.
46916         * modules/integer_length_ll-tests: New file.
46917         * tests/test-integer_length_ll.c: New file.
46919         New module 'integer_length_ll'.
46920         * lib/integer_length_ll.c: New file.
46921         * modules/integer_length_ll: New file.
46923 2011-10-14  Bruno Haible  <bruno@clisp.org>
46925         Tests for module 'integer_length_l'.
46926         * modules/integer_length_l-tests: New file.
46927         * tests/test-integer_length_l.c: New file.
46929         New module 'integer_length_l'.
46930         * lib/integer_length_l.c: New file.
46931         * modules/integer_length_l: New file.
46933 2011-10-14  Bruno Haible  <bruno@clisp.org>
46935         Tests for module 'integer_length'.
46936         * modules/integer_length-tests: New file.
46937         * tests/test-integer_length.c: New file.
46939         New module 'integer_length'.
46940         * lib/integer_length.h: New file.
46941         * lib/integer_length.c: New file.
46942         * modules/integer_length: New file.
46944 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46946         popen: Fix dependency conditions.
46947         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46949 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46951         perror: Fix autoconf test.
46952         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46953         <stdlib.h> and <string.h>.
46955 2011-10-14  Bruno Haible  <bruno@clisp.org>
46957         ffsl: Optimize on 64-bit platforms.
46958         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46959         unrolling.
46961 2011-10-13  Bruno Haible  <bruno@clisp.org>
46963         ffsl: Optimize on 32-bit platforms.
46964         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46965         use ffs() without a loop.
46967         ffsl, ffsll: Optimize for GCC.
46968         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46969         * lib/ffsl.c (GCC_BUILTIN): New macro.
46970         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46972 2011-10-13  Bruno Haible  <bruno@clisp.org>
46974         ffs, bcopy, memset: Support symbol renaming via config.h.
46975         * lib/ffs.c: Include <config.h>.
46976         * lib/bcopy.c: Likewise.
46977         * lib/memset.c: Likewise.
46979 2011-10-10  Bruno Haible  <bruno@clisp.org>
46981         atanl: Simplify for platforms where 'long double' == 'double'.
46982         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46983         alternative implementation.
46984         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46985         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46986         * modules/atanl (Depends-on): Add atan. Update conditions.
46988 2011-10-10  Bruno Haible  <bruno@clisp.org>
46990         acosl: Simplify for platforms where 'long double' == 'double'.
46991         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46992         alternative implementation.
46993         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46994         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46995         * modules/acosl (Depends-on): Add acos. Update conditions.
46997 2011-10-10  Bruno Haible  <bruno@clisp.org>
46999         asinl: Simplify for platforms where 'long double' == 'double'.
47000         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47001         alternative implementation.
47002         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47003         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47004         * modules/asinl (Depends-on): Add asin. Update conditions.
47006 2011-10-10  Bruno Haible  <bruno@clisp.org>
47008         tanl: Simplify for platforms where 'long double' == 'double'.
47009         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47010         implementation.
47011         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47012         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47013         * modules/tanl (Depends-on): Add tan. Update conditions.
47014         (configure.ac): Don't compile trigl.c if
47015         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47017 2011-10-10  Bruno Haible  <bruno@clisp.org>
47019         cosl: Simplify for platforms where 'long double' == 'double'.
47020         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47021         implementation.
47022         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47023         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47024         * modules/cosl (Depends-on): Add cos. Update conditions.
47025         (configure.ac): Don't compile sincosl.c and trigl.c if
47026         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47028 2011-10-10  Bruno Haible  <bruno@clisp.org>
47030         sinl: Simplify for platforms where 'long double' == 'double'.
47031         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47032         implementation.
47033         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47034         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47035         * modules/sinl (Depends-on): Add sin. Update conditions.
47036         (configure.ac): Don't compile sincosl.c and trigl.c if
47037         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47039 2011-10-10  Bruno Haible  <bruno@clisp.org>
47041         logl: Simplify for platforms where 'long double' == 'double'.
47042         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47043         implementation.
47044         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47045         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47046         * modules/logl (Depends-on): Add log. Update conditions.
47048 2011-10-10  Bruno Haible  <bruno@clisp.org>
47050         expl: Simplify for platforms where 'long double' == 'double'.
47051         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47052         implementation.
47053         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47054         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47055         * modules/expl (Depends-on): Add exp. Update conditions.
47057 2011-10-10  Bruno Haible  <bruno@clisp.org>
47059         sqrtl: Simplify for platforms where 'long double' == 'double'.
47060         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47061         alternative implementation.
47062         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47063         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47064         * modules/sqrtl (Depends-on): Update conditions.
47066 2011-10-10  Bruno Haible  <bruno@clisp.org>
47068         ldexpl: Simplify for platforms where 'long double' == 'double'.
47069         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47070         alternative implementation.
47071         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47072         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47073         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
47075 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
47077         ffsll: set correct witness
47078         * modules/ffsll (configure.ac): Fix typo.
47080 2011-10-10  Bruno Haible  <bruno@clisp.org>
47082         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
47083         * lib/printf-frexpl.c: Include <config.h>.
47084         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47085         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
47086         second time.
47087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
47088         gl_LONG_DOUBLE_VS_DOUBLE.
47089         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
47090         conditions.
47092 2011-10-10  Bruno Haible  <bruno@clisp.org>
47094         frexpl: Simplify for platforms where 'long double' == 'double'.
47095         * lib/frexpl.c: Include <config.h>.
47096         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47097         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47098         time.
47099         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47100         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47101         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
47102         * modules/frexpl (Depends-on): Add frexp. Update conditions.
47103         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
47104         conditions.
47106 2011-10-10  Jim Meyering  <meyering@redhat.com>
47108         test-renameat: don't leave behind a temporary file
47109         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
47110           ERROR: files left in build directory after distclean:
47111           ./gltests/test-renameat.too
47112           make[1]: *** [distcleancheck] Error 1
47113         Reported by Tom G. Christensen.
47115 2011-10-09  Bruno Haible  <bruno@clisp.org>
47117         rint: Determine RINT_LIBM correctly on AIX 7.
47118         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
47119         directly, not only through a function pointer. Also accept an optional
47120         4th argument with extra code.
47121         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
47122         rintf() call by gcc when optimizing.
47124         mathfunc.m4: Refactor.
47125         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
47126         m4 variable.
47128 2011-10-09  Bruno Haible  <bruno@clisp.org>
47130         rintl: Simplify for platforms where 'long double' == 'double'.
47131         * lib/rintl.c: Include <config.h>.
47132         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47133         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47134         time.
47135         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47136         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47137         * modules/rintl (Depends-on): Add rint. Update conditions.
47139 2011-10-09  Bruno Haible  <bruno@clisp.org>
47141         roundl: Simplify for platforms where 'long double' == 'double'.
47142         * lib/roundl.c: Include <config.h>.
47143         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47144         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47145         time.
47146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47147         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47148         * modules/roundl (Depends-on): Add round. Update conditions.
47150 2011-10-09  Bruno Haible  <bruno@clisp.org>
47152         truncl: Simplify for platforms where 'long double' == 'double'.
47153         * lib/truncl.c: Include <config.h>.
47154         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47155         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47156         time.
47157         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47158         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47159         * modules/truncl (Depends-on): Add trunc. Update conditions.
47161 2011-10-09  Bruno Haible  <bruno@clisp.org>
47163         ceill: Simplify for platforms where 'long double' == 'double'.
47164         * lib/ceill.c: Include <config.h>.
47165         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47166         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47167         time.
47168         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47169         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47170         * modules/ceill (Depends-on): Add ceil. Update conditions.
47172 2011-10-09  Bruno Haible  <bruno@clisp.org>
47174         floorl: Simplify for platforms where 'long double' == 'double'.
47175         * lib/floorl.c: Include <config.h>.
47176         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47177         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47178         time.
47179         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47180         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47181         * modules/floorl (Depends-on): Add floor. Update conditions.
47183 2011-10-09  Bruno Haible  <bruno@clisp.org>
47185         rint: Fix ordering constraints.
47186         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
47187         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
47188         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
47190 2011-10-09  Bruno Haible  <bruno@clisp.org>
47192         copysignl: Simplify for platforms where 'long double' == 'double'.
47193         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47194         alternative.
47195         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47196         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47197         * modules/copysignl (Depends-on): Add copysign. Update conditions.
47199 2011-10-09  Bruno Haible  <bruno@clisp.org>
47201         Tests for module 'rintl'.
47202         * modules/rintl-tests: New file.
47203         * tests/test-rintl.c: New file.
47205         New module 'rintl'.
47206         * lib/math.in.h (rintl): New declaration.
47207         * lib/rintl.c: New file.
47208         * m4/rintl.m4: New file.
47209         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
47210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
47211         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
47212         * modules/rintl: New file.
47213         * tests/test-math-c++.cc: Check the declaration of rintl.
47214         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47215         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
47216         * doc/posix-functions/rintl.texi: Mention the new module.
47218 2011-10-09  Bruno Haible  <bruno@clisp.org>
47220         Tests for module 'rintf'.
47221         * modules/rintf-tests: New file.
47222         * tests/test-rintf.c: New file.
47224         New module 'rintf'.
47225         * lib/math.in.h (rintf): New declaration.
47226         * lib/rintf.c: New file.
47227         * m4/rintf.m4: New file.
47228         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
47229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
47230         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
47231         * modules/rintf: New file.
47232         * tests/test-math-c++.cc: Check the declaration of rintf.
47233         * doc/posix-functions/rintf.texi: Mention the new module.
47235 2011-10-09  Bruno Haible  <bruno@clisp.org>
47237         rint: Support for MSVC.
47238         * lib/math.in.h (rint): New declaration.
47239         * lib/rint.c: New file.
47240         * m4/rint.m4: New file.
47241         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
47242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
47243         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
47244         * modules/rint (Description): Fix.
47245         (Files): Add lib/rint.c, m4/rint.m4.
47246         (Depends-on): Add math.
47247         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
47248         gl_MATH_MODULE_INDICATOR.
47249         * tests/test-math-c++.cc: Check the declaration of rint.
47250         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47251         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
47252         * doc/posix-functions/rint.texi: Mention the replacement provided by
47253         the module.
47255         rint tests: More tests.
47256         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
47257         minus-zero.h, infinity.h, nan.h.
47258         (main): Skip the test if the current rounding mode is not standard. Add
47259         tests for negative numbers, minus zero, infinity, NaN.
47260         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
47261         tests/nan.h.
47262         (Depends-on): Add isnand-nolibm.
47264 2011-10-09  Bruno Haible  <bruno@clisp.org>
47266         Tests for module 'copysignl'.
47267         * modules/copysignl-tests: New file.
47268         * tests/test-copysignl.c: New file.
47270         New module 'copysignl'.
47271         * lib/math.in.h (copysignl): New declaration.
47272         * lib/copysignl.c: New file.
47273         * m4/copysignl.m4: New file.
47274         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
47275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
47276         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
47277         HAVE_COPYSIGNL.
47278         * modules/copysignl: New file.
47279         * tests/test-math-c++.cc: Check the declaration of copysignl.
47280         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47281         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
47282         * doc/posix-functions/copysignl.texi: Mention the new module.
47284 2011-10-09  Bruno Haible  <bruno@clisp.org>
47286         Tests for module 'copysignf'.
47287         * modules/copysignf-tests: New file.
47288         * tests/test-copysignf.c: New file.
47290         New module 'copysignf'.
47291         * lib/math.in.h (copysignf): New declaration.
47292         * lib/copysignf.c: New file.
47293         * m4/copysignf.m4: New file.
47294         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
47295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
47296         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
47297         HAVE_COPYSIGNF.
47298         * modules/copysignf: New file.
47299         * tests/test-math-c++.cc: Check the declaration of copysignf.
47300         * doc/posix-functions/copysignf.texi: Mention the new module.
47302 2011-10-09  Bruno Haible  <bruno@clisp.org>
47304         Ensure that HAVE_* variables are set to 1 before they are set to 0.
47305         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
47306         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
47307         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47308         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
47309         gl_SIGNAL_H_DEFAULTS.
47311 2011-10-09  Bruno Haible  <bruno@clisp.org>
47313         poll: Make macro safer.
47314         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
47315         ac_cv_header_poll_h is not set.
47317 2011-10-09  Bruno Haible  <bruno@clisp.org>
47319         copysign: Provide replacement.
47320         * lib/math.in.h (copysign): New declaration.
47321         * lib/copysign.c: New file.
47322         * m4/copysign.m4: New file.
47323         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
47324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
47325         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
47326         HAVE_COPYSIGN.
47327         * modules/copysign (Description): Clarify.
47328         (Files): Add lib/copysign.c, m4/copysign.m4.
47329         (Depends-on): Add math, signbit.
47330         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47331         gl_MATH_MODULE_INDICATOR.
47332         * tests/test-math-c++.cc: Check the declaration of copysign.
47333         * doc/posix-functions/copysign.texi: Mention the effects of the module
47334         on Minix and MSVC.
47336 2011-10-09  Bruno Haible  <bruno@clisp.org>
47338         isinf: Ensure macro on AIX 5.1.
47339         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47340         macro.
47341         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47343 2011-10-09  Bruno Haible  <bruno@clisp.org>
47345         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47346         * modules/snprintf-posix-tests (configure.ac): Require
47347         gl_LONG_DOUBLE_VS_DOUBLE.
47348         * modules/sprintf-posix-tests (configure.ac): Likewise.
47349         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47350         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47351         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47352         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47353         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47354         tests on platforms where 'long double' is the same as 'double'.
47355         * tests/test-sprintf-posix.h (test_function): Likewise.
47356         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47357         * tests/test-vasprintf-posix.c (test_function): Likewise.
47359         *printf: Fix for platforms where 'long double' == 'double'.
47360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47361         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47362         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47363         * modules/fprintf-posix (Files): Likewise.
47364         * modules/obstack-printf-posix (Files): Likewise.
47365         * modules/snprintf-posix (Files): Likewise.
47366         * modules/sprintf-posix (Files): Likewise.
47367         * modules/vasnprintf (Files): Likewise.
47368         * modules/vasnprintf-posix (Files): Likewise.
47369         * modules/vasprintf-posix (Files): Likewise.
47370         * modules/vdprintf-posix (Files): Likewise.
47371         * modules/vfprintf-posix (Files): Likewise.
47372         * modules/vsnprintf-posix (Files): Likewise.
47373         * modules/vsprintf-posix (Files): Likewise.
47374         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47375         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47376         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47377         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47378         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47379         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47380         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47382         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47383         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47384         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47385         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47386         'long double'.
47387         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47389         isinf: Fix for platforms where 'long double' == 'double'.
47390         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47391         Don't blindly assume 80-bit 'long double'.
47393         isfinite: Fix for platforms where 'long double' == 'double'.
47394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47395         Don't blindly assume 80-bit 'long double'.
47397         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47398         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47399         * modules/isfinite-tests (configure.ac): Require
47400         gl_LONG_DOUBLE_VS_DOUBLE.
47401         * modules/isinf-tests (configure.ac): Likewise.
47402         * modules/isnan-tests (configure.ac): Likewise.
47403         * modules/isnanl-tests (configure.ac): Likewise.
47404         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47405         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47406         tests on platforms where 'long double' is the same as 'double'.
47407         * tests/test-isinf.c (test_isinfl): Likewise.
47408         * tests/test-isnan.c (test_long_double): Likewise.
47409         * tests/test-isnanl.h (main): Likewise.
47411 2011-10-08  Bruno Haible  <bruno@clisp.org>
47413         Tests for module 'tanhf'.
47414         * modules/tanhf-tests: New file.
47415         * tests/test-tanhf.c: New file.
47417         New module 'tanhf'.
47418         * lib/math.in.h (tanhf): New declaration.
47419         * lib/tanhf.c: New file.
47420         * m4/tanhf.m4: New file.
47421         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47423         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47424         * modules/tanhf: New file.
47425         * tests/test-math-c++.cc: Check the declaration of tanhf.
47426         * doc/posix-functions/tanhf.texi: Mention the new module.
47428         tanh: Use a .m4 file.
47429         * m4/tanh.m4: New file.
47430         * modules/tanh (Files): Add it.
47431         (configure.ac): Just invoke gl_FUNC_TANH.
47433 2011-10-08  Bruno Haible  <bruno@clisp.org>
47435         Tests for module 'coshf'.
47436         * modules/coshf-tests: New file.
47437         * tests/test-coshf.c: New file.
47439         New module 'coshf'.
47440         * lib/math.in.h (coshf): New declaration.
47441         * lib/coshf.c: New file.
47442         * m4/coshf.m4: New file.
47443         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47445         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47446         * modules/coshf: New file.
47447         * tests/test-math-c++.cc: Check the declaration of coshf.
47448         * doc/posix-functions/coshf.texi: Mention the new module.
47450         cosh: Use a .m4 file.
47451         * m4/cosh.m4: New file.
47452         * modules/cosh (Files): Add it.
47453         (configure.ac): Just invoke gl_FUNC_COSH.
47455 2011-10-08  Bruno Haible  <bruno@clisp.org>
47457         Tests for module 'sinhf'.
47458         * modules/sinhf-tests: New file.
47459         * tests/test-sinhf.c: New file.
47461         New module 'sinhf'.
47462         * lib/math.in.h (sinhf): New declaration.
47463         * lib/sinhf.c: New file.
47464         * m4/sinhf.m4: New file.
47465         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47467         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47468         * modules/sinhf: New file.
47469         * tests/test-math-c++.cc: Check the declaration of sinhf.
47470         * doc/posix-functions/sinhf.texi: Mention the new module.
47472         sinh: Use a .m4 file.
47473         * m4/sinh.m4: New file.
47474         * modules/sinh (Files): Add it.
47475         (configure.ac): Just invoke gl_FUNC_SINH.
47477 2011-10-08  Bruno Haible  <bruno@clisp.org>
47479         Tests for module 'atan2f'.
47480         * modules/atan2f-tests: New file.
47481         * tests/test-atan2f.c: New file.
47483         New module 'atan2f'.
47484         * lib/math.in.h (atan2f): New declaration.
47485         * lib/atan2f.c: New file.
47486         * m4/atan2f.m4: New file.
47487         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47489         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47490         * modules/atan2f: New file.
47491         * tests/test-math-c++.cc: Check the declaration of atan2f.
47492         * doc/posix-functions/atan2f.texi: Mention the new module.
47494         atan2: Use a .m4 file.
47495         * m4/atan2.m4: New file.
47496         * modules/atan2 (Files): Add it.
47497         (configure.ac): Just invoke gl_FUNC_ATAN2.
47499 2011-10-08  Bruno Haible  <bruno@clisp.org>
47501         Tests for module 'atanf'.
47502         * modules/atanf-tests: New file.
47503         * tests/test-atanf.c: New file.
47505         New module 'atanf'.
47506         * lib/math.in.h (atanf): New declaration.
47507         * lib/atanf.c: New file.
47508         * m4/atanf.m4: New file.
47509         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47511         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47512         * modules/atanf: New file.
47513         * tests/test-math-c++.cc: Check the declaration of atanf.
47514         * doc/posix-functions/atanf.texi: Mention the new module.
47516         atan: Use a .m4 file.
47517         * m4/atan.m4: New file.
47518         * modules/atan (Files): Add it.
47519         (configure.ac): Just invoke gl_FUNC_ATAN.
47521 2011-10-08  Bruno Haible  <bruno@clisp.org>
47523         Tests for module 'acosf'.
47524         * modules/acosf-tests: New file.
47525         * tests/test-acosf.c: New file.
47527         New module 'acosf'.
47528         * lib/math.in.h (acosf): New declaration.
47529         * lib/acosf.c: New file.
47530         * m4/acosf.m4: New file.
47531         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47533         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47534         * modules/acosf: New file.
47535         * tests/test-math-c++.cc: Check the declaration of acosf.
47536         * doc/posix-functions/acosf.texi: Mention the new module.
47538         acos: Use a .m4 file.
47539         * m4/acos.m4: New file.
47540         * modules/acos (Files): Add it.
47541         (configure.ac): Just invoke gl_FUNC_ACOS.
47543 2011-10-08  Bruno Haible  <bruno@clisp.org>
47545         Tests for module 'asinf'.
47546         * modules/asinf-tests: New file.
47547         * tests/test-asinf.c: New file.
47549         New module 'asinf'.
47550         * lib/math.in.h (asinf): New declaration.
47551         * lib/asinf.c: New file.
47552         * m4/asinf.m4: New file.
47553         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47555         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47556         * modules/asinf: New file.
47557         * tests/test-math-c++.cc: Check the declaration of asinf.
47558         * doc/posix-functions/asinf.texi: Mention the new module.
47560         asin: Use a .m4 file.
47561         * m4/asin.m4: New file.
47562         * modules/asin (Files): Add it.
47563         (configure.ac): Just invoke gl_FUNC_ASIN.
47565 2011-10-08  Bruno Haible  <bruno@clisp.org>
47567         Tests for module 'tanf'.
47568         * modules/tanf-tests: New file.
47569         * tests/test-tanf.c: New file.
47571         New module 'tanf'.
47572         * lib/math.in.h (tanf): New declaration.
47573         * lib/tanf.c: New file.
47574         * m4/tanf.m4: New file.
47575         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47577         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47578         * modules/tanf: New file.
47579         * tests/test-math-c++.cc: Check the declaration of tanf.
47580         * doc/posix-functions/tanf.texi: Mention the new module.
47582         tan: Use a .m4 file.
47583         * m4/tan.m4: New file.
47584         * modules/tan (Files): Add it.
47585         (configure.ac): Just invoke gl_FUNC_TAN.
47587 2011-10-08  Bruno Haible  <bruno@clisp.org>
47589         Tests for module 'cosf'.
47590         * modules/cosf-tests: New file.
47591         * tests/test-cosf.c: New file.
47593         New module 'cosf'.
47594         * lib/math.in.h (cosf): New declaration.
47595         * lib/cosf.c: New file.
47596         * m4/cosf.m4: New file.
47597         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47599         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47600         * modules/cosf: New file.
47601         * tests/test-math-c++.cc: Check the declaration of cosf.
47602         * doc/posix-functions/cosf.texi: Mention the new module.
47604         cos: Use a .m4 file.
47605         * m4/cos.m4: New file.
47606         * modules/cos (Files): Add it.
47607         (configure.ac): Just invoke gl_FUNC_COS.
47609 2011-10-08  Bruno Haible  <bruno@clisp.org>
47611         Tests for module 'sinf'.
47612         * modules/sinf-tests: New file.
47613         * tests/test-sinf.c: New file.
47615         New module 'sinf'.
47616         * lib/math.in.h (sinf): New declaration.
47617         * lib/sinf.c: New file.
47618         * m4/sinf.m4: New file.
47619         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47621         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47622         * modules/sinf: New file.
47623         * tests/test-math-c++.cc: Check the declaration of sinf.
47624         * doc/posix-functions/sinf.texi: Mention the new module.
47626         sin: Use a .m4 file.
47627         * m4/sin.m4: New file.
47628         * modules/sin (Files): Add it.
47629         (configure.ac): Just invoke gl_FUNC_SIN.
47631 2011-10-08  Bruno Haible  <bruno@clisp.org>
47633         Tests for module 'powf'.
47634         * modules/powf-tests: New file.
47635         * tests/test-powf.c: New file.
47637         New module 'powf'.
47638         * lib/math.in.h (powf): New declaration.
47639         * lib/powf.c: New file.
47640         * m4/powf.m4: New file.
47641         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47643         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47644         * modules/powf: New file.
47645         * tests/test-math-c++.cc: Check the declaration of powf.
47646         * doc/posix-functions/powf.texi: Mention the new module.
47648         pow: Use a .m4 file.
47649         * m4/pow.m4: New file.
47650         * modules/pow (Files): Add it.
47651         (configure.ac): Just invoke gl_FUNC_POW.
47653 2011-10-08  Bruno Haible  <bruno@clisp.org>
47655         Tests for module 'log10f'.
47656         * modules/log10f-tests: New file.
47657         * tests/test-log10f.c: New file.
47659         New module 'log10f'.
47660         * lib/math.in.h (log10f): New declaration.
47661         * lib/log10f.c: New file.
47662         * m4/log10f.m4: New file.
47663         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47665         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47666         * modules/log10f: New file.
47667         * tests/test-math-c++.cc: Check the declaration of log10f.
47668         * doc/posix-functions/log10f.texi: Mention the new module.
47670         log10: Use a .m4 file.
47671         * m4/log10.m4: New file.
47672         * modules/log10 (Files): Add it.
47673         (configure.ac): Just invoke gl_FUNC_LOG10.
47675 2011-10-08  Bruno Haible  <bruno@clisp.org>
47677         Tests for module 'logf'.
47678         * modules/logf-tests: New file.
47679         * tests/test-logf.c: New file.
47681         New module 'logf'.
47682         * lib/math.in.h (logf): New declaration.
47683         * lib/logf.c: New file.
47684         * m4/logf.m4: New file.
47685         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47687         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47688         * modules/logf: New file.
47689         * tests/test-math-c++.cc: Check the declaration of logf.
47690         * doc/posix-functions/logf.texi: Mention the new module.
47692         log: Use a .m4 file.
47693         * m4/log.m4: New file.
47694         * modules/log (Files): Add it.
47695         (configure.ac): Just invoke gl_FUNC_LOG.
47697 2011-10-08  Bruno Haible  <bruno@clisp.org>
47699         Tests for module 'expf'.
47700         * modules/expf-tests: New file.
47701         * tests/test-expf.c: New file.
47703         New module 'expf'.
47704         * lib/math.in.h (expf): New declaration.
47705         * lib/expf.c: New file.
47706         * m4/expf.m4: New file.
47707         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47709         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47710         * modules/expf: New file.
47711         * tests/test-math-c++.cc: Check the declaration of expf.
47712         * doc/posix-functions/expf.texi: Mention the new module.
47714         exp: Use a .m4 file.
47715         * m4/exp.m4: New file.
47716         * modules/exp (Files): Add it.
47717         (configure.ac): Just invoke gl_FUNC_EXP.
47719 2011-10-08  Bruno Haible  <bruno@clisp.org>
47721         Tests for module 'sqrtf'.
47722         * modules/sqrtf-tests: New file.
47723         * tests/test-sqrtf.c: New file.
47725         New module 'sqrtf'.
47726         * lib/math.in.h (sqrtf): New declaration.
47727         * lib/sqrtf.c: New file.
47728         * m4/sqrtf.m4: New file.
47729         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47731         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47732         * modules/sqrtf: New file.
47733         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47734         * doc/posix-functions/sqrtf.texi: Mention the new module.
47736 2011-10-08  Bruno Haible  <bruno@clisp.org>
47738         Tests: Avoid link failures w.r.t. libintl.
47739         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47740         $(LIBINTL).
47741         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47742         $(LIBINTL).
47743         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47744         against $(LIBINTL).
47745         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47746         $(LIBINTL).
47747         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47748         $(LIBINTL).
47749         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47751 2011-10-08  Bruno Haible  <bruno@clisp.org>
47753         pow tests: Defeat compiler optimizations.
47754         * tests/test-pow.c (main): Assign arguments to x and y before use.
47756 2011-10-08  Bruno Haible  <bruno@clisp.org>
47758         gnulib-tool: Improve last commit.
47759         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47760         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47761         ignore dependencies that are not among the modules list.
47763 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47765         gnulib-tool: don't follow dependencies to avoided modules
47766         This fixes a bug that is related to the previous one.
47767         * gnulib-tool (func_modules_transitive_closure)
47768         (func_emit_autoconf_snippets):
47769         Check whether a dependency is acceptable before using it.
47770         (--extract-dependencies): Report an error if --avoid is also used,
47771         since this combination of options is not yet supported.
47773         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47774         Problem reported by Peter Dyballa in
47775         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47776         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47777         when echoing "$condition".
47779 2011-10-07  Bruno Haible  <bruno@clisp.org>
47781         Fix documentation about math functions on MacOS X.
47782         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47783         MacOS X 10.5.
47784         * doc/posix-functions/fdim.texi: Likewise.
47785         * doc/posix-functions/feclearexcept.texi: Likewise.
47786         * doc/posix-functions/fegetenv.texi: Likewise.
47787         * doc/posix-functions/fegetround.texi: Likewise.
47788         * doc/posix-functions/feholdexcept.texi: Likewise.
47789         * doc/posix-functions/feraiseexcept.texi: Likewise.
47790         * doc/posix-functions/fesetenv.texi: Likewise.
47791         * doc/posix-functions/fesetround.texi: Likewise.
47792         * doc/posix-functions/fetestexcept.texi: Likewise.
47793         * doc/posix-functions/feupdateenv.texi: Likewise.
47794         * doc/posix-functions/fmax.texi: Likewise.
47795         * doc/posix-functions/fmin.texi: Likewise.
47796         * doc/posix-functions/log2.texi: Likewise.
47797         * doc/posix-functions/modff.texi: Likewise.
47798         * doc/posix-functions/nan.texi: Likewise.
47799         * doc/posix-functions/nanf.texi: Likewise.
47800         * doc/posix-functions/nextafterf.texi: Likewise.
47801         * doc/posix-functions/remquo.texi: Likewise.
47803 2011-10-07  Bruno Haible  <bruno@clisp.org>
47805         modff: Drop assumption about library that defines modff.
47806         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47807         AC_CHECK_FUNCS.
47808         * modules/modff (Files): Add m4/mathfunc.m4.
47810 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47812         raise tests: Avoid a GCC warning.
47813         * tests/test-raise.c (handler): Use _Noreturn.
47815 2011-10-07  Bruno Haible  <bruno@clisp.org>
47817         Tests for module 'ldexpf'.
47818         * modules/ldexpf-tests: New file.
47819         * tests/test-ldexpf.c: New file.
47821         New module 'ldexpf'.
47822         * lib/math.in.h (ldexpf): New declaration.
47823         * lib/ldexpf.c: New file.
47824         * m4/ldexpf.m4: New file.
47825         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47827         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47828         * modules/ldexpf: New file.
47829         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47830         * doc/posix-functions/ldexpf.texi: Mention the new module.
47832 2011-10-06  Bruno Haible  <bruno@clisp.org>
47834         frexpf: Work around problems on IRIX and mingw.
47835         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47837         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47838         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47839         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47840         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47841         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47843 2011-10-06  Bruno Haible  <bruno@clisp.org>
47845         fabsf: Drop assumption about library that defines fabsf.
47846         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47847         AC_CHECK_FUNCS.
47848         * modules/fabsf (Files): Add m4/mathfunc.m4.
47850 2011-10-06  Bruno Haible  <bruno@clisp.org>
47852         frexpf: Drop assumption about library that defines frexpf.
47853         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47854         'int *', 'float *', 'long double *', 'float', 'long double'.
47855         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47856         AC_CHECK_FUNCS.
47857         * modules/frexpf (Files): Add m4/mathfunc.m4.
47859         Tests for module 'frexpf'.
47860         * modules/frexpf-tests: New file.
47861         * tests/test-frexpf.c: New file.
47863         New module 'frexpf'.
47864         * lib/math.in.h (frexpf): New declaration.
47865         * lib/frexpf.c: New file.
47866         * m4/frexpf.m4: New file.
47867         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47869         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47870         * modules/frexpf: New file.
47871         * tests/test-math-c++.cc: Check the declaration of frexpf.
47872         * doc/posix-functions/frexpf.texi: Mention the new module.
47874 2011-10-06  Bruno Haible  <bruno@clisp.org>
47876         math: Sort function declarations of math.in.h.
47877         * lib/math.in.h (frexp, logb): Move declarations.
47879 2011-10-05  Bruno Haible  <bruno@clisp.org>
47881         Tests for module 'modff'.
47882         * modules/modff-tests: New file.
47883         * tests/test-modff.c: New file.
47885         New module 'modff'.
47886         * lib/math.in.h (modff): New declaration.
47887         * lib/modff.c: New file.
47888         * m4/modff.m4: New file.
47889         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47891         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47892         * modules/modff: New file.
47893         * tests/test-math-c++.cc: Check the declaration of modff.
47894         * doc/posix-functions/modff.texi: Mention the new module.
47896         modf tests: Make test sharper.
47897         * tests/test-modf.c (main): Strengthen upper bound.
47899         modf: Use a .m4 file.
47900         * m4/modf.m4: New file.
47901         * modules/modf (Files): Add it.
47902         (configure.ac): Just invoke gl_FUNC_MODF.
47904 2011-10-05  Bruno Haible  <bruno@clisp.org>
47906         Tests for module 'fmodf'.
47907         * modules/fmodf-tests: New file.
47908         * tests/test-fmodf.c: New file.
47910         New module 'fmodf'.
47911         * lib/math.in.h (fmodf): New declaration.
47912         * lib/fmodf.c: New file.
47913         * m4/fmodf.m4: New file.
47914         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47916         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47917         * modules/fmodf: New file.
47918         * tests/test-math-c++.cc: Check the declaration of fmodf.
47919         * doc/posix-functions/fmodf.texi: Mention the new module.
47921         fmod: Use a .m4 file.
47922         * m4/fmod.m4: New file.
47923         * modules/fmod (Files): Add it.
47924         (configure.ac): Just invoke gl_FUNC_FMOD.
47926 2011-10-05  Bruno Haible  <bruno@clisp.org>
47928         Tests for module 'fabsf'.
47929         * modules/fabsf-tests: New file.
47930         * tests/test-fabsf.c: New file.
47932         New module 'fabsf'.
47933         * lib/math.in.h (fabsf): New declaration.
47934         * lib/fabsf.c: New file.
47935         * m4/fabsf.m4: New file.
47936         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47938         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47939         * modules/fabsf: New file.
47940         * tests/test-math-c++.cc: Check the declaration of fabsf.
47941         * doc/posix-functions/fabsf.texi: Mention the new module.
47943         fabs: Use a .m4 file.
47944         * m4/fabs.m4: New file.
47945         * modules/fabs (Files): Add it.
47946         (configure.ac): Just invoke gl_FUNC_FABS.
47948 2011-10-05  Jim Meyering  <meyering@redhat.com>
47950         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47951         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47952         ls -lL regression introduced in coreutils-8.12, it does so at the
47953         cost of an additional stat call in the common case.  Besides, now
47954         that the kernel change that prompted commit 95f7c57f has been reverted
47955         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47956         we have no use for commit 95f7c57f, "file-has-acl: use
47957         acl_extended_file_nofollow if available".
47959 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47961         file-has-acl: revert unintended change in behavior of ls -L
47962         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47963         derived from...
47964         (file_has_acl): ...code here.  Call it.
47965         This problem was introduced with 2011-07-22 commit 95f7c57f,
47966         "file-has-acl: use acl_extended_file_nofollow if available".
47967         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47969 2011-10-03  Bruno Haible  <bruno@clisp.org>
47971         poll: Avoid link errors on MSVC.
47972         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47973         * modules/poll (Depends-on): Add sockets.
47974         (Link): New section.
47975         * NEWS: Mention the change.
47976         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47977         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47978         $(LIB_POLL) instead of $(LIBSOCKET).
47980 2011-10-03  Bruno Haible  <bruno@clisp.org>
47982         sys_select tests: Fix link error on MSVC 9.
47983         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47984         with $(LIB_SELECT) instead of $(LIBSOCKET).
47986 2011-10-03  Bruno Haible  <bruno@clisp.org>
47988         sys_select: Fix compilation error on mingw.
47989         * lib/sys_select.in.h: On native Windows, include <io.h>.
47991 2011-10-03  Bruno Haible  <bruno@clisp.org>
47993         wmemset: Support for MSVC.
47994         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47995         whether wmemset() exists.
47997 2011-10-03  Bruno Haible  <bruno@clisp.org>
47999         wmemmove: Support for MSVC.
48000         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
48001         whether wmemmove() exists.
48003 2011-10-03  Bruno Haible  <bruno@clisp.org>
48005         wmemcpy: Support for MSVC.
48006         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
48007         whether wmemcpy() exists.
48009 2011-10-03  Bruno Haible  <bruno@clisp.org>
48011         wmemcmp: Support for MSVC.
48012         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
48013         whether wmemcmp() exists.
48015 2011-10-03  Bruno Haible  <bruno@clisp.org>
48017         wmemchr: Support for MSVC.
48018         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
48019         whether wmemchr() exists.
48021 2011-10-03  Bruno Haible  <bruno@clisp.org>
48023         glthread/*, strsignal: Support for MSVC.
48024         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
48025         including <winsock.h> on MSVC 9.
48026         * lib/glthread/lock.h: Likewise.
48027         * lib/glthread/thread.h: Likewise.
48028         * lib/glthread/tls.h: Likewise.
48029         * lib/glthread/yield.h: Likewise.
48030         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
48031         if HAVE_UNISTD_H is false.
48032         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
48034 2011-10-03  Bruno Haible  <bruno@clisp.org>
48036         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
48037         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
48038         Set to 100000.
48040 2011-10-03  Bruno Haible  <bruno@clisp.org>
48042         acl: Fix specification.
48043         * lib/file-has-acl.c (file_has_acl): Fix specification.
48045 2011-10-03  Bruno Haible  <bruno@clisp.org>
48047         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
48048         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
48049         (compute_curr_prefix, shared_library_fullname,
48050         find_shared_library_fullname, get_shared_library_fullname, relocate):
48051         Use it together with PIC && INSTALLDIR.
48052         Reported by <jojelino@gmail.com>
48053         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
48055 2011-10-01  Jim Meyering  <meyering@redhat.com>
48057         maint.mk: adjust a release-related rule not to require use of gzip
48058         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
48059         Instead, check each file in $(DIST_ARCHIVES).  This is better for
48060         projects that build only .tar.xz files.  Also fix an erroneous test.
48062         test-linkat: don't leave behind a temporary file
48063         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
48064         Otherwise, coreutils' "make distcheck" would fail with this:
48065           Only in /c/cu/tests/torture/coreutils/test/\
48066             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
48067           make[2]: *** [my-distcheck] Error 1
48069         float, math: add omitted file
48070         * lib/itold.c: Add file, required for yesterday's float change.
48072 2011-10-01  Bruno Haible  <bruno@clisp.org>
48074         isinf: Fix for OpenBSD/x86.
48075         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
48076         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
48077         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
48079 2011-10-01  Bruno Haible  <bruno@clisp.org>
48081         isfinite: Fix syntax error in configure test.
48082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
48084         isfinite: Fix typo.
48085         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
48086         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
48088 2011-10-01  Bruno Haible  <bruno@clisp.org>
48090         nonblocking tests: Fix test failure on Linux/IA-64.
48091         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
48092         Set to 270000.
48094 2011-10-01  Bruno Haible  <bruno@clisp.org>
48096         mkfifoat tests: Fix a test failure on mingw.
48097         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
48098         with error ENOSYS.
48100 2011-09-30  Bruno Haible  <bruno@clisp.org>
48102         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
48103         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
48104         'long double'. Set REPLACE_ITOLD.
48105         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
48106         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
48107         * lib/itold.c: New file.
48108         * modules/float (Files): Add lib/itold.c.
48109         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
48110         (Makefile.am): Substitute REPLACE_ITOLD.
48111         * modules/math (Depends-on): Add float.
48112         (Makefile.am): Substitute REPLACE_ITOLD.
48113         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
48114         * doc/posix-headers/math.texi: Likewise.
48115         * doc/posix-functions/logl.texi: Likewise.
48117 2011-09-30  Bruno Haible  <bruno@clisp.org>
48119         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
48120         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
48121         Set to 140000.
48123 2011-09-30  Bruno Haible  <bruno@clisp.org>
48125         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
48126         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
48127         invocation, say "right after AC_PROG_CC_STDC", not "right after
48128         AC_PROG_CC".
48129         Reported by Gary V. Vaughan <gary@gnu.org>.
48131 2011-09-30  Bruno Haible  <bruno@clisp.org>
48133         Centralize C99 requirement.
48134         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
48135         * modules/stdarg (configure.ac-early): Invoke it instead of
48136         AC_PROG_CC_STDC.
48137         Reported by Gary V. Vaughan and Paul Eggert.
48139 2011-09-29  Bruno Haible  <bruno@clisp.org>
48141         float: Fix LDBL_MAX value on Linux/PowerPC.
48142         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
48143         on Linux/PowerPC.
48144         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
48145         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
48146         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
48147         platform.
48148         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
48150 2011-09-29  Bruno Haible  <bruno@clisp.org>
48152         doc: Improve doc about gl_EARLY.
48153         * doc/gnulib-tool.texi (Initial import): Mention where to place an
48154         AC_PROG_CC_STDC invocation.
48155         Reported by Gary V. Vaughan <gary@gnu.org>.
48157 2011-09-28  Bruno Haible  <bruno@clisp.org>
48159         fgetc, fputc, fread, fwrite tests: Fix link error.
48160         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
48161         on non-MSVC platforms.
48162         * tests/test-fputc.c (main): Likewise.
48163         * tests/test-fread.c (main): Likewise.
48164         * tests/test-fwrite.c (main): Likewise.
48165         Reported by Jim Meyering.
48167 2011-09-27  Bruno Haible  <bruno@clisp.org>
48169         fputc, fwrite tests: Avoid test failure on MSVC.
48170         * tests/test-fgetc.c: Include msvc-inval.h.
48171         (main): Invoke gl_msvc_inval_ensure_handler.
48172         * tests/test-fputc.c: Include msvc-inval.h.
48173         (main): Invoke gl_msvc_inval_ensure_handler.
48174         * tests/test-fread.c: Include msvc-inval.h.
48175         (main): Invoke gl_msvc_inval_ensure_handler.
48176         * tests/test-fwrite.c: Include msvc-inval.h.
48177         (main): Invoke gl_msvc_inval_ensure_handler.
48178         * modules/fgetc-tests (Depends-on): Add msvc-inval.
48179         * modules/fputc-tests (Depends-on): Likewise.
48180         * modules/fread-tests (Depends-on): Likewise.
48181         * modules/fwrite-tests (Depends-on): Likewise.
48183 2011-09-27  Bruno Haible  <bruno@clisp.org>
48185         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
48186         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
48187         (raise): Remove older, duplicated declaration.
48188         (_gl_raise_SIGPIPE): New declaration.
48189         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
48190         (rpl_raise): Remove function.
48191         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
48192         a gnulib-defined SIGPIPE here.
48193         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
48194         'sigprocmask' has detected missing signal-blocking and the module
48195         'sigpipe' is enabled.
48196         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48198 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
48200         base64-tests: avoid memory leak
48201         * tests/test-base64.c (main): Plug memory leak.
48203         base32: new module
48204         * modules/base32: New module.
48205         * lib/base32.c: New file.
48206         * lib/base32.h: Likewise.
48207         * m4/base32.m4: Likewise.
48208         * modules/base32-tests: New test.
48209         * tests/test-base32.c: Likewise.
48210         * MODULES.html.sh (Misc): Mention it.
48212 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48214         gnulib: use more-standard license notice wording
48215         * gnulib-tool (func_emit_copyright_notice): When emitting a
48216         license notice into a file, use the standard wording as suggested
48217         by the current information for GNU maintainers, except say "file"
48218         rather than "program".  The new wording gives a license version
48219         number, which addresses an issue raised by Glenn Morris in
48220         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
48221         * m4/onceonly.m4: Use that same wording here, too.
48223         dup2: minor simplification
48224         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
48225         as lib/dup2.c no longer uses 'inline'.
48227 2011-09-25  Bruno Haible  <bruno@clisp.org>
48229         strings: Fix compilation error on MSVC.
48230         * lib/strings.in.h: Include <stddef.h> for size_t.
48232 2011-09-25  Bruno Haible  <bruno@clisp.org>
48234         fflush et al.: Document limitation on MSVC.
48235         * doc/posix-functions/fflush.texi: Document possible crash in handling
48236         mode other than DEFAULT_HANDLING.
48237         * doc/posix-functions/fgetc.texi: Likewise.
48238         * doc/posix-functions/fputc.texi: Likewise.
48239         * doc/posix-functions/fread.texi: Likewise.
48240         * doc/posix-functions/fwrite.texi: Likewise.
48242 2011-09-25  Bruno Haible  <bruno@clisp.org>
48244         msvc-inval: Allow three invalid parameter handling modes.
48245         * lib/msvc-inval.h: Don't include <stdlib.h> here.
48246         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
48247         macros.
48248         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
48249         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
48250         SANE_LIBRARY_HANDLING as a no-op.
48251         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
48252         <stdlib.h>.
48253         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
48255 2011-09-25  Bruno Haible  <bruno@clisp.org>
48257         msvc-inval: Make handler multithread-safe.
48258         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
48259         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
48260         declarations.
48261         (gl_msvc_inval_current): New declaration.
48262         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48263         Operate on the structure returned by gl_msvc_inval_current().
48264         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
48265         Remove varaiables.
48266         (tls_index, tls_initialized): New variables.
48267         (not_per_thread): New variable.
48268         (gl_msvc_inval_current): New function.
48269         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
48270         returned by gl_msvc_inval_current().
48272 2011-09-25  Bruno Haible  <bruno@clisp.org>
48274         msvc-inval: Install handler globally.
48275         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
48276         !_MSC_VER.
48277         (gl_msvc_invalid_parameter_handler): Remove declaration.
48278         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48279         declarations.
48280         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48281         Install the handler globally, don't uninstall it.
48282         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
48283         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
48284         currently valid, call RaiseException instead.
48285         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
48286         for !_MSC_VER.
48288 2011-09-25  Bruno Haible  <bruno@clisp.org>
48290         strerror_r-posix: Fix for MSVC 9.
48291         * lib/strerror_r.c (local_snprintf): New function.
48292         (snprintf): Define to local_snprintf, not to _snprintf.
48294 2011-09-25  Bruno Haible  <bruno@clisp.org>
48296         ftruncate: Support for MSVC 9.
48297         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
48298         (chsize_nothrow): New function.
48299         (chsize): Redefine as a macro.
48300         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
48301         * modules/ftruncate (Depends-on): Add msvc-inval.
48303 2011-09-25  Bruno Haible  <bruno@clisp.org>
48305         New module 'fstat'.
48306         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
48307         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
48308         * lib/fchdir.c (rpl_fstat): Remove function.
48309         * m4/fstat.m4: New file.
48310         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
48311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
48312         declared.
48313         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
48314         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
48315         * modules/fstat: New file.
48316         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
48317         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
48318         is set.
48319         * doc/posix-functions/fstat.texi: Mention the new module and the
48320         problem on MSVC.
48321         * NEWS: Mention the change.
48322         * modules/acl (Depends-on): Add fstat.
48323         * modules/chdir-safer (Depends-on): Likewise.
48324         * modules/chown (Depends-on): Likewise.
48325         * modules/copy-file (Depends-on): Likewise.
48326         * modules/fchdir (Depends-on): Likewise.
48327         * modules/fdopendir (Depends-on): Likewise.
48328         * modules/fopen (Depends-on): Likewise.
48329         * modules/fts (Depends-on): Likewise.
48330         * modules/getcwd (Depends-on): Likewise.
48331         * modules/isapipe (Depends-on): Likewise.
48332         * modules/linkat (Depends-on): Likewise.
48333         * modules/lseek (Depends-on): Likewise.
48334         * modules/mkdir-p (Depends-on): Likewise.
48335         * modules/open (Depends-on): Likewise.
48336         * modules/openat (Depends-on): Likewise.
48337         * modules/read-file (Depends-on): Likewise.
48338         * modules/renameat (Depends-on): Likewise.
48339         * modules/utimens (Depends-on): Likewise.
48341 2011-09-25  Bruno Haible  <bruno@clisp.org>
48343         linkat: Fix compilation on MSVC 9.
48344         * lib/linkat.c: Don't include <stdint.h>.
48346 2011-09-25  Bruno Haible  <bruno@clisp.org>
48348         fclose: Support for MSVC 9.
48349         * lib/fclose.c: Include msvc-inval.h.
48350         (fclose_nothrow): New function.
48351         (rpl_fclose): Use it.
48352         * modules/fclose (Depends-on): Add msvc-inval.
48353         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48355 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48357         dup2: minor simplifications
48358         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48359         that it's a performance win.
48360         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48361         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48363 2011-09-24  Jim Meyering  <meyering@redhat.com>
48365         test-futimens: avoid a warning from gcc -Wshadow
48366         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48367         to avoid a shadowing warning.
48369 2011-09-24  Bruno Haible  <bruno@clisp.org>
48371         fdopen: Support for MSVC 9.
48372         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48373         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48374         * lib/fdopen.c: Include msvc-inval.h.
48375         (fdopen_nothrow): New function.
48376         (rpl_fdopen): Use it.
48377         * modules/fdopen (Depends-on): Add msvc-inval.
48378         * modules/fclose-tests (Depends-on): Add fdopen.
48379         * modules/fflush-tests (Depends-on): Likewise.
48380         * modules/fgetc-tests (Depends-on): Likewise.
48381         * modules/fputc-tests (Depends-on): Likewise.
48382         * modules/fread-tests (Depends-on): Likewise.
48383         * modules/freopen-tests (Depends-on): Likewise.
48384         * modules/fseeko-tests (Depends-on): Likewise.
48385         * modules/ftello-tests (Depends-on): Likewise.
48386         * modules/fwrite-tests  (Depends-on): Likewise.
48387         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48389 2011-09-24  Bruno Haible  <bruno@clisp.org>
48391         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48392         * modules/fgetc-tests (Depends-on): Add unistd.
48393         * modules/fputc-tests (Depends-on): Likewise.
48394         * modules/fread-tests (Depends-on): Likewise.
48395         * modules/fwrite-tests (Depends-on): Likewise.
48397 2011-09-24  Bruno Haible  <bruno@clisp.org>
48399         dup: Simplify autoconf test.
48400         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48401         on gl_MSVC_INVAL's result.
48403 2011-09-24  Bruno Haible  <bruno@clisp.org>
48405         Tests for function fwrite().
48406         * modules/fwrite-tests: New file.
48407         * tests/test-fwrite.c: New file.
48408         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48410         Tests for function fread().
48411         * modules/fread-tests: New file.
48412         * tests/test-fread.c: New file.
48413         * modules/stdio-tests (Depends-on): Add fread-tests.
48415         Activate fputc tests.
48416         * modules/stdio-tests (Depends-on): Add fputc-tests.
48418         Enhance fgetc, fputc tests.
48419         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48420         * tests/test-fputc.c (main): Likewise.
48422 2011-09-24  Bruno Haible  <bruno@clisp.org>
48424         write: Support for MSVC 9.
48425         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48426         is not 1.
48427         * lib/write.c (write_nothrow): New function.
48428         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48429         not 1. Use write_nothrow.
48430         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48431         invalid parameter handler.
48432         (gl_PREREQ_WRITE): New macro.
48433         * modules/write (Depends-on): Add msvc-inval.
48434         (configure.ac): Invoke gl_PREREQ_WRITE.
48435         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48437 2011-09-24  Bruno Haible  <bruno@clisp.org>
48439         read: Fix last commit.
48440         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48442 2011-09-24  Bruno Haible  <bruno@clisp.org>
48444         dup2: Fix last commit.
48445         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48446         (rpl_dup2): Disable fcntl workaround on native Windows.
48448         sigprocmask: Make code safer.
48449         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48450         section that changes macro definitions for this compilation unit.
48452 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48454         dup2: clarify by coalescing Windows-specific material
48455         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48456         "msvc-nothrow.h"' to the Windows-specific section, so that the
48457         Emacs source need not contain these include files.
48458         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48459         Windows-specific fixes into this function rather than just the
48460         nothrow fix, as this shortens and clarifies the code.  Always
48461         define as a function, as that's a bit cleaner than having it be
48462         sometimes a function and sometimes a macro.
48463         (rpl_dup2): Move the Windows-specific stuff out of here and into
48464         ms_windows_dup2.  Don't protect the Haiku-related fix with
48465         "#if !defined __linux__", as the same code also works around
48466         a Linux kernel bug, and it doesn't add any system calls on any
48467         platform.  Add comment about FreeBSD 6.1.
48469         sigprocmask: move #include directive
48470         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48471         Windows-specific section, so that the Emacs source need not
48472         contain msvc-inval.h.
48474 2011-09-23  Bruno Haible  <bruno@clisp.org>
48476         read: Support for MSVC 9.
48477         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48478         is not 1.
48479         * lib/read.c (read_nothrow): New function.
48480         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48481         read_nothrow.
48482         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48483         invalid parameter handler.
48484         (gl_PREREQ_READ): New macro.
48485         * modules/read (Depends-on): Add msvc-inval.
48486         (configure.ac): Invoke gl_PREREQ_READ.
48487         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48489 2011-09-23  Bruno Haible  <bruno@clisp.org>
48491         close: Support for MSVC 9.
48492         * lib/close.c: Include <errno.h>, msvc-inval.h.
48493         (close_nothrow): New function.
48494         (rpl_close): Use it.
48495         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48496         invalid parameter handler.
48497         * modules/close (Depends-on): Add msvc-inval.
48498         * modules/dup2-tests (Depends-on): Add close.
48499         * modules/dup3-tests (Depends-on): Likewise.
48500         * modules/fcntl-tests (Depends-on): Likewise.
48501         * modules/spawn-pipe-tests (Depends-on): Likewise.
48502         * modules/unistd-safer-tests (Depends-on): Likewise.
48503         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48505 2011-09-23  Bruno Haible  <bruno@clisp.org>
48507         New module 'dup'.
48508         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48509         Allow replacement.
48510         * lib/dup.c: New file.
48511         * lib/fchdir.c (rpl_dup): Remove function.
48512         * m4/dup.m4: New file.
48513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48514         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48515         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48516         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48517         * modules/dup: New file.
48518         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48519         'dup' module is in use.
48520         * modules/fdopendir (Depends-on): Add dup.
48521         * modules/fdutimensat-tests (Depends-on): Likewise.
48522         * modules/fts (Depends-on): Likewise.
48523         * modules/futimens-tests (Depends-on): Likewise.
48524         * modules/posix_spawnp-tests (Depends-on): Likewise.
48525         * modules/unistd-safer-tests (Depends-on): Likewise.
48526         * modules/utimens-tests (Depends-on): Likewise.
48527         * doc/posix-functions/dup.texi: Mention the new module and the problem
48528         on MSVC.
48530 2011-09-23  Bruno Haible  <bruno@clisp.org>
48532         getdtablesize: Support for MSVC 9.
48533         * lib/getdtablesize.c: Include msvc-inval.h.
48534         (_setmaxstdio_nothrow): New function.
48535         (_setmaxstdio): Redefine it.
48536         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48537         * modules/getdtablesize (Depends-on): Add msvc-inval.
48538         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48540 2011-09-23  Bruno Haible  <bruno@clisp.org>
48542         signal-h: Rename from signal.
48543         * modules/signal-h: Renamed from modules/signal.
48544         * modules/pthread_sigmask (Depends-on): Update.
48545         * modules/raise (Depends-on): Likewise.
48546         * modules/sigaction (Depends-on): Likewise.
48547         * modules/sigpipe (Depends-on): Likewise.
48548         * modules/sigprocmask (Depends-on): Likewise.
48549         * modules/sys_select (Depends-on): Likewise.
48550         * modules/signal-h-tests: Renamed from modules/signal-tests.
48551         (Files, Depends-on, Makefile.am): Update.
48552         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48553         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48554         (Files, Makefile.am): Update.
48555         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48556         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48557         * modules/signal: New placeholder file.
48558         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48559         * doc/posix-headers/signal.texi: Update.
48560         * NEWS: Mention the change.
48562 2011-09-23  Bruno Haible  <bruno@clisp.org>
48564         sigprocmask: Avoid crashes through signal() on MSVC 9.
48565         * lib/sigprocmask.c: Include msvc-inval.h.
48566         (signal_nothrow): New function.
48567         (signal): Redefine it.
48568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48569         * modules/sigprocmask (Depends-on): Add msvc-inval.
48570         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48572 2011-09-23  Bruno Haible  <bruno@clisp.org>
48574         Tests for module 'raise'.
48575         * modules/raise-tests: New file.
48576         * tests/test-raise.c: New file.
48578         raise: Support for MSVC.
48579         * lib/signal.in.h (raise): New declaration.
48580         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48581         for native Windows platforms.
48582         * m4/raise.m4: New file.
48583         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48584         HAVE_RAISE, REPLACE_RAISE.
48585         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48586         REPLACE_RAISE.
48587         * modules/raise (Status, Notice): Remove fields.
48588         (Files): Add m4/raise.m4.
48589         (Depends-on): Add signal, msvc-inval.
48590         (configure.ac): Use the common idioms.
48591         (Maintainer): Add me.
48592         * tests/test-signal-c++.cc: Check the signature of raise.
48593         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48595 2011-09-23  Bruno Haible  <bruno@clisp.org>
48597         pipe2: Fix compilation on pre-C99 compilers.
48598         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48600 2011-09-23  Bruno Haible  <bruno@clisp.org>
48602         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48603         * lib/msvc-nothrow.h: New file.
48604         * lib/msvc-nothrow.c: New file.
48605         * m4/msvc-nothrow.m4: New file.
48606         * modules/msvc-nothrow: New file.
48607         * lib/dup2.c: Include msvc-nothrow.h.
48608         (rpl_dup2): No need to protect _get_osfhandle call here.
48609         * lib/accept4.c: Include msvc-nothrow.h.
48610         * lib/error.c: Likewise.
48611         * lib/fcntl.c: Likewise.
48612         * lib/lseek.c: Likewise.
48613         * lib/nonblocking.c: Likewise.
48614         * lib/poll.c: Likewise.
48615         * lib/read.c: Likewise.
48616         * lib/select.c: Likewise.
48617         * lib/sockets.h: Likewise.
48618         * lib/sockets.c: Likewise.
48619         * lib/stdio-read.c: Likewise.
48620         * lib/stdio-write.c: Likewise.
48621         * lib/write.c: Likewise.
48622         * lib/w32sock.h: Likewise.
48623         * lib/w32spawn.h: Likewise.
48624         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48625         * lib/fsync.c: Likewise.
48626         * lib/isapipe.c: Likewise.
48627         * modules/dup2 (Depends-on): Add msvc-nothrow.
48628         * modules/accept4 (Depends-on): Likewise.
48629         * modules/error (Depends-on): Likewise.
48630         * modules/fcntl (Depends-on): Likewise.
48631         * modules/lseek (Depends-on): Likewise.
48632         * modules/nonblocking (Depends-on): Likewise.
48633         * modules/poll (Depends-on): Likewise.
48634         * modules/read (Depends-on): Likewise.
48635         * modules/select (Depends-on): Likewise.
48636         * modules/sockets (Depends-on): Likewise.
48637         * modules/sigpipe (Depends-on): Likewise.
48638         * modules/write (Depends-on): Likewise.
48639         * modules/accept (Depends-on): Likewise.
48640         * modules/bind (Depends-on): Likewise.
48641         * modules/connect (Depends-on): Likewise.
48642         * modules/gethostname (Depends-on): Likewise.
48643         * modules/getpeername (Depends-on): Likewise.
48644         * modules/getsockname (Depends-on): Likewise.
48645         * modules/getsockopt (Depends-on): Likewise.
48646         * modules/ioctl (Depends-on): Likewise.
48647         * modules/listen (Depends-on): Likewise.
48648         * modules/recv (Depends-on): Likewise.
48649         * modules/recvfrom (Depends-on): Likewise.
48650         * modules/send (Depends-on): Likewise.
48651         * modules/sendto (Depends-on): Likewise.
48652         * modules/setsockopt (Depends-on): Likewise.
48653         * modules/shutdown (Depends-on): Likewise.
48654         * modules/socket (Depends-on): Likewise.
48655         * modules/execute (Depends-on): Likewise.
48656         * modules/spawn-pipe (Depends-on): Likewise.
48657         * modules/flock (Depends-on): Likewise.
48658         * modules/fsync (Depends-on): Likewise.
48659         * modules/isapipe (Depends-on): Likewise.
48660         * tests/test-cloexec.c: Include msvc-nothrow.h.
48661         * tests/test-dup-safer.c: Likewise.
48662         * tests/test-dup2.c: Likewise.
48663         * tests/test-dup3.c: Likewise.
48664         * tests/test-fcntl.c: Likewise.
48665         * tests/test-pipe.c: Likewise.
48666         * tests/test-pipe2.c: Likewise.
48667         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48668         * modules/unistd-safer-tests (Depends-on): Likewise.
48669         * modules/dup2-tests (Depends-on): Likewise.
48670         * modules/dup3-tests (Depends-on): Likewise.
48671         * modules/fcntl-tests (Depends-on): Likewise.
48672         * modules/pipe-posix-tests (Depends-on): Likewise.
48673         * modules/pipe2-tests (Depends-on): Likewise.
48675 2011-09-23  Bruno Haible  <bruno@clisp.org>
48677         dup2: Make code more maintainable.
48678         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48679         (rpl_dup2): Use it.
48680         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48681         * modules/dup2 (configure.ac): Invoke it.
48682         Reported by Paul Eggert.
48684 2011-09-23  Bruno Haible  <bruno@clisp.org>
48686         msvc-inval: Fix compilation error.
48687         * lib/msvc-inval.h: Include <excpt.h>.
48689 2011-09-23  Bruno Haible  <bruno@clisp.org>
48691         mkdir: Tweak for MSVC 9.
48692         * lib/sys_stat.in.h: Update comments.
48693         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48695         Tests for module 'chdir'.
48696         * modules/chdir-tests: New file.
48697         * tests/test-chdir.c: New file.
48699         New module 'chdir'.
48700         * modules/chdir: New file.
48701         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48702         (chdir): New declaration.
48703         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48704         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48705         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48706         * tests/test-unistd-c++.cc: Check signature of chdir.
48707         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48708         * modules/chdir-long (Depends-on): Add chdir.
48709         * modules/fchdir (Depends-on): Likewise.
48710         * modules/rename (Depends-on): Likewise.
48711         * modules/savewd (Depends-on): Likewise.
48713         rmdir: Support for mingw, MSVC 9.
48714         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48715         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48717         getcwd: Tweak for MSVC 9.
48718         * lib/unistd.in.h: Update comments.
48719         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48721 2011-09-22  Bruno Haible  <bruno@clisp.org>
48723         strerror_r-posix: Avoid a link error on MSVC.
48724         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48725         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48727 2011-09-22  Bruno Haible  <bruno@clisp.org>
48729         select: Avoid link errors on MSVC.
48730         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48731         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48732         * modules/pselect (Link): Likewise.
48733         * NEWS: Mention the change.
48734         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48735         test-select-stdin against $(LIB_SELECT).
48736         * modules/pselect-tests (Makefile.am): Link test-pselect against
48737         $(LIB_SELECT).
48739 2011-09-22  Bruno Haible  <bruno@clisp.org>
48741         select: Avoid compilation error on MSVC.
48742         * lib/select.c: Don't include <stdbool.h>.
48744 2011-09-21  Bruno Haible  <bruno@clisp.org>
48746         Consolidate all uses of PATH_MAX in *.m4 files.
48747         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48748         macros.
48749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48750         and gl_PATHMAX_SNIPPET.
48751         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48753         * modules/chdir-long (Files): Add m4/pathmax.m4.
48754         * modules/getcwd (Files): Likewise.
48756 2011-09-21  Bruno Haible  <bruno@clisp.org>
48758         ftruncate: Un-deprecate, concentrate on Win32 support.
48759         * modules/ftruncate (Status, Notice): Remove sections.
48760         (Depends-on): Add largefile.
48761         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48762         non-mingw platforms.
48763         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48764         include <io.h>.
48765         * modules/perror-tests (Depends-on): Add ftruncate.
48766         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48767         'ftruncate' module.
48769 2011-09-21  Bruno Haible  <bruno@clisp.org>
48771         Add dependencies to new dirent related modules.
48772         * modules/opendir (Depends-on): Add closedir.
48773         * modules/getcwd (Depends-on): Add opendir, closedir.
48774         * modules/dirent-safer-tests (Depends-on): Likewise.
48775         * modules/fdopendir-tests (Depends-on): Likewise.
48776         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48777         * modules/renameat-tests (Depends-on): Likewise.
48779 2011-09-21  Bruno Haible  <bruno@clisp.org>
48781         opendir: Avoid compilation error on mingw.
48782         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48783         * modules/opendir (Depends-on): Add unistd.
48785 2011-09-21  Bruno Haible  <bruno@clisp.org>
48787         ftruncate tests: Avoid a test failure on mingw.
48788         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48790 2011-09-21  Bruno Haible  <bruno@clisp.org>
48792         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48793         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48794         native Windows.
48796 2011-09-21  Bruno Haible  <bruno@clisp.org>
48798         New module 'fdopen'.
48799         * lib/stdio.in.h (fdopen): New declaration.
48800         * lib/fdopen.c: New file.
48801         * m4/fdopen.m4: New file.
48802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48803         REPLACE_FDOPEN.
48804         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48805         REPLACE_FDOPEN.
48806         * modules/fdopen: New file.
48807         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48808         * tests/test-stdio-c++.cc: Check signature of fdopen.
48809         * doc/posix-functions/fdopen.texi: Mention the new module.
48811 2011-09-21  Bruno Haible  <bruno@clisp.org>
48813         unlockpt tests: Avoid test failure on NetBSD 5.1.
48814         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48815         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48817 2011-09-21  Bruno Haible  <bruno@clisp.org>
48819         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48820         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48821         * tests/test-getlogin_r.c (main): Likewise.
48823 2011-09-20  Bruno Haible  <bruno@clisp.org>
48825         time tests: Don't require pid_t.
48826         * doc/posix-headers/time.texi: Revert last change.
48827         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48828         * tests/test-time.c: Comment out the check for pid_t.
48830 2011-09-20  Bruno Haible  <bruno@clisp.org>
48832         fsync tests: Avoid a test failure on mingw.
48833         * tests/test-fsync.c (main): Allow a failure with EIO.
48835 2011-09-20  Bruno Haible  <bruno@clisp.org>
48837         euidaccess: Update comments.
48838         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48840 2011-09-20  Bruno Haible  <bruno@clisp.org>
48842         Ensure EBADF returns for socket functions on mingw.
48843         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48844         descriptor is invalid.
48845         * lib/bind.c (rpl_bind): Likewise.
48846         * lib/connect.c (rpl_connect): Likewise.
48847         * lib/getpeername.c (rpl_getpeername): Likewise.
48848         * lib/getsockname.c (rpl_getsockname): Likewise.
48849         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48850         * lib/listen.c (rpl_listen): Likewise.
48851         * lib/recv.c (rpl_recv): Likewise.
48852         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48853         * lib/send.c (rpl_send): Likewise.
48854         * lib/sendto.c (rpl_sendto): Likewise.
48855         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48856         * lib/shutdown.c (rpl_shutdown): Likewise.
48858 2011-09-20  Bruno Haible  <bruno@clisp.org>
48860         select tests: EBADF tests.
48861         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48862         test_bad_fd): New functions.
48863         (test_function): Invoke also test_bad_fd.
48865 2011-09-20  Bruno Haible  <bruno@clisp.org>
48867         Tests for module 'posix_spawn_file_actions_addopen.
48868         * modules/posix_spawn_file_actions_addopen-tests: New file.
48869         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48871         Tests for module 'posix_spawn_file_actions_adddup2'.
48872         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48873         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48875         Tests for module 'posix_spawn_file_actions_addclose'.
48876         * modules/posix_spawn_file_actions_addclose-tests: New file.
48877         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48879 2011-09-20  Bruno Haible  <bruno@clisp.org>
48881         Tests for module 'unlockpt'.
48882         * modules/unlockpt-tests: New file.
48883         * tests/test-unlockpt.c: New file.
48884         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48886         Tests for module 'grantpt'.
48887         * modules/grantpt-tests: New file.
48888         * tests/test-grantpt.c: New file.
48889         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48891 2011-09-20  Bruno Haible  <bruno@clisp.org>
48893         freopen tests: EBADF tests.
48894         * tests/test-freopen.c: Include errno.h, unistd.h.
48895         (main): Add tests for EBADF, commented out for the moment.
48897         fclose tests: EBADF tests.
48898         * tests/test-fclose.c (main): Add tests for EBADF.
48900         fflush tests: EBADF tests.
48901         * tests/test-fflush.c: Include errno.h, macros.h.
48902         (main): Add tests for EBADF.
48904         ftello tests: EBADF tests.
48905         * tests/test-ftello4.sh: New file.
48906         * tests/test-ftello4.c: New file.
48907         * modules/ftello-tests (Files): Add them.
48908         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48910         fseeko tests: EBADF tests.
48911         * tests/test-fseeko4.sh: New file.
48912         * tests/test-fseeko4.c: New file.
48913         * modules/fseeko-tests (Files): Add them.
48914         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48916         Tests for function fputc().
48917         * modules/fputc-tests: New file.
48918         * tests/test-fputc.c: New file.
48919         * modules/stdio-tests (Depends-on): Add fputc-tests.
48921         Tests for function fgetc().
48922         * modules/fgetc-tests: New file.
48923         * tests/test-fgetc.c: New file.
48924         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48926         Tests for function fdopen().
48927         * modules/fdopen-tests: New file.
48928         * tests/test-fdopen.c: New file.
48929         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48931         Tests for module 'vdprintf'.
48932         * modules/vdprintf-tests: New file.
48933         * tests/test-vdprintf.c: New file.
48935         Tests for module 'dprintf'.
48936         * modules/dprintf-tests: New file.
48937         * tests/test-dprintf.c: New file.
48939 2011-09-20  Bruno Haible  <bruno@clisp.org>
48941         Tests for module 'ioctl'.
48942         * modules/ioctl-tests: New file.
48943         * tests/test-ioctl.c: New file.
48945 2011-09-20  Bruno Haible  <bruno@clisp.org>
48947         fcntl tests: EBADF tests.
48948         * tests/test-fcntl.c (main): Add more tests for EBADF.
48950 2011-09-20  Bruno Haible  <bruno@clisp.org>
48952         utimensat tests: EBADF tests.
48953         * tests/test-utimensat.c (main): Add tests for EBADF.
48955         renameat tests: EBADF tests.
48956         * tests/test-renameat.c (main): Add tests for EBADF.
48958         mkfifoat tests: EBADF tests.
48959         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48961         readlinkat tests: EBADF tests.
48962         * tests/test-readlinkat.c (main): Add tests for EBADF.
48964         symlinkat tests: EBADF tests.
48965         * tests/test-symlinkat.c (main): Add tests for EBADF.
48967         linkat tests: EBADF tests.
48968         * tests/test-linkat.c (main): Add tests for EBADF.
48970         Tests for module 'faccessat'.
48971         * modules/faccessat-tests: New file.
48972         * tests/test-faccessat.c: New file.
48974         fdopendir tests: EBADF tests.
48975         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48977         openat tests: EBADF tests.
48978         * tests/test-fchownat.c (main): Add tests for EBADF.
48979         * tests/test-fstatat.c (main): Likewise.
48980         * tests/test-mkdirat.c (main): Likewise.
48981         * tests/test-openat.c (main): Likewise.
48982         * tests/test-unlinkat.c (main): Likewise.
48983         * tests/test-fchmodat.c: New file.
48984         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48985         (Makefile.am): Also run 'test-fchmodat'.
48987 2011-09-20  Bruno Haible  <bruno@clisp.org>
48989         utimens, futimens, fdutimensat tests: EBADF tests.
48990         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48992         Tests for function fstat().
48993         * modules/fstat-tests: New file.
48994         * tests/test-fstat.c: New file.
48995         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48997 2011-09-20  Bruno Haible  <bruno@clisp.org>
48999         test-ttyname_r tests: EBADF tests.
49000         * tests/test-ttyname_r.c (main): Add tests for EBADF.
49002         Tests for module 'isatty'.
49003         * modules/isatty-tests: New file.
49004         * tests/test-isatty.c: New file.
49006         Tests for module 'write'.
49007         * modules/write-tests: New file.
49008         * tests/test-write.c: New file.
49010         Tests for module 'read'.
49011         * modules/read-tests: New file.
49012         * tests/test-read.c: New file.
49014         pwrite tests: EBADF tests.
49015         * tests/test-pwrite.c (main): Add tests for EBADF.
49017         pread tests: EBADF tests.
49018         * tests/test-pread.c (main): Add tests for EBADF.
49020         lseek tests: EBADF tests.
49021         * tests/test-lseek.c (main): Add more tests for EBADF.
49023         Tests for module 'ftruncate'.
49024         * modules/ftruncate-tests: New file.
49025         * tests/test-ftruncate.sh: New file.
49026         * tests/test-ftruncate.c: New file.
49028         fsync tests: EBADF tests.
49029         * tests/test-fsync.c (main): Add more tests for EBADF.
49031         fdatasync tests: EBADF tests.
49032         * tests/test-fdatasync.c (main): Add more tests for EBADF.
49034         Tests for module 'fchown'.
49035         * modules/fchown-tests: New file.
49036         * tests/test-fchown.c: New file.
49038         Tests for module 'fchmod'.
49039         * modules/fchmod-tests: New file.
49040         * tests/test-fchmod.c: New file.
49042         fchdir tests: EBADF tests.
49043         * tests/test-fchdir.c (main): Add more tests for EBADF.
49045         dup2 tests: EBADF tests.
49046         * tests/test-dup2.c (main): Add more tests for EBADF.
49048         Tests for module 'dup'.
49049         * modules/dup-tests: New file.
49050         * tests/test-dup.c: New file.
49052         Tests for module 'close'.
49053         * modules/close-tests: New file.
49054         * tests/test-close.c: New file.
49056 2011-09-20  Bruno Haible  <bruno@clisp.org>
49058         Tests for module 'shutdown'.
49059         * modules/shutdown-tests: New file.
49060         * tests/test-shutdown.c: New file.
49062         Tests for module 'setsockopt'.
49063         * modules/setsockopt-tests: New file.
49064         * tests/test-setsockopt.c: New file.
49066         Tests for module 'sendto'.
49067         * modules/sendto-tests: New file.
49068         * tests/test-sendto.c: New file.
49070         Tests for module 'send'.
49071         * modules/send-tests: New file.
49072         * tests/test-send.c: New file.
49074         Tests for module 'recvfrom'.
49075         * modules/recvfrom-tests: New file.
49076         * tests/test-recvfrom.c: New file.
49078         Tests for module 'recv'.
49079         * modules/recv-tests: New file.
49080         * tests/test-recv.c: New file.
49082         Tests for module 'listen'.
49083         * modules/listen-tests: New file.
49084         * tests/test-listen.c: New file.
49086         Tests for module 'getsockopt'.
49087         * modules/getsockopt-tests: New file.
49088         * tests/test-getsockopt.c: New file.
49090         Tests for module 'getsockname'.
49091         * modules/getsockname-tests: New file.
49092         * tests/test-getsockname.c: New file.
49094         Tests for module 'getpeername'.
49095         * modules/getpeername-tests: New file.
49096         * tests/test-getpeername.c: New file.
49098         Tests for module 'connect'.
49099         * modules/connect-tests: New file.
49100         * tests/test-connect.c: New file.
49102         Tests for module 'bind'.
49103         * modules/bind-tests: New file.
49104         * tests/test-bind.c: New file.
49106         accept4 tests: Fix for native Windows.
49107         * tests/test-accept4.c: Include sockets.h.
49108         (main): Invoke gl_sockets_startup.
49109         * modules/accept4-tests (Depends-on): Add sockets.
49111         accept tests: Fix for native Windows.
49112         * tests/test-accept.c: Include sockets.h.
49113         (main): Invoke gl_sockets_startup.
49114         * modules/accept-tests (Depends-on): Add sockets.
49116 2011-09-19  Bruno Haible  <bruno@clisp.org>
49118         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
49119         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
49120         do...while(0).
49121         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
49122         Suggested by Paul Eggert.
49124 2011-09-19  Bruno Haible  <bruno@clisp.org>
49126         sched: Ensure pid_t is defined.
49127         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
49128         not define pid_t.
49129         * lib/sched.in.h: Include <sys/types.h>.
49130         * doc/posix-headers/sched.texi: Mention the pid_t problem.
49131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49133 2011-09-19  Bruno Haible  <bruno@clisp.org>
49135         msvc-inval: Ensure the entire expansion is a single statement.
49136         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
49137         of braces.
49139 2011-09-19  Jim Meyering  <meyering@redhat.com>
49141         tests: use printf, not echo in init.sh's warn_ function
49142         * tests/init.sh (warn_): Use printf, not echo.  The latter would
49143         misbehave when given strings containing a backslash or starting
49144         with e.g., -n.  James Youngman suggested setting IFS.
49146 2011-09-19  Eric Blake  <eblake@redhat.com>
49148         futimens: enhance test
49149         * tests/test-futimens.h (test_futimens): Also check for EBADF on
49150         closed non-negative fd.
49152         date: accept 'hence' as opposite of 'ago'
49153         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
49154         * tests/test-parse-datetime.c (main): Enhance test.
49155         Suggested by Jesse Wilson.
49157 2011-09-19  Jim Meyering  <meyering@redhat.com>
49159         getcwd: don't fail in a deep directory on a system without openat
49160         Before this change, getcwd would fail when called from a directory
49161         of depth PATH_MAX / 3 or greater.  That was due to the fact that
49162         the non-openat implementation used "..", "../..", "../../..", etc.
49163         to access ancestor directories.  With too many, that string would
49164         be longer than PATH_MAX.
49165         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
49166         using gnulib's openat replacement.
49167         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
49168         we're using the replacement function.
49170 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
49172         maint.mk: avoid warnings from perl about missing files
49173         * top/maint.mk (def_sym_regex): Ignore files listed in
49174         $(gl_other_headers_) that do not exist, say because a project
49175         does not use a corresponding module.
49177 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49179         stat: use pathmax.h only if needed
49180         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
49181         This is better for Emacs, which does not have a mingw port and
49182         therefore can avoid the pathmax module.
49184         utimens: remove dependency on dup2
49185         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
49186         to work around the Linux kernel bug.
49187         * modules/utimens (Depends-on): Remove dup2.
49189 2011-09-18  Bruno Haible  <bruno@clisp.org>
49191         inet_ntop, inet_pton: Look for it also in libresolv.
49192         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
49193         libnsl, search for it in libresolv.
49194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49195         Needed on Solaris 7.
49197 2011-09-18  Bruno Haible  <bruno@clisp.org>
49199         accept, accept4 tests: Avoid link error on Solaris.
49200         * modules/accept-tests (Makefile.am): Link test-accept against
49201         $(LIBSOCKET).
49202         * modules/accept4-tests (Makefile.am): Link test-accept4 against
49203         $(LIBSOCKET).
49205         accept4: Avoid link error on Solaris.
49206         * modules/accept4 (Link): New section.
49208         socket functions: Avoid link errors on Solaris.
49209         * modules/accept (Depends-on): Add socketlib.
49210         (Link): New section.
49211         * modules/bind (Depends-on): Add socketlib.
49212         (Link): New section.
49213         * modules/connect (Depends-on): Add socketlib.
49214         (Link): New section.
49215         * modules/getpeername (Depends-on): Add socketlib.
49216         (Link): New section.
49217         * modules/getsockname (Depends-on): Add socketlib.
49218         (Link): New section.
49219         * modules/getsockopt (Depends-on): Add socketlib.
49220         (Link): New section.
49221         * modules/listen (Depends-on): Add socketlib.
49222         (Link): New section.
49223         * modules/recv (Depends-on): Add socketlib.
49224         (Link): New section.
49225         * modules/recvfrom (Depends-on): Add socketlib.
49226         (Link): New section.
49227         * modules/send (Depends-on): Add socketlib.
49228         (Link): New section.
49229         * modules/sendto (Depends-on): Add socketlib.
49230         (Link): New section.
49231         * modules/setsockopt (Depends-on): Add socketlib.
49232         (Link): New section.
49233         * modules/shutdown (Depends-on): Add socketlib.
49234         (Link): New section.
49235         * modules/socket (Depends-on): Add socketlib.
49236         (Link): New section.
49238 2011-09-18  Bruno Haible  <bruno@clisp.org>
49240         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
49241         * tests/test-ptsname.c (main): Terminate the test if it takes longer
49242         than 5 seconds.
49243         * modules/ptsname-tests (configure.ac): Test for alarm.
49245 2011-09-18  Bruno Haible  <bruno@clisp.org>
49247         posix_spawn_file_actions_add*: Fix module dependencies.
49248         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
49249         posix_spawn_file_actions_init.
49250         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
49251         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
49253 2011-09-18  Bruno Haible  <bruno@clisp.org>
49255         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
49256         * tests/test-rename.h (test_rename): Allow error code EEXIST.
49257         * tests/test-renameat.c (main): Likewise.
49259 2011-09-18  Bruno Haible  <bruno@clisp.org>
49261         Tests for module 'accept4'.
49262         * modules/accept4-tests: New file.
49263         * tests/test-accept4.c: New file.
49265 2011-09-18  Bruno Haible  <bruno@clisp.org>
49267         Tests for module 'accept'.
49268         * modules/accept-tests: New file.
49269         * tests/test-accept.c: New file.
49271 2011-09-18  Bruno Haible  <bruno@clisp.org>
49273         dup2: Support for MSVC.
49274         * lib/dup2.c: Include msvc-inval.h.
49275         (rpl_dup2): Handle invalid parameter notifications during dup2 and
49276         _get_osfhandle calls.
49277         * modules/dup2 (Depends-on): Add msvc-inval.
49278         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
49280         New module 'msvc-inval'.
49281         * lib/msvc-inval.h: New file.
49282         * lib/msvc-inval.c: New file.
49283         * m4/msvc-inval.m4: New file.
49284         * modules/msvc-inval: New file.
49286 2011-09-17  Bruno Haible  <bruno@clisp.org>
49288         Tests for module 'pclose'.
49289         * modules/pclose-tests: New file.
49291         New module 'pclose'.
49292         * lib/stdio.in.h (pclose): New declaration.
49293         * lib/pclose.c: New file.
49294         * m4/pclose.m4: New file.
49295         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
49296         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
49297         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
49298         * modules/pclose: New file.
49299         * modules/popen-tests (Depends-on): Add pclose.
49300         * modules/popen-safer-tests (Depends-on): Likewise.
49301         * doc/posix-functions/pclose.texi: Mention the new module.
49303 2011-09-17  Bruno Haible  <bruno@clisp.org>
49305         popen: Support for MSVC.
49306         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49307         * lib/popen.c (popen): Provide alternate definition for native Windows.
49308         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
49309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
49310         * modules/popen (Depends-on, configure.ac): Update condition.
49311         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
49312         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
49313         fixed.
49315 2011-09-17  Bruno Haible  <bruno@clisp.org>
49317         isnanl, isnand, isnanf: Work around MSVC bug.
49318         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
49320 2011-09-17  Bruno Haible  <bruno@clisp.org>
49322         sys_socket tests: Fix recent mistake.
49323         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
49325 2011-09-17  Bruno Haible  <bruno@clisp.org>
49327         putenv: Support for MSVC.
49328         * modules/putenv (Depends-on): Add environ.
49329         * lib/putenv.c (environ): Disable declaration.
49330         * lib/unistd.in.h: Update comment.
49332 2011-09-17  Bruno Haible  <bruno@clisp.org>
49334         math: Avoid macro redefinition warnings on MSVC.
49335         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49336         Undefine before redefining.
49338 2011-09-17  Bruno Haible  <bruno@clisp.org>
49340         doc: Mention functions which are declared as macros.
49341         * doc/posix-functions/*[fl].texi: Mention that some functions are
49342         defined as macros with arguments only.
49344 2011-09-17  Bruno Haible  <bruno@clisp.org>
49346         Add dependencies to new dirent related modules.
49347         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49348         * modules/fts (Depends-on): Likewise.
49349         * modules/glob (Depends-on): Likewise.
49350         * modules/savedir (Depends-on): Likewise.
49351         * modules/scandir (Depends-on): Likewise.
49352         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49353         * modules/fdopendir (Depends-on): Add opendir.
49355 2011-09-17  Bruno Haible  <bruno@clisp.org>
49357         inet_pton: Support for MSVC on Windows Vista or newer.
49358         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49359         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49360         HAVE_DECL_INET_PTON is defined.
49361         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49362         On platforms with <winsock2.h>, test whether inet_pton is declared in
49363         <ws2tcpip.h>. If so, arrange to replace it.
49364         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49365         REPLACE_INET_PTON.
49366         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49367         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49368         (Depends-on, configure.ac): Update condition.
49369         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49371 2011-09-17  Bruno Haible  <bruno@clisp.org>
49373         inet_ntop: Support for MSVC on Windows Vista or newer.
49374         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49375         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49376         HAVE_DECL_INET_NTOP is defined.
49377         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49378         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49379         <ws2tcpip.h>. If so, arrange to replace it.
49380         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49381         REPLACE_INET_NTOP.
49382         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49383         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49384         (Depends-on, configure.ac): Update condition.
49385         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49387 2011-09-16  Eric Blake  <eblake@redhat.com>
49389         test-fsync: yet another enhancement
49390         * tests/test-fsync.c (main): Also test behavior on read-only text
49391         file.
49393 2011-09-16  Bruno Haible  <bruno@clisp.org>
49395         Enhance fsync, fdatasync tests.
49396         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49397         * tests/test-fdatasync.c (main): Likewise.
49399 2011-09-16  Bruno Haible  <bruno@clisp.org>
49401         Support for MSVC compiler: Ensure mode_t gets defined.
49402         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49403         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49404         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49405         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49406         * tests/test-fcntl-h.c: Check that mode_t is defined.
49407         * tests/test-sys_stat.c: Likewise.
49408         * tests/test-sys_types.c: Likewise.
49409         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49410         * doc/posix-headers/sys_stat.texi: Likewise.
49411         * doc/posix-headers/sys_types.texi: Likewise.
49413 2011-09-16  Bruno Haible  <bruno@clisp.org>
49415         sys_stat: Support for MSVC.
49416         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49417         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49418         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49419         MSVC.
49421 2011-09-16  Bruno Haible  <bruno@clisp.org>
49423         Support for MSVC compiler: Ensure off_t gets defined.
49424         * lib/unistd.in.h: Include <sys/types.h>.
49425         * tests/test-fcntl-h.c: Check that off_t is defined.
49426         * tests/test-sys_stat.c: Likewise.
49427         * tests/test-sys_types.c: Likewise.
49429 2011-09-16  Eric Blake  <eblake@redhat.com>
49431         fdatasync: port to Solaris
49432         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49433         * modules/fdatasync (Link): Document it.
49434         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49436         fdatasync: port to MacOS X 10.7
49437         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49438         declared.
49439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49440         * modules/unistd (Makefile.am): Substitute it.
49441         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49442         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49444         fdatasync: minor improvements
49445         * modules/fdatasync (Depends-on): Add condition for fsync.
49446         * lib/fdatasync.c (fdatasync): Add comment.
49447         * tests/test-unistd-c++.cc: Test fdatasync.
49449         unistd: update refs to newer POSIX
49450         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49451         Suggested by Bruno Haible.
49453         fdatasync: new module
49454         * modules/fsync (Description): Document difference to fdatasync.
49455         * modules/fdatasync: New module.
49456         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49457         * lib/fdatasync.c (fdatasync): Likewise.
49458         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49459         defaults.
49460         * modules/unistd (Makefile.am): Set witnesses.
49461         * lib/unistd.in.h (fdatasync): Declare.
49462         * MODULES.html.sh: Document it.
49463         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49464         * modules/fdatasync-tests: New test.
49465         * tests/test-fdatasync.c: Likewise.
49467 2011-09-16  Eric Blake  <eblake@redhat.com>
49469         test-fsync: enhance tests
49470         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49471         * tests/test-fsync.c (main): Enhance test.
49473 2011-09-15  Bruno Haible  <bruno@clisp.org>
49475         Support for MSVC compiler: Ensure ssize_t gets defined.
49476         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49477         * doc/posix-headers/stdio.texi: Likewise.
49478         * modules/stdio (Depends-on): Add ssize_t.
49479         * modules/sys_socket (Depends-on): Likewise.
49480         * modules/sys_types (Depends-on): Likewise.
49481         * modules/sys_uio (Depends-on): Likewise.
49482         * modules/unistd (Depends-on): Likewise.
49483         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49484         * tests/test-sys_types.c: Check that ssize_t is defined.
49486 2011-09-14  Bruno Haible  <bruno@clisp.org>
49488         Avoid using #, the m4 comment starter character, near brackets.
49489         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49490         delimiter character in sed expressions.
49491         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49492         Suggested by Eric Blake.
49494         Properly quote AC_CHECK_DECLS' 4th argument.
49495         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49496         argument.
49497         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49498         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49499         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49500         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49501         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49502         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49505         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49506         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49507         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49508         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49509         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49510         * m4/isinf.m4 (gl_ISINF): Likewise.
49511         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49512         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49514         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49517         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49518         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49519         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49520         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49521         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49522         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49524         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49526         Reported by Eric Blake.
49528         Properly quote AC_CHECK_DECL's 4th argument.
49529         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49530         argument.
49531         * m4/argp.m4 (gl_ARGP): Likewise.
49532         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49533         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49534         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49535         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49536         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49537         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49539         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49541         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49542         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49543         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49544         Reported by Eric Blake.
49546 2011-09-14  Eric Blake  <eblake@redhat.com>
49548         opendir: avoid compile warning
49549         * lib/opendir.c (includes): Always include errno.h.
49550         Reported by Tatsuro MATSUOKA.
49552 2011-09-14  Jim Meyering  <meyering@redhat.com>
49554         maint.mk: sc_tight_scope: propagate failure from sub-make
49555         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49556         Reported by Martin von Gagern.
49558 2011-09-13  Bruno Haible  <bruno@clisp.org>
49560         tempname: Support for MSVC.
49561         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49562         MSVC.
49563         * modules/tempname (Depends-on): Add fcntl-h.
49565 2011-09-13  Bruno Haible  <bruno@clisp.org>
49567         sys_time: Support for MSVC.
49568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49569         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49570         include <winsock2.h>.
49571         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49572         function declarations that collide with POSIX.
49573         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49574         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49576 2011-09-13  Bruno Haible  <bruno@clisp.org>
49578         stat: Support for MSVC.
49579         * lib/stat.c: Include pathmax.h.
49580         * modules/stat (Depends-on): Add pathmax.
49582         pathmax: Support for native Windows.
49583         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49585 2011-09-12  Bruno Haible  <bruno@clisp.org>
49587         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49588         * lib/dirent.in.h (struct dirent): New type.
49589         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49590         DT_WHT): New macros.
49591         (DIR): New type.
49592         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49593         (readdir, rewinddir): New declarations.
49594         * lib/dirent-private.h: New file.
49595         * lib/opendir.c: New file.
49596         * lib/readdir.c: New file.
49597         * lib/rewinddir.c: New file.
49598         * lib/closedir.c: New file.
49599         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49600         * m4/opendir.m4: New file.
49601         * m4/readdir.m4: New file.
49602         * m4/rewinddir.m4: New file.
49603         * m4/closedir.m4: New file.
49604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49605         REPLACE_CLOSEDIR here.
49606         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49607         readdir, rewinddir are declared.
49608         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49609         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49610         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49611         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49612         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49613         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49614         * modules/opendir: New file.
49615         * modules/readdir: New file.
49616         * modules/rewinddir: New file.
49617         * modules/closedir: New file.
49618         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49619         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49620         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49621         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49622         * NEWS: Mention the 'fchdir' change.
49624 2011-09-11  Bruno Haible  <bruno@clisp.org>
49626         asm-underscore.m4: Support for MSVC.
49627         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49628         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49630 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49632         Doc about crypt functions.
49633         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49634         needing for _GNU_SOURCE to get crypt.
49635         * doc/posix-functions/encrypt.texi: Likewise.
49636         * doc/posix-functions/setkey.texi: Likewise.
49638 2011-09-11  Bruno Haible  <bruno@clisp.org>
49640         doc: Update regarding MSVC 9.
49641         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49642         tested".
49643         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49644         * doc/posix-headers/*.texi: Likewise.
49645         * doc/pastposix-functions/*.texi: Likewise.
49646         * doc/glibc-functions/*.texi: Likewise.
49647         * doc/glibc-headers/*.texi: Likewise.
49649 2011-09-11  Bruno Haible  <bruno@clisp.org>
49651         unistd et al.: Don't assume <unistd.h> exists.
49652         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49653         does not exist.
49654         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49655         exist. But include <stdlib.h>.
49656         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49657         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49658         symlink() does not exist.
49659         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49660         include <io.h> instead.
49661         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49662         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49663         include <direct.h> instead.
49664         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49665         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49666         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49667         <io.h> instead.
49668         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49669         correctly if the system does not have hard links.
49670         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49671         <direct.h> instead.
49672         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49673         it when looking for function declarations.
49674         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49675         <direct.h> and <io.h> instead.
49676         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49678 2011-09-11  Bruno Haible  <bruno@clisp.org>
49680         strcase: Support for MSVC.
49681         * modules/strcase (Status, Notice): Remove obsoletion mark.
49682         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49683         * doc/posix-functions/strncasecmp.texi: Likewise.
49685         strings: Don't assume <strings.h> exists.
49686         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49687         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49688         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49689         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49691 2011-09-11  Bruno Haible  <bruno@clisp.org>
49693         dirent: Don't assume <dirent.h> exists.
49694         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49695         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49696         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49697         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49699 2011-09-11  Bruno Haible  <bruno@clisp.org>
49701         Fix wint_t on MSVC.
49702         * lib/wchar.in.h (wint_t): On MSVC, override it.
49703         * lib/wctype.in.h (wint_t): Likewise.
49704         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49705         MSVC.
49706         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49707         * doc/posix-headers/wctype.texi: Likewise.
49709 2011-09-11  Bruno Haible  <bruno@clisp.org>
49711         sys_types: Fix typo.
49712         * lib/sys_types.in.h: Fix typo in comment.
49713         Reported by Paul Eggert.
49715         Support for MSVC compiler: Ensure size_t gets defined.
49716         * modules/strings (Depends-on): Add 'sys_types'.
49717         * modules/sys_uio (Depends-on): Likewise.
49718         * lib/sys_uio.in.h: Update comment.
49720         C++ tests for module 'sys_types'.
49721         * modules/sys_types-c++-tests: New file.
49722         * tests/test-sys_types-c++.cc: New file.
49724         Tests for module 'sys_types'.
49725         * modules/sys_types-tests: New file.
49726         * tests/test-sys_types.c: New file.
49728         New module 'sys_types'.
49729         * lib/sys_types.in.h: New file.
49730         * m4/sys_types_h.m4: New file.
49731         * modules/sys_types: New file.
49732         * doc/posix-headers/sys_types.texi: Mention the new module and the
49733         size_t problem on MSVC 9.
49735 2011-09-11  Bruno Haible  <bruno@clisp.org>
49737         Support for MSVC compiler: Avoid division by a literal 0.
49738         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49739         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49740         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49741         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49742         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49743         * tests/infinity.h: New file.
49744         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49745         on MSVC.
49746         * tests/test-ceilf1.c: Include infinity.h.
49747         (main): Use Infinityf.
49748         * tests/test-ceil1.c: Include infinity.h.
49749         (main): Use Infinityd.
49750         * tests/test-ceill.c: Include infinity.h.
49751         (main): Use Infinityl.
49752         * tests/test-dprintf-posix.c: Include infinity.h.
49753         (test_function): Use Infinityd.
49754         * tests/test-floorf1.c: Include infinity.h.
49755         (main): Use Infinityf.
49756         * tests/test-floor1.c: Include infinity.h.
49757         (main): Use Infinityd.
49758         * tests/test-floorl.c: Include infinity.h.
49759         (main): Use Infinityl.
49760         * tests/test-fprintf-posix.c: Include infinity.h.
49761         (test_function): Use Infinityd.
49762         * tests/test-frexp.c: Include infinity.h.
49763         (main): Use Infinityd.
49764         * tests/test-frexpl.c: Include infinity.h.
49765         (main): Use Infinityl.
49766         * tests/test-isfinite.c: Include infinity.h.
49767         (test_isfinitef): Use Infinityf.
49768         (test_isfinited): Use Infinityd.
49769         (test_isfinitel): Use Infinityl.
49770         * tests/test-isinf.c: Include infinity.h.
49771         (test_isinff): Use Infinityf.
49772         (test_isinfd): Use Infinityd.
49773         (test_isinfl): Use Infinityl.
49774         * tests/test-isnan.c: Include infinity.h.
49775         (test_float): Use Infinityf.
49776         (test_double): Use Infinityd.
49777         (test_long_double): Use Infinityl.
49778         * tests/test-isnanf.h: Include infinity.h.
49779         (main): Use Infinityf.
49780         * tests/test-isnand.h: Include infinity.h.
49781         (main): Use Infinityd.
49782         * tests/test-isnanl.h: Include infinity.h.
49783         (main): Use Infinityl.
49784         * tests/test-ldexpl.c: Include infinity.h.
49785         (main): Use Infinityl.
49786         * tests/test-printf-posix.h: Include infinity.h.
49787         (test_function): Use Infinityd.
49788         * tests/test-roundf1.c: Include infinity.h.
49789         (main): Use Infinityf.
49790         * tests/test-round1.c: Include infinity.h.
49791         (main): Use Infinityd.
49792         * tests/test-roundl.c: Include infinity.h.
49793         (main): Use Infinityl.
49794         * tests/test-signbit.c: Include infinity.h.
49795         (test_signbitf): Use Infinityf.
49796         (test_signbitd): Use Infinityd.
49797         (test_signbitl): Use Infinityl.
49798         * tests/test-snprintf-posix.h: Include infinity.h.
49799         (test_function): Use Infinityd, Infinityl.
49800         * tests/test-sprintf-posix.h: Include infinity.h.
49801         (test_function): Use Infinityd, Infinityl.
49802         * tests/test-truncf1.c: Include infinity.h.
49803         (main): Use Infinityf.
49804         * tests/test-trunc1.c: Include infinity.h.
49805         (main): Use Infinityd.
49806         * tests/test-truncl.c: Include infinity.h.
49807         (main): Use Infinityl.
49808         * tests/test-vasnprintf-posix.c: Include infinity.h.
49809         (test_function): Use Infinityd, Infinityl.
49810         * tests/test-vasprintf-posix.c: Include infinity.h.
49811         (test_function): Use Infinityd, Infinityl.
49812         * modules/ceilf-tests (Files): Add tests/infinity.h.
49813         * modules/ceil-tests (Files): Likewise.
49814         * modules/ceill-tests (Files): Likewise.
49815         * modules/dprintf-posix-tests (Files): Likewise.
49816         * modules/floorf-tests (Files): Likewise.
49817         * modules/floor-tests (Files): Likewise.
49818         * modules/floorl-tests (Files): Likewise.
49819         * modules/fprintf-posix-tests (Files): Likewise.
49820         * modules/frexp-tests (Files): Likewise.
49821         * modules/frexp-nolibm-tests (Files): Likewise.
49822         * modules/frexpl-tests (Files): Likewise.
49823         * modules/frexpl-nolibm-tests (Files): Likewise.
49824         * modules/isfinite-tests (Files): Likewise.
49825         * modules/isinf-tests (Files): Likewise.
49826         * modules/isnan-tests (Files): Likewise.
49827         * modules/isnanf-tests (Files): Likewise.
49828         * modules/isnanf-nolibm-tests (Files): Likewise.
49829         * modules/isnand-tests (Files): Likewise.
49830         * modules/isnand-nolibm-tests (Files): Likewise.
49831         * modules/isnanl-tests (Files): Likewise.
49832         * modules/isnanl-nolibm-tests (Files): Likewise.
49833         * modules/ldexpl-tests (Files): Likewise.
49834         * modules/printf-posix-tests (Files): Likewise.
49835         * modules/roundf-tests (Files): Likewise.
49836         * modules/round-tests (Files): Likewise.
49837         * modules/roundl-tests (Files): Likewise.
49838         * modules/signbit-tests (Files): Likewise.
49839         * modules/snprintf-posix-tests (Files): Likewise.
49840         * modules/sprintf-posix-tests (Files): Likewise.
49841         * modules/truncf-tests (Files): Likewise.
49842         * modules/trunc-tests (Files): Likewise.
49843         * modules/truncl-tests (Files): Likewise.
49844         * modules/vasnprintf-posix-tests (Files): Likewise.
49845         * modules/vasprintf-posix-tests (Files): Likewise.
49846         * modules/vdprintf-posix-tests (Files): Likewise.
49847         * modules/vfprintf-posix-tests (Files): Likewise.
49848         * modules/vprintf-posix-tests (Files): Likewise.
49849         * modules/vsnprintf-posix-tests (Files): Likewise.
49850         * modules/vsprintf-posix-tests (Files): Likewise.
49851         * modules/xprintf-posix-tests (Files): Likewise.
49853 2011-09-11  Bruno Haible  <bruno@clisp.org>
49855         Ensure pid_t gets defined.
49856         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49857         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49858         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49861         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49862         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49863         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49864         * tests/test-fcntl-h.c: Check that pid_t is defined.
49865         * tests/test-sched.c: Likewise.
49866         * tests/test-termios.c: Likewise.
49867         * tests/test-time.c: Likewise.
49868         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49869         * doc/posix-headers/signal.texi: Likewise.
49870         * doc/posix-headers/sys_types.texi: Likewise.
49871         * doc/posix-headers/time.texi: Likewise.
49873 2011-09-11  Bruno Haible  <bruno@clisp.org>
49875         acl: Fix compilation on Solaris 10 (older version).
49876         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49877         of ACE_EVERYONE.
49878         * lib/set-mode-acl.c (qset_acl): Likewise.
49879         Reported by Christian Jullien <eligis@orange.fr>.
49881 2011-09-10  Bruno Haible  <bruno@clisp.org>
49883         iconv, unsetenv: Add support for MSVC compiler.
49884         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49885         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49887 2011-09-10  Bruno Haible  <bruno@clisp.org>
49889         *printf: Add support for MSVC compiler.
49890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49891         handles the exception caused by the %n directive. When cross-compiling,
49892         guess no on native Windows.
49893         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49894         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49895         emulate it through vsnprintf.
49896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49897         * doc/posix-functions/dprintf.texi: Update documentation regarding
49898         MSVC 9.
49899         * doc/posix-functions/fprintf.texi: Likewise.
49900         * doc/posix-functions/printf.texi: Likewise.
49901         * doc/posix-functions/snprintf.texi: Likewise.
49902         * doc/posix-functions/sprintf.texi: Likewise.
49903         * doc/posix-functions/swprintf.texi: Likewise.
49904         * doc/posix-functions/vdprintf.texi: Likewise.
49905         * doc/posix-functions/vfprintf.texi: Likewise.
49906         * doc/posix-functions/vprintf.texi: Likewise.
49907         * doc/posix-functions/vsnprintf.texi: Likewise.
49908         * doc/posix-functions/vsprintf.texi: Likewise.
49909         * doc/glibc-functions/asprintf.texi: Likewise.
49910         * doc/glibc-functions/obstack_printf.texi: Likewise.
49911         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49912         * doc/glibc-functions/vasprintf.texi: Likewise.
49914 2011-09-10  Bruno Haible  <bruno@clisp.org>
49916         nocrash: Add support for native Windows.
49917         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49919 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49920             Bruno Haible  <bruno@clisp.org>
49922         absolute-header, include-next: Add support for MSVC compiler.
49923         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49924         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49925         directory separator in #line directives.
49926         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49927         recognize also backslash as directory separator in #line directives.
49929 2011-09-08  Jim Meyering  <meyering@redhat.com>
49931         maint.mk: mark the post-release commit log with "maint: " prefix
49932         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49933         one-line commit-log summary.
49935 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49936             Bruno Haible  <bruno@clisp.org>
49938         Doc about crypt functions.
49939         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49940         systems.
49941         * doc/posix-functions/encrypt.texi: Likewise.
49942         * doc/posix-functions/setkey.texi: Likewise.
49944 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49946         * lib/gc.h: Fix copyright header.
49948 2011-09-07  Bruno Haible  <bruno@clisp.org>
49950         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49951         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49952         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49954 2011-09-07  Bruno Haible  <bruno@clisp.org>
49956         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49957         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49958         * lib/freopen.c: Likewise.
49959         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49960         * lib/lstat.c: Likewise.
49961         * lib/stat.c: Likewise.
49962         * lib/open.c: Use different syntax for include of <fcntl.h>.
49963         * lib/openat.c: Include fcntl.h again, explicitly.
49965 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49967         parse-datetime: document the newly accepted format
49968         * doc/parse-datetime.texi (Combined date and time of day items):
49969         New section.
49971 2011-09-06  Bruno Haible  <bruno@clisp.org>
49973         acl: Fix a test failure on newer Solaris 10 with ZFS.
49974         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49975         ENOSYS as no ACL.
49976         Reported by Jim Meyering.
49978 2011-09-06  Bruno Haible  <bruno@clisp.org>
49980         acl: Update for AIX >= 5.3 with NFS.
49981         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49982         ENOSYS as no ACL.
49984         acl: Fix a test failure on AIX >= 5.3 with NFS.
49985         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49986         as no ACL.
49988 2011-09-06  Bruno Haible  <bruno@clisp.org>
49990         acl: Fix a test failure on IRIX 6.5 with NFS.
49991         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49992         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49993         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49994         * lib/copy-acl.c (qcopy_acl): Likewise.
49996 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49998         openat: port to AIX 7.1 with large files
49999         AIX 7.1 does a "#define openat open64at" if large files are in use,
50000         so we can't simply #undef openat.  Use the orig_openat trick (similar
50001         to orig_open in lib/open.c) to work around the problem.  Problem
50002         reported by Kevin Brott for GNU tar, in the thread containing
50003         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
50004         * lib/openat.c (__need_system_fcntl_h): Define first.
50005         Include <fcntl.h> and <sys/types.h> before undefining.
50006         (orig_openat) [HAVE_OPENAT]: New inline function.
50007         (openat) [HAVE_OPENAT]: Do not undef.
50008         (rpl_openat): Use orig_openat, not openat.
50010 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
50011             Bruno Haible  <bruno@clisp.org>
50013         acl: Avoid errors on NonStop Kernel.
50014         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
50015         ENOTSUP errors.
50017 2011-09-05  Bruno Haible  <bruno@clisp.org>
50019         acl: Clean up Solaris code.
50020         * lib/acl-internal.h: Remove no-op #if.
50021         * lib/file-has-acl.c: Likewise.
50022         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
50023         * lib/copy-acl.c (qcopy_acl): Likewise.
50025 2011-09-05  Bruno Haible  <bruno@clisp.org>
50027         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
50028         binaries built on the original Solaris 10.
50029         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
50030         trivial.
50032 2011-09-05  Bruno Haible  <bruno@clisp.org>
50034         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50035         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
50036         10.
50037         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
50038         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
50039         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
50040         instead of acl_get, facl_get, acl_set, facl_set.
50042 2011-09-05  Bruno Haible  <bruno@clisp.org>
50044         copy-file: Try unit tests on more file systems.
50045         * tests/test-copy-file-1.sh: New file.
50046         * tests/test-copy-file-2.sh: New file.
50047         * modules/copy-file-tests (Files): Add them.
50048         (Makefile.am): Add them to TESTS.
50050         acl: Try unit tests on more file systems.
50051         * tests/test-file-has-acl-1.sh: New file.
50052         * tests/test-file-has-acl-2.sh: New file.
50053         * tests/test-set-mode-acl-1.sh: New file.
50054         * tests/test-set-mode-acl-2.sh: New file.
50055         * tests/test-copy-acl-1.sh: New file.
50056         * tests/test-copy-acl-2.sh: New file.
50057         * modules/acl-tests (Files): Add them.
50058         (Makefile.am): Add them to TESTS.
50060 2011-09-04  Bruno Haible  <bruno@clisp.org>
50062         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50063         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
50064         10.
50065         (OLD_ALLOW, OLD_DENY): New macros.
50066         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
50067         ACE_ACCESS_ALLOWED_ACE_TYPE.
50068         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
50069         ACE_ACCESS_DENIED_ACE_TYPE.
50070         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
50071         (NEW_ACE_EXECUTE): Fix value.
50072         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
50073         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
50074         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
50075         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
50076         NEW_ACE_SYNCHRONIZE): New macros.
50077         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
50078         instead of acl_fromtext, acl_set, facl_set.
50079         Fixes a coreutils/tests/cp/perm failure.
50081 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
50083         openat: test for fstatat (..., 0) bug
50084         Further testing with tar suggests that fstatat (..., 0)
50085         does not work in general, on AIX 7.1; see
50086         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
50087         So, give up entirely on AIX 7.1's fstatat, and fall back on our
50088         replacement fstatat (which is what older AIX releases were using
50089         anyway).
50090         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
50091         use is now changed to orig_fstatat.  This was probably the right
50092         thing to do anyway.
50093         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
50094         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
50095         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
50096         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
50097         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
50098         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
50099         if the bug is found.
50101         openat: test for fstatat (AT_FDCWD, ..., 0) bug
50102         This tests for another fstatat bug on AIX 7.1:
50103         fstatat (AT_FDCWD, ..., 0) does not work.  See
50104         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
50105         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
50106         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
50107         (rpl_fstatat): Adjust so that it works around either (or both)
50108         bugs if present.
50109         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
50111 2011-09-03  Karl Berry  <karl@gnu.org>
50113         * doc/regex.texi (Character Class Operators): Avoid literal ":"
50114         in index entries.
50116 2011-09-02  Bruno Haible  <bruno@clisp.org>
50118         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
50119         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
50120         values of AR, ARFLAGS, RANLIB.
50121         Reported by John W. Eaton <jwe@gnu.org> for Octave.
50123 2011-09-02  Bruno Haible  <bruno@clisp.org>
50125         Find 'ar' program that fits with --host argument.
50126         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
50128 2011-09-02  Bruno Haible  <bruno@clisp.org>
50130         tests: init.sh: Support any non-GNU diff.
50131         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
50132         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
50133         Solaris 8.
50135 2011-09-02  Bruno Haible  <bruno@clisp.org>
50137         tests: init.sh: work also with any non-GNU diff that supports -u
50138         * tests/init.sh: Relax check for diff -u support.
50139         Rather than checking for GNU diff via --version, simply check
50140         for support for -u itself.  Useful at least on OpenBSD 4.9,
50141         AIX 7.1, IRIX 6.5, and Solaris 10.
50143 2011-09-01  Bruno Haible  <bruno@clisp.org>
50145         strtoimax, strtoumax: Document problem on HP-UX 11.
50146         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
50147         * doc/posix-functions/strtoumax.texi: Likewise.
50149 2011-09-01  Bruno Haible  <bruno@clisp.org>
50151         strtoumax: Avoid link error on OSF/1 with DTK cc.
50152         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
50153         defined as a function.
50154         * modules/strtoumax (Depends-on, configure.ac): Test only whether
50155         strtoumax is defined, not whether it is declared.
50157 2011-09-01  Bruno Haible  <bruno@clisp.org>
50159         strtoimax: Avoid link error on OSF/1 with DTK cc.
50160         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
50161         defined as a function.
50162         * modules/strtoimax (Depends-on, configure.ac): Test only whether
50163         strtoimax is defined, not whether it is declared.
50165 2011-09-01  Bruno Haible  <bruno@clisp.org>
50167         imaxdiv: Avoid link error on OSF/1 with DTK cc.
50168         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
50169         as a function.
50170         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
50171         whether it is declared.
50173 2011-09-01  Bruno Haible  <bruno@clisp.org>
50175         imaxabs: Avoid link error on OSF/1 with DTK cc.
50176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
50177         as a function.
50178         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
50179         whether it is declared.
50181 2011-09-01  Bruno Haible  <bruno@clisp.org>
50183         Tests for module 'strtoumax'.
50184         * modules/strtoumax-tests: New file.
50185         * tests/test-strtoumax.c: New file.
50187         Tests for module 'strtoimax'.
50188         * modules/strtoimax-tests: New file.
50189         * tests/test-strtoimax.c: New file.
50191         Tests for module 'imaxdiv'.
50192         * modules/imaxdiv-tests: New file.
50193         * tests/test-imaxdiv.c: New file.
50195         Tests for module 'imaxabs'.
50196         * modules/imaxabs-tests: New file.
50197         * tests/test-imaxabs.c: New file.
50199 2011-09-01  Bruno Haible  <bruno@clisp.org>
50201         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
50202         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
50203         pthread_create.
50205 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50207         openat: work around AIX 7.1 fstatat issue
50208         This should fix the problem that was not properly fixed
50209         in the previous change, dated 2011-08-30.
50210         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
50211         __need_system_stat_h defined.
50212         (orig_fstatat) [HAVE_FSTATAT]: New function.
50213         (rpl_fstatat): Go back to the old way of doing things,
50214         except call orig_fstatat instead of fstatat.
50215         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
50216         Remove unnecessary check whether fstatat fills in st_size etc.
50218 2011-09-01  Bruno Haible  <bruno@clisp.org>
50220         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
50221         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
50222         just include the system's header.
50224 2011-08-31  Jim Meyering  <meyering@redhat.com>
50226         tests: avoid spurious assertion failure in test-float.c on ppc64
50227         * tests/test-float.c (test_long_double): Comment out an assertion,
50228         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
50229         with gcc-4.4.4.
50231         maint: indent with spaces, not TABs
50232         I need to get in the habit of running gnulib's "make check".
50233         Both of these would have been caught.
50234         * m4/largefile.m4: Indent with spaces, not TABs.
50235         * lib/parse-datetime.y (iso_8601_time): Likewise.
50236         Spotted by Pádraig Brady.
50238         test-parse-datetime.c: accommodate a relatively strict gcc warning
50239         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
50240         to avoid a warning from gcc's -Werror=missing-declarations.
50241         Insert a few spaces-before-funcall-parenthesis.
50243 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
50245         parse-datetime: accept ISO 8601 date and time rep with "T" separator
50246         The parser now accepts ISO 8601 date-time strings with "T" as the
50247         separator.  It has long parsed dates like "2004-02-29 16:21:42"
50248         with a space between the date and time strings.  Now it also parses
50249         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
50250         variants like "2004-02-29T16:21:42.333-07:00"
50251         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
50252         of day representation using the 'T' separator character.
50253         * doc/parse-datetime.texi (General date syntax): replace use of
50254         deprecated --iso-8601 option with --rfc-3339 in example of date
50255         command output formats that can be parsed.
50256         * tests/test-parse-datetime.c (tm_diff): New function, taken from
50257         lib/parse-datetime.y.
50258         (gmt_offset): New function.
50259         (main): Add additional test cases to validate ISO8601 extended
50260         date and time of day parsing.
50262 2011-08-31  Bruno Haible  <bruno@clisp.org>
50264         freopen: Documentation.
50265         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
50266         name.
50267         Reported by Claudio Bley <claudio.bley@gmail.com>.
50269 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
50271         freopen: Don't crash if the filename argument is NULL.
50272         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
50273         NULL.
50275 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50277         openat: work around AIX 7.1 fstatat bug
50278         Problem reported by Kevin Brott for GNU tar, in the thread containing
50279         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
50280         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
50281         FSTATAT_ST_SIZE_ETC_BROKEN.
50282         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
50283         rpl_fstatat.
50284         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
50285         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
50286         AC_CHECK_FUNCS_ONCE for fstatat.
50287         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
50288         fchmodat, mkdirat, openat and unlinkat.
50290 2011-08-30  Bruno Haible  <bruno@clisp.org>
50292         Avoid endless recursions if config.h includes some header files.
50293         * lib/fopen.c (__need_FILE): Define already before including config.h.
50294         * lib/freopen.c (__need_FILE): Likewise.
50295         * lib/open.c (__need_system_fcntl_h): Likewise.
50296         * lib/stat.c (__need_system_sys_stat_h): Likewise.
50297         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
50298         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
50300 2011-08-25  Karl Berry  <karl@gnu.org>
50302         * config/srclist.txt (ylwrap): new try.
50303         * build-aux/ylwrap: new file.
50305 2011-08-23  Bruno Haible  <bruno@clisp.org>
50307         tmpdir: Use a good default directory on native Windows.
50308         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
50309         (P_tmpdir): Default to _P_tmpdir on native Windows.
50310         (path_search): On native Windows, try the value returned by GetTempPath
50311         before trying P_tmpdir.
50312         * modules/tmpdir (Depends-on): Add pathmax.
50313         Suggested by John Darrington <john@darrington.wattle.id.au>.
50315 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
50317         doc: fix typo in README-release
50318         * top/README-release: Capitalize first word of a sentence.
50320 2011-08-19  Jim Meyering  <meyering@redhat.com>
50322         fts: do not exhaust memory when processing million-entry directories
50323         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
50324         directory would require about 256*N bytes of memory.  Thus, it was
50325         easy to construct a directory too large to be processed by any of
50326         those tools.  With this change, fts' maximum memory utilization is
50327         now limited to around 30MB.
50328         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50329         (fts_read): When we've processed the final entry (i.e., when
50330         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50331         using the parent entry to read any remaining entries.  Dispatch
50332         depending on what fts_build returns:
50333         - NULL+stop, aka failure: stop
50334         - NULL otherwise: move up in the dir hierarchy
50335         - non-NULL: handle this new entry
50336         (fts_build): Declare and use new local, continue_readdir.
50337         Prepare to be called from fts_read, when the entries
50338         from a partially-read directory have just been exhausted.
50339         In that case, we'll skip the opendir and instead use the parent's
50340         fts_dirp and derive dir_fd from that.
50341         Finally, in the readdir loop, if we read max_entries entries,
50342         exit the loop ensuring *not* to call closedir.  This is required
50343         so that fts_dirp can be reused on a subsequent call.
50344         Prompted by Ben England's report of memory exhaustion in find
50345         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50347         maint: fts: move decl of `dp' down into while loop; split a long line
50348         * lib/fts.c (fts_build): No semantic change.
50350         fts: add/use new struct member, fts_dirp
50351         We are about to use this to manage any directory with
50352         too many entries to read all of them into memory at once.
50353         To do that, we'll need to save the DIR* pointer in each
50354         affected FTSENT struct.
50355         * lib/fts_.h: Include <dirent.h>.
50356         (struct FTSENT) [fts_dirp]: New member.
50357         * lib/fts.c (closedir_and_clear): Define.
50358         Use it in place of closedir so that we are sure to
50359         clear the new fts_dirp member when done with it.
50360         (fts_alloc): Initialize the new member.
50361         (fts_lfree): Free, if needed.
50363         maint: fts: give __opendir2 a new parameter and rename
50364         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50365         than surreptitiously using sole caller's "dir_fd".
50366         (fts_opendir): Rename from __opendir2.
50368         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50369         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50371         maint: fts.c: correct off-by-one indentation
50372         * lib/fts.c (fts_build): Correct indentation, change style
50373         of a couple of block comments, and bracing style.
50375         maint: fts.c: move __opendir2 #define "up" out of function body
50376         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50378         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50379         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50380         out for a long time and besides was useful only on BSD systems.
50382 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50384         regex: port to Stratus OpenVOS
50385         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50386         define to empty, rather than attempting nonportable optimizations.
50387         Problem reported by Paul Green in:
50388         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50389         and fix suggested by Eric Blake in:
50390         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50392 2011-08-17  Eric Blake  <eblake@redhat.com>
50394         getcwd: fix test failures on mingw
50395         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50396         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50397         test if long directory cannot be created, and allow mingw errno.
50399         getcwd-lgpl: fix m4 to match relaxed test for BSD
50400         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50401         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50402         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50403         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50404         signature problem.
50406         getcwd: fix compilation on mingw64
50407         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50408         getcwd.
50409         Reported by Marc-André Lureau.
50411         pipe2: silence compiler warning
50412         * lib/pipe2.c (pipe2): Hide label if it is not used.
50414 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50416         relocatable-prog: fix link error
50417         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50418         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50419         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50420         into modules/relocatable-lib without noticing that
50421         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50422         also needs to build relocatable.c.
50424 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50426         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50428         shell code: it contained a 'break' that was not in a loop.
50429         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50430         via a shell-language loop; this may have been true in old Autoconf
50431         versions, but it's not true in Autoconf 2.68.  I found this bug
50432         when testing coreutils git on Solaris 8, whose shell complains
50433         about the syntax error.
50435 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50437         * lib/base64.c: Fix comment to reference RFC 4648.
50438         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50439         <gvtulder@gmail.com>.
50441 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50443         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50445         po/Makefile.in.in: fix make -q problem
50446         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50447         rule, since there's no file named 'check-macro-version' and its
50448         use as a file breaks make -q.
50449         (all): Don't depend on check-macro-version.
50450         (CHECK_MACRO_VERSION): New macro.
50451         (stamp-po): Use it.
50453         configmake: fix make -q problem
50454         * modules/configmake (configmake.h): Update configmake.h's time stamp
50455         even if the file does not change.  Otherwise, 'make -q' fails.
50456         Problem reported by Simon Josefsson in
50457         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50459 2011-08-11  Jim Meyering  <meyering@redhat.com>
50461         git-version-gen: correct the advice in a comment
50462         * build-aux/git-version-gen: Correct comment.
50463         Don't recommend to list .tarball-version in .gitignore.
50465 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50467         base64: fix off-by-one buffer size bug
50468         Problem and (trivial) fix reported by Gijs van Tulder in
50469         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50470         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50471         * tests/test-base64.c (main): Catch the bug.
50473 2011-08-10  Eric Blake  <eblake@redhat.com>
50475         closein: correct comments
50476         * lib/closein.c (close_stdin): Improve comments.
50478 2011-08-09  Bruno Haible  <bruno@clisp.org>
50480         More tests for 'fseeko'.
50481         * tests/test-fseeko3.c: New file, from Eric Blake.
50482         * tests/test-fseeko3.sh: New file.
50483         * modules/fseeko-tests (Files): Add them.
50484         (TESTS): Add test-fseeko3.sh.
50485         (check_PROGRAMS): Add test-fseeko3.
50487 2011-08-09  Eric Blake  <eblake@redhat.com>
50489         fseeko: remove unneeded hack
50490         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50492         fseeko: fix bug on glibc
50493         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50494         Reported by John W. Eaton.
50496 2011-08-08  Bruno Haible  <bruno@clisp.org>
50498         unictype/base: Fix interoperability with preinstalled libunistring.
50499         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50500         Reported by Simon Josefsson.
50502 2011-08-08  Bruno Haible  <bruno@clisp.org>
50504         iswblank: Detect declaration correctly.
50505         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50506         AC_CHECK_DECLS invocation.
50508 2011-08-08  Bruno Haible  <bruno@clisp.org>
50510         tcgetsid: Detect declaration correctly.
50511         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50512         AC_CHECK_DECLS invocation.
50513         Reported by Simon Josefsson.
50515 2011-08-08  Eric Blake  <eblake@redhat.com>
50517         largefile: fix typo that regressed large file support
50518         * modules/largefile (configure.ac-early): Fix section name.
50520 2011-08-06  Karl Berry  <karl@gnu.org>
50522         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50523         a separate module.
50525 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50527         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50528         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50529         get prototype for free.
50531 2011-08-04  Bruno Haible  <bruno@clisp.org>
50533         Tests for module 'pathmax'.
50534         * modules/pathmax-tests: New file.
50535         * tests/test-pathmax.c: New file.
50537         canonicalize-lgpl: Support larger filenames on the Hurd.
50538         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50539         Reported by Paul Eggert.
50541         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50542         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50543         * lib/chdir-long.h: Include pathmax.h.
50544         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50545         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50546         (PATH_MAX): Remove code that is done by pathmax.h.
50547         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50548         * lib/tmpfile.c: Add a comment.
50549         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50550         * modules/chdir-long (Depends-on): Add pathmax.
50551         * modules/getcwd (Depends-on): Add pathmax.
50552         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50553         is not defined.
50554         * doc/posix-headers/limits.texi: Mention the pathmax module.
50555         * NEWS: Mention the change.
50557 2011-08-02  Bruno Haible  <bruno@clisp.org>
50559         pthread_sigmask: Actually use results of gl_THREADLIB.
50560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50561         gl_THREADLIB, not gl_[]THREADLIB.
50562         Reported by Eric Blake.
50564 2011-08-02  Jim Meyering  <meyering@redhat.com>
50566         maint.mk: relax the default _gl_TS_function_match regexp
50567         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50568         space between function name and "(" in an "extern" declaration.
50569         That would fail to match a decl with no space there: extern void foo();
50571 2011-07-31  Iain Nicol  <iain@thenicols.net>
50573         git-version-gen: document that EXTRA_DIST must include .version
50574         * build-aux/git-version-gen: In the how-to-use comment, document
50575         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50576         will fail when run from an unpacked distribution tarball.
50578 2011-08-01  Bruno Haible  <bruno@clisp.org>
50580         wctype-h: Fix last change.
50581         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50582         REPLACE_TOWLOWER to 0.
50583         Reported by Sam Steingold <sds@gnu.org>.
50585 2011-07-31  Bruno Haible  <bruno@clisp.org>
50587         frexpl: Update autoconf test.
50588         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50589         according to changes of 2011-06-20.
50591 2011-07-31  Bruno Haible  <bruno@clisp.org>
50593         sys_utsname: Add support for Minix.
50594         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50595         <sys/utsname.h>.
50596         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50597         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50599 2011-07-31  Bruno Haible  <bruno@clisp.org>
50601         strings: Add support for Minix.
50602         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50603         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50604         * doc/posix-headers/strings.texi: Document the Minix problem.
50606 2011-07-31  Bruno Haible  <bruno@clisp.org>
50608         wctype-h: Add support for Minix.
50609         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50610         REPLACE_TOWLOWER.
50611         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50612         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50613         REPLACE_ISWCNTRL.
50615 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50617         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50618         This is a performance improvement for 64-bit hosts: it causes the
50619         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50621 2011-07-31  Bruno Haible  <bruno@clisp.org>
50623         stdioext: Add support for Minix.
50624         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50625         * lib/fpurge.c (fpurge): Likewise.
50626         * lib/freadahead.c (freadahead): Likewise.
50627         * lib/freadable.c (freadable): Likewise.
50628         * lib/freading.c (freading): Likewise.
50629         * lib/freadptr.c (freadptr): Likewise.
50630         * lib/freadseek.c (freadptrinc): Likewise.
50631         * lib/fseeko.c (rpl_fseeko): Likewise.
50632         * lib/fseterr.c (fseterr): Likewise.
50633         * lib/fwritable.c (fwritable): Likewise.
50634         * lib/fwriting.c (fwriting): Likewise.
50635         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50636         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50638 2011-07-31  Bruno Haible  <bruno@clisp.org>
50640         errno: Port to Minix.
50641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50642         ECONNABORTED are defined.
50643         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50644         GNULIB_defined_ECONNABORTED): New macros.
50645         * lib/strerror-override.h (strerror_override): Test also
50646         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50647         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50648         ECONNABORTED.
50649         * doc/posix-headers/errno.texi: Mention the Minix problem.
50651 2011-07-31  Bruno Haible  <bruno@clisp.org>
50653         Work around declaration collisions on Minix.
50654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50655         defined, set REPLACE_MBSINIT.
50656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50657         defined, set REPLACE_MBRTOWC.
50658         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50659         set REPLACE_MBRLEN.
50660         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50661         defined, set REPLACE_MBSRTOWCS.
50662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50663         defined, set REPLACE_WCRTOMB.
50664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50665         defined, set REPLACE_WCSRTOMBS.
50667 2011-07-31  Bruno Haible  <bruno@clisp.org>
50669         Add support for Minix with ACK compiler.
50670         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50671         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50672         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50674 2011-07-31  Bruno Haible  <bruno@clisp.org>
50676         Documentation about Minix.
50677         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50678         * doc/glibc-headers/*.texi: Likewise.
50679         * doc/posix-functions/*.texi: Likewise.
50680         * doc/glibc-functions/*.texi: Likewise.
50682 2011-07-31  Bruno Haible  <bruno@clisp.org>
50684         snippet/warn-on-use: Fix indentation.
50685         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50687 2011-07-25  Jim Meyering  <meyering@redhat.com>
50689         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50690         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50691         commands.
50693 2011-07-27  Jim Meyering  <meyering@redhat.com>
50695         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50696         * top/maint.mk (gl_extract_significant_defines_): Now that
50697         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50698         gnulib/lib/signal.in.h, and now that we recommend to
50699         define-if-undefined those two symbols in application code,
50700         we must filter them out of the "significant" list.
50701         This avoids a "make syntax-check" failure in coreutils.
50703 2011-07-26  Eric Blake  <eblake@redhat.com>
50705         warnings: add comments about previous patch
50706         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50707         * m4/include_next.m4: Likewise.
50708         * m4/warn-on-use.m4: Likewise.
50709         * m4/warnings.m4: Likewise, and simplify use.
50710         Suggested by Stefano Lattarini.
50712         include-next, warnings: support older autoconf
50713         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50714         AS_VAR_PUSHDEF in a way that works with older autoconf.
50715         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50716         Reported by Daniel P. Berrange.
50718 2011-07-25  Bruno Haible  <bruno@clisp.org>
50720         fseek, ftell: Fix doc.
50721         * doc/posix-functions/fseek.texi: Reword statement about
50722         AC_SYS_LARGEFILE.
50723         * doc/posix-functions/ftell.texi: Likewise.
50725 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50726             Bruno Haible  <bruno@clisp.org>
50728         Add dependencies to the 'largefile' module.
50729         * modules/fopen (Depends-on): Add 'largefile'.
50730         * modules/freopen (Depends-on): Likewise.
50731         * modules/fseeko (Depends-on): Likewise.
50732         * modules/ftello (Depends-on): Likewise.
50733         * modules/glob (Depends-on): Likewise.
50734         * modules/lseek (Depends-on): Likewise.
50735         * modules/lstat (Depends-on): Likewise.
50736         * modules/mkostemp (Depends-on): Likewise.
50737         * modules/mkostemps (Depends-on): Likewise.
50738         * modules/mkstemp (Depends-on): Likewise.
50739         * modules/mkstemps (Depends-on): Likewise.
50740         * modules/open (Depends-on): Likewise.
50741         * modules/openat (Depends-on): Likewise.
50742         * modules/pread (Depends-on): Likewise.
50743         * modules/pwrite (Depends-on): Likewise.
50744         * modules/scandir (Depends-on): Likewise.
50745         * modules/stat (Depends-on): Likewise.
50746         * modules/tmpfile (Depends-on): Likewise.
50747         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50748         since the containing module now depends on the largefile module.
50749         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50750         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50751         off_t is fixed by gnulib.
50752         * doc/posix-functions/freopen.texi: Likewise.
50753         * doc/posix-functions/fseeko.texi: Likewise.
50754         * doc/posix-functions/fstatat.texi: Likewise.
50755         * doc/posix-functions/ftello.texi: Likewise.
50756         * doc/posix-functions/glob.texi: Likewise.
50757         * doc/posix-functions/lseek.texi: Likewise.
50758         * doc/posix-functions/lstat.texi: Likewise.
50759         * doc/posix-functions/mkstemp.texi: Likewise.
50760         * doc/posix-functions/open.texi: Likewise.
50761         * doc/posix-functions/openat.texi: Likewise.
50762         * doc/posix-functions/pread.texi: Likewise.
50763         * doc/posix-functions/pwrite.texi: Likewise.
50764         * doc/posix-functions/scandir.texi: Likewise.
50765         * doc/posix-functions/stat.texi: Likewise.
50766         * doc/posix-functions/tmpfile.texi: Likewise.
50767         * doc/glibc-functions/mkostemp.texi: Likewise.
50768         * doc/glibc-functions/mkostemps.texi: Likewise.
50769         * doc/glibc-functions/mkstemps.texi: Likewise.
50771 2011-07-25  Bruno Haible  <bruno@clisp.org>
50773         fcntl: Move AC_LIBOBJ invocation to module description.
50774         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50775         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50777         fcntl: Remove call-in from fchdir.m4.
50778         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50781         dup3: Remove potential call-in from fchdir.m4.
50782         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50785         dup2: Move AC_LIBOBJ invocation to module description.
50786         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50787         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50788         Don't invoke AC_LIBOBJ.
50789         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50791         dup2: Remove call-in from fchdir.m4.
50792         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50795         fclose: Move AC_LIBOBJ invocation to module description.
50796         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50797         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50798         to 1.
50799         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50801         fclose: Remove call-in from close.m4.
50802         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50803         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50805         close: Move AC_LIBOBJ invocation to module description.
50806         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50807         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50808         1.
50809         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50811         close: Remove call-in from fchdir.m4.
50812         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50815         open: Move AC_LIBOBJ invocation to module description.
50816         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50817         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50818         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50820         open: Remove call-in from fchdir.m4.
50821         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50824         fchdir: Start to remove gl_REPLACE_* idiom.
50825         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50826         (gl_FUNC_FCHDIR): Invoke it.
50828 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50830         * lib/ftell.c (ftell): Comment out cast.
50832         close: use gl_REPLACE_FCLOSE only if defined
50833         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50834         is defined.  The close module doesn't depend on the fclose module
50835         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50836         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50837         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50839 2011-07-24  Jim Meyering  <meyering@redhat.com>
50841         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50842         * tests/test-select.h (test_function): Declare as "static".
50844 2011-07-24  Bruno Haible  <bruno@clisp.org>
50846         doc: Mention the effects of AC_SYS_LARGEFILE.
50847         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50848         on this function.
50849         * doc/posix-functions/aio_error.texi: Likewise.
50850         * doc/posix-functions/aio_fsync.texi: Likewise.
50851         * doc/posix-functions/aio_read.texi: Likewise.
50852         * doc/posix-functions/aio_return.texi: Likewise.
50853         * doc/posix-functions/aio_suspend.texi: Likewise.
50854         * doc/posix-functions/aio_write.texi: Likewise.
50855         * doc/posix-functions/fgetpos.texi: Likewise.
50856         * doc/posix-functions/fopen.texi: Likewise.
50857         * doc/posix-functions/freopen.texi: Likewise.
50858         * doc/posix-functions/fsetpos.texi: Likewise.
50859         * doc/posix-functions/fstatvfs.texi: Likewise.
50860         * doc/posix-functions/ftruncate.texi: Likewise.
50861         * doc/posix-functions/ftw.texi: Likewise.
50862         * doc/posix-functions/getrlimit.texi: Likewise.
50863         * doc/posix-functions/glob.texi: Likewise.
50864         * doc/posix-functions/lio_listio.texi: Likewise.
50865         * doc/posix-functions/lockf.texi: Likewise.
50866         * doc/posix-functions/mkstemp.texi: Likewise.
50867         * doc/posix-functions/mmap.texi: Likewise.
50868         * doc/posix-functions/nftw.texi: Likewise.
50869         * doc/posix-functions/openat.texi: Likewise.
50870         * doc/posix-functions/opendir.texi: Likewise.
50871         * doc/posix-functions/posix_fadvise.texi: Likewise.
50872         * doc/posix-functions/posix_fallocate.texi: Likewise.
50873         * doc/posix-functions/pread.texi: Likewise.
50874         * doc/posix-functions/pwrite.texi: Likewise.
50875         * doc/posix-functions/readdir.texi: Likewise.
50876         * doc/posix-functions/readdir_r.texi: Likewise.
50877         * doc/posix-functions/rewinddir.texi: Likewise.
50878         * doc/posix-functions/scandir.texi: Likewise.
50879         * doc/posix-functions/seekdir.texi: Likewise.
50880         * doc/posix-functions/setrlimit.texi: Likewise.
50881         * doc/posix-functions/statvfs.texi: Likewise.
50882         * doc/posix-functions/telldir.texi: Likewise.
50883         * doc/posix-functions/tmpfile.texi: Likewise.
50884         * doc/posix-functions/truncate.texi: Likewise.
50885         * doc/glibc-functions/fallocate.texi: Likewise.
50886         * doc/glibc-functions/fstatfs.texi: Likewise.
50887         * doc/glibc-functions/fts_children.texi: Likewise.
50888         * doc/glibc-functions/fts_read.texi: Likewise.
50889         * doc/glibc-functions/getdirentries.texi: Likewise.
50890         * doc/glibc-functions/mkostemp.texi: Likewise.
50891         * doc/glibc-functions/mkostemps.texi: Likewise.
50892         * doc/glibc-functions/mkstemps.texi: Likewise.
50893         * doc/glibc-functions/preadv.texi: Likewise.
50894         * doc/glibc-functions/pwritev.texi: Likewise.
50895         * doc/glibc-functions/sendfile.texi: Likewise.
50896         * doc/glibc-functions/statfs.texi: Likewise.
50898 2011-07-24  Bruno Haible  <bruno@clisp.org>
50900         doc: Fix typo.
50901         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50903 2011-07-24  Bruno Haible  <bruno@clisp.org>
50905         doc: Mention fsusage.
50906         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50908 2011-07-24  Bruno Haible  <bruno@clisp.org>
50910         doc: Mention new glibc headers and functions.
50911         * doc/glibc-headers/gshadow.texi: New file.
50912         * doc/glibc-functions/endsgent.texi: New file.
50913         * doc/glibc-functions/fgetsgent.texi: New file.
50914         * doc/glibc-functions/fgetsgent_r.texi: New file.
50915         * doc/glibc-functions/getsgent.texi: New file.
50916         * doc/glibc-functions/getsgent_r.texi: New file.
50917         * doc/glibc-functions/getsgnam.texi: New file.
50918         * doc/glibc-functions/getsgnam_r.texi: New file.
50919         * doc/glibc-functions/putsgent.texi: New file.
50920         * doc/glibc-functions/setsgent.texi: New file.
50921         * doc/glibc-functions/sgetsgent.texi: New file.
50922         * doc/glibc-functions/sgetsgent_r.texi: New file.
50923         * doc/glibc-functions/malloc_info.texi: New file.
50924         * doc/glibc-functions/preadv.texi: New file.
50925         * doc/glibc-functions/pwritev.texi: New file.
50926         * doc/glibc-functions/register_printf_modifier.texi: New file.
50927         * doc/glibc-functions/register_printf_specifier.texi: New file.
50928         * doc/glibc-functions/register_printf_type.texi: New file.
50929         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50930         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50931         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50932         * doc/glibc-functions/pthread_getname_np.texi: New file.
50933         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50934         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50935         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50936         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50937         * doc/glibc-functions/pthread_setname_np.texi: New file.
50938         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50939         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50940         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50941         * doc/glibc-functions/qsort_r.texi: New file.
50942         * doc/glibc-functions/quick_exit.texi: New file.
50943         * doc/glibc-functions/syncfs.texi: New file.
50944         * doc/gnulib.texi: Include them.
50945         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50946         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50947         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50948         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50949         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50950         * doc/glibc-functions/execvpe.texi: Likewise.
50952 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50954         ftell: don't include <unistd.h>
50955         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50956         guaranteed to define off_t, and the ftell module depends on the
50957         stdio module.
50959         ftell: do not assume wraparound signed arithmetic
50960         * lib/ftell.c: Include <limits.h>.
50961         (ftell): Don't assume wraparound signed arithmetic.
50963 2011-07-24  Bruno Haible  <bruno@clisp.org>
50965         close: No longer depend on module 'fclose'.
50966         * modules/close (Depends-on): Remove fclose.
50967         * NEWS: Mention the change.
50968         Suggested by Sam Steingold <sds@gnu.org>.
50970 2011-07-24  Bruno Haible  <bruno@clisp.org>
50972         fsusage: Enable large volume support on AIX >= 5.2.
50973         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50974         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50975         instead of STAT_STATVFS.
50976         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50978         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50979         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50980         f_blocks field only on MacOS X.
50982         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50984         * modules/fsusage (Depends-on): Add largefile.
50986 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50988         * README: Modernize discussion of signed integers.
50989         Assuming overflow wraparound is no longer safe.
50990         Mention ones' complement and signed magnitude.
50992 2011-07-22  Bruno Haible  <bruno@clisp.org>
50994         select tests, pselect tests: Refactor.
50995         * tests/test-select.h: New file, extracted from tests/test-select.c.
50996         (select_fn): New type.
50997         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50998         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50999         test_pipe): Add my_select argument.
51000         (test_function): Renamed from main. Add my_select argument.
51001         * tests/test-select.c: Move most code to tests/test-select.h. Include
51002         test-select.h.
51003         * modules/select-tests (Files): Add tests/test-select.h.
51004         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
51005         (my_select, main): New functions.
51006         * modules/pselect-tests (Files): Add tests/test-select.h,
51007         tests/macros.h, tests/signature.h.
51008         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
51009         (configure.ac): Check for <sys/wait.h>.
51011 2011-07-22  Bruno Haible  <bruno@clisp.org>
51013         sys_select tests: Check the signature of FD_*.
51014         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
51015         signature tests from here...
51016         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
51017         here.
51018         * modules/sys_select-tests (Files): Add tests/signature.h.
51020 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51022         largefile: new module, replacing large-inode
51023         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
51024         * MODULES.html.sh: Add largefile, remove large-inode.
51025         * modules/largefile, m4/largefile.m4: New files.
51026         * modules/large-inode, m4/large-inode.m4: Remove.
51028         fsusage: port to MacOS X 10.7 with 4 TiB file systems
51029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
51030         implementations that use only 32 bits to count blocks.
51031         On typical hosts with 1024-byte blocks, this fails with file
51032         systems as small as 4 TiB.  Problem reported by Herb Wartens
51033         <http://debbugs.gnu.org/9140> and this should also fix a similar
51034         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
51036         large-inode: New module
51037         * MODULES.html.sh: Add it.
51038         * modules/large-inode, m4/large-inode.m4: New files.
51040         extensions: Enable extensions on MacOS X 10.5 and later.
51041         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
51043 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
51045         file-has-acl: use acl_extended_file_nofollow if available
51046         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
51047         (acl_extended_file): New macro.
51048         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
51049         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
51051 2011-07-21  Bruno Haible  <bruno@clisp.org>
51053         Declare system functions in a way that works with C++.
51054         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
51055         declare fdopendir as extern "C".
51056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
51057         declare frexpl as extern "C".
51058         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
51059         declare gai_strerror as extern "C".
51060         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
51061         programs, declare gai_strerror as extern "C".
51062         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
51063         declare getlogin_r as extern "C".
51064         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
51065         as extern "C".
51066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
51067         declare ldexpl as extern "C".
51068         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
51069         as extern "C".
51070         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
51071         program, declare getmntinfo as extern "C".
51072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
51073         stpncpy as extern "C".
51074         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
51075         program, declare __xpg_strerror_r as extern "C".
51076         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
51077         strndup as extern "C".
51078         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
51079         declare memset and bzero as extern "C".
51080         Reported by Sam Steingold <sds@gnu.org>.
51082 2011-07-12  Jim Meyering  <meyering@redhat.com>
51084         maint.mk: prohibit inclusion of "verify.h" without use
51085         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
51087 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51089         timer-time: A new module to check for timer_settime()
51090         * m4/timer_time.m4: Check for the posix function.
51091         * modules/timer-time: Add the new module.
51092         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
51093         Mention it.
51095 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
51096             Bruno Haible  <bruno@clisp.org>
51098         pthread_sigmask: assume POSIX threads if --avoid=threadlib
51099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
51100         not defined, assume POSIX threads and look for pthread_sigmask in
51101         $LIBS, without changing $CPPFLAGS.
51103 2011-07-19  Bruno Haible  <bruno@clisp.org>
51105         strstr: Update cross-compilation guess.
51106         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
51107         CPUs, guess no, in view of glibc
51108         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
51109         Suggested by Eric Blake. Reported by Reuben Thomas.
51111 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51113         getopt-gnu: suppress core dumps from detection code
51114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
51115         to suppress core dumps that may well occur on glibc systems.
51116         * modules/getopt-gnu: Depend on nocrash.
51118 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51120         pthread_sigmask: ensure usleep is declared
51121         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
51122         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
51124 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51126         doc: Document NonStop portability issues.
51127         * doc/posix-functions/sigaction.texi (sigaction):
51128         * doc/posix-headers/signal.texi (signal.h):
51129         Document NonStop.  See Joachim Schmitz in
51130         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
51132 2011-07-15  Bruno Haible  <bruno@clisp.org>
51134         ffsl, ffsll: Avoid unportable behaviour.
51135         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
51137 2011-07-15  Bruno Haible  <bruno@clisp.org>
51139         ffs: More tests.
51140         * tests/test-ffs.c (NBITS): New macro.
51141         (main): Add more tests.
51142         * tests/test-ffsl.c (NBITS): New macro.
51143         (main): Add more tests.
51144         * tests/test-ffsll.c (NBITS): New macro.
51145         (main): Add more tests.
51147 2011-07-15  Eric Blake  <eblake@redhat.com>
51149         ffsl, ffsll: new modules
51150         * modules/ffsl: New file.
51151         * modules/ffsll: Likewise.
51152         * m4/ffsl.m4: Likewise.
51153         * m4/ffsll.m4: Likewise.
51154         * lib/ffsl.c: Likewise.
51155         * lib/ffsl.h: Likewise.
51156         * lib/ffsll.c: Likewise.
51157         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
51158         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
51159         * modules/string (Makefile.am): Substitute witnesses.
51160         * lib/strings.in.h (ffsl, ffsll): Declare.
51161         * modules/ffsl-tests: New test file.
51162         * modules/ffsll-tests: Likewise.
51163         * tests/test-ffsl.c: Likewise.
51164         * tests/test-ffsll.c: Likewise.
51165         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51166         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
51167         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
51169         ffs: fix m4 prerequisite
51170         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
51172         ffs: avoid undefined behavior
51173         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
51174         * tests/test-ffs.c (naive, main): Avoid signed shifts.
51175         Reported by Bruno Haible.
51177 2011-07-12  Bruno Haible  <bruno@clisp.org>
51179         pthread_sigmask: Rely on module 'threadlib'.
51180         * modules/pthread_sigmask (Depends-on): Add threadlib.
51181         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
51182         is defined.
51184 2011-07-12  Bruno Haible  <bruno@clisp.org>
51186         regex: Depend on module 'strcase'.
51187         * modules/regex (Depends-on): Add strcase, for strcasecmp().
51189 2011-07-12  Jim Meyering  <meyering@redhat.com>
51191         warn-on-use: fix typo in file name
51192         * modules/snippet/warn-on-use (Files): Correct file name:
51193         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
51195 2011-07-12  Bruno Haible  <bruno@clisp.org>
51197         strings: Document module.
51198         * doc/posix-headers/strings.texi: Mention module 'strings'.
51200 2011-07-12  Bruno Haible  <bruno@clisp.org>
51202         Rename module '_Noreturn' to 'snippet/_Noreturn'.
51203         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
51204         (Files, Makefile.am): Update.
51205         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
51206         * modules/stdlib (Depends-on): Update.
51208 2011-07-12  Bruno Haible  <bruno@clisp.org>
51210         * NEWS: Mention the changes.
51212         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
51213         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
51214         (Files, Makefile.am): Update.
51215         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
51216         * modules/arpa_inet (Depends-on): Update.
51217         * modules/ctype (Depends-on): Update.
51218         * modules/dirent (Depends-on): Update.
51219         * modules/fcntl-h (Depends-on): Update.
51220         * modules/glob (Depends-on): Update.
51221         * modules/iconv-h (Depends-on): Update.
51222         * modules/inttypes-incomplete (Depends-on): Update.
51223         * modules/langinfo (Depends-on): Update.
51224         * modules/locale (Depends-on): Update.
51225         * modules/math (Depends-on): Update.
51226         * modules/netdb (Depends-on): Update.
51227         * modules/poll-h (Depends-on): Update.
51228         * modules/pty (Depends-on): Update.
51229         * modules/search (Depends-on): Update.
51230         * modules/signal (Depends-on): Update.
51231         * modules/spawn (Depends-on): Update.
51232         * modules/stdio (Depends-on): Update.
51233         * modules/stdlib (Depends-on): Update.
51234         * modules/string (Depends-on): Update.
51235         * modules/strings (Depends-on): Update.
51236         * modules/sys_file (Depends-on): Update.
51237         * modules/sys_ioctl (Depends-on): Update.
51238         * modules/sys_select (Depends-on): Update.
51239         * modules/sys_socket (Depends-on): Update.
51240         * modules/sys_stat (Depends-on): Update.
51241         * modules/sys_time (Depends-on): Update.
51242         * modules/sys_times (Depends-on): Update.
51243         * modules/sys_utsname (Depends-on): Update.
51244         * modules/sys_wait (Depends-on): Update.
51245         * modules/termios (Depends-on): Update.
51246         * modules/time (Depends-on): Update.
51247         * modules/unistd (Depends-on): Update.
51248         * modules/wchar (Depends-on): Update.
51249         * modules/wctype-h (Depends-on): Update.
51250         * MODULES.html.sh (Support for building libraries and executables):
51251         Update.
51253         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
51254         * modules/snippet/unused-parameter: Renamed from
51255         modules/unused-parameter.
51256         (Files, Makefile.am): Update.
51257         * build-aux/snippet/unused-parameter.h: Renamed from
51258         build-aux/unused-parameter.h.
51259         * modules/selinux-h (Depends-on): Update.
51260         * modules/unistr/base (Depends-on): Update.
51261         * MODULES.html.sh (Core language properties): Update.
51263         Rename module 'link-warning' to 'snippet/link-warning'.
51264         * modules/snippet/link-warning: Renamed from modules/link-warning.
51265         (Files, Makefile.am): Update.
51266         * build-aux/snippet/link-warning.h: Renamed from
51267         build-aux/link-warning.h.
51268         * MODULES.html.sh (Support for building libraries and executables):
51269         Update.
51271         Rename module 'c++defs' to 'snippet/c++defs'.
51272         * modules/snippet/c++defs: Renamed from modules/c++defs.
51273         (Files, Makefile.am): Update.
51274         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
51275         * modules/arpa_inet (Depends-on): Update.
51276         * modules/ctype (Depends-on): Update.
51277         * modules/dirent (Depends-on): Update.
51278         * modules/fcntl-h (Depends-on): Update.
51279         * modules/glob (Depends-on): Update.
51280         * modules/iconv-h (Depends-on): Update.
51281         * modules/langinfo (Depends-on): Update.
51282         * modules/locale (Depends-on): Update.
51283         * modules/math (Depends-on): Update.
51284         * modules/netdb (Depends-on): Update.
51285         * modules/poll-h (Depends-on): Update.
51286         * modules/pty (Depends-on): Update.
51287         * modules/search (Depends-on): Update.
51288         * modules/signal (Depends-on): Update.
51289         * modules/spawn (Depends-on): Update.
51290         * modules/stdio (Depends-on): Update.
51291         * modules/stdlib (Depends-on): Update.
51292         * modules/string (Depends-on): Update.
51293         * modules/strings (Depends-on): Update.
51294         * modules/sys_ioctl (Depends-on): Update.
51295         * modules/sys_select (Depends-on): Update.
51296         * modules/sys_socket (Depends-on): Update.
51297         * modules/sys_stat (Depends-on): Update.
51298         * modules/sys_time (Depends-on): Update.
51299         * modules/sys_wait (Depends-on): Update.
51300         * modules/termios (Depends-on): Update.
51301         * modules/time (Depends-on): Update.
51302         * modules/unistd (Depends-on): Update.
51303         * modules/wchar (Depends-on): Update.
51304         * modules/wctype-h (Depends-on): Update.
51306         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
51307         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
51308         (Files, Makefile.am): Update.
51309         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
51310         * modules/argv-iter (Depends-on): Update.
51311         * modules/arpa_inet (Depends-on): Update.
51312         * modules/dirent (Depends-on): Update.
51313         * modules/fcntl-h (Depends-on): Update.
51314         * modules/fnmatch (Depends-on): Update.
51315         * modules/getopt-posix (Depends-on): Update.
51316         * modules/glob (Depends-on): Update.
51317         * modules/iconv-h (Depends-on): Update.
51318         * modules/inttypes-incomplete (Depends-on): Update.
51319         * modules/locale (Depends-on): Update.
51320         * modules/math (Depends-on): Update.
51321         * modules/netdb (Depends-on): Update.
51322         * modules/search (Depends-on): Update.
51323         * modules/signal (Depends-on): Update.
51324         * modules/spawn (Depends-on): Update.
51325         * modules/stdio (Depends-on): Update.
51326         * modules/stdlib (Depends-on): Update.
51327         * modules/string (Depends-on): Update.
51328         * modules/strings (Depends-on): Update.
51329         * modules/sys_socket (Depends-on): Update.
51330         * modules/sys_stat (Depends-on): Update.
51331         * modules/sys_time (Depends-on): Update.
51332         * modules/sys_times (Depends-on): Update.
51333         * modules/sys_utsname (Depends-on): Update.
51334         * modules/time (Depends-on): Update.
51335         * modules/unistd (Depends-on): Update.
51336         * modules/wchar (Depends-on): Update.
51337         * MODULES.html.sh (Support for building libraries and executables):
51338         Update.
51340 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51342         Improvements on _Noreturn and related modules.
51344         modules/_Exit-tests: test _Noreturn too
51345         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51346         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51347         (main): Use them.
51349         stdnoreturn, stdnoreturn-tests: remove modules
51350         They're not needed here and a bit premature for use elsewhere.  See
51351         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51352         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51353         * tests/test-stdnoreturn.c: Remove files.
51354         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51355         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51356         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51357         and using noreturn.
51358         * modules/openat, modules/sigpipe-die, modules/xalloc:
51359         * modules/xmemdup0, modules/xstrtol:
51360         Remove dependency on stdnoreturn.
51362         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51363         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51364         Reparenthesize to avoid GCC warning.
51365         Support Microsoft's syntax.
51366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51368         _Noreturn-tests: remove module
51369         * modules/_Noreturn-tests: Remove.
51370         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51371         * tests/test-_Noreturn.c: Remove.
51372         * tests/test-stdnoreturn.c: Merge from the old
51373         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51375 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51377         _Noreturn, stdnoreturn, and related modules.
51379         * top/maint.mk: Adjust to new noreturn support.
51380         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51381         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51383         xalloc: use stdnoreturn.h
51384         * lib/xalloc.h: Include <stdnoreturn.h>.
51385         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51386         * modules/xalloc (Depends-on): Add stdnoreturn.
51388         xstrtol: use stdnoreturn.h
51389         * lib/xstrtol.h: Include <stdnoreturn.h>.
51390         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51391         * modules/xstrtol (Depends-on): Add stdnoreturn.
51393         xmemdup0: use stdnoreturn.h
51394         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51395         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51396         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51398         sigpipe-die: use stdnoreturn.h
51399         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51400         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51401         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51403         openat: use stdnoreturn.h
51404         * lib/openat.h: Include <stdnoreturn.h>.
51405         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51406         * modules/openat (Depends-on): Add stdnoreturn.
51408         * lib/openat-die.c (openat_save_fail): Modernize comment.
51410         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51412         * lib/glthread/thread.h: Modernize comment.
51414         obstack: use _Noreturn
51415         * lib/obstack.c (__attribute__): Remove macro.
51416         (print_and_abort): Use _Noreturn.
51418         c-stack: use _Noreturn
51419         * lib/c-stack.c (die, overflow_handler, segv_handler):
51420         Use _Noreturn rather than __attribute__((noreturn)).
51422         argmatch-tests, exclude_tests: use _Noreturn
51423         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51424         Remove.
51425         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51427         stdlib: use _Noreturn
51428         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51429         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51430         * modules/stdlib (Depends-on): Add _Noreturn.
51431         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51433         stdnoreturn-tests: new module
51434         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51436         stdnoreturn: new module
51437         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51438         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51440         _Noreturn-tests: new module
51441         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51443         _Noreturn: new module
51444         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51445         New section, mentioning it.
51446         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51448         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51450 2011-07-11  Eric Blake  <eblake@redhat.com>
51452         ffs: new module
51453         * modules/ffs: New file.
51454         * m4/ffs.m4: Likewise.
51455         * lib/ffs.c: Likewise.
51456         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51457         * modules/strings (Makefile.am): Substitute witness.
51458         (Depends-on): Add c++defs.
51459         * lib/strings.in.h (ffs): Declare.
51460         * modules/ffs-tests: New test file.
51461         * tests/test-ffs.c: Test new module.
51462         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51463         * doc/posix-functions/ffs.texi (ffs): Likewise.
51465         regex: avoid compiler warning
51466         * lib/regex.c (includes): Include <strings.h>, for use of
51467         strcasecmp in regcomp.c.
51468         Reported by Joachim Schmitz.
51470 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51472         stdint: respect system's intmax_t if INTMAX_MAX
51473         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51474         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51475         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51476         long but int64_t is long long, and where we will clash with the
51477         system intmax_t if we override it.  See
51478         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51479         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51480         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51481         similarly for UINTMAX_C.
51483 2011-07-08  Bruno Haible  <bruno@clisp.org>
51485         pthread_sigmask tests: Avoid a compiler warning.
51486         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51487         non-zero.
51489         sigprocmask tests: A better way to avoid a compiler warning.
51490         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51491         (main): Complain if system() returns non-zero.
51492         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51494 2011-07-08  Bruno Haible  <bruno@clisp.org>
51496         pthread_sigmask: Work around IRIX bug.
51497         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51498         bug.
51499         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51500         there may be unblocked pending signals.
51501         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51503 2011-07-08  Bruno Haible  <bruno@clisp.org>
51505         pthread_sigmask: Work around Cygwin bug.
51506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51507         bug.
51508         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51509         the system's pthread_sigmask function.
51510         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51512 2011-07-08  Bruno Haible  <bruno@clisp.org>
51514         pthread_sigmask: Work around bug in single-threaded implementation.
51515         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51516         FreeBSD, HP-UX, Solaris bug.
51517         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51518         * lib/pthread_sigmask.c: Include <stddef.h>.
51519         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51520         the system's pthread_sigmask function.
51521         * modules/pthread_sigmask (configure.ac): Invoke
51522         gl_PREREQ_PTHREAD_SIGMASK.
51523         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51524         HP-UX, Solaris.
51526 2011-07-08  Eric Blake  <eblake@redhat.com>
51528         test-sigprocmask: avoid compiler warning
51529         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51530         * tests/test-sigprocmask.c (main): Use it to silence warning.
51531         Reported by Jim Meyering.
51533         test-snprintf: avoid compiler warning
51534         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51535         * tests/test-vsnprintf.c (main): Likewise.
51536         Reported by Jim Meyering.
51538 2011-07-08  Bruno Haible  <bruno@clisp.org>
51540         Tests for module 'pthread_sigmask'.
51541         * modules/pthread_sigmask-tests: New file.
51542         * tests/test-pthread_sigmask1.c: New file, based on
51543         tests/test-sigprocmask.c.
51544         * tests/test-pthread_sigmask2.c: New file.
51546 2011-07-08  Jim Meyering  <meyering@redhat.com>
51548         test-getopt.h: avoid warning about an unused variable
51549         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51551 2011-07-07  Jim Meyering  <meyering@redhat.com>
51553         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51554         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51555         now that it no longer contains leading TABs.
51556         Remove unused "url=FIXME" statement.
51558 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51560         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51562         When gl_THREADLIB is not in use, assume that the POSIX sematics
51563         are desired.  This is better for Emacs, which uses POSIX semantics
51564         on GNUish and/or POSIXish platforms, and does not use threads at
51565         all otherwise.
51567         pthread_sigmask: fix typo when testing for libraries
51568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51569         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51571 2011-07-08  Eric Blake  <eblake@redhat.com>
51573         fts: introduce FTS_NOATIME
51574         * lib/fts_.h (FTS_NOATIME): New bit flag.
51575         (FTS_OPTIONMASK): Adjust.
51576         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51577         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51579 2011-07-08  Bruno Haible  <bruno@clisp.org>
51581         Tests for module 'thread'.
51582         * modules/thread-tests: New file.
51583         * tests/test-thread_self.c: New file.
51584         * tests/test-thread_create.cc: New file.
51586 2011-07-08  Bruno Haible  <bruno@clisp.org>
51588         thread: Avoid gcc warnings when using gl_thread_self().
51589         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51590         'void *'.
51591         (gl_thread_self_pointer): Update.
51593 2011-07-07  Bruno Haible  <bruno@clisp.org>
51595         signal-c++-tests: Check declaration of pthread_sigmask.
51596         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51597         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51598         $(LIB_PTHREAD_SIGMASK).
51600 2011-07-07  Bruno Haible  <bruno@clisp.org>
51602         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51603         * lib/signal.in.h (pthread_sigmask): Override if
51604         REPLACE_PTHREAD_SIGMASK is 1.
51605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51606         REPLACE_PTHREAD_SIGMASK.
51607         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51608         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51609         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51610         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51611         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51613 2011-07-07  Bruno Haible  <bruno@clisp.org>
51615         pthread_sigmask: Ensure declaration in <signal.h>.
51616         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51617         include <pthread.h>.
51618         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51619         problem.
51621 2011-07-07  Bruno Haible  <bruno@clisp.org>
51623         pthread_sigmask: Document the module.
51624         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51626 2011-07-07  Bruno Haible  <bruno@clisp.org>
51628         pthread_sigmask: Follow gnulib conventions.
51629         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51630         gl_PTHREAD_SIGMASK.
51631         * modules/pthread_sigmask (configure.ac): Update.
51633 2011-07-07  Bruno Haible  <bruno@clisp.org>
51635         pthread_sigmask: Make declaration C++ safe.
51636         * lib/signal.in.h: In two special conditions, just do an #include_next.
51637         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51638         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51639         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51640         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51641         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51642         not REPLACE_PTHREAD_MASK.
51643         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51644         not REPLACE_PTHREAD_MASK.
51645         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51647 2011-07-07  Bruno Haible  <bruno@clisp.org>
51649         pthread_sigmask: Fix return value.
51650         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51651         * lib/pthread_sigmask.c: New file.
51652         * modules/pthread_sigmask (Files): Add it.
51653         (configure.ac): Invoke AC_LIBOBJ.
51655 2011-07-07  Eric Blake  <eblake@redhat.com>
51657         getopt: more portable argv creation
51658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51659         const, use char arrays rather than strings.
51660         Suggested by Paul Eggert.
51662 2011-07-07  Bruno Haible  <bruno@clisp.org>
51664         Tests for module 'sigprocmask'.
51665         * modules/sigprocmask-tests: New file.
51666         * tests/test-sigprocmask.c: New file.
51668 2011-07-07  Bruno Haible  <bruno@clisp.org>
51670         float tests: Tweak.
51671         * tests/test-float.c (main): Tweak skip message.
51673 2011-07-07  Eric Blake  <eblake@redhat.com>
51675         getopt: avoid compiler warning during configure
51676         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51677         assigning string literals to non-const pointer.
51679         getopt-gnu: avoid crash in glibc getopt
51680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51681         * tests/test-getopt.h (test_getopt): Enhance test.
51682         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51683         * doc/posix-functions/getopt.texi (getopt): Document it.
51684         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51685         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51686         Likewise.
51688 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51690         getopt: handle W; without long options in getopt [BZ #12922]
51691         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51692         but no long options are defined, just return 'W'.
51694 2011-07-07  Bruno Haible  <bruno@clisp.org>
51696         Avoid literal tabs.
51697         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51698         variable containing a tab instead of a literal tab.
51699         Reported by Jim Meyering.
51701 2011-07-07  Bruno Haible  <bruno@clisp.org>
51703         Comments.
51704         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51706 2011-07-06  Bruno Haible  <bruno@clisp.org>
51708         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51709         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51710         <winsock2.h>.
51711         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51712         lib/sys_socket.in.h.
51713         (close, gethostname): Hide declarations from <winsock2.h>.
51714         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51715         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51716         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51717         (select): Don't override if gnulib's <sys/select.h> was already
51718         included.
51719         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51720         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51721         setsockopt, shutdown, select): Tweak indentation.
51723 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51725         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51726         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51727         in an application that does not use the sys_select module.
51729 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51731         poll: do not return 0 on timeout=-1
51732         * lib/poll.c: Loop with yield if no events occurred.
51734 2011-07-06  Eric Blake  <eblake@redhat.com>
51736         pthread_sigmask: always replace when not using pthread
51737         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51738         replacement when using some threading other than pthread.  Fix
51739         logic bug.
51741 2011-07-06  Bruno Haible  <bruno@clisp.org>
51743         Comments.
51744         * m4/printf.m4: Update comments about mingw.
51746 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51748         sys_select: define sigset_t more portably
51749         * lib/sys_select.in.h: Always include <sys/types.h>, since
51750         we now need sigset_t and mingw defines it there.
51751         Include <signal.h> before split inclusion guard, to avoid
51752         mishaps on Solaris, whose <signal.h> eventually includes us.
51753         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51754         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51755         which come from ...
51756         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51757         gl_CHECK_TYPE_SIGSET_T.
51758         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51759         does the real work.
51760         * modules/sys_select (Depends-on): Add 'signal'.
51762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51763         Suggested by Bruno Haible.
51765         pselect: Use pthread_sigmask, not sigprocmask.
51766         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51767         multithreaded apps better than sigprocmask does.
51768         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51769         sigprocmask directly.
51771 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51773         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51774         Don't #undef,  since we don't need any underlying pselect.
51775         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51776         (Depends-on): Add select.
51777         (Link): Add $(LIBSOCKET).
51778         These changes suggested by Bruno Haible.
51780         pselect: document better
51781         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51782         * doc/posix-functions/pselect.texi (pselect): Document new module.
51784         pthread_sigmask: new module
51785         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51786         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51787         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51788         This is done only as a macro; I don't know how well that'll
51789         work for C++.  Move <sys/types.h> include before the include_next,
51790         to avoid mishap on Solaris.
51791         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51792         * modules/signal (Makefile.am): Substitute the check's results.
51793         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51795         test-pselect: new module
51796         * modules/pselect-tests, tests/test-pselect.c: New files.
51797         * tests/test-select.c, tests/test-sys_select-c++.cc:
51798         If TEST_PSELECT is defined, test pselect instead of testing select.
51800         * tests/test-sys_select.c (sigset_t): Test for it, too.
51801         Suggested by Bruno Haible.
51803 2011-07-05  Eric Blake  <eblake@redhat.com>
51805         snprintf: guarantee %1$d, for libintl
51806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51808         * doc/posix-functions/snprintf.texi (snprintf): Update.
51809         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51810         * tests/test-snprintf.c (main): Enhance test.
51811         * tests/test-vsnprintf.c (main): Likewise.
51813 2011-07-05  Jim Meyering  <meyering@redhat.com>
51815         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51816         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51817         per Bruno's request, to accommodate this idiom (no space after "#")
51818         even when the function is inside an #if block:
51819         char *
51820         gets (char *s)
51821         #undef gets
51822         {
51823           ...
51824         }
51826 2011-07-04  Jim Meyering  <meyering@redhat.com>
51828         maint: indent with spaces, not TABs, and add a rule to check this
51829         * tests/test-userspec.c: Indent with spaces, not TABs.
51830         * tests/test-argp.c: Likewise.
51831         * tests/test-c-stack2.sh: Likewise.
51832         * tests/test-parse-duration.sh: Likewise
51833         * m4/strtod.m4: Likewise.
51834         * m4/alloca.m4: Likewise.
51835         * m4/pselect.m4: Likewise.
51836         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51838 2011-07-03  Jim Meyering  <meyering@redhat.com>
51840         maint.mk: correct omissions in prohibit_argmatch_without_use check
51841         This rule would mistakenly report that argmatch.h is included without
51842         use even when both the argmatch and invalid_arg macro were used.
51843         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51844         of argmatch and invalid_arg.
51846 2011-07-03  Bruno Haible  <bruno@clisp.org>
51848         Comments about EINTR.
51849         * lib/safe-read.h: Explain the purpose of this module.
51850         * lib/safe-write.h: Likewise.
51851         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51852         module.
51853         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51854         module.
51855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51857 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51859         xnanosleep: Rewrite to use new dtotimespec module.
51860         It has the conversion code that used to be in xnanosleep.
51861         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51862         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51863         (TIME_T_MAX): Remove.
51864         (xnanosleep): Rewrite in terms of dtotimespec.
51865         * modules/xnanosleep (Depends-on): Add dtotimespec.
51866         Remove intprops, stdbool.
51868         timespec-add, timespec-sub: new modules
51869         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51870         * lib/timespec-add.c, lib/timespec-sub.c:
51871         * modules/timespec-add, modules/timespec-sub: New files.
51873         dtotimespec: new module
51874         * lib/timespec.h (dtotimespec): New decl.
51875         * lib/dtotimespec.c, modules/dtotimespec: New files.
51877         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51879         pselect: new module
51880         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51881         (pselect): New decls.
51882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51883         since the standard pselect decl uses 'restrict'.
51884         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51885         HAVE_PSELECT, REPLACE_PSELECT.
51886         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51887         HAVE_PSELECT, REPLACE_PSELECT.
51888         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51890         sys_select: don't depend on sys_socket
51891         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51892         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51893         This fix works on GNU and GNU-like platforms, but has not been tested
51894         on native Windows.
51895         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51896         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51897         gl_HEADER_SYS_SOCKET.
51898         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51899         gl_PREREQ_SYS_H_WINSOCK2.
51901 2011-06-29  Eric Blake  <eblake@redhat.com>
51903         pipe2: fix C89 compile problem
51904         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51905         Reported by Bruno Haible.
51907         pipe, pipe2: don't corrupt fd on error
51908         * lib/pipe.c (pipe): Leave fd unchanged on error.
51909         * lib/pipe2.c (pipe2): Likewise.
51910         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51911         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51913 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51915         mmap-anon: do not use regular expressions inadvertently
51916         * m4/mmap-anon.m4: Remove trailing period from strings sought
51917         in the output.
51919 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51921         nanosleep: fix integer overflow problem
51922         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51923         arithmetic wraps around on overflow.
51925         nanosleep: simplify carrying
51926         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51927         first call to the underyling nanosleep, not for the last one.
51928         This doesn't fix any bugs, but it simplifies the computation of
51929         the remaining delay.  Found while auditing integer overflow issues.
51931         dup2: remove test for existence of fcntl
51932         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51933         "#if HAVE_FCNTL", in the configure-time test program.
51934         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51935         and therefore speeds up "configure" a bit.  Found while
51936         adding the dup2 module to Emacs.
51938 2011-06-24  Eric Blake  <eblake@redhat.com>
51940         maint.mk: enhance useless header checks
51941         * top/maint.mk (_sc_header_without_use): Check both include
51942         styles.
51943         (sc_prohibit_assert_without_use)
51944         (sc_prohibit_close_stream_without_use)
51945         (sc_prohibit_getopt_without_use)
51946         (sc_prohibit_quotearg_without_use)
51947         (sc_prohibit_quote_without_use)
51948         (sc_prohibit_long_options_without_use)
51949         (sc_prohibit_inttostr_without_use)
51950         (sc_prohibit_ignore_value_without_use)
51951         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51952         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51953         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51954         (sc_prohibit_hash_pjw_without_use)
51955         (sc_prohibit_safe_read_without_use)
51956         (sc_prohibit_argmatch_without_use)
51957         (sc_prohibit_canonicalize_without_use)
51958         (sc_prohibit_root_dev_ino_without_use)
51959         (sc_prohibit_openat_without_use)
51960         (sc_prohibit_c_ctype_without_use)
51961         (sc_prohibit_signal_without_use)
51962         (sc_prohibit_stdio--_without_use)
51963         (sc_prohibit_stdio-safer_without_use)
51964         (sc_prohibit_strings_without_use)
51965         (sc_prohibit_intprops_without_use)
51966         (sc_prohibit_stddef_without_use)
51967         (sc_prohibit_xfreopen_without_use): Update clients.
51969 2011-06-24  Jim Meyering  <meyering@redhat.com>
51971         syntax-check: keep one maint.mk rule in sync with its header
51972         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51973         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51974         I prefer to avoid temporary files here, so use <(...), but that
51975         is not supported by /bin/sh, so...
51976         (SHELL): Define to /bin/bash.
51978 2011-06-24  Eric Blake  <eblake@redhat.com>
51980         maint.mk: update sc_prohibit_intprops_without_use
51981         * top/maint.mk (_intprops_names): Match recent changes.
51983 2011-06-24  Bruno Haible  <bruno@clisp.org>
51985         strerror-override: No-op tweak.
51986         * lib/strerror-override.h (strerror_override): Reorder conditions,
51987         for consistency with lib/strerror-override.c.
51989 2011-06-23  Eric Blake  <eblake@redhat.com>
51991         maint.mk: test further PATH_MAX issues
51992         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51993         (sc_prohibit_path_max_allocation): ...and also test alloca.
51994         Suggested by Jim Meyering.
51996 2011-06-22  Eric Blake  <eblake@redhat.com>
51998         maint.mk: add syntax-check to avoid char[PATH_MAX]
51999         * top/maint.mk (sc_prohibit_path_max_array): New rule.
52001         stat: be robust to PATH_MAX definition
52002         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
52003         * modules/stat (Depends-on): Add verify.
52005         link: work around IRIX bug
52006         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
52007         * lib/link.c (rpl_link): Work around it.
52008         * tests/test-link.h (test_link): Enhance test.
52009         * doc/posix-functions/link.texi (link): Document the bug.
52011         getopt: silence clang warning
52012         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
52013         dereference.
52014         Reported by Gustavo Martin Domato.
52016 2011-06-22  Jim Meyering  <meyering@redhat.com>
52018         bootstrap: do not insert a blank line into each .gitignore file
52019         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
52021 2011-06-21  Eric Blake  <eblake@redhat.com>
52023         perror: test for output mismatch
52024         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
52025         perror on IRIX.
52027         strerror_r: fix OpenBSD behavior on out-of-range
52028         * lib/strerror_r.c (strerror_r): Always use maximal string.
52029         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52031         strerror_r: fix OpenBSD behavior on 0
52032         * lib/strerror-override.c (strerror_override): Also override 0
52033         when needed.
52034         * lib/strerror-override.h (strerror_override): Likewise.
52035         * lib/strerror.c (strerror): Simplify, now that 0 override is done
52036         earlier.
52037         * lib/strerror_r.c (strerror_r): Likewise.
52038         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
52039         behavior...
52040         (gl_FUNC_STRERROR_0): ...into new macro.
52041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
52042         is overridden.
52043         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
52044         * modules/strerror-override (Files): Add strerror.m4.
52045         (configure.ac): Also provide override for 0 when needed.
52046         * doc/posix-functions/strerror.texi (strerror): Document this.
52047         * doc/posix-functions/perror.texi (perror): Likewise.
52049         perror: adjust array size
52050         * modules/perror (Depends-on): Add strerror-override.
52051         * lib/perror.c (perror): Use it to avoid magic number.
52053         strerror-override: reduce size
52054         * lib/strerror-override.c (strerror_override): Use fewer lines.
52056 2011-06-20  Bruno Haible  <bruno@clisp.org>
52058         pathmax: Ensure correct value for PATH_MAX on HP-UX.
52059         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
52061 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52063         alloca: port to compilers that can optimize like GCC 4.6.0
52064         * lib/alloca.c (find_stack_direction): New signature, taken from
52065         Autoconf git.  This works with GCC 4.6.0.  This code should never
52066         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
52067         be used with other compilers that optimize as well as GCC 4.6.0 does.
52068         (alloca): Adjust to new signature.
52069         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
52070         New macro, which patches Autoconf in a similar way.
52072         c-stack: stop worrying about stack direction
52073         * lib/c-stack.c (find_stack_direction): Remove.
52074         (segv_handler): Don't worry about stack direction growth, as it's
52075         too much of a pain to configure this correctly, given how compilers
52076         are optimizing-away our stack-growth detection code.  Instead, assume
52077         that any access to just before or just after the stack is OK.
52078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52079         Don't require AC_FUNC_ALLOCA; no longer needed.
52081 2011-06-20  Eric Blake  <eblake@redhat.com>
52083         test-stat: don't allocate PATH_MAX bytes
52084         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
52085         PATH_MAX-sized buffer.
52086         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
52087         * modules/stat-tests (Depends-on): Likewise.
52088         * tests/test-fstatat.c (includes): Drop pathmax.h.
52089         * tests/test-stat.c (includes): Likewise.
52090         Reported by Bruno Haible.
52092 2011-06-20  Bruno Haible  <bruno@clisp.org>
52094         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
52095         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
52096         * lib/float.c: New file.
52097         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
52098         REPLACE_FLOAT_LDBL.
52099         * modules/float (Files): Add lib/float.c.
52100         (configure.ac): Invoke AC_LIBOBJ.
52101         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
52103 2011-06-20  Bruno Haible  <bruno@clisp.org>
52105         Tests for module 'float'.
52106         * modules/float-tests: New file.
52107         * tests/test-float.c: New file.
52109 2011-06-19  Bruno Haible  <bruno@clisp.org>
52111         isinf: Coding style.
52112         * lib/isinf.c: Use GNU coding style.
52114 2011-06-19  Bruno Haible  <bruno@clisp.org>
52116         linkat test: Avoid test failure on AIX 7.1.
52117         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
52118         * tests/test-link.h (test_link): Likewise.
52120 2011-06-19  Bruno Haible  <bruno@clisp.org>
52122         pread test: Avoid test failure on OpenBSD 4.9.
52123         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
52125 2011-06-19  Bruno Haible  <bruno@clisp.org>
52127         sprintf-posix: Fix test failure on AIX 7.1.
52128         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
52129         * doc/posix-functions/dprintf.texi: Mention limited precision problem
52130         on AIX.
52131         * doc/posix-functions/fprintf.texi: Likewise.
52132         * doc/posix-functions/printf.texi: Likewise.
52133         * doc/posix-functions/snprintf.texi: Likewise.
52134         * doc/posix-functions/sprintf.texi: Likewise.
52135         * doc/posix-functions/vdprintf.texi: Likewise.
52136         * doc/posix-functions/vfprintf.texi: Likewise.
52137         * doc/posix-functions/vprintf.texi: Likewise.
52138         * doc/posix-functions/vsnprintf.texi: Likewise.
52139         * doc/posix-functions/vsprintf.texi: Likewise.
52141 2011-06-19  Bruno Haible  <bruno@clisp.org>
52143         roundl-ieee: Fix test failure on AIX 7.1.
52144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
52145         * doc/posix-functions/roundl.texi: Mention problem with negative
52146         arguments.
52148 2011-06-19  Bruno Haible  <bruno@clisp.org>
52150         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52151         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
52152         * doc/posix-functions/round.texi: Mention problem with negative
52153         arguments.
52154         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
52156 2011-06-19  Bruno Haible  <bruno@clisp.org>
52158         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52159         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
52160         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
52161         * doc/posix-functions/roundf.texi: Mention problem with negative
52162         arguments.
52163         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
52165 2011-06-19  Bruno Haible  <bruno@clisp.org>
52167         ceilf-ieee: Work around bug on MacOS X 10.5.
52168         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
52170         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
52171         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
52172         IEEE compliant, avoid compiler optimizations.
52173         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
52174         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52175         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
52176         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
52177         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
52178         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
52179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52180         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
52181         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
52182         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
52184 2011-06-19  Bruno Haible  <bruno@clisp.org>
52186         ceilf-ieee: Work around bug on AIX 7.1.
52187         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
52188         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
52190 2011-06-19  Bruno Haible  <bruno@clisp.org>
52192         ceil-ieee: Work around bug on AIX 7.1.
52193         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
52194         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
52196 2011-06-18  Bruno Haible  <bruno@clisp.org>
52198         fsync test: Avoid test failure on MacOS X and AIX.
52199         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
52200         EINVAL.
52202 2011-06-18  Bruno Haible  <bruno@clisp.org>
52204         openat, fdopendir tests: Fix link errors.
52205         * modules/openat-tests (Depends-on): Add progname.
52206         * modules/fdopendir-tests (Depends-on): Likewise.
52207         * tests/test-fchownat.c: Include progname.h.
52208         (main): Call set_program_name.
52209         * tests/test-fstatat.c: Include progname.h.
52210         (main): Call set_program_name.
52211         * tests/test-mkdirat.c: Include progname.h.
52212         (main): Call set_program_name.
52213         * tests/test-openat.c: Include progname.h.
52214         (main): Call set_program_name.
52215         * tests/test-unlinkat.c: Include progname.h.
52216         (main): Call set_program_name.
52217         * tests/test-fdopendir.c: Include progname.h.
52218         (main): Call set_program_name.
52220 2011-06-18  Bruno Haible  <bruno@clisp.org>
52222         Doc update.
52223         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
52224         HP-UX.
52225         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
52227 2011-06-18  Bruno Haible  <bruno@clisp.org>
52229         getcwd tests: Avoid compilation error on HP-UX 11.31.
52230         * modules/getcwd-tests (Depends-on): Add pathmax.
52231         * tests/test-getcwd.c: Include pathmax.h.
52233 2011-06-18  Bruno Haible  <bruno@clisp.org>
52235         isfinite, isinf: Fix link error on AIX 6 and 7.
52236         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
52237         needed, also test the macro with a 'float' argument.
52238         * m4/isinf.m4 (gl_ISINF): Likewise.
52240 2011-06-18  Bruno Haible  <bruno@clisp.org>
52242         getloadavg: Don't clobber LIBS. Regression from previous commit.
52243         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
52244         AC_CHECK_LIB from here...
52245         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
52246         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
52247         gl_func_getloadavg_done.
52248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52250 2011-06-18  Bruno Haible  <bruno@clisp.org>
52252         clean-temp: Improve documentation.
52253         * lib/clean-temp.h: Explain better how to use this module.
52254         Reported by John Darrington <john@darrington.wattle.id.au>.
52256 2011-06-17  Bruno Haible  <bruno@clisp.org>
52258         pread, pwrite: Avoid cc warning on AIX.
52259         * lib/unistd.in.h (pread): Undefine before defining as a macro.
52260         (pwrite): Likewise.
52262 2011-06-17  Bruno Haible  <bruno@clisp.org>
52264         spawn-pipe tests: Fix link error.
52265         * tests/test-spawn-pipe-child.c: Undefine fprintf.
52266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52268 2011-06-17  Bruno Haible  <bruno@clisp.org>
52270         Tests: Remove unnecessary dependency.
52271         * modules/canonicalize-tests (Depends-on): Remove progname.
52272         * modules/chown-tests (Depends-on): Likewise.
52273         * modules/dirname-tests (Depends-on): Likewise.
52274         * modules/fdopendir-tests (Depends-on): Likewise.
52275         * modules/fdutimensat-tests (Depends-on): Likewise.
52276         * modules/hash-tests (Depends-on): Likewise.
52277         * modules/lchown-tests (Depends-on): Likewise.
52278         * modules/linkat-tests (Depends-on): Likewise.
52279         * modules/renameat-tests (Depends-on): Likewise.
52280         * modules/spawn-pipe-tests (Depends-on): Likewise.
52281         * modules/utimensat-tests (Depends-on): Likewise.
52283 2011-06-17  Bruno Haible  <bruno@clisp.org>
52285         spawn-pipe tests: Fix link error.
52286         * tests/test-spawn-pipe-child.c: Undefine fflush.
52288 2011-06-17  Bruno Haible  <bruno@clisp.org>
52290         Fix tests link errors.
52291         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
52292         * modules/chown-tests (Makefile.am): Don't link test-chown with
52293         LIBINTL.
52294         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
52295         LIBINTL.
52296         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
52297         LIBINTL.
52298         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
52299         LIBINTL.
52301 2011-06-16  Bruno Haible  <bruno@clisp.org>
52303         crypto/gc-sha1: Fix recent regression.
52304         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
52305         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
52307         crypto/gc-md5: Fix recent regression.
52308         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
52310         crypto/gc-md4: Fix recent regression.
52311         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
52312         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
52314         crypto/gc-arctwo: Fix recent regression.
52315         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
52316         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
52318         crypto/gc-rijndael: Fix recent regression.
52319         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
52320         (configure.ac): Invoke AC_LIBOBJ here.
52321         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
52322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52324         crypto/gc-hmac-sha1: Fix recent regression.
52325         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
52326         (configure.ac): Invoke AC_LIBOBJ here.
52327         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52330         crypto/gc-hmac-md5: Fix recent regression.
52331         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52332         (configure.ac): Invoke AC_LIBOBJ here.
52333         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52336         crypto/gc-des: Fix recent regression.
52337         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52338         (configure.ac): Invoke AC_LIBOBJ here.
52339         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52342         crypto/gc-arcfour: Fix recent regression.
52343         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52344         (configure.ac): Invoke AC_LIBOBJ here.
52345         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52348 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52350         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52351         After the 2011-05-21 change, this macro requires
52352         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52353         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52355 2011-06-16  Bruno Haible  <bruno@clisp.org>
52357         fprintftime: Move AC_LIBOBJ invocations to module description.
52358         * m4/fprintftime.m4: Remove file.
52359         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52360         (configure.ac): Remove gl_FPRINTFTIME call.
52361         (Makefile.am): Augment lib_SOURCES.
52362         Reported by Jim Meyering.
52364 2011-06-16  Bruno Haible  <bruno@clisp.org>
52366         tmpfile-safer: Finish 2011-05-23 commit.
52367         * m4/stdio-safer.m4: Really remove file.
52368         Reported by Jim Meyering.
52370 2011-06-16  Bruno Haible  <bruno@clisp.org>
52372         syntax-check: Fix typo.
52373         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52374         printf-posix.m4.
52375         Reported by Jim Meyering.
52377 2011-06-13  Jim Meyering  <meyering@redhat.com>
52379         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52380         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52382 2011-05-23  Bruno Haible  <bruno@clisp.org>
52384         yesno: Move AC_LIBOBJ invocations to module description.
52385         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52386         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52388 2011-05-23  Bruno Haible  <bruno@clisp.org>
52390         xstrtol: Move AC_LIBOBJ invocations to module description.
52391         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52392         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52394 2011-05-23  Bruno Haible  <bruno@clisp.org>
52396         xstrtold: Move AC_LIBOBJ invocations to module description.
52397         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52398         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52400 2011-05-23  Bruno Haible  <bruno@clisp.org>
52402         xstrtod: Move AC_LIBOBJ invocations to module description.
52403         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52404         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52406 2011-05-23  Bruno Haible  <bruno@clisp.org>
52408         xnanosleep: Move AC_LIBOBJ invocations to module description.
52409         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52410         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52412 2011-05-23  Bruno Haible  <bruno@clisp.org>
52414         xgetcwd: Move AC_LIBOBJ invocations to module description.
52415         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52416         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52418 2011-05-23  Bruno Haible  <bruno@clisp.org>
52420         xalloc: Move AC_LIBOBJ invocations to module description.
52421         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52422         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52424 2011-05-23  Bruno Haible  <bruno@clisp.org>
52426         write-any-file: Move AC_LIBOBJ invocations to module description.
52427         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52428         invocation.
52429         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52431 2011-05-23  Bruno Haible  <bruno@clisp.org>
52433         utimens: Move AC_LIBOBJ invocations to module description.
52434         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52435         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52437 2011-05-23  Bruno Haible  <bruno@clisp.org>
52439         utimecmp: Move AC_LIBOBJ invocations to module description.
52440         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52441         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52443 2011-05-23  Bruno Haible  <bruno@clisp.org>
52445         userspec: Move AC_LIBOBJ invocations to module description.
52446         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52447         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52449 2011-05-23  Bruno Haible  <bruno@clisp.org>
52451         unlinkdir: Move AC_LIBOBJ invocations to module description.
52452         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52453         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52455 2011-05-23  Bruno Haible  <bruno@clisp.org>
52457         unistd-safer: Move AC_LIBOBJ invocations to module description.
52458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52459         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52461 2011-05-23  Bruno Haible  <bruno@clisp.org>
52463         tempname: Move AC_LIBOBJ invocations to module description.
52464         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52465         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52467 2011-05-23  Bruno Haible  <bruno@clisp.org>
52469         strftime: Move AC_LIBOBJ invocations to module description.
52470         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52471         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52473 2011-05-23  Bruno Haible  <bruno@clisp.org>
52475         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52476         * m4/stdlib-safer.m4: Remove file.
52477         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52478         (configure.ac): Remove gl_STDLIB_SAFER call.
52479         (Makefile.am): Augment lib_SOURCES.
52481 2011-05-23  Bruno Haible  <bruno@clisp.org>
52483         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52484         * m4/stdio-safer.m4: Remove file.
52485         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52486         (configure.ac): Remove gl_TMPFILE_SAFER call.
52487         (Makefile.am): Augment lib_SOURCES.
52489 2011-05-23  Bruno Haible  <bruno@clisp.org>
52491         popen-safer: Move AC_LIBOBJ invocations to module description.
52492         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52493         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52494         (configure.ac): Remove gl_POPEN_SAFER call.
52495         (Makefile.am): Augment lib_SOURCES.
52497 2011-05-23  Bruno Haible  <bruno@clisp.org>
52499         freopen-safer: Move AC_LIBOBJ invocations to module description.
52500         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52501         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52502         (configure.ac): Remove gl_FREOPEN_SAFER call.
52503         (Makefile.am): Augment lib_SOURCES.
52505 2011-05-23  Bruno Haible  <bruno@clisp.org>
52507         fopen-safer: Move AC_LIBOBJ invocations to module description.
52508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52509         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52510         (configure.ac): Remove gl_FOPEN_SAFER call.
52511         (Makefile.am): Augment lib_SOURCES.
52513 2011-05-23  Bruno Haible  <bruno@clisp.org>
52515         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52516         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52517         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52519 2011-05-23  Bruno Haible  <bruno@clisp.org>
52521         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52522         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52523         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52525 2011-05-23  Bruno Haible  <bruno@clisp.org>
52527         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52528         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52529         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52531 2011-05-23  Bruno Haible  <bruno@clisp.org>
52533         settime: Move AC_LIBOBJ invocations to module description.
52534         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52535         * modules/settime (Makefile.am): Augment lib_SOURCES.
52537 2011-05-23  Bruno Haible  <bruno@clisp.org>
52539         savedir: Move AC_LIBOBJ invocations to module description.
52540         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52541         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52543 2011-05-23  Bruno Haible  <bruno@clisp.org>
52545         save-cwd: Move AC_LIBOBJ invocations to module description.
52546         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52547         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52549 2011-05-23  Bruno Haible  <bruno@clisp.org>
52551         same: Move AC_LIBOBJ invocations to module description.
52552         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52553         * modules/same (Makefile.am): Augment lib_SOURCES.
52555 2011-05-23  Bruno Haible  <bruno@clisp.org>
52557         safe-write: Move AC_LIBOBJ invocations to module description.
52558         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52559         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52560         instead of gl_SAFE_WRITE.
52561         (Makefile.am): Augment lib_SOURCES.
52563 2011-05-23  Bruno Haible  <bruno@clisp.org>
52565         safe-read: Move AC_LIBOBJ invocations to module description.
52566         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52567         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52568         of gl_SAFE_READ.
52569         (Makefile.am): Augment lib_SOURCES.
52571 2011-05-23  Bruno Haible  <bruno@clisp.org>
52573         safe-alloc: Move AC_LIBOBJ invocations to module description.
52574         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52575         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52577 2011-05-23  Bruno Haible  <bruno@clisp.org>
52579         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52580         * m4/rijndael.m4: Remove file.
52581         * modules/crypto/rijndael (Files): Remove it.
52582         (configure.ac): Remove gl_RIJNDAEL call.
52583         (Makefile.am): Augment lib_SOURCES.
52585 2011-05-23  Bruno Haible  <bruno@clisp.org>
52587         readtokens: Move AC_LIBOBJ invocations to module description.
52588         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52589         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52591 2011-05-23  Bruno Haible  <bruno@clisp.org>
52593         read-file: Move AC_LIBOBJ invocations to module description.
52594         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52595         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52596         of gl_FUNC_READ_FILE.
52597         (Makefile.am): Augment lib_SOURCES.
52599 2011-05-23  Bruno Haible  <bruno@clisp.org>
52601         quotearg: Move AC_LIBOBJ invocations to module description.
52602         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52603         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52605 2011-05-23  Bruno Haible  <bruno@clisp.org>
52607         quote: Move AC_LIBOBJ invocations to module description.
52608         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52609         * modules/quote (Makefile.am): Augment lib_SOURCES.
52611 2011-05-23  Bruno Haible  <bruno@clisp.org>
52613         posixver: Move AC_LIBOBJ invocations to module description.
52614         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52615         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52617 2011-05-23  Bruno Haible  <bruno@clisp.org>
52619         posixtm: Move AC_LIBOBJ invocations to module description.
52620         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52621         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52623 2011-05-23  Bruno Haible  <bruno@clisp.org>
52625         physmem: Move AC_LIBOBJ invocations to module description.
52626         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52627         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52629 2011-05-23  Bruno Haible  <bruno@clisp.org>
52631         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52632         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52633         invocation.
52634         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52636 2011-05-23  Bruno Haible  <bruno@clisp.org>
52638         mpsort: Move AC_LIBOBJ invocations to module description.
52639         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52640         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52642 2011-05-23  Bruno Haible  <bruno@clisp.org>
52644         modechange: Move AC_LIBOBJ invocations to module description.
52645         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52646         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52648 2011-05-23  Bruno Haible  <bruno@clisp.org>
52650         mkdir-p: Move AC_LIBOBJ invocations to module description.
52651         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52652         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52654 2011-05-23  Bruno Haible  <bruno@clisp.org>
52656         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52657         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52658         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52660 2011-05-23  Bruno Haible  <bruno@clisp.org>
52662         mgetgroups: Move AC_LIBOBJ invocations to module description.
52663         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52664         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52666 2011-05-23  Bruno Haible  <bruno@clisp.org>
52668         memxor: Move AC_LIBOBJ invocations to module description.
52669         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52670         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52672 2011-05-23  Bruno Haible  <bruno@clisp.org>
52674         memcoll: Move AC_LIBOBJ invocations to module description.
52675         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52676         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52678 2011-05-23  Bruno Haible  <bruno@clisp.org>
52680         memcasecmp: Move AC_LIBOBJ invocations to module description.
52681         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52682         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52684 2011-05-23  Bruno Haible  <bruno@clisp.org>
52686         crypto/md5: Move AC_LIBOBJ invocations to module description.
52687         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52688         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52690 2011-05-23  Bruno Haible  <bruno@clisp.org>
52692         crypto/md4: Move AC_LIBOBJ invocations to module description.
52693         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52694         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52696 2011-05-23  Bruno Haible  <bruno@clisp.org>
52698         crypto/md2: Move AC_LIBOBJ invocations to module description.
52699         * m4/md2.m4: Remove file.
52700         * modules/crypto/md2 (Files): Remove it.
52701         (configure.ac): Remove gl_MD2 call.
52702         (Makefile.am): Augment lib_SOURCES.
52704 2011-05-23  Bruno Haible  <bruno@clisp.org>
52706         long-options: Move AC_LIBOBJ invocations to module description.
52707         * m4/long-options.m4: Remove file.
52708         * modules/long-options (Files): Remove it.
52709         (configure.ac): Remove gl_LONG_OPTIONS call.
52710         (Makefile.am): Augment lib_SOURCES.
52712 2011-05-23  Bruno Haible  <bruno@clisp.org>
52714         i-ring: Move AC_LIBOBJ invocations to module description.
52715         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52716         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52718 2011-05-23  Bruno Haible  <bruno@clisp.org>
52720         idcache: Move AC_LIBOBJ invocations to module description.
52721         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52722         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52724 2011-05-23  Bruno Haible  <bruno@clisp.org>
52726         human: Move AC_LIBOBJ invocations to module description.
52727         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52728         * modules/human (Makefile.am): Augment lib_SOURCES.
52730 2011-05-23  Bruno Haible  <bruno@clisp.org>
52732         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52733         * m4/hmac-sha1.m4: Remove file.
52734         * modules/crypto/hmac-sha1 (Files): Remove it.
52735         (configure.ac): Remove gl_HMAC_SHA1 call.
52736         (Makefile.am): Augment lib_SOURCES.
52738 2011-05-23  Bruno Haible  <bruno@clisp.org>
52740         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52741         * m4/hmac-md5.m4: Remove file.
52742         * modules/crypto/hmac-md5 (Files): Remove it.
52743         (configure.ac): Remove gl_HMAC_MD5 call.
52744         (Makefile.am): Augment lib_SOURCES.
52746 2011-05-23  Bruno Haible  <bruno@clisp.org>
52748         hash: Move AC_LIBOBJ invocations to module description.
52749         * m4/hash.m4: Remove file.
52750         * modules/hash (Files): Remove it.
52751         (configure.ac): Remove gl_HASH call.
52752         (Makefile.am): Augment lib_SOURCES.
52754 2011-05-23  Bruno Haible  <bruno@clisp.org>
52756         hard-locale: Move AC_LIBOBJ invocations to module description.
52757         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52758         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52760 2011-05-23  Bruno Haible  <bruno@clisp.org>
52762         getugroups: Move AC_LIBOBJ invocations to module description.
52763         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52764         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52766 2011-05-23  Bruno Haible  <bruno@clisp.org>
52768         gettime: Move AC_LIBOBJ invocations to module description.
52769         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52770         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52772 2011-05-23  Bruno Haible  <bruno@clisp.org>
52774         getndelim2: Move AC_LIBOBJ invocations to module description.
52775         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52776         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52778 2011-05-23  Bruno Haible  <bruno@clisp.org>
52780         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52781         * m4/gc-pbkdf2-sha1.m4: Remove file.
52782         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52783         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52784         (Makefile.am): Augment lib_SOURCES.
52786 2011-05-23  Bruno Haible  <bruno@clisp.org>
52788         fts: Move AC_LIBOBJ invocations to module description.
52789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52790         * modules/fts (configure.ac): ... to here.
52792 2011-05-23  Bruno Haible  <bruno@clisp.org>
52794         file-type: Move AC_LIBOBJ invocations to module description.
52795         * m4/file-type.m4: Remove file.
52796         * modules/file-type (Files): Remove it.
52797         (configure.ac): Remove gl_FILE_TYPE call.
52798         (Makefile.am): Augment lib_SOURCES.
52800 2011-05-23  Bruno Haible  <bruno@clisp.org>
52802         filenamecat*: Respect rules for use of AC_LIBOBJ.
52803         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52804         Remove AC_LIBOBJ invocation.
52805         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52806         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52808 2011-05-23  Bruno Haible  <bruno@clisp.org>
52810         filemode: Move AC_LIBOBJ invocations to module description.
52811         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52812         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52814 2011-05-23  Bruno Haible  <bruno@clisp.org>
52816         openat-safer: Move AC_LIBOBJ invocations to module description.
52817         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52818         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52820 2011-05-23  Bruno Haible  <bruno@clisp.org>
52822         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52823         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52824         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52826 2011-05-23  Bruno Haible  <bruno@clisp.org>
52828         exclude: Move AC_LIBOBJ invocations to module description.
52829         * m4/exclude.m4: Remove file.
52830         * modules/exclude (Files): Remove it.
52831         (configure.ac): Remove gl_EXCLUDE call.
52832         (Makefile.am): Augment lib_SOURCES.
52834 2011-05-23  Bruno Haible  <bruno@clisp.org>
52836         dirname*: Respect rules for use of AC_LIBOBJ.
52837         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52838         invocations.
52839         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52840         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52842 2011-05-23  Bruno Haible  <bruno@clisp.org>
52844         dirent-safer: Move AC_LIBOBJ invocations to module description.
52845         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52846         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52848 2011-05-23  Bruno Haible  <bruno@clisp.org>
52850         crypto/des: Move AC_LIBOBJ invocations to module description.
52851         * m4/des.m4: Remove file.
52852         * modules/crypto/des (Files): Remove it.
52853         (configure.ac): Remove gl_DES call.
52854         (Makefile.am): Augment lib_SOURCES.
52856 2011-05-23  Bruno Haible  <bruno@clisp.org>
52858         cycle-check: Move AC_LIBOBJ invocations to module description.
52859         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52860         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52862 2011-05-23  Bruno Haible  <bruno@clisp.org>
52864         c-strtold: Move AC_LIBOBJ invocations to module description.
52865         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52866         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52868 2011-05-23  Bruno Haible  <bruno@clisp.org>
52870         c-strtod: Move AC_LIBOBJ invocations to module description.
52871         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52872         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52874 2011-05-23  Bruno Haible  <bruno@clisp.org>
52876         crc: Move AC_LIBOBJ invocations to module description.
52877         * m4/crc.m4: Remove file.
52878         * modules/crc (Files): Remove it.
52879         (configure.ac): Remove gl_CRC call.
52880         (Makefile.am): Augment lib_SOURCES.
52882 2011-05-23  Bruno Haible  <bruno@clisp.org>
52884         close-stream: Move AC_LIBOBJ invocations to module description.
52885         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52886         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52888 2011-05-23  Bruno Haible  <bruno@clisp.org>
52890         closeout: Move AC_LIBOBJ invocations to module description.
52891         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52892         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52894 2011-05-23  Bruno Haible  <bruno@clisp.org>
52896         closein: Move AC_LIBOBJ invocations to module description.
52897         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52898         * modules/closein (Makefile.am): Augment lib_SOURCES.
52900 2011-05-23  Bruno Haible  <bruno@clisp.org>
52902         cloexec: Move AC_LIBOBJ invocations to module description.
52903         * m4/cloexec.m4: Remove file.
52904         * modules/cloexec (Files): Remove it.
52905         (configure.ac): Remove gl_CLOEXEC call.
52906         (Makefile.am): Augment lib_SOURCES.
52908 2011-05-23  Bruno Haible  <bruno@clisp.org>
52910         check-version: Move AC_LIBOBJ invocations to module description.
52911         * m4/check-version.m4: Remove file.
52912         * modules/check-version (Files): Remove it.
52913         (configure.ac): Remove gl_CHECK_VERSION call.
52914         (Makefile.am): Augment lib_SOURCES.
52916 2011-05-23  Bruno Haible  <bruno@clisp.org>
52918         chdir-safer: Move AC_LIBOBJ invocations to module description.
52919         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52920         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52922 2011-05-23  Bruno Haible  <bruno@clisp.org>
52924         canonicalize: Move AC_LIBOBJ invocations to module description.
52925         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52926         AC_LIBOBJ invocation.
52927         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52929 2011-05-23  Bruno Haible  <bruno@clisp.org>
52931         canon-host: Move AC_LIBOBJ invocations to module description.
52932         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52933         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52934         instead of gl_CANON_HOST.
52935         (Makefile.am): Augment lib_SOURCES.
52937 2011-05-23  Bruno Haible  <bruno@clisp.org>
52939         backupfile: Move AC_LIBOBJ invocations to module description.
52940         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52941         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52943 2011-05-23  Bruno Haible  <bruno@clisp.org>
52945         argmatch: Move AC_LIBOBJ invocations to module description.
52946         * m4/argmatch.m4: Remove file.
52947         * modules/argmatch (Files): Remove it.
52948         (configure.ac): Remove gl_ARGMATCH call.
52949         (Makefile.am): Augment lib_SOURCES.
52951 2011-05-23  Bruno Haible  <bruno@clisp.org>
52953         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52954         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52955         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52957 2011-05-23  Bruno Haible  <bruno@clisp.org>
52959         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52960         * m4/arcfour.m4: Remove file.
52961         * modules/crypto/arcfour (Files): Remove it.
52962         (configure.ac): Remove gl_ARCFOUR call.
52963         (Makefile.am): Augment lib_SOURCES.
52965 2011-05-22  Bruno Haible  <bruno@clisp.org>
52967         write: Move AC_LIBOBJ invocations to module description.
52968         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52969         * modules/write (configure.ac): ... to here.
52971 2011-05-22  Bruno Haible  <bruno@clisp.org>
52973         wmemset: Move AC_LIBOBJ invocations to module description.
52974         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52975         here...
52976         * modules/wmemset (configure.ac): ... to here.
52978 2011-05-22  Bruno Haible  <bruno@clisp.org>
52980         wmemmove: Move AC_LIBOBJ invocations to module description.
52981         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52982         here...
52983         * modules/wmemmove (configure.ac): ... to here.
52985 2011-05-22  Bruno Haible  <bruno@clisp.org>
52987         wmemcpy: Move AC_LIBOBJ invocations to module description.
52988         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52989         here...
52990         * modules/wmemcpy (configure.ac): ... to here.
52992 2011-05-22  Bruno Haible  <bruno@clisp.org>
52994         wmemcmp: Move AC_LIBOBJ invocations to module description.
52995         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52996         here...
52997         * modules/wmemcmp (configure.ac): ... to here.
52999 2011-05-22  Bruno Haible  <bruno@clisp.org>
53001         wmemchr: Move AC_LIBOBJ invocations to module description.
53002         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
53003         here...
53004         * modules/wmemchr (configure.ac): ... to here.
53006 2011-05-22  Bruno Haible  <bruno@clisp.org>
53008         wcswidth: Move AC_LIBOBJ invocations to module description.
53009         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
53010         here...
53011         * modules/wcswidth (configure.ac): ... to here.
53013 2011-05-22  Bruno Haible  <bruno@clisp.org>
53015         wcwidth: Respect rules for use of AC_LIBOBJ.
53016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
53017         invocation from here...
53018         * modules/wcwidth (configure.ac): ... to here.
53019         (Depends-on): Update conditions.
53021 2011-05-22  Bruno Haible  <bruno@clisp.org>
53023         wctype: Move AC_LIBOBJ invocations to module description.
53024         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
53025         invocation from here...
53026         * modules/wctype (configure.ac): ... to here.
53027         (Depends-on): Update conditions.
53029 2011-05-22  Bruno Haible  <bruno@clisp.org>
53031         wctrans: Move AC_LIBOBJ invocations to module description.
53032         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
53033         invocation from here...
53034         * modules/wctrans (configure.ac): ... to here.
53036 2011-05-22  Bruno Haible  <bruno@clisp.org>
53038         wctomb: Move AC_LIBOBJ invocations to module description.
53039         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
53040         invocations from here...
53041         * modules/wctomb (configure.ac): ... to here.
53043 2011-05-22  Bruno Haible  <bruno@clisp.org>
53045         wctob: Move AC_LIBOBJ invocations to module description.
53046         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
53047         gl_PREREQ_WCTOB invocations from here...
53048         * modules/wctob (configure.ac): ... to here.
53049         (Depends-on): Update conditions.
53051 2011-05-22  Bruno Haible  <bruno@clisp.org>
53053         wcsxfrm: Move AC_LIBOBJ invocations to module description.
53054         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
53055         here...
53056         * modules/wcsxfrm (configure.ac): ... to here.
53058 2011-05-22  Bruno Haible  <bruno@clisp.org>
53060         wcstok: Move AC_LIBOBJ invocations to module description.
53061         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
53062         * modules/wcstok (configure.ac): ... to here.
53064 2011-05-22  Bruno Haible  <bruno@clisp.org>
53066         wcsstr: Move AC_LIBOBJ invocations to module description.
53067         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
53068         * modules/wcsstr (configure.ac): ... to here.
53070 2011-05-22  Bruno Haible  <bruno@clisp.org>
53072         wcsspn: Move AC_LIBOBJ invocations to module description.
53073         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
53074         * modules/wcsspn (configure.ac): ... to here.
53076 2011-05-22  Bruno Haible  <bruno@clisp.org>
53078         wcsrtombs: Move AC_LIBOBJ invocations to module description.
53079         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
53080         gl_PREREQ_WCSRTOMBS invocations from here...
53081         * modules/wcsrtombs (configure.ac): ... to here.
53083 2011-05-22  Bruno Haible  <bruno@clisp.org>
53085         wcsrchr: Move AC_LIBOBJ invocations to module description.
53086         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
53087         here...
53088         * modules/wcsrchr (configure.ac): ... to here.
53090 2011-05-22  Bruno Haible  <bruno@clisp.org>
53092         wcspbrk: Move AC_LIBOBJ invocations to module description.
53093         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
53094         here...
53095         * modules/wcspbrk (configure.ac): ... to here.
53097 2011-05-22  Bruno Haible  <bruno@clisp.org>
53099         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
53100         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
53101         gl_PREREQ_WCSNRTOMBS invocations from here...
53102         * modules/wcsnrtombs (configure.ac): ... to here.
53104 2011-05-22  Bruno Haible  <bruno@clisp.org>
53106         wcsnlen: Move AC_LIBOBJ invocations to module description.
53107         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
53108         here...
53109         * modules/wcsnlen (configure.ac): ... to here.
53111 2011-05-22  Bruno Haible  <bruno@clisp.org>
53113         wcsncpy: Move AC_LIBOBJ invocations to module description.
53114         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
53115         here...
53116         * modules/wcsncpy (configure.ac): ... to here.
53118 2011-05-22  Bruno Haible  <bruno@clisp.org>
53120         wcsncmp: Move AC_LIBOBJ invocations to module description.
53121         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
53122         here...
53123         * modules/wcsncmp (configure.ac): ... to here.
53125 2011-05-22  Bruno Haible  <bruno@clisp.org>
53127         wcsncat: Move AC_LIBOBJ invocations to module description.
53128         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
53129         here...
53130         * modules/wcsncat (configure.ac): ... to here.
53132 2011-05-22  Bruno Haible  <bruno@clisp.org>
53134         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
53135         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
53136         from here...
53137         * modules/wcsncasecmp (configure.ac): ... to here.
53139 2011-05-22  Bruno Haible  <bruno@clisp.org>
53141         wcslen: Move AC_LIBOBJ invocations to module description.
53142         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
53143         * modules/wcslen (configure.ac): ... to here.
53145 2011-05-22  Bruno Haible  <bruno@clisp.org>
53147         wcsdup: Move AC_LIBOBJ invocations to module description.
53148         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
53149         * modules/wcsdup (configure.ac): ... to here.
53151 2011-05-22  Bruno Haible  <bruno@clisp.org>
53153         wcscspn: Move AC_LIBOBJ invocations to module description.
53154         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
53155         here...
53156         * modules/wcscspn (configure.ac): ... to here.
53158 2011-05-22  Bruno Haible  <bruno@clisp.org>
53160         wcscpy: Move AC_LIBOBJ invocations to module description.
53161         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
53162         * modules/wcscpy (configure.ac): ... to here.
53164 2011-05-22  Bruno Haible  <bruno@clisp.org>
53166         wcscoll: Move AC_LIBOBJ invocations to module description.
53167         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
53168         here...
53169         * modules/wcscoll (configure.ac): ... to here.
53171 2011-05-22  Bruno Haible  <bruno@clisp.org>
53173         wcscmp: Move AC_LIBOBJ invocations to module description.
53174         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
53175         * modules/wcscmp (configure.ac): ... to here.
53177 2011-05-22  Bruno Haible  <bruno@clisp.org>
53179         wcschr: Move AC_LIBOBJ invocations to module description.
53180         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
53181         * modules/wcschr (configure.ac): ... to here.
53183 2011-05-22  Bruno Haible  <bruno@clisp.org>
53185         wcscat: Move AC_LIBOBJ invocations to module description.
53186         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
53187         * modules/wcscat (configure.ac): ... to here.
53189 2011-05-22  Bruno Haible  <bruno@clisp.org>
53191         wcscasecmp: Move AC_LIBOBJ invocations to module description.
53192         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
53193         here...
53194         * modules/wcscasecmp (configure.ac): ... to here.
53196 2011-05-22  Bruno Haible  <bruno@clisp.org>
53198         wcrtomb: Move AC_LIBOBJ invocations to module description.
53199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
53200         invocations from here...
53201         * modules/wcrtomb (configure.ac): ... to here.
53203 2011-05-22  Bruno Haible  <bruno@clisp.org>
53205         wcpncpy: Move AC_LIBOBJ invocations to module description.
53206         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
53207         here...
53208         * modules/wcpncpy (configure.ac): ... to here.
53210 2011-05-22  Bruno Haible  <bruno@clisp.org>
53212         wcpcpy: Move AC_LIBOBJ invocations to module description.
53213         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
53214         * modules/wcpcpy (configure.ac): ... to here.
53216 2011-05-22  Bruno Haible  <bruno@clisp.org>
53218         waitpid: Move AC_LIBOBJ invocations to module description.
53219         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
53220         invocation from here...
53221         * modules/waitpid (configure.ac): ... to here.
53223 2011-05-22  Bruno Haible  <bruno@clisp.org>
53225         utimensat: Move AC_LIBOBJ invocations to module description.
53226         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
53227         here...
53228         * modules/utimensat (configure.ac): ... to here.
53230 2011-05-22  Bruno Haible  <bruno@clisp.org>
53232         usleep: Move AC_LIBOBJ invocations to module description.
53233         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
53234         here...
53235         * modules/usleep (configure.ac): ... to here.
53237 2011-05-22  Bruno Haible  <bruno@clisp.org>
53239         unlockpt: Move AC_LIBOBJ invocations to module description.
53240         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
53241         gl_PREREQ_UNLOCKPT invocations from here...
53242         * modules/unlockpt (configure.ac): ... to here.
53244 2011-05-22  Bruno Haible  <bruno@clisp.org>
53246         unlink: Respect rules for use of AC_LIBOBJ.
53247         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
53248         * modules/unlink (configure.ac): ... to here.
53250 2011-05-22  Bruno Haible  <bruno@clisp.org>
53252         uname: Move AC_LIBOBJ invocations to module description.
53253         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
53254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
53255         here...
53256         * modules/uname (configure.ac): ... to here.
53258 2011-05-22  Bruno Haible  <bruno@clisp.org>
53260         ttyname_r: Move AC_LIBOBJ invocations to module description.
53261         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
53262         gl_PREREQ_TTYNAME_R invocations from here...
53263         * modules/ttyname_r (configure.ac): ... to here.
53265 2011-05-22  Bruno Haible  <bruno@clisp.org>
53267         tsearch: Move AC_LIBOBJ invocations to module description.
53268         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
53269         invocations from here...
53270         * modules/tsearch (configure.ac): ... to here.
53272 2011-05-22  Bruno Haible  <bruno@clisp.org>
53274         towctrans: Move AC_LIBOBJ invocations to module description.
53275         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
53276         AC_LIBOBJ invocation from here...
53277         * modules/towctrans (configure.ac): ... to here.
53279 2011-05-22  Bruno Haible  <bruno@clisp.org>
53281         tmpfile: Move AC_LIBOBJ invocations to module description.
53282         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
53283         invocations from here...
53284         * modules/tmpfile (configure.ac): ... to here.
53286 2011-05-22  Bruno Haible  <bruno@clisp.org>
53288         times: Move AC_LIBOBJ invocations to module description.
53289         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
53290         * modules/times (configure.ac): ... to here.
53292 2011-05-22  Bruno Haible  <bruno@clisp.org>
53294         time_r: Move AC_LIBOBJ invocations to module description.
53295         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
53296         invocations from here...
53297         * modules/time_r (configure.ac): ... to here.
53299 2011-05-22  Bruno Haible  <bruno@clisp.org>
53301         timegm: Move AC_LIBOBJ invocations to module description.
53302         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
53303         invocations from here...
53304         * modules/timegm (configure.ac): ... to here.
53306 2011-05-22  Bruno Haible  <bruno@clisp.org>
53308         tcgetsid: Move AC_LIBOBJ invocations to module description.
53309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
53310         and gl_PREREQ_TCGETSID invocations from here...
53311         * modules/tcgetsid (configure.ac): ... to here.
53312         (Depends-on): Update conditions.
53314 2011-05-22  Bruno Haible  <bruno@clisp.org>
53316         symlinkat: Move AC_LIBOBJ invocations to module description.
53317         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
53318         here...
53319         * modules/symlinkat (configure.ac): ... to here.
53321 2011-05-22  Bruno Haible  <bruno@clisp.org>
53323         symlink: Move AC_LIBOBJ invocations to module description.
53324         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
53325         here...
53326         * modules/symlink (configure.ac): ... to here.
53328 2011-05-22  Bruno Haible  <bruno@clisp.org>
53330         strverscmp: Move AC_LIBOBJ invocations to module description.
53331         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53332         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53333         from here...
53334         * modules/strverscmp (configure.ac): ... to here.
53336 2011-05-22  Bruno Haible  <bruno@clisp.org>
53338         strtok_r: Move AC_LIBOBJ invocations to module description.
53339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53340         and gl_PREREQ_STRTOK_R invocations from here...
53341         * modules/strtok_r (configure.ac): ... to here.
53342         (Depends-on): Update conditions.
53344 2011-05-22  Bruno Haible  <bruno@clisp.org>
53346         strtoumax: Move AC_LIBOBJ invocations to module description.
53347         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53349         from here...
53350         * modules/strtoumax (configure.ac): ... to here.
53352 2011-05-22  Bruno Haible  <bruno@clisp.org>
53354         strtoimax: Move AC_LIBOBJ invocations to module description.
53355         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53356         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53357         from here...
53358         * modules/strtoimax (configure.ac): ... to here.
53360 2011-05-22  Bruno Haible  <bruno@clisp.org>
53362         strtoull: Move AC_LIBOBJ invocations to module description.
53363         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53364         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53365         from here...
53366         * modules/strtoull (configure.ac): ... to here.
53368 2011-05-22  Bruno Haible  <bruno@clisp.org>
53370         strtoll: Move AC_LIBOBJ invocations to module description.
53371         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53373         here...
53374         * modules/strtoll (configure.ac): ... to here.
53376 2011-05-22  Bruno Haible  <bruno@clisp.org>
53378         strtoul: Move AC_LIBOBJ invocations to module description.
53379         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53380         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53381         * modules/strtoul (configure.ac): ... to here.
53383 2011-05-22  Bruno Haible  <bruno@clisp.org>
53385         strtol: Move AC_LIBOBJ invocations to module description.
53386         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53387         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53388         * modules/strtol (configure.ac): ... to here.
53390 2011-05-22  Bruno Haible  <bruno@clisp.org>
53392         strtod: Move AC_LIBOBJ invocations to module description.
53393         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53394         invocations from here...
53395         * modules/strtod (configure.ac): ... to here.
53397 2011-05-22  Bruno Haible  <bruno@clisp.org>
53399         strstr*: Move AC_LIBOBJ invocations to module description.
53400         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53401         invocations from here...
53402         * modules/strstr-simple (configure.ac): ... to here.
53403         * modules/strstr (configure.ac): ... and here.
53405 2011-05-22  Bruno Haible  <bruno@clisp.org>
53407         strsignal: Move AC_LIBOBJ invocations to module description.
53408         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53409         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53410         * modules/strsignal (configure.ac): ... to here.
53411         (Depends-on): Update conditions.
53413 2011-05-22  Bruno Haible  <bruno@clisp.org>
53415         strsep: Move AC_LIBOBJ invocations to module description.
53416         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53418         here...
53419         * modules/strsep (configure.ac): ... to here.
53421 2011-05-22  Bruno Haible  <bruno@clisp.org>
53423         strptime: Move AC_LIBOBJ invocations to module description.
53424         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53425         gl_PREREQ_STRPTIME invocations from here...
53426         * modules/strptime (configure.ac): ... to here.
53428 2011-05-22  Bruno Haible  <bruno@clisp.org>
53430         strpbrk: Move AC_LIBOBJ invocations to module description.
53431         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53432         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53433         here...
53434         * modules/strpbrk (configure.ac): ... to here.
53436 2011-05-22  Bruno Haible  <bruno@clisp.org>
53438         strnlen: Move AC_LIBOBJ invocations to module description.
53439         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53440         invocations from here...
53441         * modules/strnlen (configure.ac): ... to here.
53443 2011-05-22  Bruno Haible  <bruno@clisp.org>
53445         strndup: Move AC_LIBOBJ invocations to module description.
53446         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53447         invocations from here...
53448         * modules/strndup (configure.ac): ... to here.
53449         (Depends-on): Update conditions.
53451 2011-05-22  Bruno Haible  <bruno@clisp.org>
53453         strncat: Move AC_LIBOBJ invocations to module description.
53454         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53455         invocations from here...
53456         * modules/strncat (configure.ac): ... to here.
53458 2011-05-22  Bruno Haible  <bruno@clisp.org>
53460         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53461         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53462         invocations from here...
53463         * modules/strdup (configure.ac): ... to here.
53464         * modules/strdup-posix (configure.ac): ... and here.
53466 2011-05-22  Bruno Haible  <bruno@clisp.org>
53468         strcspn: Move AC_LIBOBJ invocations to module description.
53469         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53471         here...
53472         * modules/strcspn (configure.ac): ... to here.
53474 2011-05-22  Bruno Haible  <bruno@clisp.org>
53476         strchrnul: Move AC_LIBOBJ invocations to module description.
53477         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53478         gl_PREREQ_STRCHRNUL invocations from here...
53479         * modules/strchrnul (configure.ac): ... to here.
53481 2011-05-22  Bruno Haible  <bruno@clisp.org>
53483         strcasestr*: Move AC_LIBOBJ invocations to module description.
53484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53485         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53486         * modules/strcasestr-simple (configure.ac): ... to here.
53487         * modules/strcasestr (configure.ac): ... and here.
53489 2011-05-22  Bruno Haible  <bruno@clisp.org>
53491         strcase: Move AC_LIBOBJ invocations to module description.
53492         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53493         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53494         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53495         gl_PREREQ_STRNCASECMP invocations from here...
53496         * modules/strcase (configure.ac): ... to here.
53498 2011-05-22  Bruno Haible  <bruno@clisp.org>
53500         stpncpy: Move AC_LIBOBJ invocations to module description.
53501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53502         here...
53503         * modules/stpncpy (configure.ac): ... to here.
53505 2011-05-22  Bruno Haible  <bruno@clisp.org>
53507         stpcpy: Move AC_LIBOBJ invocations to module description.
53508         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53510         here...
53511         * modules/stpcpy (configure.ac): ... to here.
53513 2011-05-21  Bruno Haible  <bruno@clisp.org>
53515         stat: Move AC_LIBOBJ invocations to module description.
53516         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53517         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53518         here...
53519         * modules/stat (configure.ac): ... to here.
53521 2011-05-21  Bruno Haible  <bruno@clisp.org>
53523         sleep: Move AC_LIBOBJ invocations to module description.
53524         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53525         * modules/sleep (configure.ac): ... to here.
53527 2011-05-21  Bruno Haible  <bruno@clisp.org>
53529         signbit: Move AC_LIBOBJ invocations to module description.
53530         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53531         * modules/signbit (configure.ac): ... to here.
53533 2011-05-21  Bruno Haible  <bruno@clisp.org>
53535         sigprocmask: Move AC_LIBOBJ invocations to module description.
53536         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53537         gl_PREREQ_SIGPROMASK invocations from here...
53538         * modules/sigprocmask (configure.ac): ... to here.
53540 2011-05-21  Bruno Haible  <bruno@clisp.org>
53542         sigaction: Move AC_LIBOBJ invocations to module description.
53543         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53544         gl_PREREQ_SIGACTION invocations from here...
53545         * modules/sigaction (configure.ac): ... to here.
53547 2011-05-21  Bruno Haible  <bruno@clisp.org>
53549         sig2str: Move AC_LIBOBJ invocations to module description.
53550         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53552         here...
53553         * modules/sig2str (configure.ac): ... to here.
53555 2011-05-21  Bruno Haible  <bruno@clisp.org>
53557         setlocale: Move AC_LIBOBJ invocations to module description.
53558         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53559         gl_PREREQ_SETLOCALE invocations from here...
53560         * modules/setlocale (configure.ac): ... to here.
53562 2011-05-21  Bruno Haible  <bruno@clisp.org>
53564         unsetenv: Move AC_LIBOBJ invocations to module description.
53565         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53566         and gl_PREREQ_UNSETENV invocations from here...
53567         * modules/unsetenv (configure.ac): ... to here.
53568         (Depends-on): Update.
53570 2011-05-21  Bruno Haible  <bruno@clisp.org>
53572         setenv: Move AC_LIBOBJ invocations to module description.
53573         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53574         here...
53575         * modules/setenv (configure.ac): ... to here.
53577 2011-05-21  Bruno Haible  <bruno@clisp.org>
53579         selinux-h: Move AC_LIBOBJ invocations to module description.
53580         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53581         AC_LIBOBJ invocation from here...
53582         * modules/selinux-h (configure.ac): ... to here.
53584 2011-05-21  Bruno Haible  <bruno@clisp.org>
53586         select: Respect rules for use of AC_LIBOBJ.
53587         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53588         here...
53589         * modules/select (configure.ac): ... to here.
53591 2011-05-21  Bruno Haible  <bruno@clisp.org>
53593         scandir: Move AC_LIBOBJ invocations to module description.
53594         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53595         invocations from here...
53596         * modules/scandir (configure.ac): ... to here.
53598 2011-05-21  Bruno Haible  <bruno@clisp.org>
53600         rpmatch: Move AC_LIBOBJ invocations to module description.
53601         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53603         here...
53604         * modules/rpmatch (configure.ac): ... to here.
53606 2011-05-21  Bruno Haible  <bruno@clisp.org>
53608         rmdir: Respect rules for use of AC_LIBOBJ.
53609         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53610         * modules/rmdir (configure.ac): ... to here.
53612 2011-05-21  Bruno Haible  <bruno@clisp.org>
53614         renameat: Move AC_LIBOBJ invocations to module description.
53615         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53616         here...
53617         * modules/renameat (configure.ac): ... to here.
53619 2011-05-21  Bruno Haible  <bruno@clisp.org>
53621         rename: Respect rules for use of AC_LIBOBJ.
53622         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53623         here...
53624         * modules/rename (configure.ac): ... to here.
53626 2011-05-21  Bruno Haible  <bruno@clisp.org>
53628         remove: Move AC_LIBOBJ invocations to module description.
53629         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53630         here...
53631         * modules/remove (configure.ac): ... to here.
53633 2011-05-21  Bruno Haible  <bruno@clisp.org>
53635         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53636         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53637         macro.
53638         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53639         * modules/relocatable-lib (configure.ac): ... to here.
53640         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53641         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53643 2011-05-21  Bruno Haible  <bruno@clisp.org>
53645         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53646         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53647         here...
53648         * modules/relocatable-prog (configure.ac): ... to here.
53650 2011-05-21  Bruno Haible  <bruno@clisp.org>
53652         regex: Move AC_LIBOBJ invocations to module description.
53653         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53654         invocations from here...
53655         * modules/regex (configure.ac): ... to here.
53657 2011-05-21  Bruno Haible  <bruno@clisp.org>
53659         realloc-*: Move AC_LIBOBJ invocations to module description.
53660         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53661         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53662         AC_LIBOBJ invocations from here...
53663         * modules/realloc-gnu (configure.ac): ... to here.
53664         * modules/realloc-posix (configure.ac): ... and here.
53666 2011-05-21  Bruno Haible  <bruno@clisp.org>
53668         readutmp: Move AC_LIBOBJ invocations to module description.
53669         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53670         * modules/readutmp (configure.ac): ... to here.
53672 2011-05-21  Bruno Haible  <bruno@clisp.org>
53674         readlinkat: Move AC_LIBOBJ invocations to module description.
53675         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53676         here...
53677         * modules/readlinkat (configure.ac): ... to here.
53679 2011-05-21  Bruno Haible  <bruno@clisp.org>
53681         readlink: Move AC_LIBOBJ invocations to module description.
53682         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53683         gl_PREREQ_READLINK invocations from here...
53684         * modules/readlink (configure.ac): ... to here.
53686 2011-05-21  Bruno Haible  <bruno@clisp.org>
53688         readline: Move AC_LIBOBJ invocations to module description.
53689         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53690         gl_PREREQ_READLINE invocations from here...
53691         * modules/readline (configure.ac): ... to here.
53693 2011-05-21  Bruno Haible  <bruno@clisp.org>
53695         read: Move AC_LIBOBJ invocations to module description.
53696         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53697         * modules/read (configure.ac): ... to here.
53699 2011-05-21  Bruno Haible  <bruno@clisp.org>
53701         rawmemchr: Move AC_LIBOBJ invocations to module description.
53702         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53704         from here...
53705         * modules/rawmemchr (configure.ac): ... to here.
53707 2011-05-21  Bruno Haible  <bruno@clisp.org>
53709         random_r: Move AC_LIBOBJ invocations to module description.
53710         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53711         gl_PREREQ_RANDOM_R invocations from here...
53712         * modules/random_r (configure.ac): ... to here.
53714 2011-05-21  Bruno Haible  <bruno@clisp.org>
53716         pwrite: Move AC_LIBOBJ invocations to module description.
53717         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53718         * modules/pwrite (configure.ac): ... to here.
53720 2011-05-21  Bruno Haible  <bruno@clisp.org>
53722         putenv: Move AC_LIBOBJ invocations to module description.
53723         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53724         * modules/putenv (configure.ac): ... to here.
53726 2011-05-21  Bruno Haible  <bruno@clisp.org>
53728         login_tty: Move AC_LIBOBJ invocations to module description.
53729         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53730         * modules/login_tty (configure.ac): ... to here.
53732 2011-05-21  Bruno Haible  <bruno@clisp.org>
53734         openpty: Move AC_LIBOBJ invocations to module description.
53735         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53736         * modules/openpty (configure.ac): ... to here.
53738 2011-05-21  Bruno Haible  <bruno@clisp.org>
53740         forkpty: Move AC_LIBOBJ invocations to module description.
53741         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53742         * modules/forkpty (configure.ac): ... to here.
53744 2011-05-21  Bruno Haible  <bruno@clisp.org>
53746         ptsname: Move AC_LIBOBJ invocations to module description.
53747         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53748         invocations from here...
53749         * modules/ptsname (configure.ac): ... to here.
53751 2011-05-21  Bruno Haible  <bruno@clisp.org>
53753         pread: Move AC_LIBOBJ invocations to module description.
53754         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53755         * modules/pread (configure.ac): ... to here.
53757 2011-05-21  Bruno Haible  <bruno@clisp.org>
53759         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53760         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53761         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53762         * modules/posix_spawn (configure.ac): ... to here.
53763         * modules/posix_spawnp (configure.ac): ... and here.
53765 2011-05-21  Bruno Haible  <bruno@clisp.org>
53767         popen: Move AC_LIBOBJ invocations to module description.
53768         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53769         invocations from here...
53770         * modules/popen (configure.ac): ... to here.
53772 2011-05-21  Bruno Haible  <bruno@clisp.org>
53774         poll: Move AC_LIBOBJ invocations to module description.
53775         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53776         invocations from here...
53777         * modules/poll (configure.ac): ... to here.
53779 2011-05-21  Bruno Haible  <bruno@clisp.org>
53781         pipe-posix: Move AC_LIBOBJ invocations to module description.
53782         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53783         * modules/pipe-posix (configure.ac): ... to here.
53785 2011-05-21  Bruno Haible  <bruno@clisp.org>
53787         openat: Respect rules for use of AC_LIBOBJ.
53788         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53789         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53790         * modules/openat (configure.ac): ... to here.
53792 2011-05-21  Bruno Haible  <bruno@clisp.org>
53794         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53795         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53796         invocation from here...
53797         * modules/obstack-printf (configure.ac): ... to here.
53798         * modules/obstack-printf-posix (configure.ac): ... and here.
53800 2011-05-21  Bruno Haible  <bruno@clisp.org>
53802         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53803         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53804         from here...
53805         * modules/nl_langinfo (configure.ac): ... to here.
53807 2011-05-21  Bruno Haible  <bruno@clisp.org>
53809         nanosleep: Move AC_LIBOBJ invocations to module description.
53810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53811         gl_PREREQ_NANOSLEEP invocations from here...
53812         * modules/nanosleep (configure.ac): ... to here.
53814 2011-05-21  Bruno Haible  <bruno@clisp.org>
53816         mountlist: Move AC_LIBOBJ invocations to module description.
53817         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53818         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53819         * modules/mountlist (configure.ac): ... to here.
53821 2011-05-21  Bruno Haible  <bruno@clisp.org>
53823         mktime: Respect rules for use of AC_LIBOBJ.
53824         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53825         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53826         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53827         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53828         * modules/mktime (configure.ac): ... to here.
53829         * modules/mktime-internal (configure.ac): ... and here.
53830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53832 2011-05-21  Bruno Haible  <bruno@clisp.org>
53834         mkstemps: Move AC_LIBOBJ invocations to module description.
53835         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53836         here...
53837         * modules/mkstemps (configure.ac): ... to here.
53839 2011-05-21  Bruno Haible  <bruno@clisp.org>
53841         mkstemp: Move AC_LIBOBJ invocations to module description.
53842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53843         gl_PREREQ_MKSTEMP invocations from here...
53844         * modules/mkstemp (configure.ac): ... to here.
53846 2011-05-21  Bruno Haible  <bruno@clisp.org>
53848         mkostemps: Move AC_LIBOBJ invocations to module description.
53849         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53850         here...
53851         * modules/mkostemps (configure.ac): ... to here.
53853 2011-05-21  Bruno Haible  <bruno@clisp.org>
53855         mkostemp: Move AC_LIBOBJ invocations to module description.
53856         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53857         gl_PREREQ_MKOSTEMP invocations from here...
53858         * modules/mkostemp (configure.ac): ... to here.
53860 2011-05-21  Bruno Haible  <bruno@clisp.org>
53862         mknod: Move AC_LIBOBJ invocations to module description.
53863         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53864         * modules/mknod (configure.ac): ... to here.
53866 2011-05-21  Bruno Haible  <bruno@clisp.org>
53868         mkfifoat: Move AC_LIBOBJ invocations to module description.
53869         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53870         here...
53871         * modules/mkfifoat (configure.ac): ... to here.
53873 2011-05-21  Bruno Haible  <bruno@clisp.org>
53875         mkfifo: Respect rules for use of AC_LIBOBJ.
53876         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53877         here...
53878         * modules/mkfifo (configure.ac): ... to here.
53880 2011-05-21  Bruno Haible  <bruno@clisp.org>
53882         mkdtemp: Move AC_LIBOBJ invocations to module description.
53883         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53884         invocations from here...
53885         * modules/mkdtemp (configure.ac): ... to here.
53887 2011-05-21  Bruno Haible  <bruno@clisp.org>
53889         mkdir: Move AC_LIBOBJ invocations to module description.
53890         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53891         * modules/mkdir (configure.ac): ... to here.
53893 2011-05-21  Bruno Haible  <bruno@clisp.org>
53895         memset: Move AC_LIBOBJ invocations to module description.
53896         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53897         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53898         here...
53899         * modules/memset (configure.ac): ... to here.
53901 2011-05-21  Bruno Haible  <bruno@clisp.org>
53903         memrchr: Move AC_LIBOBJ invocations to module description.
53904         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53905         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53906         here...
53907         * modules/memrchr (configure.ac): ... to here.
53909 2011-05-21  Bruno Haible  <bruno@clisp.org>
53911         mempcpy: Move AC_LIBOBJ invocations to module description.
53912         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53913         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53914         here...
53915         * modules/mempcpy (configure.ac): ... to here.
53917 2011-05-21  Bruno Haible  <bruno@clisp.org>
53919         memmove: Move AC_LIBOBJ invocations to module description.
53920         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53922         here...
53923         * modules/memmove (configure.ac): ... to here.
53925 2011-05-21  Bruno Haible  <bruno@clisp.org>
53927         memmem*: Move AC_LIBOBJ invocations to module description.
53928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53929         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53930         here...
53931         (gl_FUNC_MEMMEM): ... and here...
53932         * modules/memmem-simple (configure.ac): ... to here.
53933         * modules/memmem (configure.ac): ... and here.
53935 2011-05-21  Bruno Haible  <bruno@clisp.org>
53937         memcpy: Move AC_LIBOBJ invocations to module description.
53938         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53940         here...
53941         * modules/memcpy (configure.ac): ... to here.
53943 2011-05-21  Bruno Haible  <bruno@clisp.org>
53945         memcmp: Simplify autoconf macro.
53946         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53947         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53948         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53950 2011-05-21  Bruno Haible  <bruno@clisp.org>
53952         memcmp: Move AC_LIBOBJ invocations to module description.
53953         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53954         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53955         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53956         * modules/memcmp (configure.ac): ... to here.
53957         (Depends-on): Update conditions.
53959 2011-05-21  Bruno Haible  <bruno@clisp.org>
53961         memchr: Respect rules for use of AC_LIBOBJ.
53962         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53963         invocations from here...
53964         * modules/memchr (configure.ac): ... to here.
53966 2011-05-21  Bruno Haible  <bruno@clisp.org>
53968         mbtowc: Move AC_LIBOBJ invocations to module description.
53969         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53970         invocations from here...
53971         * modules/mbtowc (configure.ac): ... to here.
53973 2011-05-21  Bruno Haible  <bruno@clisp.org>
53975         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53976         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53977         gl_PREREQ_MBSRTOWCS invocations from here...
53978         * modules/mbsrtowcs (configure.ac): ... to here.
53980 2011-05-21  Bruno Haible  <bruno@clisp.org>
53982         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53983         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53984         gl_PREREQ_MBSNRTOWCS invocations from here...
53985         * modules/mbsnrtowcs (configure.ac): ... to here.
53987 2011-05-21  Bruno Haible  <bruno@clisp.org>
53989         mbsinit: Move AC_LIBOBJ invocations to module description.
53990         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53991         invocations from here...
53992         * modules/mbsinit (configure.ac): ... to here.
53994 2011-05-21  Bruno Haible  <bruno@clisp.org>
53996         mbrlen: Move AC_LIBOBJ invocations to module description.
53997         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53998         invocations from here...
53999         * modules/mbrlen (configure.ac): ... to here.
54001 2011-05-21  Bruno Haible  <bruno@clisp.org>
54003         mbrtowc: Respect rules for use of AC_LIBOBJ.
54004         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
54005         invocations from here...
54006         * modules/mbrtowc (configure.ac): ... to here.
54008 2011-05-21  Bruno Haible  <bruno@clisp.org>
54010         malloc-*: Move AC_LIBOBJ invocations to module description.
54011         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
54012         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
54013         AC_LIBOBJ invocations from here...
54014         * modules/malloc-gnu (configure.ac): ... to here.
54015         * modules/malloc-posix (configure.ac): ... and here.
54017 2011-05-21  Bruno Haible  <bruno@clisp.org>
54019         lstat, openat: Respect rules for use of AC_LIBOBJ.
54020         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
54021         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
54022         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
54023         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
54024         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
54025         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
54026         here.
54027         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
54029 2011-05-21  Bruno Haible  <bruno@clisp.org>
54031         lseek: Move AC_LIBOBJ invocations to module description.
54032         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
54033         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54034         * modules/lseek (configure.ac): ... to here.
54036 2011-05-21  Bruno Haible  <bruno@clisp.org>
54038         linkat: Move AC_LIBOBJ invocations to module description.
54039         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
54040         here...
54041         * modules/linkat (configure.ac): ... to here.
54043 2011-05-21  Bruno Haible  <bruno@clisp.org>
54045         link: Respect rules for use of AC_LIBOBJ.
54046         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
54047         * modules/link (configure.ac): ... to here.
54049 2011-05-21  Bruno Haible  <bruno@clisp.org>
54051         lchown: Move AC_LIBOBJ invocations to module description.
54052         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54053         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54054         * modules/lchown (configure.ac): ... to here.
54056 2011-05-21  Bruno Haible  <bruno@clisp.org>
54058         iswctype: Move AC_LIBOBJ invocations to module description.
54059         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
54060         here...
54061         * modules/iswctype (configure.ac): ... to here.
54063 2011-05-21  Bruno Haible  <bruno@clisp.org>
54065         iswblank: Move AC_LIBOBJ invocations to module description.
54066         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
54067         here...
54068         * modules/iswblank (configure.ac): ... to here.
54070 2011-05-21  Bruno Haible  <bruno@clisp.org>
54072         atanl: Move AC_LIBOBJ invocations to module description.
54073         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
54074         * modules/atanl (configure.ac): ... to here.
54076 2011-05-21  Bruno Haible  <bruno@clisp.org>
54078         acosl: Move AC_LIBOBJ invocations to module description.
54079         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
54080         * modules/acosl (configure.ac): ... to here.
54082 2011-05-21  Bruno Haible  <bruno@clisp.org>
54084         asinl: Respect rules for use of AC_LIBOBJ.
54085         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
54086         * modules/asinl (configure.ac): ... to here.
54088 2011-05-21  Bruno Haible  <bruno@clisp.org>
54090         tanl: Move AC_LIBOBJ invocations to module description.
54091         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
54092         * modules/tanl (configure.ac): ... to here.
54094 2011-05-21  Bruno Haible  <bruno@clisp.org>
54096         cosl: Move AC_LIBOBJ invocations to module description.
54097         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
54098         * modules/cosl (configure.ac): ... to here.
54100 2011-05-21  Bruno Haible  <bruno@clisp.org>
54102         sinl: Move AC_LIBOBJ invocations to module description.
54103         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
54104         * modules/sinl (configure.ac): ... to here.
54106 2011-05-21  Bruno Haible  <bruno@clisp.org>
54108         logl: Move AC_LIBOBJ invocations to module description.
54109         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
54110         * modules/logl (configure.ac): ... to here.
54112 2011-05-21  Bruno Haible  <bruno@clisp.org>
54114         expl: Move AC_LIBOBJ invocations to module description.
54115         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
54116         * modules/expl (configure.ac): ... to here.
54118 2011-05-21  Bruno Haible  <bruno@clisp.org>
54120         roundl: Move AC_LIBOBJ invocations to module description.
54121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
54122         * modules/roundl (configure.ac): ... to here.
54124 2011-05-21  Bruno Haible  <bruno@clisp.org>
54126         round: Move AC_LIBOBJ invocations to module description.
54127         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
54128         * modules/round (configure.ac): ... to here.
54130 2011-05-21  Bruno Haible  <bruno@clisp.org>
54132         roundf: Move AC_LIBOBJ invocations to module description.
54133         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
54134         * modules/roundf (configure.ac): ... to here.
54136 2011-05-21  Bruno Haible  <bruno@clisp.org>
54138         truncl: Move AC_LIBOBJ invocations to module description.
54139         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
54140         * modules/truncl (configure.ac): ... to here.
54142 2011-05-21  Bruno Haible  <bruno@clisp.org>
54144         trunc: Move AC_LIBOBJ invocations to module description.
54145         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
54146         * modules/trunc (configure.ac): ... to here.
54148 2011-05-21  Bruno Haible  <bruno@clisp.org>
54150         truncf: Move AC_LIBOBJ invocations to module description.
54151         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
54152         * modules/truncf (configure.ac): ... to here.
54154 2011-05-21  Bruno Haible  <bruno@clisp.org>
54156         ceill: Move AC_LIBOBJ invocations to module description.
54157         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
54158         * modules/ceill (configure.ac): ... to here.
54160 2011-05-21  Bruno Haible  <bruno@clisp.org>
54162         ceil: Move AC_LIBOBJ invocations to module description.
54163         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
54164         * modules/ceil (configure.ac): ... to here.
54166 2011-05-21  Bruno Haible  <bruno@clisp.org>
54168         ceilf: Move AC_LIBOBJ invocations to module description.
54169         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
54170         * modules/ceilf (configure.ac): ... to here.
54172 2011-05-21  Bruno Haible  <bruno@clisp.org>
54174         floorl: Respect rules for use of AC_LIBOBJ.
54175         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
54176         * modules/floorl (configure.ac): ... to here.
54178 2011-05-21  Bruno Haible  <bruno@clisp.org>
54180         floor: Respect rules for use of AC_LIBOBJ.
54181         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
54182         * modules/floor (configure.ac): ... to here.
54184 2011-05-21  Bruno Haible  <bruno@clisp.org>
54186         floorf: Move AC_LIBOBJ invocations to module description.
54187         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
54188         * modules/floorf (configure.ac): ... to here.
54190 2011-05-20  Bruno Haible  <bruno@clisp.org>
54192         sqrtl: Respect rules for use of AC_LIBOBJ.
54193         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
54194         * modules/sqrtl (configure.ac): ... to here.
54196 2011-05-20  Bruno Haible  <bruno@clisp.org>
54198         ldexpl: Respect rules for use of AC_LIBOBJ.
54199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
54200         * modules/ldexpl (configure.ac): ... to here.
54202 2011-05-20  Bruno Haible  <bruno@clisp.org>
54204         frexpl*: Respect rules for use of AC_LIBOBJ.
54205         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
54206         invocation from here...
54207         * modules/frexpl (configure.ac): ... to here.
54208         * modules/frexpl-nolibm (configure.ac): ... and here.
54210 2011-05-20  Bruno Haible  <bruno@clisp.org>
54212         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
54213         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
54214         invocation from here...
54215         * modules/frexp (configure.ac): ... to here.
54216         * modules/frexp-nolibm (configure.ac): ... and here.
54218 2011-05-20  Bruno Haible  <bruno@clisp.org>
54220         isnan: Respect rules for use of AC_LIBOBJ.
54221         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
54222         invocations here.
54223         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
54224         REPLACE_ISNAN.
54225         * modules/isnand (configure.ac): Likewise.
54226         * modules/isnanl (configure.ac): Likewise.
54228 2011-05-20  Bruno Haible  <bruno@clisp.org>
54230         isnanl*: Respect rules for use of AC_LIBOBJ.
54231         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
54232         invocation from here...
54233         * modules/isnanl (configure.ac): ... to here.
54234         * modules/isnanl-nolibm (configure.ac): ... and here.
54236 2011-05-20  Bruno Haible  <bruno@clisp.org>
54238         isnand*: Move AC_LIBOBJ invocations to module description.
54239         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
54240         invocation from here...
54241         * modules/isnand (configure.ac): ... to here.
54242         * modules/isnand-nolibm (configure.ac): ... and here.
54244 2011-05-20  Bruno Haible  <bruno@clisp.org>
54246         isnanf*: Move AC_LIBOBJ invocations to module description.
54247         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
54248         invocation from here...
54249         * modules/isnanf (configure.ac): ... to here.
54250         * modules/isnanf-nolibm (configure.ac): ... and here.
54252 2011-05-20  Bruno Haible  <bruno@clisp.org>
54254         isnan*: Separate the AC_LIBOBJ invocations.
54255         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
54256         AC_LIBOBJ invocation.
54257         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
54258         here.
54259         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
54260         AC_LIBOBJ invocation.
54261         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
54262         here.
54263         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
54264         AC_LIBOBJ invocation.
54265         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
54266         here.
54267         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
54269 2011-05-08  Bruno Haible  <bruno@clisp.org>
54271         isinf: Move AC_LIBOBJ invocations to module description.
54272         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
54273         * modules/isinf (configure.ac): ... to here.
54275 2011-05-08  Bruno Haible  <bruno@clisp.org>
54277         isfinite: Move AC_LIBOBJ invocations to module description.
54278         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
54279         * modules/isfinite (configure.ac): ... to here.
54281 2011-05-08  Bruno Haible  <bruno@clisp.org>
54283         isblank: Move AC_LIBOBJ invocations to module description.
54284         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
54285         here...
54286         * modules/isblank (configure.ac): ... to here.
54288 2011-05-08  Bruno Haible  <bruno@clisp.org>
54290         isapipe: Move AC_LIBOBJ invocations to module description.
54291         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
54292         gl_PREREQ_ISAPIPE invocations from here...
54293         * modules/isapipe (configure.ac): ... to here.
54294         (Depends-on): Update condition.
54296 2011-05-08  Bruno Haible  <bruno@clisp.org>
54298         ioctl: Move AC_LIBOBJ invocations to module description.
54299         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
54300         invocations from here...
54301         * modules/ioctl (configure.ac): ... to here.
54302         (Depends-on): Update condition.
54304 2011-05-08  Bruno Haible  <bruno@clisp.org>
54306         imaxdiv: Move AC_LIBOBJ invocations to module description.
54307         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
54308         invocations from here...
54309         * modules/imaxdiv (configure.ac): ... to here.
54311 2011-05-08  Bruno Haible  <bruno@clisp.org>
54313         imaxabs: Move AC_LIBOBJ invocations to module description.
54314         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
54315         invocations from here...
54316         * modules/imaxabs (configure.ac): ... to here.
54318 2011-05-08  Bruno Haible  <bruno@clisp.org>
54320         getaddrinfo: Move AC_LIBOBJ invocations to module description.
54321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
54322         AC_LIBOBJ invocations from here...
54323         * modules/getaddrinfo (configure.ac): ... to here.
54324         (Depends-on): Add conditions.
54326 2011-05-08  Bruno Haible  <bruno@clisp.org>
54328         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54329         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54330         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54331         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54332         (gl_PREREQ_INET_PTON): ... from here.
54333         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54334         gl_PREREQ_INET_PTON here.
54335         (Depends-on): Update condition.
54337 2011-05-08  Bruno Haible  <bruno@clisp.org>
54339         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54341         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54342         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54343         (gl_PREREQ_INET_NTOP): ... from here.
54344         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54345         gl_PREREQ_INET_NTOP here.
54346         (Depends-on): Update condition.
54348 2011-05-08  Bruno Haible  <bruno@clisp.org>
54350         iconv_open: Move AC_LIBOBJ invocations to module description.
54351         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54352         AC_LIBOBJ invocations from here...
54353         * modules/iconv_open (configure.ac): ... to here.
54355 2011-05-08  Bruno Haible  <bruno@clisp.org>
54357         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54358         If module 'iconv_open' is among the main modules and module
54359         'iconv_open-utf' is among the tests dependencies, then
54360         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54361         return the special iconv_t values. Therefore iconv() and iconv_close()
54362         must support these special iconv_t values, already in lib, not only in
54363         tests.
54364         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54365         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54366         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54367         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54368         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54369         (Depends-on): Add the dependencies of iconv_open-utf.
54370         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54371         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54372         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54374 2011-05-08  Bruno Haible  <bruno@clisp.org>
54376         group-member: Move AC_LIBOBJ invocations to module description.
54377         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54378         gl_PREREQ_GROUP_MEMBER invocations from here...
54379         * modules/group-member (configure.ac): ... to here.
54381 2011-05-08  Bruno Haible  <bruno@clisp.org>
54383         grantpt: Move AC_LIBOBJ invocations to module description.
54384         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54385         invocations from here...
54386         * modules/grantpt (configure.ac): ... to here.
54388 2011-05-08  Bruno Haible  <bruno@clisp.org>
54390         glob: Move AC_LIBOBJ invocations to module description.
54391         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54392         from here...
54393         * modules/glob (configure.ac): ... to here.
54395 2011-05-08  Bruno Haible  <bruno@clisp.org>
54397         getusershell: Move AC_LIBOBJ invocations to module description.
54398         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54399         Move AC_LIBOBJ invocation from here...
54400         * modules/getusershell (configure.ac): ... to here.
54401         (Depends-on): Update condition.
54403 2011-05-08  Bruno Haible  <bruno@clisp.org>
54405         gettimeofday: Move AC_LIBOBJ invocations to module description.
54406         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54407         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54408         gl_PREREQ_GETTIMEOFDAY invocations from here...
54409         * modules/gettimeofday (configure.ac): ... to here.
54411 2011-05-08  Bruno Haible  <bruno@clisp.org>
54413         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54414         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54415         just gl_FUNC_TZSET.
54416         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54417         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54419         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54421 2011-05-08  Bruno Haible  <bruno@clisp.org>
54423         getsubopt: Move AC_LIBOBJ invocations to module description.
54424         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54425         gl_PREREQ_GETSUBOPT invocations from here...
54426         * modules/getsubopt (configure.ac): ... to here.
54428 2011-05-08  Bruno Haible  <bruno@clisp.org>
54430         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54431         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54432         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54433         * modules/getpass-gnu (configure.ac): ... to here.
54435 2011-05-08  Bruno Haible  <bruno@clisp.org>
54437         getpass: Move AC_LIBOBJ invocations to module description.
54438         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54439         gl_PREREQ_GETPASS invocations from here...
54440         * modules/getpass (configure.ac): ... to here.
54442 2011-05-08  Bruno Haible  <bruno@clisp.org>
54444         getpagesize: Move AC_LIBOBJ invocations to module description.
54445         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54446         from here...
54447         * modules/getpagesize (configure.ac): ... to here.
54449 2011-05-08  Bruno Haible  <bruno@clisp.org>
54451         getopt: Move AC_LIBOBJ invocations to module description.
54452         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54453         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54454         invocations from here...
54455         * modules/getopt-gnu (configure.ac): ... to here.
54456         * modules/getopt-posix (configure.ac): ... and here.
54457         (Depends-on): Update condition.
54459 2011-05-08  Bruno Haible  <bruno@clisp.org>
54461         getopt, argp: Respect rules for use of AC_LIBOBJ.
54462         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54463         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54464         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54465         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54467 2011-05-08  Bruno Haible  <bruno@clisp.org>
54469         getlogin_r: Move AC_LIBOBJ invocations to module description.
54470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54471         gl_PREREQ_GETLOGIN_R invocations from here...
54472         * modules/getlogin_r (configure.ac): ... to here.
54474 2011-05-08  Bruno Haible  <bruno@clisp.org>
54476         getlogin: Move AC_LIBOBJ invocations to module description.
54477         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54478         here...
54479         * modules/getlogin (configure.ac): ... to here.
54481 2011-05-08  Bruno Haible  <bruno@clisp.org>
54483         getloadavg: Move AC_LIBOBJ invocations to module description.
54484         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54485         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54486         * modules/getloadavg (configure.ac): ... to here.
54488 2011-05-08  Bruno Haible  <bruno@clisp.org>
54490         gethrxtime: Move AC_LIBOBJ invocations to module description.
54491         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54492         LIB_GETHRXTIME from here...
54493         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54494         invocations from here...
54495         * modules/gethrxtime (configure.ac): ... to here.
54497 2011-05-08  Bruno Haible  <bruno@clisp.org>
54499         gethostname: Move AC_LIBOBJ invocations to module description.
54500         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54501         gl_PREREQ_GETHOSTNAME invocations from here...
54502         * modules/gethostname (configure.ac): ... to here.
54504 2011-05-08  Bruno Haible  <bruno@clisp.org>
54506         getgroups: Move AC_LIBOBJ invocations to module description.
54507         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54508         here...
54509         * modules/getgroups (configure.ac): ... to here.
54511 2011-05-08  Bruno Haible  <bruno@clisp.org>
54513         getdtablesize: Move AC_LIBOBJ invocations to module description.
54514         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54515         invocation from here...
54516         * modules/getdtablesize (configure.ac): ... to here.
54518 2011-05-08  Bruno Haible  <bruno@clisp.org>
54520         getdomainname: Move AC_LIBOBJ invocations to module description.
54521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54522         gl_PREREQ_GETDOMAINNAME invocations from here...
54523         * modules/getdomainname (configure.ac): ... to here.
54525 2011-05-08  Bruno Haible  <bruno@clisp.org>
54527         getline: Move AC_LIBOBJ invocations to module description.
54528         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54529         invocations from here...
54530         * modules/getline (configure.ac): ... to here.
54532 2011-05-08  Bruno Haible  <bruno@clisp.org>
54534         getline: Simplify.
54535         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54536         It's already handled through the module dependency.
54538 2011-05-08  Bruno Haible  <bruno@clisp.org>
54540         getdelim: Move AC_LIBOBJ invocations to module description.
54541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54542         and gl_PREREQ_GETDELIM invocations from here...
54543         * modules/getdelim (configure.ac): ... to here.
54544         (Depends-on): Fix condition.
54546 2011-05-08  Bruno Haible  <bruno@clisp.org>
54548         getcwd: Move AC_LIBOBJ invocations to module description.
54549         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54550         invocations from here...
54551         * modules/getcwd (configure.ac): ... to here.
54553 2011-05-08  Bruno Haible  <bruno@clisp.org>
54555         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54556         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54557         here...
54558         * modules/getcwd-lgpl (configure.ac): ... to here.
54560 2011-05-07  Bruno Haible  <bruno@clisp.org>
54562         crypto/gc: Move AC_LIBOBJ invocations to module description.
54563         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54564         * modules/crypto/gc (configure.ac): ... to here.
54566 2011-05-07  Bruno Haible  <bruno@clisp.org>
54568         fwriting: Move AC_LIBOBJ invocations to module description.
54569         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54570         here...
54571         * modules/fwriting (configure.ac): ... to here.
54573 2011-05-07  Bruno Haible  <bruno@clisp.org>
54575         fwritable: Move AC_LIBOBJ invocations to module description.
54576         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54577         here...
54578         * modules/fwritable (configure.ac): ... to here.
54580 2011-05-07  Bruno Haible  <bruno@clisp.org>
54582         futimens: Move AC_LIBOBJ invocations to module description.
54583         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54584         here...
54585         * modules/futimens (configure.ac): ... to here.
54587 2011-05-07  Bruno Haible  <bruno@clisp.org>
54589         ftruncate: Move AC_LIBOBJ invocations to module description.
54590         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54591         gl_PREREQ_FTRUNCATE invocations from here...
54592         * modules/ftruncate (configure.ac): ... to here.
54594 2011-05-07  Bruno Haible  <bruno@clisp.org>
54596         fsync: Move AC_LIBOBJ invocations to module description.
54597         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54598         invocations from here...
54599         * modules/fsync (configure.ac): ... to here.
54601 2011-05-07  Bruno Haible  <bruno@clisp.org>
54603         fsusage: Move AC_LIBOBJ invocations to module description.
54604         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54605         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54606         * modules/fsusage (configure.ac): ... to here.
54608 2011-05-07  Bruno Haible  <bruno@clisp.org>
54610         freopen: Move AC_LIBOBJ invocations to module description.
54611         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54612         invocations from here...
54613         * modules/freopen (configure.ac): ... to here.
54615 2011-05-07  Bruno Haible  <bruno@clisp.org>
54617         free: Move AC_LIBOBJ invocations to module description.
54618         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54619         invocations from here...
54620         * modules/free (configure.ac): ... to here.
54622 2011-05-07  Bruno Haible  <bruno@clisp.org>
54624         freadable: Move AC_LIBOBJ invocations to module description.
54625         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54626         here...
54627         * modules/freadable (configure.ac): ... to here.
54629 2011-05-07  Bruno Haible  <bruno@clisp.org>
54631         fpurge: Move AC_LIBOBJ invocations to module description.
54632         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54633         invocations from here...
54634         * modules/fpurge (configure.ac): ... to here.
54636 2011-05-07  Bruno Haible  <bruno@clisp.org>
54638         fpending: Move AC_LIBOBJ invocations to module description.
54639         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54640         gl_FUNC_FPENDING.
54641         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54642         invocations from here...
54643         * modules/fpending (configure.ac): ... to here.
54645 2011-05-07  Bruno Haible  <bruno@clisp.org>
54647         fopen: Move AC_LIBOBJ invocations to module description.
54648         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54649         invocations from here...
54650         * modules/fopen (configure.ac): ... to here.
54652 2011-05-07  Bruno Haible  <bruno@clisp.org>
54654         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54655         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54656         gl_FUNC_FNMATCH_POSIX.
54657         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54658         invocations from here...
54659         * modules/fnmatch (configure.ac): ... to here.
54660         * modules/fnmatch-gnu (configure.ac): ... and here.
54662 2011-05-07  Bruno Haible  <bruno@clisp.org>
54664         flock: Move AC_LIBOBJ invocations to module description.
54665         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54666         invocations from here...
54667         * modules/flock (configure.ac): ... to here.
54669 2011-05-07  Bruno Haible  <bruno@clisp.org>
54671         fileblocks: Move AC_LIBOBJ invocations to module description.
54672         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54673         gl_PREREQ_FILEBLOCKS invocations from here...
54674         * modules/fileblocks (configure.ac): ... to here.
54676 2011-05-06  Bruno Haible  <bruno@clisp.org>
54678         fflush: Move AC_LIBOBJ invocations to module description.
54679         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54680         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54681         invocations from here...
54682         * modules/fflush (configure.ac): ... to here.
54684 2011-05-06  Bruno Haible  <bruno@clisp.org>
54686         fdopendir: Move AC_LIBOBJ invocations to module description.
54687         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54688         here...
54689         * modules/fdopendir (configure.ac): ... to here.
54690         (Depends-on): Improve conditions.
54692 2011-05-06  Bruno Haible  <bruno@clisp.org>
54694         _Exit: Move AC_LIBOBJ invocations to module description.
54695         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54696         invocations from here...
54697         * modules/_Exit (configure.ac): ... to here.
54699 2011-05-21  Bruno Haible  <bruno@clisp.org>
54701         euidaccess: Respect rules for use of AC_LIBOBJ.
54702         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54704         from here...
54705         * modules/euidaccess (configure.ac): ... to here.
54707 2011-05-06  Bruno Haible  <bruno@clisp.org>
54709         error: Move AC_LIBOBJ invocations to module description.
54710         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54711         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54712         invocations from here...
54713         * modules/error (configure.ac): ... to here.
54715 2011-05-06  Bruno Haible  <bruno@clisp.org>
54717         duplocale: Move AC_LIBOBJ invocations to module description.
54718         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54719         gl_PREREQ_DUPLOCALE invocations from here...
54720         * modules/duplocale (configure.ac): ... to here.
54722 2011-05-05  Bruno Haible  <bruno@clisp.org>
54724         dirfd: Move AC_LIBOBJ invocations to module description.
54725         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54726         gl_FUNC_DIRFD.
54727         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54728         here...
54729         * modules/dirfd (configure.ac): ... to here.
54730         (Depends-on): Fix condition.
54732 2011-05-05  Bruno Haible  <bruno@clisp.org>
54734         chown: Respect rules for use of AC_LIBOBJ.
54735         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54736         * modules/chown (configure.ac): ... to here.
54738 2011-05-05  Bruno Haible  <bruno@clisp.org>
54740         chdir-long: Move AC_LIBOBJ invocations to module description.
54741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54742         gl_PREREQ_CHDIR_LONG invocations from here...
54743         * modules/chdir-long (configure.ac): ... to here.
54745 2011-05-05  Bruno Haible  <bruno@clisp.org>
54747         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54748         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54749         from here...
54750         * modules/canonicalize-lgpl (configure.ac): ... to here.
54752 2011-05-05  Bruno Haible  <bruno@clisp.org>
54754         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54755         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54756         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54757         REPLACE_CALLOC.
54758         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54759         * modules/calloc-gnu (configure.ac): Likewise.
54761 2011-05-05  Bruno Haible  <bruno@clisp.org>
54763         btowc: Move AC_LIBOBJ invocations to module description.
54764         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54765         invocations from here...
54766         * modules/btowc (configure.ac): ... to here.
54768 2011-05-21  Bruno Haible  <bruno@clisp.org>
54770         atexit: Move AC_LIBOBJ invocations to module description.
54771         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54773         here...
54774         * modules/atexit (configure.ac): ... to here.
54776 2011-05-05  Bruno Haible  <bruno@clisp.org>
54778         atoll: Move AC_LIBOBJ invocations to module description.
54779         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54780         invocations from here...
54781         * modules/atoll (configure.ac): ... to here.
54783 2011-05-05  Bruno Haible  <bruno@clisp.org>
54785         argz: Move AC_LIBOBJ invocations to module description.
54786         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54787         * modules/argz (configure.ac): ... to here.
54789 2011-05-05  Bruno Haible  <bruno@clisp.org>
54791         alphasort: Move AC_LIBOBJ invocations to module description.
54792         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54793         gl_PREREQ_ALPHASORT invocations from here...
54794         * modules/alphasort (configure.ac): ... to here.
54796 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54798         verify: new macro verify_expr; verify_true deprecated
54799         * NEWS: Mention this.
54800         * doc/verify.texi (Compile-time Assertions): Document this.
54801         * lib/verify.h (verify_true): Deprecate.
54802         (verify_expr): New macro.
54803         * tests/test-verify.c (function): Test verify_expr.
54805 2011-06-14  Jim Meyering  <meyering@redhat.com>
54807         init.sh: give more portable redirection-related advice in a comment
54808         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54809         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54810         for lots of discussion.  Stefano Lattarini suggested the solution
54811         of putting "9>&2" after the command.  Reported by Bruno Haible.
54813 2011-06-13  Bruno Haible  <bruno@clisp.org>
54815         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54817         'none'.
54819 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54821         ftoastr: use strtof only if HAVE_STRTOF
54822         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54823         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54824         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54825         * modules/ftoastr (configure.ac): Check for strtof.
54827 2011-06-13  Bruno Haible  <bruno@clisp.org>
54829         gnulib-tool: Addendum to 2011-06-08 commit.
54830         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54831         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54833 2011-06-13  Bruno Haible  <bruno@clisp.org>
54835         fseeko: Provide a non-inline replacement of fseek().
54836         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54837         * modules/fseeko (Depends-on): Add fseek.
54838         * modules/fseek (License): Change to LGPLv2+.
54840 2011-06-13  Bruno Haible  <bruno@clisp.org>
54842         ftello: Provide a non-inline replacement of ftell().
54843         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54844         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54845         not have ftello() (such as on mingw).
54846         * modules/ftello (Depends-on): Add ftell.
54847         * modules/ftell (License): Change to LGPLv2+.
54849 2011-05-07  Bruno Haible  <bruno@clisp.org>
54851         ftell: Move AC_LIBOBJ invocations to module description.
54852         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54853         * modules/ftell (configure.ac): ... to here.
54855 2011-05-07  Bruno Haible  <bruno@clisp.org>
54857         ftello: Respect rules for use of AC_LIBOBJ.
54858         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54859         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54860         here...
54861         * modules/ftello (configure.ac): ... to here.
54863 2011-05-07  Bruno Haible  <bruno@clisp.org>
54865         fseeko: Simplify.
54866         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54867         (gl_FUNC_FSEEKO): Inline it here.
54869 2011-05-07  Bruno Haible  <bruno@clisp.org>
54871         fseek: Move AC_LIBOBJ invocations to module description.
54872         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54873         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54874         * modules/fseek (configure.ac): ... to here.
54876 2011-05-07  Bruno Haible  <bruno@clisp.org>
54878         fseek: Respect rules for use of AC_LIBOBJ.
54879         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54880         here...
54881         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54883 2011-05-07  Bruno Haible  <bruno@clisp.org>
54885         fseeko: Respect rules for use of AC_LIBOBJ.
54886         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54887         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54888         here...
54889         * modules/fseeko (configure.ac): ... to here.
54891 2011-06-13  Bruno Haible  <bruno@clisp.org>
54893         gnulib-tool: Allow comments in the 'Depends-on' section.
54894         * doc/gnulib.texi (Module description): Mention comment syntax in the
54895         Depends-on section.
54896         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54898 2011-06-13  Bruno Haible  <bruno@clisp.org>
54900         file-set.h: guard __attibute__ use, now that it's not always defined
54901         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54902         versions that support it.  This fixes a coreutils build failure with
54903         the vendor cc on HP-UX 11.31.
54905 2011-06-12  Bruno Haible  <bruno@clisp.org>
54907         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54908         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54909         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54910         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54911         (acl, aclsort): New declarations.
54912         (aclv_nontrivial): New declaration.
54913         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54914         (file_has_acl): Read also the second kind of HP-UX ACLs.
54915         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54916         kind of HP-UX ACLs if the first kind fails.
54917         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54918         second kind of HP-UX ACLs.
54919         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54920         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54921         agree.
54922         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54923         hpuxjfs.
54924         Handle hpuxjfs.
54925         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54926         hpuxjfs.
54927         Handle hpuxjfs.
54928         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54929         (func_test_same_acls): Use both lsacl and getacl.
54930         Handle hpuxjfs.
54931         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54932         (func_test_same_acls): Use both lsacl and getacl.
54933         Handle hpuxjfs.
54935 2011-06-12  Bruno Haible  <bruno@clisp.org>
54937         acl: Complete the 2010-08-10 fix.
54938         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54939         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54940         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54941         explicitly.
54942         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54943         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54945 2011-06-12  Bruno Haible  <bruno@clisp.org>
54947         spawn-pipe tests: Comments.
54948         * tests/test-spawn-pipe-child.c (main): Update comment.
54949         Reported by James Youngman <jay@gnu.org>.
54951 2011-06-11  James Youngman  <jay@gnu.org>
54953         New module 'stat-size'.
54954         * modules/stat-size: New module.  Provides macros for accessing
54955         file size information in instances of struct stat.  Depends on the
54956         fileblocks module because it calls st_blocks.
54957         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54958         * doc/gnulib.texi: Include stat-size.texi.
54959         * doc/stat-size.texi: Documentation for this module.
54960         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54961         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54962         AC_STRUCT_ST_BLOCKS.
54964 2011-06-09  Bruno Haible  <bruno@clisp.org>
54966         thread: Support pthreads-win32.
54967         * lib/glthread/thread.h (gl_thread_self): Define differently on
54968         pthreads-win32.
54969         (gl_null_thread): New declaration.
54970         (gl_thread_self_pointer): New macro.
54971         * lib/glthread/thread.c (gl_null_thread): New constant.
54972         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54973         gl_thread_self.
54974         * tests/test-tls.c: Likewise.
54975         Suggested by Paul Eggert. Reported by Eric Blake.
54977 2011-06-09  Bruno Haible  <bruno@clisp.org>
54979         thread: Fix confusion between NULL and 0.
54980         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54981         Reported by Paul Eggert.
54983 2011-06-09  Bruno Haible  <bruno@clisp.org>
54985         spawn-pipe tests: Avoid test failure on HP-UX 11.
54986         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54987         is closed.
54989 2011-06-09  Bruno Haible  <bruno@clisp.org>
54991         acl tests: Fix compilation error on HP-UX 11.
54992         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54994 2011-06-09  Bruno Haible  <bruno@clisp.org>
54996         rmdir: Avoid test failure on HP-UX 10.20.
54997         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54998         EEXIST.
55000 2011-06-08  Eric Blake  <eblake@redhat.com>
55002         perror: fix test on mingw
55003         * modules/perror-tests (Depends-on): Add dup2.
55005         strerror_r-posix: fix on MacOS
55006         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
55007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
55008         logic bug.
55009         * lib/strerror_r.c (strerror_r): Fix the bug.
55010         * lib/strerror.c (strerror): Likewise.
55011         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55012         problem.
55013         * doc/posix-functions/strerror.texi (strerror): Likewise.
55014         * doc/posix-functions/perror.texi (perror): Likewise.
55015         * tests/test-strerror.c (main): Enhance test.
55016         * tests/test-strerror_r.c (main): Likewise.
55018 2011-06-08  Bruno Haible  <bruno@clisp.org>
55020         gnulib-tool: Better isolation between different gnulib-tool invocations.
55021         * gnulib-tool: New option --witness-c-macro.
55022         (witness_c_macro): New variable.
55023         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
55024         AM_CPPFLAGS define it as a C macro.
55025         (func_emit_tests_Makefile_am): Likewise.
55026         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
55027         read it from there.
55028         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
55029         m4_define, not AC_DEFUN.
55030         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
55031         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
55032         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
55033         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
55034         s|...|...|, to substitute the values of the GNULIB_* module indicator
55035         variables.
55036         * modules/dirent (Makefile.am): Likewise.
55037         * modules/fcntl-h (Makefile.am): Likewise.
55038         * modules/iconv-h (Makefile.am): Likewise.
55039         * modules/langinfo (Makefile.am): Likewise.
55040         * modules/locale (Makefile.am): Likewise.
55041         * modules/math (Makefile.am): Likewise.
55042         * modules/netdb (Makefile.am): Likewise.
55043         * modules/poll-h (Makefile.am): Likewise.
55044         * modules/pty (Makefile.am): Likewise.
55045         * modules/search (Makefile.am): Likewise.
55046         * modules/signal (Makefile.am): Likewise.
55047         * modules/spawn (Makefile.am): Likewise.
55048         * modules/stdio (Makefile.am): Likewise.
55049         * modules/stdlib (Makefile.am): Likewise.
55050         * modules/string (Makefile.am): Likewise.
55051         * modules/sys_ioctl (Makefile.am): Likewise.
55052         * modules/sys_select (Makefile.am): Likewise.
55053         * modules/sys_socket (Makefile.am): Likewise.
55054         * modules/sys_stat (Makefile.am): Likewise.
55055         * modules/sys_times (Makefile.am): Likewise.
55056         * modules/sys_utsname (Makefile.am): Likewise.
55057         * modules/sys_wait (Makefile.am): Likewise.
55058         * modules/termios (Makefile.am): Likewise.
55059         * modules/time (Makefile.am): Likewise.
55060         * modules/unistd (Makefile.am): Likewise.
55061         * modules/wchar (Makefile.am): Likewise.
55063 2011-06-08  Eric Blake  <eblake@redhat.com>
55065         strerror: simplify replacement
55066         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
55067         * modules/strerror (configure.ac): No prereqs needed here...
55068         * modules/strerror-override (configure.ac): ...but this needs it.
55069         (Files): Add file for needed prereq macro.
55071 2011-06-08  Bruno Haible  <bruno@clisp.org>
55073         strerror_r-posix: Tweaks.
55074         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
55075         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
55076         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
55077         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
55078         (gl_FUNC_STRERROR_R): ... to here.
55079         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
55081 2011-06-07  Eric Blake  <eblake@redhat.com>
55083         perror: document fixed bugs
55084         * doc/posix-functions/perror.texi (perror): Document recent
55085         patches.
55087 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
55089         stat-time: get_stat_birthtime failure is better-defined
55090         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
55091         return a timestamp whose tv_sec and tv_nsec values are both -1.
55092         Previously, the spec said only that the tv_nsec value was negative.
55093         This upward-compatible change simplifies GNU tar a bit.
55095 2011-06-07  Eric Blake  <eblake@redhat.com>
55097         strerror_r-posix: work around cygwin 1.7.9
55098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
55099         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
55100         bug without replacing strerror_r.
55101         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
55102         strerror_r is buggy, but without requiring strerror_r compilation.
55103         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
55105         test-perror: relax test to ignore cygwin bug
55106         * tests/test-perror2.c (main): Relax test on requiring detection
55107         of stream errors, and use unbuffered stream.
55108         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
55109         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
55110         * doc/posix-functions/fputc.texi (fputc): Likewise.
55111         * doc/posix-functions/fputs.texi (fputs): Likewise.
55112         * doc/posix-functions/fputws.texi (fputws): Likewise.
55113         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
55114         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
55115         * doc/posix-functions/getopt.texi (getopt): Likewise.
55116         * doc/posix-functions/perror.texi (perror): Likewise.
55117         * doc/posix-functions/printf.texi (printf): Likewise.
55118         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
55119         * doc/posix-functions/psignal.texi (psignal): Likewise.
55120         * doc/posix-functions/putc.texi (putc): Likewise.
55121         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
55122         Likewise.
55123         * doc/posix-functions/putchar.texi (putchar): Likewise.
55124         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
55125         Likewise.
55126         * doc/posix-functions/puts.texi (puts): Likewise.
55127         * doc/posix-functions/putwc.texi (putwc): Likewise.
55128         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
55129         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
55130         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55131         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
55132         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55133         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
55134         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
55135         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
55137 2011-05-22  Bruno Haible  <bruno@clisp.org>
55139         strerror: Move AC_LIBOBJ invocations to module description.
55140         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
55141         gl_PREREQ_STRERROR invocations from here...
55142         * modules/strerror (configure.ac): ... to here.
55144 2011-05-21  Bruno Haible  <bruno@clisp.org>
55146         perror: Use common idiom.
55147         * modules/perror (configure.ac): Reorder statements.
55149 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55151         tests: fix usage message in 'mktempd_'
55152         * tests/init.sh (mktempd_): In the usage message, use literal
55153         'mktempd_', not '$ME' (which is even undefined), as the name of
55154         the subroutine.
55156 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55158         tests init: new function 'fatal_', for hard errors
55159         Before this patch, the only way offered by tests/init.sh to
55160         properly signal a hard error was the `framework_failure_'
55161         function.  But the error message issued by that function,
55162         as its name would suggest, refers to a set-up failure in the
55163         testsuite, while hard errors can obviously also be due to
55164         other reasons.  The best way to fix this inconsistency is to
55165         introduce a new function with a more general error message.
55166         * tests/init.sh (fatal_): New function.
55168 2011-06-06  Eric Blake  <eblake@redhat.com>
55170         canonicalize-lgpl: use common idiom
55171         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
55172         over newer POSIX -Rf.
55173         Reported by Bruno Haible.
55175         canonicalize-lgpl: work around AIX realpath bug
55176         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
55177         * doc/posix-functions/realpath.texi (realpath): Document it.
55178         Reported by Bruno Haible.
55180         strerror: work around FreeBSD bug
55181         * lib/strerror.c (strerror): Special case 0.
55182         Reported by Bruno Haible.
55184         strerror-override: avoid bloating errno module
55185         * modules/errno (Files, configure.ac): Move replacement strings...
55186         * modules/strerror-override: ...to new module.
55187         * modules/strerror (Depends-on): Add strerror-override.
55188         * modules/strerror_r-posix (Depends-on): Likewise.
55189         * MODULES.html.sh: Document new module.
55190         Reported by Bruno Haible.
55192 2011-06-06  Bruno Haible  <bruno@clisp.org>
55194         spawn-pipe tests: Rename program.
55195         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
55196         * tests/test-spawn-pipe-child.c: Update comment.
55197         * tests/test-spawn-pipe.sh: Update.
55198         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
55200         spawn-pipe tests: Link the child program only against libc.
55201         * tests/test-spawn-pipe-child.c: New file, extracted from
55202         tests/test-spawn-pipe.c.
55203         (main): Expect only one argument.
55204         (is_open): New function, copied from tests/test-pipe.c.
55205         * tests/test-spawn-pipe.c: Don't include <errno.h>.
55206         (child_main): Remove function.
55207         (test_pipe): Pass only one argument to the child program.
55208         (main): Remove child process code. Expect the child program's name as
55209         first argument.
55210         * tests/test-spawn-pipe.sh: Pass the child program's name as first
55211         argument.
55212         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
55213         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
55214         test-spawn-pipe-child against no libraries.
55216 2011-06-06  Bruno Haible  <bruno@clisp.org>
55218         careadlinkat: Avoid mismatch between ssize_t and int.
55219         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
55220         * lib/careadlinkat.c (careadlinkatcwd): Define always.
55222 2011-06-06  Jim Meyering  <meyering@redhat.com>
55224         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
55225         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
55226         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
55228 2011-06-05  Bruno Haible  <bruno@clisp.org>
55230         ansi-c++-opt: Interoperability with libtool.
55231         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
55232         set the variable to "no", not to ":".
55233         * NEWS: Mention the change.
55235 2011-06-05  Bruno Haible  <bruno@clisp.org>
55237         acl: Fix test failure on AIX 7.
55238         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
55239         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55241 2011-06-05  Bruno Haible  <bruno@clisp.org>
55243         pipe-filter-ii: Fix test failure on AIX and IRIX.
55244         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
55245         with EAGAIN, retry with a smaller buffer size.
55247 2011-06-05  Bruno Haible  <bruno@clisp.org>
55249         localename: Fix link dependencies.
55250         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
55251         * modules/localename-tests (Makefile.am): Link test-localename with
55252         $(LIBTHREAD).
55254 2011-06-05  Bruno Haible  <bruno@clisp.org>
55256         error: Avoid gcc warning.
55257         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
55259 2011-06-05  Bruno Haible  <bruno@clisp.org>
55261         unsetenv: Avoid gcc warning.
55262         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
55264 2011-06-05  Bruno Haible  <bruno@clisp.org>
55266         setenv: Avoid gcc warning.
55267         * lib/setenv.c (setenv): Provide declaration if system lacks it.
55269 2011-06-05  Bruno Haible  <bruno@clisp.org>
55271         sys_select: Ensure memset is declared also on AIX 7.
55272         * lib/sys_select.in.h: Include <string.h> also on AIX.
55273         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
55274         self-contained also on AIX 7.1.
55276 2011-06-04  Jim Meyering  <meyering@redhat.com>
55278         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
55279         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
55280         function name, "error".
55281         (_gl_translatable_diag_func_re): New configurable variable.
55283 2011-06-04  Bruno Haible  <bruno@clisp.org>
55285         getopt: Avoid gcc warning.
55286         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
55288 2011-06-04  Bruno Haible  <bruno@clisp.org>
55290         strerror_r: Fix comments.
55291         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
55292         commit.
55294 2011-06-04  Bruno Haible  <bruno@clisp.org>
55296         perror: Fix compilation error.
55297         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
55298         Undefine fprintf, not sprintf.
55299         * modules/perror (Depends-on): Remove intprops, verify.
55301 2011-06-04  Bruno Haible  <bruno@clisp.org>
55303         setlocale: Enable replacement on Cygwin 1.5.
55304         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
55305         Cygwin 1.5.x.
55306         * doc/posix-functions/setlocale.texi: Mention that the problem with the
55307         LC_CTYPE category also exists on Cygwin 1.5.x.
55309 2011-06-04  Bruno Haible  <bruno@clisp.org>
55311         strerror-override: Don't disable symbol renamings.
55312         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
55313         * lib/strerror-override.c: Include config.h.
55314         (strerror_override): Don't undefine.
55316 2011-06-03  Bruno Haible  <bruno@clisp.org>
55318         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
55319         * lib/localename.h: Update copyright header.
55320         * lib/localename.c: Likewise.
55321         * lib/relocatable.h: Likewise.
55322         * lib/relocatable.c: Likewise.
55324 2011-06-02  Bruno Haible  <bruno@clisp.org>
55326         doc: Fix a module name.
55327         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55329 2011-06-02  Bruno Haible  <bruno@clisp.org>
55331         pipe2: Remove dependency on 'nonblocking' module.
55332         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55333         O_NONBLOCK is defined by gnulib.
55334         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55335         is zero.
55336         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55337         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55338         defined by gnulib.
55339         (get_nonblocking_flag): New function.
55340         (main): Test O_NONBLOCK flag only if it is nonzero.
55341         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55343 2011-06-03  Jim Meyering  <meyering@redhat.com>
55345         maint: three new prohibit-header-without-use rules
55346         Prohibit use of cloexec.h, posixver.h, same.h without use.
55347         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55348         (sc_prohibit_posixver_without_use): Likewise.
55349         (sc_prohibit_same_without_use): Likewise.
55351 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55353         allocator: 'die' routine is now given requested size
55354         * lib/allocator.h (struct allocator.die): New size arg.
55355         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55356         If the actual problem is an ssize_t limitation, not a size_t or
55357         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55359 2011-06-01  Eric Blake  <eblake@redhat.com>
55361         strerror: drop strerror_r dependency
55362         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55363         * lib/strerror-override.c (strerror_override): ...to new file.
55364         * lib/strerror-override.h: Add prototype.
55365         * lib/strerror-impl.h: Delete.
55366         * lib/strerror.c (strerror): New implementation.
55367         * modules/errno (Files): Add new files.
55368         (configure.ac): Compile new file as appropriate.
55369         * modules/strerror (Files): Drop unused file.
55370         (Depends-on): Drop strerror_r-posix.
55371         * MODULES.html.sh: Document strerror_r-posix.
55372         Requested by Sam Steingold.
55374         perror: call strerror_r directly
55375         * modules/perror (Files): Drop strerror-impl.h.
55376         * lib/perror.c (perror): Use our own stack buffer, rather than
55377         calling a wrapper that uses static storage.
55378         * doc/posix-functions/perror.texi (perror): Document a limitation
55379         of our replacement.
55381         strerror_r: fix includes for FreeBSD
55382         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55383         since we use abort on some platforms.
55384         Reported by Matthias Bolte.
55386 2011-05-31  Bruno Haible  <bruno@clisp.org>
55388         Fix link errors in tests: openat-die uses gettext-h.
55389         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55390         against $(LIBINTL).
55391         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55392         against $(LIBINTL).
55393         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55394         $(LIBINTL).
55395         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55396         against $(LIBINTL).
55397         * modules/linkat-tests (Makefile.am): Link test-linkat against
55398         $(LIBINTL).
55399         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55400         $(LIBINTL).
55401         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55402         against $(LIBINTL).
55403         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55404         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55405         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55406         $(LIBINTL).
55407         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55408         $(LIBINTL).
55409         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55410         $(LIBINTL).
55411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55413 2011-05-31  Bruno Haible  <bruno@clisp.org>
55415         Fix link errors in tests: wait-process uses gettext-h.
55416         * modules/nonblocking-pipe-tests (Makefile.am): Set
55417         test_nonblocking_pipe_main_LDADD.
55418         * modules/nonblocking-socket-tests (Makefile.am): Link
55419         test-nonblocking-socket-main against $(LIBINTL).
55420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55422 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55424         assert-h: work around 'verify' incompatibility
55425         * lib/verify.h: Use @...@ directives, not ifdef.
55426         * modules/assert-h (assert.h): Implement the directives.
55427         (assert.h): Substitute the symbol-prefix more consistently.
55429 2011-05-29  Jim Meyering  <meyering@redhat.com>
55431         trim: remove three superfluous assignments
55432         * lib/trim.c (trim2): Remove three superfluous assignments
55433         and correct brace positioning.
55435 2011-05-29  Bruno Haible  <bruno@clisp.org>
55437         wctype-h: Avoid namespace pollution on Solaris 2.6.
55438         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55439         identifiers.
55440         * doc/posix-headers/wctype.texi: Mention the problem.
55441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55443 2011-05-28  Jim Meyering  <meyering@redhat.com>
55445         parse-datetime.y: accommodate -Wstrict-overflow
55446         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55447         placate -Wstrict-overflow.
55449         trim: avoid a warning from -O2 -Wstrict-overflow
55450         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55452 2011-05-29  Bruno Haible  <bruno@clisp.org>
55454         gnulib-tool: Fix bug in yesterday's commit.
55455         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55456         twice.
55458 2011-05-29  Bruno Haible  <bruno@clisp.org>
55460         Allow multiple gnulib generated include files to be combined.
55461         * gnulib-tool (func_compute_include_guard_prefix): New function.
55462         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55463         ${gl_include_guard_prefix} references.
55464         (func_import, func_create_testdir): Invoke
55465         func_compute_include_guard_prefix.
55466         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55467         * lib/ctype.in.h: Likewise.
55468         * lib/dirent.in.h: Likewise.
55469         * lib/errno.in.h: Likewise.
55470         * lib/fcntl.in.h: Likewise.
55471         * lib/float.in.h: Likewise.
55472         * lib/getopt.in.h: Likewise.
55473         * lib/iconv.in.h: Likewise.
55474         * lib/langinfo.in.h: Likewise.
55475         * lib/locale.in.h: Likewise.
55476         * lib/math.in.h: Likewise.
55477         * lib/netdb.in.h: Likewise.
55478         * lib/netinet_in.in.h: Likewise.
55479         * lib/poll.in.h: Likewise.
55480         * lib/pthread.in.h: Likewise.
55481         * lib/pty.in.h: Likewise.
55482         * lib/sched.in.h: Likewise.
55483         * lib/se-selinux.in.h: Likewise.
55484         * lib/search.in.h: Likewise.
55485         * lib/signal.in.h: Likewise.
55486         * lib/spawn.in.h: Likewise.
55487         * lib/stdarg.in.h: Likewise.
55488         * lib/stddef.in.h: Likewise.
55489         * lib/stdint.in.h: Likewise.
55490         * lib/stdio.in.h: Likewise.
55491         * lib/stdlib.in.h: Likewise.
55492         * lib/string.in.h: Likewise.
55493         * lib/strings.in.h: Likewise.
55494         * lib/sys_file.in.h: Likewise.
55495         * lib/sys_ioctl.in.h: Likewise.
55496         * lib/sys_select.in.h: Likewise.
55497         * lib/sys_socket.in.h: Likewise.
55498         * lib/sys_stat.in.h: Likewise.
55499         * lib/sys_time.in.h: Likewise.
55500         * lib/sys_times.in.h: Likewise.
55501         * lib/sys_uio.in.h: Likewise.
55502         * lib/sys_utsname.in.h: Likewise.
55503         * lib/sys_wait.in.h: Likewise.
55504         * lib/sysexits.in.h: Likewise.
55505         * lib/termios.in.h: Likewise.
55506         * lib/time.in.h: Likewise.
55507         * lib/unistd.in.h: Likewise.
55508         * lib/wchar.in.h: Likewise.
55509         * lib/wctype.in.h: Likewise.
55510         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55511         * modules/ctype (Makefile.am): Likewise.
55512         * modules/dirent (Makefile.am): Likewise.
55513         * modules/errno (Makefile.am): Likewise.
55514         * modules/fcntl-h (Makefile.am): Likewise.
55515         * modules/float (Makefile.am): Likewise.
55516         * modules/getopt-posix (Makefile.am): Likewise.
55517         * modules/iconv-h (Makefile.am): Likewise.
55518         * modules/langinfo (Makefile.am): Likewise.
55519         * modules/locale (Makefile.am): Likewise.
55520         * modules/math (Makefile.am): Likewise.
55521         * modules/netdb (Makefile.am): Likewise.
55522         * modules/netinet_in (Makefile.am): Likewise.
55523         * modules/poll-h (Makefile.am): Likewise.
55524         * modules/pthread (Makefile.am): Likewise.
55525         * modules/pty (Makefile.am): Likewise.
55526         * modules/sched (Makefile.am): Likewise.
55527         * modules/search (Makefile.am): Likewise.
55528         * modules/selinux-h (Makefile.am): Likewise.
55529         * modules/signal (Makefile.am): Likewise.
55530         * modules/spawn (Makefile.am): Likewise.
55531         * modules/stdarg (Makefile.am): Likewise.
55532         * modules/stddef (Makefile.am): Likewise.
55533         * modules/stdint (Makefile.am): Likewise.
55534         * modules/stdio (Makefile.am): Likewise.
55535         * modules/stdlib (Makefile.am): Likewise.
55536         * modules/string (Makefile.am): Likewise.
55537         * modules/strings (Makefile.am): Likewise.
55538         * modules/sys_file (Makefile.am): Likewise.
55539         * modules/sys_ioctl (Makefile.am): Likewise.
55540         * modules/sys_select (Makefile.am): Likewise.
55541         * modules/sys_socket (Makefile.am): Likewise.
55542         * modules/sys_stat (Makefile.am): Likewise.
55543         * modules/sys_time (Makefile.am): Likewise.
55544         * modules/sys_times (Makefile.am): Likewise.
55545         * modules/sys_uio (Makefile.am): Likewise.
55546         * modules/sys_utsname (Makefile.am): Likewise.
55547         * modules/sys_wait (Makefile.am): Likewise.
55548         * modules/sysexits (Makefile.am): Likewise.
55549         * modules/termios (Makefile.am): Likewise.
55550         * modules/time (Makefile.am): Likewise.
55551         * modules/unistd (Makefile.am): Likewise.
55552         * modules/wchar (Makefile.am): Likewise.
55553         * modules/wctype-h (Makefile.am): Likewise.
55554         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55556 2011-05-29  Bruno Haible  <bruno@clisp.org>
55558         assert-h: Allow multiple gnulib generated replacements to coexist.
55559         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55561 2011-05-29  Bruno Haible  <bruno@clisp.org>
55563         argp: Allow coexistence with strerror_r-posix module.
55564         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55565         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55566         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55567         not the glibc signature.
55569 2011-05-28  Bruno Haible  <bruno@clisp.org>
55571         gnulib-tool: Alternative structure of testdirs, similar to --import.
55572         * gnulib-tool: New option --single-configure.
55573         (func_usage): Document it.
55574         (single_configure): New variable.
55575         (func_modules_transitive_closure_separately,
55576         func_modules_transitive_closure_separately,
55577         func_determine_use_libtests, func_modules_add_dummy_separately,
55578         func_modules_to_filelist_separately): New functions, extracted from
55579         func_import.
55580         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55581         (func_import): Use the new functions.
55582         (func_create_testdir): Set final_modules. Handle $single_configure =
55583         true case.
55585 2011-05-28  Bruno Haible  <bruno@clisp.org>
55587         getloadavg: Remove an unreliable safety check.
55588         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55589         getloadavg.c is in place.
55590         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55591         Reported by Sam Steingold <sds@gnu.org>.
55593 2011-05-28  Bruno Haible  <bruno@clisp.org>
55595         doc: Cleanup yet another file produced by texinfo.tex.
55596         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55598 2011-05-28  Bruno Haible  <bruno@clisp.org>
55600         Finish the conditional dependencies mechanism.
55601         * gnulib-tool: New option --no-conditional-dependencies.
55602         (func_usage): Document it. Don't mark --conditional-dependencies as
55603         experimental.
55604         (cond_dependencies): The possible values can now be true, false, empty.
55605         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55606         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55607         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55609 2011-05-28  Bruno Haible  <bruno@clisp.org>
55611         doc: Use a recent texinfo.tex.
55612         * doc/Makefile (tex_opts): New variable.
55613         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55615 2011-05-28  Jim Meyering  <meyering@redhat.com>
55617         intprops.h: adjust comment to match code change
55618         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55619         only once, it *may* have side effects.  Also fix an unrelated typo.
55620         (_GL_INT_SIGNED): Likewise.
55622 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55624         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55626 2011-05-26  Bruno Haible  <bruno@clisp.org>
55628         mbsrchr: Avoid collision with system function on Interix.
55629         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55630         Reported by Markus Duft <mduft@gentoo.org>.
55632 2011-05-15  James Youngman  <jay@gnu.org>
55634         getopt: for ambiguous options, enumerate the possibilities.
55635         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55636         the ambiguous options when an ambiguous prefix is given. This was
55637         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55638         glibc change was
55639         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55641 2011-05-25  Eric Blake  <eblake@redhat.com>
55643         getcwd: work around mingw bug
55644         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55645         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55646         Reported by Matthias Bolte.
55648 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55650         test-intprops: disable -Wtype-limits diagnostics
55651         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55652         diagnostics.  Otherwise, the integer overflow macros generate many
55653         diagnostics.  Reported by Jim Meyering in
55654         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55656         intprops: shorten, to pacify gcc -Woverlength-strings
55657         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55658         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55659         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55660         likely to run afoul of C compiler limits for string constant lengths.
55661         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55663 2011-05-24  Eric Blake  <eblake@redhat.com>
55665         docs: document recently fixed glibc printf bug
55666         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55667         * doc/posix-functions/printf.texi (printf): Likewise.
55668         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55669         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55671         closein-tests: convert to init.sh
55672         * modules/closein-tests (Files): Add init.sh
55673         * tests/test-closein.sh Use it.
55675         yesno-tests: convert to init.sh
55676         * modules/yesno-tests (Files): Add init.sh.
55677         * tests/test-yesno.sh: Use it.
55679         atexit-tests: ensure reliable exit status
55680         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55681         Reported by Bruno Haible.
55683 2011-05-24  Bruno Haible  <bruno@clisp.org>
55685         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55687         gl_PREREQ_STRERROR_R invocations from here...
55688         * modules/strerror_r-posix (configure.ac): ... to here.
55690 2011-05-24  Eric Blake  <eblake@redhat.com>
55692         strerror_r: fix missing header
55693         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55695         strerror_r: fix AIX test failures
55696         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55697         ERANGE failure.
55699         strerror_r: fix Solaris test failures
55700         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55701         failures.
55702         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55704         strerror_r: enforce POSIX recommendations
55705         * lib/strerror_r.c (safe_copy): New helper method.
55706         (strerror_r): Guarantee a non-empty string.
55707         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55708         recent POSIX rulings and to match our strerror guarantees.
55709         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55711 2011-05-24  Jim Meyering  <meyering@redhat.com>
55713         test-perror2.c: avoid warning about unused variable
55714         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55716 2011-05-24  Eric Blake  <eblake@redhat.com>
55718         perror: avoid spurious test failure on HP-UX
55719         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55721         tests: fix logic bug in init.sh
55722         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55723         shell.
55725 2011-05-24  Jim Meyering  <meyering@redhat.com>
55727         utimensat: do not reference an out-of-scope buffer
55728         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55729         declared in an inner scope, yet "times" would be dereferenced outside
55730         the scope in which "ts" was valid.
55731         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55732         of ts[2] "out/up", so that the use of aliased "times" (via
55733         "times = ts;") does not end up referencing an out-of-scope "ts"
55735         opendir-safer.c: don't clobber errno; don't close negative FD
55736         * lib/opendir-safer.c (opendir_safer):
55737         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55738         file descriptor, and more importantly, don't clobber the
55739         offending errno value with EINVAL.  Before, upon failure
55740         of dup_safer, we would pass the negative file descriptor to
55741         fdopendir, which would clobber errno.
55743 2011-05-23  Bruno Haible  <bruno@clisp.org>
55745         idcache: Fix module description.
55746         * modules/idcache (Include): Set to "idcache.h".
55748 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55750         gnulib-tool: fix portability problem with MacOS sed
55751         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55752         before the "}".  Problem reported by Leo in
55753         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55754         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55755         sed_extract_condition1, sed_extract_condition2.
55757 2011-05-23  Bruno Haible  <bruno@clisp.org>
55759         hash: Simplify autoconf macro.
55760         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55762 2011-05-23  Bruno Haible  <bruno@clisp.org>
55764         getugroups: Fix module description.
55765         * modules/getugroups (Include): Set to "getugroups.h".
55767 2011-05-23  Bruno Haible  <bruno@clisp.org>
55769         linkat: Simplify autoconf macro.
55770         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55772 2011-05-23  Bruno Haible  <bruno@clisp.org>
55773             Eric Blake  <eblake@redhat.com>
55775         linkat, renameat: Update dependencies.
55776         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55777         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55778         symlinkat.
55780 2011-05-23  Jim Meyering  <meyering@redhat.com>
55782         maint.mk: more tight_scope improvements
55783         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55784         (_gl_TS_headers): Define only in if-0'd block.
55785         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55786         sometimes we must *not* use it.  Adjust uses accordingly.
55787         (sc_tight_scope): Use much simpler grep-based test to determine
55788         whether we skip this rule.
55790         maint.mk: generalize/improve the tight-scope rule
55791         * top/maint.mk: Emit a warning when the test is skipped.
55792         (_gl_TS_dir): Add $(srcdir)/ prefix.
55793         (_gl_TS_function_match): Simplify, rather than trying
55794         to enumerate common types.  Otherwise, it would fail to match an
55795         "extern unsigned char const *" declaration in idutils.
55796         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55797         a way to support use of that type of macro.
55798         (_gl_TS_var_match): Simplify regexp.
55799         (_gl_TS_obj_files): New configurable variable.
55800         (_gl_TS_headers): Likewise.
55802 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55804         verify: fix bug when gnulib <assert.h> is also included
55805         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55806         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55807         Perhaps there's a better way, but this fixes the immediate problem.
55808         Problem reported by Bruno Haible in
55809         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55811 2011-05-22  Bruno Haible  <bruno@clisp.org>
55813         xgetcwd: Simplify autoconf macro.
55814         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55816 2011-05-22  Bruno Haible  <bruno@clisp.org>
55818         New module 'mktime-internal'.
55819         * modules/mktime-internal: New file.
55820         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55821         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55822         mktime_internal as a C macro if libc has __mktime_internal.
55823         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55824         conditions.
55825         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55827 2011-05-22  Bruno Haible  <bruno@clisp.org>
55829         timegm: Correct mktime replacement statements.
55830         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55831         defining mktime as a C macro. This completes a 2009-07-28 commit.
55833 2011-05-22  Bruno Haible  <bruno@clisp.org>
55835         timegm: Simplify autoconf macro.
55836         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55838 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55840         clock-time: change to LGPLv2+.
55841         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55842         BSD-like but we have no mark for that; this is good enough for now.
55844 2011-05-21  Bruno Haible  <bruno@clisp.org>
55846         strerror_r: Fix comments.
55847         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55849 2011-05-21  Bruno Haible  <bruno@clisp.org>
55851         relocatable-prog-wrapper: Fix possible link error.
55852         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55853         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55854         (gl_FUNC_SETENV): ... to here.
55855         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55856         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55858 2011-05-21  Bruno Haible  <bruno@clisp.org>
55860         relocatable-prog-wrapper: Assume strerror() exists.
55861         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55862         m4/strerror.m4.
55863         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55864         * lib/relocwrapper.c: Remove mention of strerror module.
55865         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55866         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55867         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55868         C macro.
55870 2011-05-21  Bruno Haible  <bruno@clisp.org>
55872         select: Simplify replacement idiom.
55873         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55874         Win32 platforms.
55875         * lib/sys_select.in.h (select): Simplify accordingly.
55876         * modules/select (Depends-on): Likewise.
55878 2011-05-21  Bruno Haible  <bruno@clisp.org>
55880         mkdir-p: Simplify autoconf macro.
55881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55882         gl_FUNC_LCHOWN.
55884 2011-05-21  Eric Blake  <eblake@redhat.com>
55886         strerror_r: avoid clobbering strerror on cygwin
55887         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55888         fall back instead to sys_errlist.
55889         * modules/strerror (configure.ac): Add witness.
55890         * tests/test-strerror_r.c (main): Enhance test.
55891         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55892         * tests/test-perror2.c (main): Free memory before exit.
55894 2011-05-21  Bruno Haible  <bruno@clisp.org>
55896         mkdtemp: Use gnulib naming conventions.
55897         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55898         * modules/mkdtemp (configure.ac): Update.
55900 2011-05-20  Eric Blake  <eblake@redhat.com>
55902         strerror_r: avoid corrupting errno on Solaris
55903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55904         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55906         strerror_r: avoid compiler warning
55907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55909         strerror_r: simplify AIX code
55910         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55912         test-perror: avoid spurious failure on FreeBSD
55913         * modules/perror-tests (Depends-on): Add strerror, now that
55914         strerror_r no longer pulls it in.
55916 2011-05-20  Bruno Haible  <bruno@clisp.org>
55918         strerror_r-posix: Remove unused dependencies.
55919         * modules/strerror_r-posix (Depends-on): Remove strerror.
55920         Reported by Eric Blake.
55922 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55924         intprops: remove assumption about A|B representation
55925         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55926         is a valid integer if both A and B are.  Although this is true for
55927         all known practical hosts, the C standard doesn't guarantee it,
55928         and the code need not assume it.  Also, this change may work around
55929         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55930         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55932 2011-05-20  Eric Blake  <eblake@redhat.com>
55934         perror: work around FreeBSD bug
55935         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55936         is broken.  Move AC_LIBOBJ...
55937         * modules/perror (configure.ac): Here.
55938         * doc/posix-functions/perror.texi (perror): Document this.
55939         * tests/test-perror2.c (main): Enhance test.
55941         test-perror: check for strerror interactions
55942         * tests/macros.h (STREQ): Add macro.
55943         * modules/perror-tests (Files): Add second test.
55944         * tests/test-perror2.c (main): New file.
55945         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55947         test-perror: rewrite to use init script
55948         * modules/perror-tests (Files): Add init.sh.
55949         * tests/test-perror.sh: Use temporary directory.
55951 2011-05-20  Jim Meyering  <meyering@redhat.com>
55953         maint: replace misused "a" with "an"
55954         * doc/intprops.texi: "a integer"
55955         * doc/regex.texi: "a explanation"
55956         * lib/alignof.h: "a object"
55957         * lib/argmatch.h: "a explanation"
55958         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55959         * lib/stdint.in.h: "a integer"
55960         * lib/userspec.c: "a owner"
55961         * doc/gnulib.texi: Fix "a idea", and reword.
55963 2011-05-19  Jim Meyering  <meyering@redhat.com>
55965         maint: correct misuse of "a" and "an"
55966         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55967         * lib/argp-help.c: "an docum...": s/an/a/
55968         * lib/argp-parse.c: "An vector": s/An/A/
55969         * lib/execute.c: "an native": s/an/a/
55970         * lib/spawn-pipe.c: Likewise.
55971         * lib/gc.h: "an Gc_rc": s/an/a/
55972         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55973         * lib/fts.c: "an stat.st_dev": s/an/a/
55975 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55977         intprops-tests: work around HP-UX 11.23 cc bug with constants
55978         * tests/test-intprops.c (VERIFY): New macro.
55979         (main): Use it, instead of verify, to work around the compiler bug; see
55980         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55982         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55983         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55984         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55985         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55986         (_GL_REMAINDER_OVERFLOW): Use it.
55988         intprops-tests: revert unsigned part of previous change
55989         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55990         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55991         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55992         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55994 2011-05-19  Bruno Haible  <bruno@clisp.org>
55996         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55997         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55998         strerror_r() returned without filling the buffer.
55999         Reported by Eric Blake.
56001 2011-05-19  Eric Blake  <eblake@redhat.com>
56003         strerror_r: guarantee unchanged errno
56004         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
56005         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
56006         failure.
56007         * tests/test-strerror_r.c (main): Enhance test.
56009 2011-05-19  Bruno Haible  <bruno@clisp.org>
56011         strerror_r: Reorder #if blocks.
56012         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
56013         for consistency with the previous commit.
56015 2011-05-19  Bruno Haible  <bruno@clisp.org>
56017         perror: Avoid clobbering the strerror buffer when possible.
56018         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
56019         * lib/strerror.c: Include it.
56020         * modules/strerror (Files): Add lib/strerror-impl.h.
56021         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
56022         (my_strerror): New function, defined through lib/strerror-impl.h.
56023         (perror): Use it instead of strerror.
56024         * modules/perror (Files): Add lib/strerror-impl.h.
56025         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
56027 2011-05-19  Eric Blake  <eblake@redhat.com>
56029         strerror_r: fix on newer cygwin
56030         * lib/strerror_r.c (strerror_r): Cygwin now has
56031         __xpg_strerror_r, use it.
56033 2011-05-19  Bruno Haible  <bruno@clisp.org>
56035         strerror_r: Avoid clobbering the strerror buffer when possible.
56036         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
56037         (sys_nerr, sys_errlist): New declarations.
56038         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
56039         HP-UX, native Win32, IRIX, and 32-bit Solaris.
56040         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
56042 2011-05-19  Bruno Haible  <bruno@clisp.org>
56044         strerror_r: Fix test failure on mingw.
56045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
56046         EXTEND_STRERROR_R.
56047         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
56048         macros from errno.in.h instead.
56050 2011-05-19  Eric Blake  <eblake@redhat.com>
56052         strerror: relax test for Solaris
56053         * tests/test-strerror.c (main): Permit Solaris behavior.
56054         * tests/test-strerror_r.c (main): Likewise.
56056         strerror: enforce POSIX ruling on strerror(0)
56057         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
56058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
56059         * lib/strerror_r.c (rpl_strerror_r): Work around it.
56060         * doc/posix-functions/strerror.texi (strerror): Document it.
56061         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
56062         * tests/test-strerror.c (main): Strengthen test.
56063         * tests/test-strerror_r.c (main): Likewise.
56065 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56067         intprop-tests: port to older and more-pedantic compilers
56068         * modules/intprops-tests (Files): Add tests/macros.h.
56069         * tests/test-intprops.c: Include macros.h.
56070         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
56071         it's no longer documented to expand to an integer constant expression.
56072         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
56073         argument is floating point, as it's no longer documented to expand
56074         to an integer constant expression in that case.
56075         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
56076         compiler bugs reported by Bruno Haible.  See
56077         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56078         (U0, U1): New constants, to work around the same bugs.  Also,
56079         in tests, use e.g., "(unsigned int) 39" rather than "39u".
56081         intprops: work around C compiler bugs
56082         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
56083         bug in Sun C 5.11 2010/08/13 and other compilers; see
56084         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56086         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
56087         * doc/intprops.texi (Integer Type Determination): Fix
56088         documentation for TYPE_IS_INTEGER: it returns an constant
56089         expression, not an integer constant expression.  Fix doc for
56090         TYPE_SIGNED: it returns an integer constant expression only if its
56091         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
56092         hardly worth documented that way....)
56094 2011-05-18  Bruno Haible  <bruno@clisp.org>
56096         strerror_r: Avoid clobbering the strerror buffer when possible.
56097         * lib/strerror_r.c (strerror_r): Merge the three implementations.
56098         Handle gnulib defined errno values here. When strerror() returns NULL
56099         or an empty string, return EINVAL.
56100         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
56101         gnulib defined errno values here.
56102         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
56104 2011-05-18  Eric Blake  <eblake@redhat.com>
56106         fnmatch: avoid compiler warning
56107         * lib/fnmatch_loop.c (FCT): Use correct type.
56108         Reported by Matthias Bolte.
56110 2011-05-13  Jim Meyering  <meyering@redhat.com>
56112         maint.mk: three new prohibit_<HDR>_without_use rules
56113         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
56114         (sc_prohibit_stdio-safer_without_use): Likewise.
56115         (sc_prohibit_xfreopen_without_use): Likewise.
56117 2011-05-17  Jim Meyering  <meyering@redhat.com>
56119         announce-gen: fail if the NEWS delta is empty
56120         If there's nothing noteworthy in NEWS, then either you forgot
56121         or you shouldn't be releasing.
56122         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
56124 2011-05-17  Pádraig Brady  <P@draigBrady.com>
56126         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
56127         reserved symbols starting with double underscore from the check.
56129 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56131         intprops: add doc
56132         * doc/intprops.texi: New file, documenting intprops.
56133         * doc/gnulib.texi (Particular Modules): Include it.
56135         verify: add doc to gnulib manual and fix example
56136         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
56137         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
56138         (Compile-time Assertions): Fix example so it can't overflow.
56140 2011-05-17  Jim Meyering  <meyering@redhat.com>
56142         warnings.m4: don't usurp save_CPPFLAGS variable name
56143         * m4/warnings.m4: Prefix local temporary variable name with gl_.
56145         doc: fix typo
56146         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
56148 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56149             Bruno Haible  <bruno@clisp.org>
56151         doc: Tweak recent change.
56152         * README (Portability guidelines): Tweak new text.
56153         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
56154         Interix 6.1.
56156 2011-05-16  Eric Blake  <eblake@redhat.com>
56158         inttypes: avoid autoconf warning
56159         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
56160         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56162 2011-05-16  Sam Steingold  <sds@gnu.org>
56163         and Eric Blake  <eblake@redhat.com>
56165         vc-list-files: accept multiple directory operands
56166         * build-aux/vc-list-files: Iterate over all remaining operands.
56168 2011-05-16  Bruno Haible  <bruno@clisp.org>
56170         Fix confusion regarding deprecated modules.
56171         * modules/calloc (Status, Notice): Mark module as deprecated, not
56172         obsolete.
56173         * modules/fnmatch-posix (Status, Notice): Likewise.
56174         * modules/getdate (Status, Notice): Likewise.
56175         * modules/getopt (Status, Notice): Likewise.
56176         * modules/malloc (Status, Notice): Likewise.
56177         * modules/pipe (Status, Notice): Likewise.
56178         * modules/realloc (Status, Notice): Likewise.
56179         * modules/rename-dest-slash (Status, Notice): Likewise.
56180         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
56181         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
56182         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
56183         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
56184         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
56186 2011-05-16  Bruno Haible  <bruno@clisp.org>
56188         doc: List the target platforms.
56189         * doc/gnulib-intro.texi (Target Platforms): New section.
56190         * doc/gnulib.texi (Introduction): Update menu.
56191         * README (Portability guidelines): Refer to the new section. Update
56192         statement about oldest supported environment. Remove rationale why
56193         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
56194         unportable C89 function.
56195         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
56196         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
56198 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56200         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
56202 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56204         intprops-tests: new module
56205         * modules/intprops-tests, tests/test-intprops.c: New files.
56207         intprops: add safe, portable integer overflow checking
56208         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
56209         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
56210         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
56211         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
56212         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
56213         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
56214         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
56215         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
56216         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
56217         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
56218         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
56220 2011-05-12  James Youngman  <jay@gnu.org>
56222         Add a test for glibc's Bugzilla bug #12378.
56223         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
56224         doesn't allow the literal matching of a lone "[" (which is
56225         required by POSIX).
56226         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
56228 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
56230         Sync glibc change fixing Bugzilla bug #12378.
56231         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
56232         beginning and fall back to matching as normal character if the
56233         string ends before the matching ']' is found.  This is what POSIX
56234         requires.
56236 2011-05-13  Eric Blake  <eblake@redhat.com>
56238         getcwd-lgpl: relax test for FreeBSD
56239         * doc/posix-functions/getcwd.texi (getcwd): Document portability
56240         issue.
56241         * tests/test-getcwd-lgpl.c (main): Relax test.
56242         Reported by Matthias Bolte.
56244 2011-05-11  Eric Blake  <eblake@redhat.com>
56246         test-fflush: silence compiler warning
56247         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
56249 2011-05-11  Bruno Haible  <bruno@clisp.org>
56251         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
56252         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
56253         * modules/canonicalize (Depends-on): Add 'nocrash'.
56254         * modules/canonicalize-lgpl (Depends-on): Likewise.
56255         * doc/posix-functions/realpath.texi: Update platforms list.
56256         Reported by Ryan Schmidt <ryandesign@macports.org>.
56258 2011-05-11  Bruno Haible  <bruno@clisp.org>
56260         group-member: Declare function in <unistd.h>.
56261         * lib/unistd.in.h (group_member): New declaration.
56262         * lib/group-member.h: Remove file.
56263         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
56264         * tests/test-unistd-c++.cc: Check signature of group_member.
56265         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
56266         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
56267         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
56268         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
56269         HAVE_GROUP_MEMBER.
56270         * modules/group-member (Files): Remove lib/group-member.h.
56271         (Depends-on): Add unistd. Specify conditions.
56272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56273         (Include): Change to <unistd.h>.
56274         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
56275         HAVE_GROUP_MEMBER.
56276         * NEWS: Mention the change.
56277         * lib/euidaccess.c: Don't include group-member.h.
56279 2011-05-11  Bruno Haible  <bruno@clisp.org>
56281         group-member: Document module.
56282         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
56283         module.
56285 2011-05-11  Bruno Haible  <bruno@clisp.org>
56287         fclose: Fix mistake earlier today.
56288         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
56290 2011-05-11  Eric Blake  <eblake@redhat.com>
56292         fclose: preserve fflush errors
56293         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
56294         Reported by Jim Meyering.
56296         bootstrap: support a prereq of 'rpcgen -' on RHEL5
56297         * build-aux/bootstrap (check_versions): When no specific version
56298         is required, merely check that the app produces an exit status
56299         that indicates its existence.
56301         maint.mk: drop redundant check
56302         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
56303         the same but better.
56305 2011-05-11  Bruno Haible  <bruno@clisp.org>
56307         fclose: Fix possible link error.
56308         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
56309         unregister_shadow_fd. Improve comments.
56310         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
56311         Eric Blake.
56313 2011-05-11  Jim Meyering  <meyering@redhat.com>
56315         maint.mk: improve "can not" detection and generalize rule name
56316         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
56317         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
56318         Use the same technique as in sc_prohibit_doubled_word, so that
56319         we recognize "can not" also when the words are separated by a newline.
56320         Suggested by Eric Blake.
56321         (perl_filename_lineno_text_): Define.  Factored out of...
56322         (prohibit_doubled_word_): ...here.  Use the new definition.
56323         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
56324         (prohibit_undesirable_word_seq_RE_): New overridable variable.
56325         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56327 2011-05-10  Eric Blake  <eblake@redhat.com>
56329         fclose: avoid double close race when possible
56330         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56331         all but WINDOWS_SOCKETS.
56333 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56335         openat: correct new comment
56336         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56338 2011-05-10  Jim Meyering  <meyering@redhat.com>
56340         openat: add comments
56341         * lib/openat-proc.c (openat_proc_name): Add comments,
56342         mostly from Eric Blake.
56344 2011-05-09  Eric Blake  <eblake@redhat.com>
56346         openat: reduce syscalls in first probe of /proc
56347         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56348         be a directory.  Simplify the probe for .. bugs.
56349         * modules/openat (Depends-on): Drop same-inode.
56350         Reported by Bastien ROUCARIES.
56352 2011-05-09  Jim Meyering  <meyering@redhat.com>
56354         maint.mk: change semantics/name of tight_scope variables
56355         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56356         Rename variables to align with semantics that make them more useful.
56358         maint.mk: tweak new rule's name not to impinge
56359         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56360         (sc_tight_scope): Use new rule name rather than $@-0.
56362         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56363         * top/maint.mk (sc_tight_scope): New rule.
56364         (sc_tight_scope-0): New rule, ifdef'd out.
56365         (_gl_TS_dir): Default.
56366         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56367         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56369 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56371         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56372         Haible <bruno@clisp.org>.
56374 2011-05-08  Bruno Haible  <bruno@clisp.org>
56376         Comments.
56377         * m4/isnanf.m4: Add comment.
56378         * m4/isnanl.m4: Likewise.
56380 2011-05-08  Bruno Haible  <bruno@clisp.org>
56382         glob: Remove obsolete macro.
56383         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56385 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56387         intprops: Sun C 5.11 supports __typeof__
56388         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56389         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56390         which is new.
56391         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56393         intprops: switch to usual gnulib indenting and naming
56394         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56395         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56397         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56399 2011-05-08  Jim Meyering  <meyering@redhat.com>
56401         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56402         * top/maint.mk (release-prep): Use make's --no-print-directory
56403         option when generating the announcement.  This eliminates the
56404         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56405         generated announcement template.
56407 2011-05-08  Bruno Haible  <bruno@clisp.org>
56409         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56410         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56411         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56413 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56415         ignore-value, verify: Omit include files from lib_SOURCES.
56416         * modules/ignore-value, modules/verify (Makefile.am):
56417         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56418         that leads Automake to duplicate use of am__objects_... variables
56419         in Makefile.in.  See
56420         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56422 2011-05-07  Bruno Haible  <bruno@clisp.org>
56424         fclose: Simplify autoconf macro.
56425         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56426         defined.
56428 2011-05-07  Bruno Haible  <bruno@clisp.org>
56430         canonicalize-lgpl: Fix autoconf macro ordering bug.
56431         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56432         gl_STDLIB_H_DEFAULTS.
56434 2011-05-06  Eric Blake  <eblake@redhat.com>
56436         maintainer-makefile: make sc_po_check easier to tune
56437         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56438         to probe for strings, such as an alternate location for gnulib.
56440         fclose: guarantee behavior on seekable stdin
56441         * modules/fclose (Depends-on): Add fflush.
56442         * doc/posix-functions/fclose.texi (fclose): Document this.
56443         * tests/test-fclose.c (main): Make test for this unconditional.
56445 2011-05-06  Bruno Haible  <bruno@clisp.org>
56447         fflush, fpurge: Relicense under LGPLv2+.
56448         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56449         * modules/fpurge (License): Likewise.
56450         With permission from Eric Blake and Jim Meyering.
56451         Suggested by Eric Blake.
56453 2011-05-06  Karl Berry  <karl@gnu.org>
56455         * MODULES.html.sh (func_all_modules): remove exit.
56457 2011-05-06  Jim Meyering  <meyering@redhat.com>
56459         maint.mk: use info-gnu@ as the default only for a stable release
56460         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56461         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56462         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56463         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56465 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56467         assert-h: new module, which supports C1X-style static_assert
56468         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56469         * lib/verify.h: Revamp so that this can be copied into assert.h,
56470         while retaining the ability to use it standalone as before.
56471         Rename private identifiers so as not to encroach on the
56472         standard C namespace, since this is now used by assert.h.
56473         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56474         the old verify_true.
56475         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56476         the old verify_true.  Use _GL_VERIFY_TYPE.
56477         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56478         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56479         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56480         defined when this file is copied into the replacement assert.h.
56481         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56482         and _Static_assert is not built in.
56483         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56484         defined, and use the new macros mentioned above.
56485         * doc/posix-headers/assert.texi: Document this.
56487 2011-05-05  Bruno Haible  <bruno@clisp.org>
56489         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56490         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56491         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56492         gl_REPLACE_FCLOSE here.
56493         * modules/fflush (Depends-on): Remove fclose.
56494         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56495         combination with module 'fclose'.
56497 2011-05-05  Bruno Haible  <bruno@clisp.org>
56499         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56500         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56501         gl_FUNC_FFLUSH.
56502         (gl_FUNC_FFLUSH): Use it.
56503         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56504         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56505         gl_REPLACE_FSEEKO here.
56507 2011-05-05  Bruno Haible  <bruno@clisp.org>
56509         tzset: Relicense under LGPL.
56510         * modules/tzset (License): Change to LGPL.
56511         No agreement needed; it's a no-op.
56513         strtoimax, strtoumax: Relicense under LGPL.
56514         * modules/strtoimax (License): Change to LGPL.
56515         * modules/strtoumax (License): Likewise.
56516         With permission from Jim Meyering, Paul Eggert:
56517         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56518         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56520         getgroups: Relicense under LGPL.
56521         * modules/getgroups (License): Change to LGPL.
56522         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56523         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56524         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56525         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56527         nanosleep: Relicense under LGPL.
56528         * modules/nanosleep (License): Change to LGPL.
56529         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56530         Haible:
56531         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56532         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56533         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56534         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56536         futimens: Relicense under LGPL.
56537         * modules/futimens (License): Change to LGPL.
56538         With permission from Eric Blake:
56539         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56541         fflush: Relicense under LGPL.
56542         * modules/fflush (License): Change to LGPL.
56543         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56544         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56545         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56546         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56548         tmpfile: Relicense under LGPL.
56549         * modules/tmpfile (License): Change to LGPL.
56550         With permission from Ben Pfaff:
56551         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56553         isfinite: Relicense under LGPL.
56554         * modules/isfinite (License): Change to LGPL.
56555         With permission from Ben Pfaff, Bruno Haible:
56556         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56557         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56559         acosl..tanl: Relicense under LGPL.
56560         * modules/acosl (License): Change to LGPL.
56561         * modules/asinl (License): Likewise.
56562         * modules/atanl (License): Likewise.
56563         * modules/cosl (License): Likewise.
56564         * modules/expl (License): Likewise.
56565         * modules/logl (License): Likewise.
56566         * modules/sinl (License): Likewise.
56567         * modules/sqrtl (License): Likewise.
56568         * modules/tanl (License): Likewise.
56569         Source code originally from glibc and Paolo Bonzini. Agreements:
56570         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56571         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56573 2011-05-05  Bruno Haible  <bruno@clisp.org>
56575         signal: Define sighandler_t.
56576         * lib/signal.in.h (sighandler_t): New type.
56577         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56578         whether sighandler_t is defined.
56579         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56580         * modules/signal (Depends-on): Add extensions.
56581         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56582         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56583         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56585 2011-05-05  Eric Blake  <eblake@redhat.com>
56587         maint: remove useless REPLACE_*_H macros
56588         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56589         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56590         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56591         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56592         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56593         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56594         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56595         * m4/btowc.m4: Update callers.
56596         * m4/dirfd.m4: Likewise.
56597         * m4/duplocale.m4: Likewise.
56598         * m4/fchdir.m4: Likewise.
56599         * m4/fdopendir.m4: Likewise.
56600         * m4/inet_ntop.m4: Likewise.
56601         * m4/inet_pton.m4: Likewise.
56602         * m4/ioctl.m4: Likewise.
56603         * m4/mbrlen.m4: Likewise.
56604         * m4/mbrtowc.m4: Likewise.
56605         * m4/mbsinit.m4: Likewise.
56606         * m4/mbsnrtowcs.m4: Likewise.
56607         * m4/mbsrtowcs.m4: Likewise.
56608         * m4/poll.m4: Likewise.
56609         * m4/setlocale.m4: Likewise.
56610         * m4/wcrtomb.m4: Likewise.
56611         * m4/wcsnrtombs.m4: Likewise.
56612         * m4/wcsrtombs.m4: Likewise.
56613         * m4/wctob.m4: Likewise.
56614         * m4/wcwidth.m4: Likewise.
56615         * modules/posix_spawn: Likewise.
56616         * modules/posix_spawn_file_actions_addclose: Likewise.
56617         * modules/posix_spawn_file_actions_adddup2: Likewise.
56618         * modules/posix_spawn_file_actions_addopen: Likewise.
56619         * modules/posix_spawn_file_actions_destroy: Likewise.
56620         * modules/posix_spawn_file_actions_init: Likewise.
56621         * modules/posix_spawnattr_destroy: Likewise.
56622         * modules/posix_spawnattr_getflags: Likewise.
56623         * modules/posix_spawnattr_getpgroup: Likewise.
56624         * modules/posix_spawnattr_getschedparam: Likewise.
56625         * modules/posix_spawnattr_getschedpolicy: Likewise.
56626         * modules/posix_spawnattr_getsigdefault: Likewise.
56627         * modules/posix_spawnattr_getsigmask: Likewise.
56628         * modules/posix_spawnattr_init: Likewise.
56629         * modules/posix_spawnattr_setflags: Likewise.
56630         * modules/posix_spawnattr_setpgroup: Likewise.
56631         * modules/posix_spawnattr_setschedparam: Likewise.
56632         * modules/posix_spawnattr_setschedpolicy: Likewise.
56633         * modules/posix_spawnattr_setsigdefault: Likewise.
56634         * modules/posix_spawnattr_setsigmask: Likewise.
56635         * modules/posix_spawnp: Likewise.
56637 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56639         Add option to do-release-commit-and-tag to specify branch.
56640         * build-aux/do-release-commit-and-tag: Add --branch.
56642 2011-05-03  Bruno Haible  <bruno@clisp.org>
56644         Avoid unnecessary compilation units, through conditional dependencies.
56645         * modules/accept (Depends-on): Add conditions to the dependencies.
56646         * modules/acosl (Depends-on): Likewise.
56647         * modules/argz (Depends-on): Likewise.
56648         * modules/asinl (Depends-on): Likewise.
56649         * modules/atanl (Depends-on): Likewise.
56650         * modules/atoll (Depends-on): Likewise.
56651         * modules/bind (Depends-on): Likewise.
56652         * modules/btowc (Depends-on): Likewise.
56653         * modules/canonicalize-lgpl (Depends-on): Likewise.
56654         * modules/ceil (Depends-on): Likewise.
56655         * modules/ceilf (Depends-on): Likewise.
56656         * modules/ceill (Depends-on): Likewise.
56657         * modules/chdir-long (Depends-on): Likewise.
56658         * modules/chown (Depends-on): Likewise.
56659         * modules/close (Depends-on): Likewise.
56660         * modules/connect (Depends-on): Likewise.
56661         * modules/cosl (Depends-on): Likewise.
56662         * modules/dirfd (Depends-on): Likewise.
56663         * modules/dprintf (Depends-on): Likewise.
56664         * modules/dprintf-posix (Depends-on): Likewise.
56665         * modules/error (Depends-on): Likewise.
56666         * modules/euidaccess (Depends-on): Likewise.
56667         * modules/expl (Depends-on): Likewise.
56668         * modules/faccessat (Depends-on): Likewise.
56669         * modules/fchdir (Depends-on): Likewise.
56670         * modules/fclose (Depends-on): Likewise.
56671         * modules/fcntl (Depends-on): Likewise.
56672         * modules/fdopendir (Depends-on): Likewise.
56673         * modules/fflush (Depends-on): Likewise.
56674         * modules/floor (Depends-on): Likewise.
56675         * modules/floorf (Depends-on): Likewise.
56676         * modules/floorl (Depends-on): Likewise.
56677         * modules/fnmatch (Depends-on): Likewise.
56678         * modules/fopen (Depends-on): Likewise.
56679         * modules/fprintf-posix (Depends-on): Likewise.
56680         * modules/frexp (Depends-on): Likewise.
56681         * modules/frexp-nolibm (Depends-on): Likewise.
56682         * modules/frexpl (Depends-on): Likewise.
56683         * modules/frexpl-nolibm (Depends-on): Likewise.
56684         * modules/fseek (Depends-on): Likewise.
56685         * modules/fsusage (Depends-on): Likewise.
56686         * modules/ftell (Depends-on): Likewise.
56687         * modules/ftello (Depends-on): Likewise.
56688         * modules/futimens (Depends-on): Likewise.
56689         * modules/getcwd (Depends-on): Likewise.
56690         * modules/getcwd-lgpl (Depends-on): Likewise.
56691         * modules/getdelim (Depends-on): Likewise.
56692         * modules/getdomainname (Depends-on): Likewise.
56693         * modules/getgroups (Depends-on): Likewise.
56694         * modules/gethostname (Depends-on): Likewise.
56695         * modules/getline (Depends-on): Likewise.
56696         * modules/getlogin_r (Depends-on): Likewise.
56697         * modules/getopt-posix (Depends-on): Likewise.
56698         * modules/getpeername (Depends-on): Likewise.
56699         * modules/getsockname (Depends-on): Likewise.
56700         * modules/getsockopt (Depends-on): Likewise.
56701         * modules/getsubopt (Depends-on): Likewise.
56702         * modules/getusershell (Depends-on): Likewise.
56703         * modules/glob (Depends-on): Likewise.
56704         * modules/grantpt (Depends-on): Likewise.
56705         * modules/iconv_open (Depends-on): Likewise.
56706         * modules/iconv_open-utf (Depends-on): Likewise.
56707         * modules/inet_ntop (Depends-on): Likewise.
56708         * modules/inet_pton (Depends-on): Likewise.
56709         * modules/ioctl (Depends-on): Likewise.
56710         * modules/isapipe (Depends-on): Likewise.
56711         * modules/isfinite (Depends-on): Likewise.
56712         * modules/isinf (Depends-on): Likewise.
56713         * modules/lchown (Depends-on): Likewise.
56714         * modules/ldexpl (Depends-on): Likewise.
56715         * modules/link (Depends-on): Likewise.
56716         * modules/linkat (Depends-on): Likewise.
56717         * modules/listen (Depends-on): Likewise.
56718         * modules/logl (Depends-on): Likewise.
56719         * modules/lstat (Depends-on): Likewise.
56720         * modules/mbrlen (Depends-on): Likewise.
56721         * modules/mbrtowc (Depends-on): Likewise.
56722         * modules/mbsinit (Depends-on): Likewise.
56723         * modules/mbsnrtowcs (Depends-on): Likewise.
56724         * modules/mbsrtowcs (Depends-on): Likewise.
56725         * modules/mbtowc (Depends-on): Likewise.
56726         * modules/memcmp (Depends-on): Likewise.
56727         * modules/mkdir (Depends-on): Likewise.
56728         * modules/mkdtemp (Depends-on): Likewise.
56729         * modules/mkfifo (Depends-on): Likewise.
56730         * modules/mkfifoat (Depends-on): Likewise.
56731         * modules/mknod (Depends-on): Likewise.
56732         * modules/mkostemp (Depends-on): Likewise.
56733         * modules/mkostemps (Depends-on): Likewise.
56734         * modules/mkstemp (Depends-on): Likewise.
56735         * modules/mkstemps (Depends-on): Likewise.
56736         * modules/mktime (Depends-on): Likewise.
56737         * modules/nanosleep (Depends-on): Likewise.
56738         * modules/open (Depends-on): Likewise.
56739         * modules/openat (Depends-on): Likewise.
56740         * modules/perror (Depends-on): Likewise.
56741         * modules/poll (Depends-on): Likewise.
56742         * modules/popen (Depends-on): Likewise.
56743         * modules/posix_spawn (Depends-on): Likewise.
56744         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56745         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56746         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56747         * modules/posix_spawnp (Depends-on): Likewise.
56748         * modules/pread (Depends-on): Likewise.
56749         * modules/printf-posix (Depends-on): Likewise.
56750         * modules/ptsname (Depends-on): Likewise.
56751         * modules/putenv (Depends-on): Likewise.
56752         * modules/pwrite (Depends-on): Likewise.
56753         * modules/readline (Depends-on): Likewise.
56754         * modules/readlink (Depends-on): Likewise.
56755         * modules/readlinkat (Depends-on): Likewise.
56756         * modules/recv (Depends-on): Likewise.
56757         * modules/recvfrom (Depends-on): Likewise.
56758         * modules/regex (Depends-on): Likewise.
56759         * modules/remove (Depends-on): Likewise.
56760         * modules/rename (Depends-on): Likewise.
56761         * modules/renameat (Depends-on): Likewise.
56762         * modules/rmdir (Depends-on): Likewise.
56763         * modules/round (Depends-on): Likewise.
56764         * modules/roundf (Depends-on): Likewise.
56765         * modules/roundl (Depends-on): Likewise.
56766         * modules/rpmatch (Depends-on): Likewise.
56767         * modules/select (Depends-on): Likewise.
56768         * modules/send (Depends-on): Likewise.
56769         * modules/sendto (Depends-on): Likewise.
56770         * modules/setenv (Depends-on): Likewise.
56771         * modules/setlocale (Depends-on): Likewise.
56772         * modules/setsockopt (Depends-on): Likewise.
56773         * modules/shutdown (Depends-on): Likewise.
56774         * modules/sigaction (Depends-on): Likewise.
56775         * modules/signbit (Depends-on): Likewise.
56776         * modules/sigprocmask (Depends-on): Likewise.
56777         * modules/sinl (Depends-on): Likewise.
56778         * modules/sleep (Depends-on): Likewise.
56779         * modules/snprintf (Depends-on): Likewise.
56780         * modules/snprintf-posix (Depends-on): Likewise.
56781         * modules/socket (Depends-on): Likewise.
56782         * modules/sprintf-posix (Depends-on): Likewise.
56783         * modules/sqrtl (Depends-on): Likewise.
56784         * modules/stat (Depends-on): Likewise.
56785         * modules/strchrnul (Depends-on): Likewise.
56786         * modules/strdup-posix (Depends-on): Likewise.
56787         * modules/strerror (Depends-on): Likewise.
56788         * modules/strerror_r-posix (Depends-on): Likewise.
56789         * modules/strndup (Depends-on): Likewise.
56790         * modules/strnlen (Depends-on): Likewise.
56791         * modules/strptime (Depends-on): Likewise.
56792         * modules/strsep (Depends-on): Likewise.
56793         * modules/strsignal (Depends-on): Likewise.
56794         * modules/strstr-simple (Depends-on): Likewise.
56795         * modules/strtod (Depends-on): Likewise.
56796         * modules/strtoimax (Depends-on): Likewise.
56797         * modules/strtok_r (Depends-on): Likewise.
56798         * modules/strtoumax (Depends-on): Likewise.
56799         * modules/symlink (Depends-on): Likewise.
56800         * modules/symlinkat (Depends-on): Likewise.
56801         * modules/tanl (Depends-on): Likewise.
56802         * modules/tcgetsid (Depends-on): Likewise.
56803         * modules/tmpfile (Depends-on): Likewise.
56804         * modules/trunc (Depends-on): Likewise.
56805         * modules/truncf (Depends-on): Likewise.
56806         * modules/truncl (Depends-on): Likewise.
56807         * modules/uname (Depends-on): Likewise.
56808         * modules/unlink (Depends-on): Likewise.
56809         * modules/unlockpt (Depends-on): Likewise.
56810         * modules/unsetenv (Depends-on): Likewise.
56811         * modules/usleep (Depends-on): Likewise.
56812         * modules/utimensat (Depends-on): Likewise.
56813         * modules/vasprintf (Depends-on): Likewise.
56814         * modules/vdprintf (Depends-on): Likewise.
56815         * modules/vdprintf-posix (Depends-on): Likewise.
56816         * modules/vfprintf-posix (Depends-on): Likewise.
56817         * modules/vprintf-posix (Depends-on): Likewise.
56818         * modules/vsnprintf (Depends-on): Likewise.
56819         * modules/vsnprintf-posix (Depends-on): Likewise.
56820         * modules/vsprintf-posix (Depends-on): Likewise.
56821         * modules/wcrtomb (Depends-on): Likewise.
56822         * modules/wcscasecmp (Depends-on): Likewise.
56823         * modules/wcscspn (Depends-on): Likewise.
56824         * modules/wcsdup (Depends-on): Likewise.
56825         * modules/wcsncasecmp (Depends-on): Likewise.
56826         * modules/wcsnrtombs (Depends-on): Likewise.
56827         * modules/wcspbrk (Depends-on): Likewise.
56828         * modules/wcsrtombs (Depends-on): Likewise.
56829         * modules/wcsspn (Depends-on): Likewise.
56830         * modules/wcsstr (Depends-on): Likewise.
56831         * modules/wcstok (Depends-on): Likewise.
56832         * modules/wcswidth (Depends-on): Likewise.
56833         * modules/wctob (Depends-on): Likewise.
56834         * modules/wctomb (Depends-on): Likewise.
56835         * modules/wctype (Depends-on): Likewise.
56836         * modules/wcwidth (Depends-on): Likewise.
56837         * modules/write (Depends-on): Likewise.
56839 2011-05-03  Bruno Haible  <bruno@clisp.org>
56841         Support for conditional dependencies.
56842         * doc/gnulib.texi (Module description): Document the syntax of
56843         conditional dependencies.
56844         * gnulib-tool: New option --conditional-dependencies.
56845         (func_usage): Document it.
56846         (cond_dependencies): New variable.
56847         (func_get_automake_snippet_conditional,
56848         func_get_automake_snippet_unconditional): New functions, extracted from
56849         func_get_automake_snippet.
56850         (func_get_automake_snippet): Use them.
56851         (sed_first_32_chars): New variable.
56852         (func_module_shellfunc_name): New function.
56853         (func_module_shellvar_name): New function.
56854         (func_module_conditional_name): New function.
56855         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56856         func_cond_module_condition): New functions.
56857         (func_modules_transitive_closure): Add support for conditional
56858         dependencies.
56859         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56860         conditional automake snippet in an automake conditional.
56861         (func_emit_autoconf_snippets): Emit shell functions that contain the
56862         code for conditional modules.
56863         (func_import, func_create_testdir): Update specification.
56865 2011-05-03  Eric Blake  <eblake@redhat.com>
56867         test-getaddrinfo: report error information
56868         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56870 2011-05-03  Jim Meyering  <meyering@redhat.com>
56872         bootstrap: avoid build failure when $GZIP is set
56873         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56874         program name.  If defined at all, it is supposed to list gzip options.
56875         Reported by Alan Curry in http://debbugs.gnu.org/8609
56877 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56879         readme-release: new module with release instructions
56880         * modules/readme-release: New module.
56881         * top/README-release: New file, from coreutils, grep, diffutils.
56882         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56884 2011-05-02  Eric Blake  <eblake@redhat.com>
56886         fflush: also replace fclose when fixing fflush
56887         * modules/fflush (Depends-on): Add fclose.
56888         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56889         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56890         memstreams with no backing fd.
56891         * doc/posix-functions/fclose.texi (fclose): Document the use of
56892         fflush module to fix the bug.
56893         * tests/test-fclose.c (main): Relax test when fclose is used in
56894         isolation.
56896         fclose: add some tests
56897         * modules/fclose-tests: New test module.
56898         * tests/test-fclose.c: New file.
56899         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56901         fclose: reduced dependencies
56902         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56903         simpler lseek.
56904         * lib/fclose.c (rpl_fclose): Likewise.
56905         Reported by Simon Josefsson.
56907         exit: drop remaining clients
56908         * modules/argmatch (Depends-on): Replace exit with stdlib.
56909         * modules/copy-file (Depends-on): Likewise.
56910         * modules/execute (Depends-on): Likewise.
56911         * modules/exitfail (Depends-on): Likewise.
56912         * modules/obstack (Depends-on): Likewise.
56913         * modules/pagealign_alloc (Depends-on): Likewise.
56914         * modules/pipe-filter-gi (Depends-on): Likewise.
56915         * modules/pipe-filter-ii (Depends-on): Likewise.
56916         * modules/savewd (Depends-on): Likewise.
56917         * modules/spawn-pipe (Depends-on): Likewise.
56918         * modules/wait-process (Depends-on): Likewise.
56919         * modules/xsetenv (Depends-on): Likewise.
56920         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56921         * modules/git-merge-changelog (Depends-on): Likewise.
56922         * modules/long-options (Depends-on): Likewise.
56923         * modules/pt_chown (Depends-on): Likewise.
56924         * modules/sysexits (Depends-on): Likewise.
56926         freading: relax license from LGPLv3+ to LGPLv2+
56927         * modules/freading (License): Relax LGPL version.
56929 2011-05-02  Bruno Haible  <bruno@clisp.org>
56931         fchdir: Remove unused dependencies.
56932         * modules/fchdir (Depends-on): Remove include_next.
56934 2011-05-02  Bruno Haible  <bruno@clisp.org>
56936         gnulib-tool: Refactor.
56937         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56938         from func_emit_autoconf_snippets.
56939         (func_emit_autoconf_snippets): Use it.
56941 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56943         * NEWS: Document removal of 'exit'.
56944         * modules/exit: Remove file.
56946 2011-05-01  Bruno Haible  <bruno@clisp.org>
56948         Update DEPENDENCIES.
56949         * DEPENDENCIES (gettext): Recommend the newest release.
56950         Reported by Simon Josefsson.
56952 2011-05-01  Bruno Haible  <bruno@clisp.org>
56954         gnulib-tool: Reduce code duplication.
56955         * gnulib-tool (func_emit_autoconf_snippets): New function.
56956         (func_import, func_create_testdir): Use it.
56958 2011-04-30  Eric Blake  <eblake@redhat.com>
56960         fclose: don't fail on non-seekable input stream
56961         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56962         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56963         since fflush is allowed to fail in that case.
56965 2011-04-30  Bruno Haible  <bruno@clisp.org>
56967         dup3: cleanup
56968         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56970 2011-04-30  Bruno Haible  <bruno@clisp.org>
56972         netdb: Make it work in C++ mode.
56973         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56974         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56975         module.
56976         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56977         gl_MODULE_INDICATOR_FOR_TESTS.
56978         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56979         * modules/netdb-c++-tests: New file.
56980         * tests/test-netdb-c++.cc: New file.
56982 2011-04-30  Bruno Haible  <bruno@clisp.org>
56984         New modules 'vfscanf', 'vscanf'.
56985         * modules/vfscanf: New file.
56986         * modules/vscanf: New file.
56987         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56988         here.
56989         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56990         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56992 2011-04-30  Bruno Haible  <bruno@clisp.org>
56994         passfd: Add comments.
56995         * lib/passfd.c: Add comments about platforms.
56997 2011-04-30  Bruno Haible  <bruno@clisp.org>
56999         sys_uio: Make <sys/uio.h> self-contained.
57000         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
57001         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
57003 2011-04-30  Bruno Haible  <bruno@clisp.org>
57005         sys_socket: Ensure 'struct iovec' definition.
57006         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
57007         <sys/socket.h>.
57008         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
57010 2011-04-30  Bruno Haible  <bruno@clisp.org>
57012         sys_uio: Protect definition of 'struct iovec'.
57013         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
57014         it as a C struct.
57016 2011-04-30  Bruno Haible  <bruno@clisp.org>
57018         manywarnings: fix indentation
57019         * m4/manywarnings.m4: Indent by 2 spaces consistently.
57021 2011-04-30  Pádraig Brady  <P@draigBrady.com>
57023         manywarnings: add -Wno-missing-field-initializers if needed.
57024         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
57025         option if it's needed to allow initialization with { 0, }
57027 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
57029         announce-gen: cosmetic improvement
57030         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
57032 2011-04-29  Jim Meyering  <meyering@redhat.com>
57034         vc-list-files: indent with spaces, not TABs
57035         * build-aux/vc-list-files: Convert leading TABs to spaces,
57036         to match the style of most other files in gnulib.
57038         announce-gen: indent with spaces, not TABs
57039         * build-aux/announce-gen: Convert all TABs to spaces, to match
57040         the style of most other files in gnulib.
57042 2011-04-29  Eric Blake  <eblake@redhat.com>
57044         quotearg: avoid uninitialized variable use
57045         * lib/quotearg.c (quoting_options_from_style): Initialize
57046         remaining fields, and ensure that custom styles are only used via
57047         quoting_options rather than quoting_style.
57049 2011-04-29  Jim Meyering  <meyering@redhat.com>
57051         maint.mk: remove unused VC-tag variable
57052         * top/maint.mk (VC-tag): Remove unused variable.
57054 2011-04-29  Bruno Haible  <bruno@clisp.org>
57056         netdb: fix gai_strerror replacements
57057         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
57058         * modules/netdb: Substitute it.
57060 2011-04-29  Jim Meyering  <meyering@redhat.com>
57062         test-getcwd.c: avoid new set-but-not-used warning
57063         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
57064         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
57065         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
57066         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
57068         test-hash.c: avoid a new shadowing warning
57069         * tests/test-hash.c (main): Don't shadow "dup".
57071 2011-04-28  Eric Blake  <eblake@redhat.com>
57073         getaddrinfo: fix gai_strerror signature
57074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
57075         and work around mingw with UNICODE defined.
57076         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
57077         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
57078         * modules/netdb (Makefile.am): Substitute it.
57079         * lib/netdb.in.h (gai_strerror): Declare replacement.
57080         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
57081         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
57082         the fix.
57084         getsockopt: avoid compiler warning
57085         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
57086         Reported by Matthias Bolte.
57088         tests: drop unused link dependency
57089         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
57090         * modules/dirent-safer-tests (Makefile.am): Likewise.
57091         * modules/fdopendir-tests (Makefile.am): Likewise.
57092         * modules/mkfifoat-tests (Makefile.am): Likewise.
57093         * modules/openat-safer-tests (Makefile.am): Likewise.
57094         * modules/openat-tests (Makefile.am): Likewise.
57095         * modules/readlinkat-tests (Makefile.am): Likewise.
57096         * modules/symlinkat-tests (Makefile.am): Likewise.
57097         * modules/linkat-tests (Makefile.am): Likewise.
57098         (Depends-on): Switch to filenamecat-lgpl.
57099         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
57100         LIBINTL.
57101         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
57102         * tests/test-linkat.c (main): Don't require xalloc.
57104         hash, mgetgroups: drop xalloc dependency
57105         * lib/hash.c (includes): Adjust includes.
57106         * lib/mgetgroups.c (includes): Likewise.
57107         (xgetgroups): Move...
57108         * lib/xgetgroups.c: ...to new file.
57109         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
57110         * modules/xgetgroups: New file, split from...
57111         * modules/mgetgroups: ...here.
57112         (Depends-on): Add xalloc-oversized.
57113         * modules/hash (Depends-on): Likewise.
57114         * modules/hash-tests (Depends-on): Drop xalloc.
57115         (test_hash_LDADD): Drop unused library.
57116         * tests/test-hash.c (main): Break xalloc dependency.
57117         (includes): Drop unused include.
57119         xalloc-oversized: new module
57120         * modules/xalloc-oversized: New module.
57121         * modules/xalloc (Depends-on): Add it.
57122         * lib/xalloc.h (xalloc_oversized): Move...
57123         * lib/xalloc-oversized.h: ...into new file.
57125         utimecmp: drop dependency on xmalloc
57126         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
57127         due to memory pressure.
57128         * modules/utimecmp (Depends-on): Drop xalloc.
57130 2011-04-27  Eric Blake  <eblake@redhat.com>
57132         getcwd: fix mingw bugs
57133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
57134         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
57135         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
57137 2011-04-27  Bruno Haible  <bruno@clisp.org>
57139         mkstemps: Ensure declaration on MacOS X 10.5.
57140         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
57141         * doc/glibc-functions/mkstemps.texi: Document header file problem on
57142         MacOS X.
57144 2011-04-27  Bruno Haible  <bruno@clisp.org>
57146         mkstemp: More documentation.
57147         * doc/posix-functions/mkstemp.texi: Document header file problem on
57148         MacOS X.
57150 2011-04-27  Bruno Haible  <bruno@clisp.org>
57152         mkstemp: Tweak configure message when cross-compiling.
57153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
57154         result as a guess.
57156 2011-04-27  Bruno Haible  <bruno@clisp.org>
57158         clean-temp: Clarify what it does.
57159         * lib/clean-temp.h: Add more comments.
57160         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
57161         module.
57162         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
57163         * doc/glibc-functions/mkstemps.texi: Likewise.
57164         * doc/glibc-functions/mkostemps.texi: Likewise.
57166 2011-04-27  Eric Blake  <eblake@redhat.com>
57168         fchdir: avoid extra chdir and fix test
57169         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
57170         getcwd-lgpl.
57171         * lib/fchdir.c (get_name): Any absolute name will do; it does not
57172         have to be canonical.
57173         (canonicalize_file_name): Drop unused macro.
57174         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
57176         filenamecat-lgpl: fix licence
57177         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
57178         when it was first created.
57180         linkat, renameat: add missing dependency
57181         * modules/linkat (Depends-on): Require getcwd-lgpl.
57182         * modules/renameat (Depends-on): Likewise.
57184         tests: reduce dependencies
57185         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57186         * tests/test-renameat.c (main): Likewise.
57187         * modules/linkat-tests (Depends-on): Relax dependency.
57188         * modules/renameat-tests (Depends-on): Likewise.
57189         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
57190         dependency explicit.
57192         save-cwd: reduce default dependency
57193         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
57194         * lib/save-cwd.c: Update comments.
57195         * NEWS: Document the semantic change.
57197         getcwd: enhance tests
57198         * tests/test-getcwd-lgpl.c: New file, taken from...
57199         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
57200         repeat long path stress tests from m4 probe.
57201         * modules/getcwd-lgpl-tests: New module.
57202         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
57203         * m4/getcwd-abort-bug.m4: Update comment.
57204         * m4/getcwd-path-max.m4: Likewise.
57206         getcwd-lgpl: new module
57207         * modules/getcwd-lgpl: New module.
57208         * lib/getcwd-lgpl.c: New file.
57209         * doc/posix-functions/getcwd.texi (getcwd): Document it.
57210         * MODULES.html.sh (lacking POSIX:2008): Likewise.
57211         * modules/getcwd (configure.ac): Set C witness.
57212         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
57214         getcwd: tweak comments
57215         * m4/getcwd-abort-bug.m4: Fix comments.
57216         * m4/getcwd-path-max.m4: Likewise.
57217         * m4/getcwd.m4: Likewise.
57219 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57220         and Eric Blake  <eblake@redhat.com>
57222         mkstemp: replace if system version uses wrong permissions
57223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
57224         read/write mode bits set in file created by mkstemp.
57225         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
57227 2011-04-27  Eric Blake  <eblake@redhat.com>
57229         passfd: avoid compiler warning
57230         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
57231         Reported by Laine Stump.
57233 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
57235         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
57236         required by the NetBSD (and perhaps other 4.4BSD derived) join.
57238 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57239         and Eric Blake  <eblake@redhat.com>
57241         mkstemp: mention clean-temp module
57242         * lib/mkstemp.c: Add comment.
57243         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
57245 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
57247         inttypes: also provide default values for 32-bit tests
57248         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
57249         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
57251 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57253         strtoumax: remove dependency on strtoimax
57254         This is like the strtoull change of yesterday.
57255         * modules/strtoumax (Files): Add lib/strtoimax.c.
57256         (Depends-on): Remove strtoimax and add verify.
57258         inttypes-incomplete: new module
57259         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
57260         all but the PRI* and SCN* parts of gl_INTTYPES_H.
57261         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
57262         of gl_INTTYPES_H.
57263         (gl_INTTYPES_H): Rewrite in terms of these new macros.
57264         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
57265         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
57266         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
57267         * modules/strtoumax, modules/xstrtol (Depends-on):
57268         Depend on inttypes-incomplete, not inttypes.
57269         * modules/inttypes-incomplete: New module, containing the contents
57270         of the old modules/inttypes module, except that the Files: section
57271         omits m4/inttypes-pri.m4, and the configure.ac section invokes
57272         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
57273         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
57274         (Depends-on): Depend only on inttypes-incomplete.
57275         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
57277         inttypes: omit now-redundant strtoimax and strtoumax work
57278         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
57279         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
57281         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
57282         This supports apps that need pointers to strtoimax and strtoumax,
57283         and ports to HP-UX 11.00 64.bit, which has macros that expand to
57284         nonexistent functions.  See
57285         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
57286         et seq.
57287         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
57288         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
57289         a macro.
57290         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57292 2011-04-25  Simon Josefsson  <simon@josefsson.org>
57294         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
57296 2011-04-25  Bruno Haible  <bruno@clisp.org>
57298         strtol, strtoul: Mark modules as obsolete.
57299         * modules/strtol (Status, Notice): New sections.
57300         * modules/strtoul (Status, Notice): New sections.
57302 2011-04-25  Bruno Haible  <bruno@clisp.org>
57304         strtod: Remove check for strtod, unless supporting old platforms.
57305         * modules/strtod-obsolete: New file.
57306         * m4/strtod-obsolete.m4: New file.
57307         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
57308         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
57309         * modules/strtod (Depends-on): Add strtod-obsolete.
57310         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
57312 2011-04-25  Bruno Haible  <bruno@clisp.org>
57314         strcase: Make module obsolete.
57315         * modules/strcase (Status, Notice): New sections.
57317 2011-04-25  Bruno Haible  <bruno@clisp.org>
57319         dup2: Remove check for dup2, unless supporting old obsolete platforms.
57320         * modules/dup2-obsolete: New file.
57321         * m4/dup2-obsolete.m4: New file.
57322         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
57323         gl_FUNC_DUP2_OBSOLETE is not also defined.
57324         * modules/dup2 (Depends-on): Add dup2-obsolete.
57325         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57327 2011-04-25  Bruno Haible  <bruno@clisp.org>
57329         strnlen: Avoid memchr related link error on old obsolete platforms.
57330         * modules/memchr-obsolete: New file.
57331         * m4/memchr-obsolete.m4: New file.
57332         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57333         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57334         * modules/memchr (Depends-on): Add memchr-obsolete.
57335         * modules/strnlen (Depends-on): Likewise.
57336         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57338 2011-04-25  Jim Meyering  <meyering@redhat.com>
57340         maint.mk: makefile_at_at_check extend and clean up
57341         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57342         in addition to */Makefile.am.
57343         Exempt legitimate uses of @VAR@ notation, e.g.,
57344         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57345         Remove obsolete coreutils-specific comment.
57346         Prompted by discussion here:
57347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57349 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57351         strtoul: remove dependency on strtol
57352         This is so that 'configure' need not check for strtol merely because
57353         the application needs strtoul.
57354         * modules/strtoul (Files): Add lib/strtol.c.
57355         (Depends-on): Remove strtol.
57357         strtoull: remove dependency on strtoul
57358         This is like the strtoll change.
57359         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57360         (Depends-on): Remove strtoul.
57362         strtoll: remove dependency on strtol
57363         This is so that 'configure' need not check for strtol merely because
57364         the application needs strtoll.
57365         * modules/strtoll (Files): Add lib/strtol.c.
57366         (Depends-on): Remove strtol.
57368 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57370         inttypes: Move some configure check to module 'imaxdiv'.
57371         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57372         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57373         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57375 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57377         inttypes: Move some configure check to module 'imaxabs'.
57378         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57379         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57380         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57382 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57384         inttypes: Remove configure tests that are not needed since 2009-12-31.
57385         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57386         gl_cv_header_working_inttypes_h.
57388 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57390         * modules/strnlen (Depends-on): Remove memchr.
57391         The strnlen implementation doesn't need the memchr module's fixes; see
57392         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57394         strtol: remove dependency on wchar
57395         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57396         * modules/strtol (Depends-on): Remove wchar.
57398 2011-04-21  Eric Blake  <eblake@redhat.com>
57400         passfd: fix test regression on Linux
57401         * modules/passfd-tests (configure.ac): Correct socketpair check.
57403         passfd: speed up configure and drop unused code
57404         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57405         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57406         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57407         Instead of probing at configure for unix_scm_rights_bsd44_way,
57408         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57409         check to a struct member probe.
57410         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57411         (sendfd, recvfd): Update preprocessor checks.
57412         * modules/passfd (Files): Reflect rename, and drop unused file.
57413         (Depends-on): Drop unused dependency.
57415         passfd: allow compilation on mingw
57416         * modules/sys_socket (Depends-on): Add sys_uio.
57417         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57418         iovec and a minimal struct msghdr.
57419         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57420         * tests/test-sys_socket.c (main): Enhance test.
57421         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57422         guaranteed to provide what we need.
57423         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57424         * modules/passfd-tests (Depends-on): Add sys_wait.
57425         * tests/test-passfd.c (main): Skip test on mingw, for now.
57426         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57427         partial 'struct msghdr' implementation.
57429         sys_uio: new module
57430         * modules/sys_uio: New module.
57431         * modules/sys_uio-tests: Likewise.
57432         * lib/sys_uio.in.h: New file.
57433         * m4/sys_uio_h.m4: Likewise.
57434         * tests/test-sys_uio.c: Likewise.
57435         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57436         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57438 2011-04-20  Jim Meyering  <meyering@redhat.com>
57440         useless-if-before-free: avoid false-positive
57441         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57442         disjunct so that it too requires a terminating ";".  Without that,
57443         this script would identify as useless one statement from gcc that
57444         was not:
57445           if (aligned_ptr)
57446             free (((void **) aligned_ptr) [-1]);
57448 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57450         doc: update users.txt.
57451         * users.txt: Add barcode.
57453 2011-04-19  Bruno Haible  <bruno@clisp.org>
57455         ioctl: Remove link dependency on native Windows.
57456         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57457         (gl_close_fn, gl_ioctl_fn): New types.
57458         (struct fd_hook): Renamed from struct close_hook. Change type of
57459         private_close_fn field. Add private_ioctl_fn field.
57460         (close_hook_fn): Add parameter for primary close method.
57461         (execute_close_hooks, execute_all_close_hooks): Likewise.
57462         (ioctl_hook_fn): New type.
57463         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57464         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57465         argument.
57466         (unregister_fd_hook): Renamed from unregister_close_hook.
57467         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57468         Don't include <unistd.h>.
57469         (close): Remove undef.
57470         (anchor): Update.
57471         (execute_close_hooks): Add argument for primary close method.
57472         (execute_all_close_hooks): Likewise.
57473         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57474         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57475         argument. Allow each argument to be NULL.
57476         (unregister_fd_hook): Renamed from unregister_close_hook.
57477         * lib/close.c (rpl_close): Pass 'close' function pointer to
57478         execute_all_close_hooks.
57479         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57480         (primary_ioctl): New function.
57481         (ioctl): Don't call ioctlsocket here. Instead, call
57482         execute_all_ioctl_hooks.
57483         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57484         close method.
57485         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57486         (fd_sockets_hook): Renamed from close_sockets_hook.
57487         (gl_sockets_startup, gl_sockets_cleanup): Update.
57488         * modules/fd-hook: Renamed from modules/close-hook. Update.
57489         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57490         * modules/sockets (Depends-on): Likewise.
57491         * modules/ioctl (Depends-on): Add fd-hook.
57492         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57493         GNULIB_SOCKET.
57495 2011-04-19  Bruno Haible  <bruno@clisp.org>
57497         Move the support of O_NONBLOCK in open() to the 'open' module.
57498         * modules/nonblocking (Depends-on): Remove 'open'.
57499         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57500         gl_cv_have_open_O_NONBLOCK.
57501         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57502         O_NONBLOCK support.
57503         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57505 2011-04-17  Bruno Haible  <bruno@clisp.org>
57507         pipe2: Simplify code.
57508         * lib/pipe2.c (pipe2): Reduce code duplication.
57510 2011-04-17  Bruno Haible  <bruno@clisp.org>
57512         nonblocking: Add comment.
57513         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57515 2011-04-17  Bruno Haible  <bruno@clisp.org>
57517         nonblocking: Add tests for sockets.
57518         * tests/test-nonblocking-socket.sh: New file.
57519         * tests/test-nonblocking-socket-main.c: New file.
57520         * tests/test-nonblocking-socket-child.c: New file.
57521         * tests/test-nonblocking-socket.h: New file.
57522         * tests/socket-server.h: New file.
57523         * tests/socket-client.h: New file.
57524         * modules/nonblocking-socket-tests: New file.
57525         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57527 2011-04-17  Bruno Haible  <bruno@clisp.org>
57529         nonblocking: Add tests for pipes.
57530         * tests/test-nonblocking-pipe.sh: New file.
57531         * tests/test-nonblocking-pipe-main.c: New file.
57532         * tests/test-nonblocking-pipe-child.c: New file.
57533         * tests/test-nonblocking-pipe.h: New file.
57534         * tests/test-nonblocking-writer.h: New file.
57535         * tests/test-nonblocking-reader.h: New file.
57536         * tests/test-nonblocking-misc.h: New file.
57537         * modules/nonblocking-pipe-tests: New file.
57538         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57540 2011-04-16  Bruno Haible  <bruno@clisp.org>
57542         gettext: Clarify the needed programmer actions.
57543         * modules/gettext (Notice): New field.
57544         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57546 2011-04-16  Bruno Haible  <bruno@clisp.org>
57548         strchrnul: Tweak last commit.
57549         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57550         bug.
57551         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57552         as in _GL_FUNCDECL_SYS.
57553         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57554         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57556 2011-04-15  Eric Blake  <eblake@redhat.com>
57558         strchrnul: work around cygwin bug
57559         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57560         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57562         * modules/string (Makefile.am): Substitute it.
57563         * lib/string.in.h (strchrnul): Use it.
57565 2011-04-15  Bruno Haible  <bruno@clisp.org>
57567         Don't require lib/stdio-write.c when only module 'stdio' is used.
57568         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57569         invocation.
57570         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57572 2011-04-14  Bruno Haible  <bruno@clisp.org>
57574         Support non-blocking pipe I/O in read() on native Windows.
57575         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57576         (read): New declaration.
57577         * lib/read.c: New file.
57578         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57579         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57580         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57581         vscanf): New declarations.
57582         * lib/stdio-read.c: New file.
57583         * m4/read.m4: New file.
57584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57585         REPLACE_READ.
57586         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57587         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57588         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57589         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57590         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57591         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57592         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57593         * modules/read: New file.
57594         * modules/nonblocking (Files): Add lib/stdio-read.c.
57595         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57596         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57597         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57598         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57599         * modules/pread (Depends-on): Add read.
57600         * modules/safe-read (Depends-on): Likewise.
57601         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57602         gets, scanf, vfscanf, vscanf): Verify signatures.
57603         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57604         problem with non-blocking pipes.
57605         * doc/posix-functions/fgetc.texi: Likewise.
57606         * doc/posix-functions/fgets.texi: Likewise.
57607         * doc/posix-functions/fread.texi: Likewise.
57608         * doc/posix-functions/fscanf.texi: Likewise.
57609         * doc/posix-functions/getc.texi: Likewise.
57610         * doc/posix-functions/getchar.texi: Likewise.
57611         * doc/posix-functions/gets.texi: Likewise.
57612         * doc/posix-functions/scanf.texi: Likewise.
57613         * doc/posix-functions/vfscanf.texi: Likewise.
57614         * doc/posix-functions/vscanf.texi: Likewise.
57616 2011-04-14  Bruno Haible  <bruno@clisp.org>
57618         Support non-blocking pipe I/O in write() on native Windows.
57619         * lib/write.c (rpl_write): Split a write request that failed merely
57620         because the byte count was larger than the pipe buffer's size.
57621         * doc/posix-functions/write.texi: Mention the problem with large byte
57622         counts.
57624 2011-04-14  Bruno Haible  <bruno@clisp.org>
57626         wchar: Ensure that wchar_t gets defined on uClibc.
57627         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57628         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57630 2011-04-13  Bruno Haible  <bruno@clisp.org>
57632         safe-write, full-read: Avoid unnecessary compilation units.
57633         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57634         (Depends-on): Remove safe-read. Add ssize_t.
57635         * modules/full-read (Files): Add lib/full-write.c.
57636         (Depends-on): Add full-write.
57638 2011-04-13  Bruno Haible  <bruno@clisp.org>
57640         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57641         * modules/pwrite (Depends-on): Add 'write'.
57643 2011-04-13  Bruno Haible  <bruno@clisp.org>
57645         Support non-blocking pipe I/O in write() on native Windows.
57646         * lib/unistd.in.h (write): Enable replacement also if
57647         GNULIB_UNISTD_H_NONBLOCKING is 1.
57648         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57649         (rpl_write): When failing to write on a non-blocking pipe, change
57650         errno from ENOSPC to EAGAIN.
57651         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57652         putchar, puts, vfprintf, vprintf): Enable replacement also if
57653         GNULIB_STDIO_H_NONBLOCKING is 1.
57654         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57655         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57656         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57657         CALL_WITH_SIGPIPE_EMULATION.
57658         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57659         * m4/nonblocking.m4: New file.
57660         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57661         for non-blocking I/O support.
57662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57663         GNULIB_UNISTD_H_NONBLOCKING.
57664         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57665         required for non-blocking I/O support.
57666         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57667         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57668         lib/stdio-write.c, m4/asm-underscore.m4.
57669         (Depends-on): Add stdio, unistd.
57670         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57671         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57672         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57673         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57674         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57675         problem with non-blocking pipes.
57676         * doc/posix-functions/fputc.texi: Likewise.
57677         * doc/posix-functions/fputs.texi: Likewise.
57678         * doc/posix-functions/fwrite.texi: Likewise.
57679         * doc/posix-functions/printf.texi: Likewise.
57680         * doc/posix-functions/putc.texi: Likewise.
57681         * doc/posix-functions/putchar.texi: Likewise.
57682         * doc/posix-functions/puts.texi: Likewise.
57683         * doc/posix-functions/vfprintf.texi: Likewise.
57684         * doc/posix-functions/vprintf.texi: Likewise.
57685         * doc/posix-functions/write.texi: Likewise.
57687 2011-04-10  Jim Meyering  <meyering@redhat.com>
57689         maint.mk: prohibit doubled words
57690         Detect them also when they're separated by a newline.
57691         There are 3 ways to customize it:
57692           - disable the test on a per file basis, as usual with rules using
57693             $(VC_LIST_EXCEPT)
57694           - replace the default doubled-word-selecting regexp (affects all files)
57695           - ignore a particular file-vs-doubled-word match
57696         I nearly used that last one to ignore the "is is" match in
57697         coreutils' NEWS file, since the text was "ls -is is ..."
57698         To do that, I would have added this line to cfg.mk:
57699           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57700         but it would have ignored any "is is" match in NEWS.
57701         Low probability, but still...
57702         Instead, I changed the text, slightly:
57703           -  ls -is is now consistent with ls -lis in ignoring values returned
57704           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57705         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57706         (prohibit_doubled_word_): Define.
57707         (sc_prohibit_doubled_word): New rule.
57708         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57710 2011-04-10  Jim Meyering  <meyering@redhat.com>
57712         maint: fix doubled-word typo in comment
57713         * m4/gethostname.m4: s/is is/it is/
57714         * m4/getdomainname.m4: Likewise.
57716 2011-04-10  Jim Meyering  <meyering@redhat.com>
57718         maint: remove doubled word: s/it it/it/
57719         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57721 2011-04-10  Jim Meyering  <meyering@redhat.com>
57723         maint.mk: remove useless semicolon and backslash
57724         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57725         semicolon and backslash.
57727 2011-04-10  Bruno Haible  <bruno@clisp.org>
57729         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57730         * modules/stdint-tests (Depends-on): Add wchar.
57732 2011-04-10  Jim Meyering  <meyering@redhat.com>
57734         maint: remove doubled words in comments, e.g., s/a a/a/
57735         * lib/strptime.c (day_of_the_week): s/the the/the/
57736         * tests/test-chown.h (test_chown): s/a a/a/
57738         test-chown.h: correct a cast
57739         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57740         when the destination is a stat.st_gid.
57742 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57744         getaddrinfo: Fix test for sa_len member.
57745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57746         include <sys/types.h> before <sys/socket.h>.
57748 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57750         maint: change "can not" to "cannot"
57751         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57752         boundaries.
57754 2011-04-09  Jim Meyering  <meyering@redhat.com>
57756         maint: change "a a" to "a"
57757         * tests/test-lchown.h (test_lchown): s/a a/a/
57759         maint.mk: prohibit \<the the\>
57760         * top/maint.mk (sc_prohibit_the_the): New rule.
57762         maint: fix "the the" in comment
57763         * lib/count-one-bits.h: s/the the/the/
57765         maint: change "can not" to "cannot"
57766         But do not change the occurrences in maintain.texi or in
57767         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57768         * doc/gnulib-tool.texi: s/can not/cannot/
57769         * doc/posix-functions/accept.texi (accept): Likewise.
57770         * doc/posix-functions/socket.texi (socket): Likewise.
57771         * lib/mbrtowc.c: Likewise.
57773         maint.mk: prohibit use of "can not"
57774         * top/maint.mk (sc_prohibit_can_not): New rule.
57775         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57777 2011-04-09  Bruno Haible  <bruno@clisp.org>
57779         careadlinkat: Guard against misuse of careadlinkatcwd.
57780         * lib/careadlinkat.c: Include <stdlib.h>.
57781         (careadlinkatcwd): Check that the fd argument is as expected.
57783 2011-04-09  Bruno Haible  <bruno@clisp.org>
57785         careadlinkat: Use common coding style.
57786         * lib/careadlinkat.c: Move gnulib includes after system includes.
57788 2011-04-09  Bruno Haible  <bruno@clisp.org>
57790         careadlinkat: Clarify specification.
57791         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57792         (careadlinkatcwd): Add comment.
57793         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57795 2011-04-09  Bruno Haible  <bruno@clisp.org>
57797         areadlinkat: Avoid link error on many platforms.
57798         * modules/areadlinkat (Depends-on): Add areadlink.
57800 2011-04-09  Bruno Haible  <bruno@clisp.org>
57802         allocator, careadlinkat: Fix double-inclusion guard.
57803         * lib/allocator.h: Fix double-inclusion guard.
57804         * lib/careadlinkat.h: Likewise.
57806 2011-04-09  Bruno Haible  <bruno@clisp.org>
57808         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57809         * lib/relocwrapper.c: Update dependencies hierarchy.
57810         * build-aux/install-reloc: Update list of files to be compiled.
57811         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57812         lib/allocator.[hc].
57814 2011-04-08  Eric Blake  <eblake@redhat.com>
57816         strftime: silence gnulib-tool warning
57817         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57819 2011-04-08  Bruno Haible  <bruno@clisp.org>
57821         verify: Fix syntax error with GCC 4.6 in C++ mode.
57822         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57823         (HAVE_STATIC_ASSERT): New macro.
57824         (verify_true, verify): Use 'static_assert' if it is supported and
57825         '_Static_assert' is not supported.
57827 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57829         allocator: New module.
57830         * modules/allocator, lib/allocator.c: New files.
57831         * lib/allocator.h (stdlib_allocator): New decl.
57832         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57833         Remove.  Do not include <stdlib.h>.
57834         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57835         * modules/careadlinkat (Files): Remove lib/allocator.h.
57836         (Depends-on): Add allocator.
57838         stdlib: let modules use system malloc, realloc
57839         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57840         if !_GL_USE_STDLIB_ALLOC.
57841         (malloc, realloc): Limit this change to a smaller scope.
57843         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57844         (malloc, realloc): Don't #undef; no longer needed.
57845         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57846         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57847         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57848         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57849         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57850         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57851         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57852         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57854         careadlinkat: rename members to avoid problem
57855         * lib/allocator.h (struct allocator): Rename members from
57856         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57857         and realloc are #define'd.  Reported by Eric Blake in
57858         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57859         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57861 2011-04-08  Eric Blake  <eblake@redhat.com>
57863         nonblocking: reduce dependency
57864         * tests/test-nonblocking.c: Only test sockets when in use.
57865         * modules/nonblocking-tests (Depends-on): Drop socket.
57866         (Makefile.am): Link even if sockets are not present.
57867         * modules/pipe2-tests (Makefile.am): Likewise.
57868         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57870         pipe2: fix O_NONBLOCK support on mingw
57871         * modules/pipe2 (Depends-on): Add nonblocking.
57872         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57873         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57874         * tests/test-nonblocking.c (main): Likewise.
57875         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57877         fcntl-h: fix O_ACCMODE on cygwin
57878         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57879         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57881         pipe-filter: drop O_NONBLOCK workarounds
57882         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57883         * modules/pipe-filter-ii (Depends-on): Likewise.
57884         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57886         nonblocking: provide O_NONBLOCK for mingw
57887         * modules/nonblocking (Depends-on): Add open.
57888         (configure.ac): Set new witness macro.
57889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57890         * modules/fcntl-h (Makefile.am): Substitute it.
57891         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57892         nonblocking module is in use.
57893         * lib/nonblocking.c: Adjust portability test.
57894         * lib/open.c (open): Don't let native open see gnulib flag.
57895         * tests/test-fcntl-h.c (main): Enhance test.
57896         * tests/test-open.h (test_open): Likewise.
57897         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57899         careadlinkat: fix compilation error on mingw
57900         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57901         within struct allocator.
57903 2011-04-06  Eric Blake  <eblake@redhat.com>
57905         binary-io: relicense under LGPLv2+
57906         * modules/binary-io (License): Relax to LGPLv2+.
57907         Requested for libvirt, and required by pipe2.
57909 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57911         verify: use _Static_assert if available
57912         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57913         (verify_true, verify): Use it if available.  This generates better
57914         diagnostics with GCC 4.6.0 and later.
57916 2011-04-05  Bruno Haible  <bruno@clisp.org>
57918         Remove leftover generated .h files after config.status changed.
57920         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57921         GL_GENERATE_ALLOCA_H.
57922         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57923         GL_GENERATE_ALLOCA_H evaluates to false.
57925         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57926         GL_GENERATE_ARGZ_H.
57927         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57928         evaluates to false.
57930         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57931         GL_GENERATE_BYTESWAP_H.
57932         * modules/byteswap (Makefile.am): Remove byteswap.h if
57933         GL_GENERATE_BYTESWAP_H evaluates to false.
57935         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57936         GL_GENERATE_ERRNO_H.
57937         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57938         evaluates to false.
57940         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57941         GL_GENERATE_FLOAT_H.
57942         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57943         evaluates to false.
57945         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57946         GL_GENERATE_FNMATCH_H.
57947         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57948         GL_GENERATE_FNMATCH_H evaluates to false.
57950         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57951         GL_GENERATE_GLOB_H.
57952         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57953         evaluates to false.
57955         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57956         automake conditional GL_GENERATE_ICONV_H.
57957         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57958         evaluates to false.
57960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57961         GL_GENERATE_NETINET_IN_H.
57962         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57963         GL_GENERATE_NETINET_IN_H evaluates to false.
57965         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57966         conditional GL_GENERATE_PTHREAD_H.
57967         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57968         * modules/pthread (Makefile.am): Remove pthread.h if
57969         GL_GENERATE_PTHREAD_H evaluates to false.
57971         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57972         GL_GENERATE_SCHED_H.
57973         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57974         evaluates to false.
57976         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57977         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57978         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57979         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57981         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57982         GL_GENERATE_STDARG_H.
57983         * modules/stdarg (Makefile.am): Remove stdarg.h if
57984         GL_GENERATE_STDARG_H evaluates to false.
57986         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57987         GL_GENERATE_STDBOOL_H.
57988         * modules/stdbool (Makefile.am): Remove stdbool.h if
57989         GL_GENERATE_STDBOOL_H evaluates to false.
57991         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57992         conditional GL_GENERATE_STDDEF_H.
57993         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57994         * modules/stddef (Makefile.am): Remove stddef.h if
57995         GL_GENERATE_STDDEF_H evaluates to false.
57997         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57998         GL_GENERATE_STDINT_H.
57999         * modules/stdint (Makefile.am): Remove stdint.h if
58000         GL_GENERATE_STDINT_H evaluates to false.
58002         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
58003         GL_GENERATE_SYSEXITS_H.
58004         * modules/sysexits (Makefile.am): Remove sysexits.h if
58005         GL_GENERATE_SYSEXITS_H evaluates to false.
58007         Reported by Karl Berry and Ralf Wildenhues.
58009 2011-04-05  Bruno Haible  <bruno@clisp.org>
58011         Ensure to rebuild generated .h files when config.status has changed.
58012         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
58013         config.status.
58014         * modules/ctype (Makefile.am): Likewise.
58015         * modules/dirent (Makefile.am): Likewise.
58016         * modules/errno (Makefile.am): Likewise.
58017         * modules/fcntl-h (Makefile.am): Likewise.
58018         * modules/float (Makefile.am): Likewise.
58019         * modules/getopt-posix (Makefile.am): Likewise.
58020         * modules/glob (Makefile.am): Likewise.
58021         * modules/iconv-h (Makefile.am): Likewise.
58022         * modules/inttypes (Makefile.am): Likewise.
58023         * modules/langinfo (Makefile.am): Likewise.
58024         * modules/locale (Makefile.am): Likewise.
58025         * modules/math (Makefile.am): Likewise.
58026         * modules/netdb (Makefile.am): Likewise.
58027         * modules/netinet_in (Makefile.am): Likewise.
58028         * modules/poll-h (Makefile.am): Likewise.
58029         * modules/pthread (Makefile.am): Likewise.
58030         * modules/pty (Makefile.am): Likewise.
58031         * modules/sched (Makefile.am): Likewise.
58032         * modules/search (Makefile.am): Likewise.
58033         * modules/selinux-h (Makefile.am): Likewise.
58034         * modules/signal (Makefile.am): Likewise.
58035         * modules/spawn (Makefile.am): Likewise.
58036         * modules/stdarg (Makefile.am): Likewise.
58037         * modules/stdbool (Makefile.am): Likewise.
58038         * modules/stddef (Makefile.am): Likewise.
58039         * modules/stdint (Makefile.am): Likewise.
58040         * modules/stdio (Makefile.am): Likewise.
58041         * modules/stdlib (Makefile.am): Likewise.
58042         * modules/string (Makefile.am): Likewise.
58043         * modules/strings (Makefile.am): Likewise.
58044         * modules/sys_file (Makefile.am): Likewise.
58045         * modules/sys_ioctl (Makefile.am): Likewise.
58046         * modules/sys_select (Makefile.am): Likewise.
58047         * modules/sys_socket (Makefile.am): Likewise.
58048         * modules/sys_stat (Makefile.am): Likewise.
58049         * modules/sys_time (Makefile.am): Likewise.
58050         * modules/sys_times (Makefile.am): Likewise.
58051         * modules/sys_utsname (Makefile.am): Likewise.
58052         * modules/sys_wait (Makefile.am): Likewise.
58053         * modules/sysexits (Makefile.am): Likewise.
58054         * modules/termios (Makefile.am): Likewise.
58055         * modules/time (Makefile.am): Likewise.
58056         * modules/unistd (Makefile.am): Likewise.
58057         * modules/wchar (Makefile.am): Likewise.
58058         * modules/wctype-h (Makefile.am): Likewise.
58059         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
58061 2011-04-05  Bruno Haible  <bruno@clisp.org>
58063         pipe2: Relicense under LGPLv2+.
58064         * modules/pipe2 (License): Change to LGPLv2+.
58065         Requested by Eric Blake, for libvirt.
58067 2011-04-05  Bruce Korb  <bkorb@gnu.org>
58069         bootstrap: compute gnulib_extra_files after updating build_aux
58070         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
58071         change build_aux or also supply gnulib_extra_files.  Handle correctly.
58073 2011-04-05  Eric Blake  <eblake@redhat.com>
58075         bootstrap: preserve git whitelist item sorting
58076         * build-aux/bootstrap (sort_patterns): New function.
58077         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
58079 2011-04-05  Simon Josefsson  <simon@josefsson.org>
58081         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
58082         sc_space_tab check.
58084 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
58086         areadlink, areadlinkat: rewrite in terms of careadlinkat
58087         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
58088         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
58089         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
58090         (malloc, realloc): Remove #undefs.
58091         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
58092         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
58093         readlink, ssize_t, stdint, unistd.
58094         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
58095         areadlink, stdint.
58097         careadlinkat: new module
58098         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
58099         * modules/careadlinkat: New files, written by me with
58100         a review and feedback from Ben Pfaff in
58101         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
58103 2011-04-01  Bruno Haible  <bruno@clisp.org>
58105         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
58106         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
58107         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
58108         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
58109         Reported by Bruce Korb <bruce.korb@gmail.com>.
58111 2011-04-01  Bruno Haible  <bruno@clisp.org>
58113         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
58114         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
58115         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
58116         * modules/wcpcpy (Depends-on): Add extensions.
58117         * modules/wcpncpy (Depends-on): Likewise.
58118         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
58119         systems.
58120         * doc/posix-functions/wcpncpy.texi: Likewise.
58121         * doc/posix-functions/wcwidth.texi: Likewise.
58123 2011-03-31  Eric Blake  <eblake@redhat.com>
58125         nonblocking: fix mingw test failures
58126         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
58127         non-blocking flag on regular file.
58128         (get_nonblocking_flag): Set errno on invalid fd.
58129         * tests/test-nonblocking.c (main): Avoid test failure on
58130         directories if fchdir is not active.
58131         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
58133 2011-03-31  Bruno Haible  <bruno@clisp.org>
58135         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
58136         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
58137         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
58138         Reported by Simon Josefsson <simon@josefsson.org>.
58140 2011-03-31  Bruno Haible  <bruno@clisp.org>
58141         and Eric Blake  <eblake@redhat.com>
58143         nonblocking: new module
58144         * modules/nonblocking: New module.
58145         * modules/nonblocking-tests: Likewise.
58146         * lib/nonblocking.h: New file.
58147         * lib/nonblocking.c: Likewise.
58148         * tests/test-nonblocking.c: New test.
58149         * lib/ioctl.c (ioctl) [mingw]: Update comment.
58151 2011-03-30  Bruno Haible  <bruno@clisp.org>
58153         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
58154         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
58155         instead of 'printf' format for GCC >= 4.4.
58156         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
58157         (fprintf, printf, vfprintf, vprintf): Declare with
58158         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
58159         the system's vfprintf() function.
58160         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
58162 2011-03-30  Eric Blake  <eblake@redhat.com>
58164         passfd: fix scoping bug
58165         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
58166         before sendmsg/recvmsg.
58168         passfd: standardize coding conventions
58169         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
58170         can be learned at compile time.
58171         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
58172         ifdefs.
58173         (sendfd, recvfd): Follow gnulib code conventions.
58175         passfd: fix incorrect sendmsg arguments
58176         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
58177         incorrect msg_controllen value.
58178         * modules/passfd-tests (Depends-on): Check for alarm.
58179         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
58180         Reported by Bastien ROUCARIES.
58182 2011-03-30  Bruno Haible  <bruno@clisp.org>
58184         c-strcasestr: Relicense under LGPLv2+.
58185         * modules/c-strcasestr (License): Change to LGPLv2+.
58186         Requested by Eric Blake, for libvirt.
58188 2011-03-30  Simon Josefsson  <simon@josefsson.org>
58190         * users.txt: Add libidn2.  Fix libtasn1 link.
58192 2011-03-30  Jim Meyering  <meyering@redhat.com>
58194         tests: readlink* ("",... fails with EINVAL on newer kernels
58195         readlink and readlinkat have typically failed with ENOENT for
58196         the invalid, empty file name,  "".  However, with the advent
58197         of linux-2.6.39, they fail with EINVAL.
58198         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
58199         when operating on the empty file name.
58200         * tests/test-readlink.h (test_readlink): Likewise.
58202 2011-03-29  Bruno Haible  <bruno@clisp.org>
58204         Relicense some modules under LGPLv2+, for libidn2.
58205         * modules/array-mergesort (License): Change to LGPLv2+.
58206         * modules/c-strcaseeq (License): Likewise.
58207         * modules/striconveh (License): Likewise.
58208         * modules/striconveha (License): Likewise.
58209         * modules/uniconv/base (License): Likewise.
58210         * modules/uniconv/u8-conv-from-enc (License): Likewise.
58211         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
58212         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
58213         * modules/unictype/base (License): Likewise.
58214         * modules/unictype/bidiclass-of (License): Likewise.
58215         * modules/unictype/category-M (License): Likewise.
58216         * modules/unictype/category-none (License): Likewise.
58217         * modules/unictype/category-of (License): Likewise.
58218         * modules/unictype/category-test (License): Likewise.
58219         * modules/unictype/category-test-withtable (License): Likewise.
58220         * modules/unictype/combining-class (License): Likewise.
58221         * modules/unictype/joiningtype-of (License): Likewise.
58222         * modules/unictype/scripts (License): Likewise.
58223         * modules/uninorm/base (License): Likewise.
58224         * modules/uninorm/canonical-decomposition (License): Likewise.
58225         * modules/uninorm/composition (License): Likewise.
58226         * modules/uninorm/decompose-internal (License): Likewise.
58227         * modules/uninorm/decomposition-table (License): Likewise.
58228         * modules/uninorm/nfc (License): Likewise.
58229         * modules/uninorm/nfd (License): Likewise.
58230         * modules/uninorm/u32-normalize (License): Likewise.
58231         * modules/unistr/base (License): Likewise.
58232         * modules/unistr/u32-cpy (License): Likewise.
58233         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
58234         * modules/unistr/u32-to-u8 (License): Likewise.
58235         * modules/unistr/u32-uctomb (License): Likewise.
58236         * modules/unistr/u8-check (License): Likewise.
58237         * modules/unistr/u8-mblen (License): Likewise.
58238         * modules/unistr/u8-mbtouc (License): Likewise.
58239         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
58240         * modules/unistr/u8-mbtoucr (License): Likewise.
58241         * modules/unistr/u8-prev (License): Likewise.
58242         * modules/unistr/u8-strlen (License): Likewise.
58243         * modules/unistr/u8-to-u32 (License): Likewise.
58244         * modules/unistr/u8-uctomb (License): Likewise.
58245         * modules/unitypes (License): Likewise.
58246         Requested by Simon Josefsson.
58248 2011-03-29  Simon Josefsson  <simon@josefsson.org>
58250         lib-symbol-visibility: Add a notice.
58251         * modules/lib-symbol-visibility (Notice): New field.
58253 2011-03-29  Bruno Haible  <bruno@clisp.org>
58255         getaddrinfo: Doc fix.
58256         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
58257         section "fixed in Gnulib".
58259 2011-03-28  Simon Josefsson  <simon@josefsson.org>
58261         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
58262         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
58264 2011-03-26  Bruno Haible  <bruno@clisp.org>
58266         unictype/property-byname: Reduce the number of load-time relocations.
58267         * lib/unictype/pr_byname.c: Include <stdlib.h>.
58268         (UC_PROPERTY_INDEX_*): New enumeration values.
58269         (uc_property_byname): Convert an index from the lookup table to an
58270         uc_property_t.
58271         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
58272         values.
58274 2011-03-26  Bruno Haible  <bruno@clisp.org>
58276         unictype/property-byname: Allow omitted word separators and aliases.
58277         * lib/unictype/pr_byname.gperf: Add property names without word
58278         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
58279         for 'space'.
58281 2011-03-26  Bruno Haible  <bruno@clisp.org>
58283         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
58284         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
58285         also hyphens to space.
58286         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
58287         without spaces.
58288         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
58290 2011-03-26  Bruno Haible  <bruno@clisp.org>
58292         unictype/joiningtype-byname: Recognize long names as well.
58293         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
58294         a long name.
58295         * lib/unictype/joiningtype_byname.c: Include <string.h>,
58296         unictype/joiningtype_byname.h.
58297         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
58298         * lib/unictype/joiningtype_byname.gperf: New file.
58299         * modules/unictype/joiningtype-byname (Files): Add
58300         lib/unictype/joiningtype_byname.gperf.
58301         (Depends-on): Add gperf.
58302         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
58303         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
58304         long names.
58306         Tests for module 'unictype/joiningtype-longname'.
58307         * modules/unictype/joiningtype-longname-tests: New file.
58308         * tests/unictype/test-joiningtype_longname.c: New file.
58310         New module 'unictype/joiningtype-longname'.
58311         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
58312         * lib/unictype/joiningtype_longname.c: New file.
58313         * modules/unictype/joiningtype-longname: New file.
58314         * modules/unictype/joiningtype-all (Depends-on): Add
58315         unictype/joiningtype-longname.
58317 2011-03-26  Bruno Haible  <bruno@clisp.org>
58319         unictype/bidiclass-byname: Recognize long names as well.
58320         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
58321         name.
58322         * lib/unictype/bidi_byname.c: Include <string.h>,
58323         unictype/bidi_byname.h.
58324         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
58325         * lib/unictype/bidi_byname.gperf: New file.
58326         * modules/unictype/bidiclass-byname (Files): Add
58327         lib/unictype/bidi_byname.gperf.
58328         (Depends-on): Add gperf.
58329         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58330         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58331         long names.
58333         Tests for module 'unictype/bidiclass-longname'.
58334         * modules/unictype/bidiclass-longname-tests: New file.
58335         * tests/unictype/test-bidi_longname.c: New file.
58337         New module 'unictype/bidiclass-longname'.
58338         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58339         * lib/unictype/bidi_longname.c: New file.
58340         * modules/unictype/bidiclass-longname: New file.
58341         * modules/unictype/bidiclass-all (Depends-on): Add
58342         unictype/bidiclass-longname.
58344 2011-03-26  Bruno Haible  <bruno@clisp.org>
58346         unictype/bidi*: Rename modules.
58347         * modules/unictype/bidiclass-all: Renamed from
58348         modules/unictype/bidicategory-all.
58349         * modules/unictype/bidiclass-name: Renamed from
58350         modules/unictype/bidiclass-name.
58351         (Description): Update.
58352         * modules/unictype/bidiclass-name-tests: Renamed from
58353         modules/unictype/bidicategory-name-tests.
58354         * modules/unictype/bidiclass-byname: Renamed from
58355         modules/unictype/bidicategory-byname.
58356         (Description): Update.
58357         * modules/unictype/bidiclass-byname-tests: Renamed from
58358         modules/unictype/bidicategory-byname-tests.
58359         * modules/unictype/bidiclass-of: Renamed from
58360         modules/unictype/bidicategory-of.
58361         (Description): Update.
58362         * modules/unictype/bidiclass-of-tests: Renamed from
58363         modules/unictype/bidicategory-of-tests.
58364         * modules/unictype/bidiclass-test: Renamed from
58365         modules/unictype/bidicategory-test.
58366         (Description): Update.
58367         * modules/unictype/bidiclass-test-tests: Renamed from
58368         modules/unictype/bidicategory-test-tests.
58369         * modules/unictype/bidicategory-all: New file, a simple redirection.
58370         * modules/unictype/bidicategory-name: Likewise.
58371         * modules/unictype/bidicategory-byname: Likewise.
58372         * modules/unictype/bidicategory-of: Likewise.
58373         * modules/unictype/bidicategory-test: Likewise.
58374         * modules/unictype/property-bidi-* (Dependencies): Update.
58375         * lib/unictype/bidi_*.c: Update comment.
58377 2011-03-26  Bruno Haible  <bruno@clisp.org>
58379         unictype/bidi*: Rename functions, part 2.
58380         * modules/unictype/bidicategory-name (configure.ac): Update required
58381         libunistring version.
58382         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58384 2011-03-25  Bruno Haible  <bruno@clisp.org>
58386         New module 'unictype/combining-class-all'.
58387         * modules/unictype/combining-class-all: New file.
58389         Tests for module 'unictype/combining-class-byname'.
58390         * modules/unictype/combining-class-byname-tests: New file.
58391         * tests/unictype/test-combiningclass_byname.c: New file.
58393         New module 'unictype/combining-class-byname'.
58394         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58395         * lib/unictype/combiningclass_byname.c: New file.
58396         * lib/unictype/combiningclass_byname.gperf: New file.
58397         * modules/unictype/combining-class-byname: New file.
58399         Tests for module 'unictype/combining-class-longname'.
58400         * modules/unictype/combining-class-longname-tests: New file.
58401         * tests/unictype/test-combiningclass_longname.c: New file.
58403         New module 'unictype/combining-class-longname'.
58404         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58405         * lib/unictype/combiningclass_longname.c: New file.
58406         * modules/unictype/combining-class-longname: New file.
58408         Tests for module 'unictype/combining-class-name'.
58409         * modules/unictype/combining-class-name-tests: New file.
58410         * tests/unictype/test-combiningclass_name.c: New file.
58412         New module 'unictype/combining-class-name'.
58413         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58414         * lib/unictype/combiningclass_name.c: New file.
58415         * modules/unictype/combining-class-name: New file.
58417 2011-03-25  Bruno Haible  <bruno@clisp.org>
58419         unictype/combining-class: Rename source files.
58420         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58421         of unictype/combining.h.
58422         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58423         Update.
58424         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58425         * modules/unictype/combining-class (Description): Fix.
58426         (Files, Makefile.am): Update.
58427         * tests/unictype/test-combiningclass.c: Renamed from
58428         tests/unictype/test-combining.c.
58429         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58431 2011-03-25  Bruno Haible  <bruno@clisp.org>
58433         unictype: Update list of canonical combining classes.
58434         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58436 2011-03-25  Bruno Haible  <bruno@clisp.org>
58438         unictype/category-byname: Recognize long names as well.
58439         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58440         a long name.
58441         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58442         unictype/categ_byname.h.
58443         (UC_CATEGORY_INDEX_*): New enumeration values.
58444         (uc_general_category_byname): Use uc_general_category_lookup and
58445         convert from index to value.
58446         * lib/unictype/categ_byname.gperf: New file.
58447         * modules/unictype/category-byname (Files): Add
58448         lib/unictype/categ_byname.gperf.
58449         (Depends-on): Add gperf.
58450         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58451         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58452         long names.
58454         Tests for module 'unictype/category-longname'.
58455         * modules/unictype/category-longname-tests: New file.
58456         * tests/unictype/test-categ_longname.c: New file.
58458         New module 'unictype/category-longname'.
58459         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58460         * lib/unictype/categ_longname.c: New file.
58461         * modules/unictype/category-longname: New file.
58462         * modules/unictype/category-all (Depends-on): Add it.
58464 2011-03-25  Bruno Haible  <bruno@clisp.org>
58466         Tests for module 'unictype/category-LC'.
58467         * modules/unictype/category-LC-tests: New file.
58468         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58470         New module 'unictype/category-LC'.
58471         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58472         (UC_CATEGORY_LC): New declaration.
58473         (UC_CASED_LETTER): New macro.
58474         * lib/gen-uni-tables.c (is_category_LC): New function.
58475         (output_categories): Also handle category LC.
58476         (UC_CATEGORY_MASK_LC): New enumeration value.
58477         (general_category_byname): Also handle category LC.
58478         * lib/unictype/categ_LC.c: New file.
58479         * lib/unictype/categ_LC.h: New file, automatically generated.
58480         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58481         category LC.
58482         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58483         * modules/unictype/category-LC: New file.
58484         * modules/unictype/category-byname (Depends-on): Add
58485         unictype/category-LC.
58486         * modules/unictype/category-all (Depends-on): Likewise.
58488 2011-03-25  Eric Blake  <eblake@redhat.com>
58490         xmalloc: revert yesterday's regression
58491         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58492         realloc's underlying behavior (allowing allocation of zero-size
58493         objects, especially if malloc-gnu is also in use).
58495 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58497         maint.mk: add missing version to VC-tag
58498         * top/maint.mk: git tag was missing actual tag name; add it.
58500         valgrind: do leak checking, and exit with code 1 on error (not 0)
58501         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58502         to VALGRIND.
58504 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58506         posix-modules: say what it does.
58507         * posix-modules: Add a line to the --help output saying what it does.
58509 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58511         xmalloc: Do not leak if underlying realloc is C99 compatible.
58512         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58513         This avoids a leak on C99-based systems.  See
58514         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58516 2011-03-24  Eric Blake  <eblake@redhat.com>
58518         realloc: document portability problem
58519         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58520         passing 0 size to realloc.
58522 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58524         doc: update users.txt
58525         * users.txt: Add cvsps, tmpwatch
58527 2011-03-23  Matt Rice  <ratmice@gmail.com>
58529         doc: update users.txt
58530         * users.txt: Add gdb.
58532 2011-03-23  Jim Meyering  <meyering@redhat.com>
58534         doc: update users.txt
58535         Looking through matches up to the following URL (there are still
58536         several more pages), I found several projects that use gnulib:
58537         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58538         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58539         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58541 2011-03-22  Bruno Haible  <bruno@clisp.org>
58543         unictype/bidi*: Rename functions.
58544         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58545         uc_bidi_class, uc_is_bidi_class): New declarations.
58546         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58547         uc_bidi_category_byname.
58548         (uc_bidi_category_byname): New function.
58549         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58550         u_bidi_category_name.
58551         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58552         (uc_bidi_category_name): New function.
58553         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58554         uc_bidi_category.
58555         (uc_bidi_category): New function.
58556         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58557         uc_is_bidi_category. Invoke uc_bidi_class.
58558         (uc_is_bidi_category): New function.
58559         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58560         instead of uc_bidi_category_byname.
58561         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58562         instead of uc_bidi_category_name.
58563         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58564         uc_bidi_category.
58565         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58566         instead of uc_is_bidi_category.
58568 2011-03-21  Bruno Haible  <bruno@clisp.org>
58570         New module 'unictype/joininggroup-all'.
58571         * modules/unictype/joininggroup-all: New file.
58573         Tests for module 'unictype/joininggroup-of'.
58574         * modules/unictype/joininggroup-of-tests: New file.
58575         * tests/unictype/test-joininggroup_of.c: New file.
58576         * tests/unictype/test-joininggroup_of.h: New file, automatically
58577         generated by gen-uni-tables.
58579         New module 'unictype/joininggroup-of'.
58580         * modules/unictype/joininggroup-of: New file.
58581         * lib/unictype/joininggroup_of.c: New file.
58582         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58583         gen-uni-tables.
58585         Tests for module 'unictype/joininggroup-byname'.
58586         * modules/unictype/joininggroup-byname-tests: New file.
58587         * tests/unictype/test-joininggroup_byname.c: New file.
58589         New module 'unictype/joininggroup-byname'.
58590         * modules/unictype/joininggroup-byname: New file.
58591         * lib/unictype/joininggroup_byname.c: New file.
58592         * lib/unictype/joininggroup_byname.gperf: New file.
58594         Tests for module 'unictype/joininggroup-name'.
58595         * modules/unictype/joininggroup-name-tests: New file.
58596         * tests/unictype/test-joininggroup_name.c: New file.
58598         New module 'unictype/joininggroup-name'.
58599         * modules/unictype/joininggroup-name: New file.
58600         * lib/unictype/joininggroup_name.c: New file.
58601         * lib/unictype/joininggroup_name.h: New file.
58603         New module 'unictype/joiningtype-all'.
58604         * modules/unictype/joiningtype-all: New file.
58606         Tests for module 'unictype/joiningtype-of'.
58607         * modules/unictype/joiningtype-of-tests: New file.
58608         * tests/unictype/test-joiningtype_of.c: New file.
58609         * tests/unictype/test-joiningtype_of.h: New file, automatically
58610         generated by gen-uni-tables.
58612         New module 'unictype/joiningtype-of'.
58613         * modules/unictype/joiningtype-of: New file.
58614         * lib/unictype/joiningtype_of.c: New file.
58615         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58616         gen-uni-tables.
58618         Tests for module 'unictype/joiningtype-byname'.
58619         * modules/unictype/joiningtype-byname-tests: New file.
58620         * tests/unictype/test-joiningtype_byname.c: New file.
58622         New module 'unictype/joiningtype-byname'.
58623         * modules/unictype/joiningtype-byname: New file.
58624         * lib/unictype/joiningtype_byname.c: New file.
58626         Tests for module 'unictype/joiningtype-name'.
58627         * modules/unictype/joiningtype-name-tests: New file.
58628         * tests/unictype/test-joiningtype_name.c: New file.
58630         New module 'unictype/joiningtype-name'.
58631         * modules/unictype/joiningtype-name: New file.
58632         * lib/unictype/joiningtype_name.c: New file.
58634         unictype: Add support for Arabic shaping properties.
58635         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58636         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58637         declarations.
58638         (UC_JOINING_GROUP_*): New enumeration values.
58639         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58640         declarations.
58641         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58642         (unicode_joining_type): New variable.
58643         (UC_JOINING_GROUP_*): New enumeration values.
58644         (unicode_joining_group): New variable.
58645         (fill_arabicshaping, joining_type_as_c_identifier,
58646         output_joining_type_test, output_joining_type,
58647         joining_group_as_c_identifier, output_joining_group_test,
58648         output_joining_group): New functions.
58649         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58650         fill_arabicshaping and output_joining_type_test, output_joining_type,
58651         output_joining_group_test, output_joining_group.
58652         Reported by Simon Josefsson.
58654 2011-03-21  Jim Meyering  <meyering@redhat.com>
58656         strftime: fix a bug in yesterday's change
58657         * lib/strftime.c (add): Accommodate width's initial value of -1.
58658         Otherwise, nstrftime would copy uninitialized data into
58659         the result buffer.
58661 2011-03-21  Jim Meyering  <meyering@redhat.com>
58663         tests: add strftime-tests module
58664         * tests/test-strftime.c: New file.
58665         * modules/strftime-tests: New module.
58667 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58669         strftime: don't assume a byte count fits in 'int'
58670         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58671         found this problem by static analysis, using gcc -Wstrict-overflow
58672         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58673         on an integer overflow having undefined behavior, but it turns out
58674         that the argument is a size, which might not fit in 'int' anyway,
58676 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58678         stdio: don't require ignore_value around fwrite
58680         This patch works around libc bug 11959
58681         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58682         Without this patch, applications must often write
58683         ignore_value (fwrite (...)) even though the ignore_value is
58684         not helpful here.  It's common to write many objects, using
58685         fwrite/printf/etc., and then use ferror to detect output error.
58687         I considered making this patch optional, but decided against it,
58688         because libc is obviously being inconsistent here: there is no
58689         reason libc should insist that user code must inspect fwrite
58690         return's value without also insisting that it inspect printf's,
58691         putchar's, etc.  If user code wants to have a strict style where
58692         all these functions' values are checked (so that ferror need not
58693         be checked), we could add support for that style in a new gnulib
58694         module, but in the meantime it's better to be consistent and to
58695         support common usage.
58697         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58698         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58699         that we are compiling in checking mode, and if not C++, and
58700         if not already wrapping fwrite for some other reason.
58701         (fwrite): #define to rpl_fwrite if the latter is defined.
58703 2011-03-20  Bruno Haible  <bruno@clisp.org>
58705         verror: Fix compilation error introduced on 2011-02-13.
58706         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58707         instead of __attribute__.
58708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58710 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58711             Bruno Haible  <bruno@clisp.org>
58713         socklen: do not depend on sys_socket
58714         While trying to modify Emacs to use gnulib's socklen module,
58715         I discovered a circular dependency: socklen depends on sys_socket
58716         and vice versa.  Emacs can use socklen, but it does not need
58717         sys_socket because it has its own substitute for sys/socket.h.
58718         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58719         gl_TYPE_SOCKLEN_T.
58720         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58721         gl_PREREQ_SYS_H_SOCKET.
58722         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58723         gl_PREREQ_SYS_H_SOCKET.
58724         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58725         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58726         * modules/socklen (Depends-on): Do not depend on sys_socket.
58727         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58729 2011-03-20  Jim Meyering  <meyering@redhat.com>
58731         maint.mk: sort file names *after* new transformation
58732         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58733         prefix would have led to an unwarranted failure in GNU parted.
58734         Sort after that transformation.
58736 2011-03-19  Jim Meyering  <meyering@redhat.com>
58738         maint.mk: fix po-file syntax-check rule
58739         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58740         Patch by Bruno Haible.
58742 2011-03-19  Bruno Haible  <bruno@clisp.org>
58744         socklen: Update comment.
58745         * m4/socklen.m4: Update comment about platforms.
58747 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58748             Bruno Haible  <bruno@clisp.org>
58750         inet_ntop, inet_pton: Simplify.
58751         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58752         documented to provide socklen_t and we already depend on sys_socket.
58753         * modules/inet_pton (Depends-on): Likewise.
58754         * lib/arpa_inet.in.h: Adjust comment.
58756 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58757             Bruno Haible  <bruno@clisp.org>
58759         netdb: Simplify.
58760         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58761         documented to provide socklen_t and we already depend on sys_socket.
58762         * lib/netdb.in.h: Adjust comment.
58764 2011-03-19  Bruno Haible  <bruno@clisp.org>
58766         sys_socket, netdb: Document problem with socklen_t.
58767         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58768         platforms.
58769         * doc/posix-headers/netdb.texi: Likewise.
58771 2011-03-18  Eric Blake  <eblake@redhat.com>
58773         maint.mk: let po check work in VPATH build
58774         * top/maint.mk (po_file): Allow cfg.mk override.
58775         (sc_po_check): Allow VPATH use.
58776         Reported by Jiri Denemark.
58778 2011-03-16  Jim Meyering  <meyering@redhat.com>
58780         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58781         Before, you would have had to create one .x-sc_ file per rule in order
58782         to exempt offending files.  Now, you may instead use a Make variable --
58783         usually defined in cfg.mk -- whose name identifies the affected rule.
58784         * top/maint.mk (_sc_excl): Define.
58785         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58786         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58788 2011-03-13  Bruno Haible  <bruno@clisp.org>
58790         ignore-value tests: Avoid warnings.
58791         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58792         empty for gcc < 3.4.
58794 2011-03-13  Bruno Haible  <bruno@clisp.org>
58796         passfd: Fix link error on Solaris.
58797         * modules/passfd (Description): Correct.
58798         (Depends-on): Add socketlib.
58799         (Link): New section.
58800         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58802 2011-03-13  Bruno Haible  <bruno@clisp.org>
58804         passfd: Fix link error on AIX 5.2.
58805         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58807 2011-03-13  Bruno Haible  <bruno@clisp.org>
58809         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58810         * lib/sys_socket.in.h: Include <stddef.h>.
58811         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58812         CMSG_FIRSTHDR. Remove unused variable.
58814 2011-03-13  Bruno Haible  <bruno@clisp.org>
58816         passfd: Fix compilation error on OpenBSD.
58817         * lib/passfd.c: Include <sys/uio.h>.
58819 2011-03-13  Bruno Haible  <bruno@clisp.org>
58821         passfd test: Fix warnings.
58822         * tests/test-passfd.c: Include <sys/wait.h>.
58823         (main): Fix typo.
58825 2011-03-13  Bruno Haible  <bruno@clisp.org>
58827         passfd module, part 4, tweaks.
58828         * tests/test-passfd.c: Reorder includes.
58829         (main): Fix perror and printf calls.
58831 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58833         passfd module, part 4.
58834         * modules/passfd-tests: New file.
58835         * tests/test-passfd.c: New file.
58837 2011-03-13  Jim Meyering  <meyering@redhat.com>
58839         Makefile: rely on GNU make; derive syntax-check rule names
58840         Rather than requiring that each sc_ rule be listed as a dependent
58841         of "check", use features of GNU make to derive the list.
58842         * Makefile (syntax-check-rules): Define.
58843         (check): Depend on the new variable, not the hard-coded list.
58845 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58846             Bruno Haible  <bruno@clisp.org>
58848         passfd module, part 3.
58849         * lib/passfd.h (recvfd): Add a flags argument.
58850         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58851         (recvfd): Add a flags argument.
58852         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58853         exists.
58854         * modules/passfd (Depends-on): Add cloexec.
58855         Suggested by Eric Blake.
58857 2011-03-13  Bruno Haible  <bruno@clisp.org>
58859         passfd module, part 2, tweaks.
58860         * modules/passfd (Files): Reorder.
58861         (Depends-on): Remove errno.
58862         (Include): Remove <sys/socket.h>, <sys/un.h>.
58863         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58864         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58865         specification header. Include <sys/socket.h> always. Don't include
58866         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58867         (sendfd): Clarify that it sets errno when it fails.
58868         (recvfd): Fix specification.
58870 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58872         passfd module, part 2.
58873         * modules/passfd: New file.
58874         * lib/passfd.h: New file.
58875         * lib/passfd.c: New file.
58877 2011-03-12  Bruno Haible  <bruno@clisp.org>
58879         wcswidth, mbswidth: Avoid integer overflow.
58880         * lib/wcswidth.c: Include <limits.h>.
58881         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58882         * lib/mbswidth.c: Include <limits.h>.
58883         (mbsnwidth): Avoid 'int' overflow.
58884         Reported by Jim Meyering.
58886 2011-03-12  Bruno Haible  <bruno@clisp.org>
58888         futimens, utimensat: Avoid endless recursion on Solaris 10.
58889         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58890         Solaris.
58891         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58892         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58894 2011-03-11  Jim Meyering  <meyering@redhat.com>
58896         maint.mk: relax a regexp to accommodate other formatting styles
58897         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58898         between "ngettext" and the following "(".
58900 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58902         maint.mk: suppress a false positive warning
58903         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58904         diagnostics are marked with ngettext.
58906 2011-03-10  Eric Blake  <eblake@redhat.com>
58908         wchar: add explicit dependencies, for Tru64
58909         * modules/mbmemcasecoll (Depends-on): Add wchar.
58910         * modules/mbtowc (Depends-on): Likewise.
58911         * modules/vasnprintf (Depends-on): Likewise.
58912         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58913         * modules/wctomb (Depends-on): Likewise.
58914         Reported by Peter O'Gorman.
58916 2011-03-08  Bruno Haible  <bruno@clisp.org>
58918         passfd module, part 1, tweaks.
58919         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58920         Improve indentation. Improve AC_MSG_CHECKING messages.
58921         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58922         gl_SOCKET_FAMILIES.
58924 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58926         passfd module, part 1.
58927         * m4/afunix.m4: New file.
58928         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58929         sockets.
58931 2011-03-08  Bruno Haible  <bruno@clisp.org>
58933         regex-quote: New API.
58934         * lib/regex-quote.h: Include <stdbool.h>.
58935         (struct regex_quote_spec): New type.
58936         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58937         New declarations.
58938         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58939         'const struct regex_quote_spec *' argument.
58940         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58941         (pcre_special): New constant.
58942         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58943         New functions.
58944         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58945         'const struct regex_quote_spec *' argument.
58946         * modules/regex-quote (Depends-on): Add stdbool.
58947         * tests/test-regex-quote.c (check): Update for new API. Add test for
58948         anchored results.
58949         * NEWS: Mention the API change.
58950         Reported by Reuben Thomas and Eric Blake.
58952 2011-03-06  Bruno Haible  <bruno@clisp.org>
58954         regex-quote: Fix creation of POSIX extended regular expressions.
58955         * lib/regex-quote.c (ere_special): Add grouping and alternation
58956         operators.
58958 2011-03-05  Bruno Haible  <bruno@clisp.org>
58960         doc: Improve doc regarding autopoint vs. gnulib.
58961         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58962         disable autopoint while running autoreconf.
58963         Suggested by Ralf Wildenhues.
58965 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58967         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58968         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58970 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58972         parse-duration: remove xalloc.h dependency
58973         * lib/parse-duration.c (parse_period): handle NULL return from
58974         strdup instead of calling xstrdup().
58975         * modules/parse-duration: remove "xalloc" dependency
58977 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58979         bootstrap: honor m4_base when running aclocal
58980         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58982 2011-03-02  Jim Meyering  <meyering@redhat.com>
58984         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58985         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58986         on request from Matt Booth.
58988 2011-03-01  Eric Blake  <eblake@redhat.com>
58990         test-link: work on Hurd
58991         * tests/test-link.h (test_link): Hurd rejects linking directories
58992         with EISDIR instead of the POSIX-mandated EPERM.
58994 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58996         stdio: simplify by moving files to printf-posix, sigpipe
58997         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58998         since this symbol is needed only if printf is replaced.
58999         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
59000         Require gl_ASM_SYMBOL_PREFIX.
59001         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
59002         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
59003         (Depends-on): Add 'raise'.
59004         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
59005         * modules/stdio (Files): Remove lib/stdio-write.c,
59006         m4/asm-underscore.m4.
59007         (Depends-on): Remove 'raise'.
59009         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
59010         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
59011         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
59012         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
59014 2011-02-28  Bruno Haible  <bruno@clisp.org>
59016         localcharset: Assume ANSI C behaviour of free().
59017         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
59018         calling free().
59019         Suggested by Simon Josefsson <simon@josefsson.org>.
59021 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
59022             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
59023             Bruno Haible  <bruno@clisp.org>  (tiny change)
59025         On Cygwin, use /proc file system instead of win32 API.
59026         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
59027         Win32 file names.
59028         (DllMain): Simplify by removing Cygwin specific code.
59029         (find_shared_library_fullname): Use Linux specific implementation also
59030         for Cygwin.
59031         (get_shared_library_fullname): Update accordingly.
59032         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
59033         Win32 file names.
59034         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
59035         Cygwin specific code.
59037 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
59038             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
59040         Fix OpenMP flag detection for various Fortran compilers.
59041         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
59042         OpenMP-conditional compilation construct, to force compile
59043         failure with missing OpenMP flag.
59044         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
59046 2011-02-25  Eric Blake  <eblake@redhat.com>
59048         strstr: expand test coverage
59049         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
59050         compilation.
59051         * tests/test-memmem.c (main): Duplicate tests.
59052         * tests/test-strcasestr.c (main): Likewise.
59053         * tests/test-c-strcasestr.c (main): Likewise.
59055 2011-02-25  Jim Meyering  <meyering@redhat.com>
59057         maint.mk: detect missing-NL-at-EOF, too
59058         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
59059         it also detects when a file lacks a newline at EOF.
59060         (require_exactly_one_NL_at_EOF_): Renamed from
59061         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
59062         since people may well have .x-sc_... file names tied to the
59063         existing name.  Suggested by Eric Blake.
59065 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59067         dirname: move m4/dos.m4 functionality into lib/dosname.h
59069         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
59070         extracts symbols from it, puts them into config.h; but it's much
59071         easier to use the symbols directly.  filename.h already does this,
59072         but it disagrees with dos.m4 in some respects.  This patch
59073         introduces a different include file dosname.h that packages up
59074         dos.m4, and then later we can work on merging filename.h and
59075         dosname.h.  Applications that need only the easy-to-configure
59076         symbols should consider including dosname.h rather than dirname.h.
59077         * NEWS: Mention incompatible changes.
59078         * m4/dos.m4: Remove.
59079         * lib/dosname.h, modules/dosname: New files.
59080         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
59081         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
59082         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
59083         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
59084         Include dosname.h, not dirname.h.
59085         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
59086         Include dosname.h, for definitions of symbols like ISSLASH
59087         that used to be in config.h.
59088         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
59089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59090         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59091         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59092         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
59093         * modules/rmdir (Files): Likewise.
59094         * modules/stat (Files): Likewise.
59095         * modules/unlink (Files): Likewise.
59096         * modules/dirname-lgpl (Depends-on): Add dosname.
59097         * modules/lstat (Depends-on): Likewise.
59098         * modules/openat (Depends-on): Likewise.
59099         * modules/rmdir (Depends-on): Likewise.
59100         * modules/savewd (Depends-on): Likewise.
59101         * modules/stat (Depends-on): Likewise.
59102         * modules/unlink (Depends-on): Likewise.
59103         * modules/openat (Depends-on): Remove dirname-lgpl.
59104         * modules/savewd (Depends-on): Likewise.
59105         * tests/test-dirname.c: Do not use removed symbols like
59106         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
59107         the remaining symbols, e.g., ISSLASH ('\\').
59109 2011-02-25  Eric Blake  <eblake@redhat.com>
59111         strstr: revert patches that introduced bug and pessimization
59112         * lib/str-two-way.h: Add another reference.
59113         (two_way_short_needle, two_way_long_needle): Revert changes from
59114         2011-02-24; they pessimize search speed.
59115         (critical_factorization): Partially revert changes from
59116         2010-06-22; they violate the requirement that the left half of the
59117         needle be smaller than the period of the needle.
59119 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59121         filenamecat: remove unnecessary dependency on dirname-lgpl
59122         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
59123         is no direct dependency, just an indirect one via filenamecat-lgpl.
59125         remove: remove unnecessary use of m4/dos.m4
59126         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
59127         * modules/remove (FILES): Remove m4/dos.m4.
59129         * lib/openat-proc.c: Don't include dirname.h; not needed.
59131         backupfile: remove unnecessary use of m4/dos.m4
59132         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
59133         of its symbols are used by the backupfile code.  backupfile.c does
59134         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
59135         for the rare case of programs that want all their backup file
59136         names to live within 8+3 limits, and dos.m4 doesn't address that.
59137         * modules/backupfile (Files): Remove m4/dos.m4.
59139 2011-02-24  Jim Meyering  <meyering@redhat.com>
59141         strstr: fix a bug whereby strstr would mistakenly return NULL
59142         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
59143         in period calculation.
59144         (two_way_long_needle): Likewise.
59145         The original problem was reported by Mike Stump in
59146         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
59147         Ralf Wildenhues provided the short needle and haystack.
59148         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
59149         Add a more involved test to trigger the bug in two_way_long_needle.
59151 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59153         gnulib-tool: remove use of bold display in help screen
59154         * gnulib-tool (func_usage): Do not use bold display anymore in the
59155         help screen.  That was just meant to be a temporary emphasis for a
59156         backward-incompatible change.
59158 2011-02-23  Bruno Haible  <bruno@clisp.org>
59160         Fix misindentation of preprocessor directives.
59161         * lib/argp-namefrob.h: Reindent preprocessor directives.
59162         * lib/getopt_int.h (struct _getopt_data): Likewise.
59163         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
59164         * lib/vasnprintf.c (decode_long_double): Likewise.
59165         * tests/test-argmatch.c: Insert blank lines, for clarity.
59166         * tests/test-exclude.c: Likewise.
59168 2011-02-22  Bruno Haible  <bruno@clisp.org>
59170         ioctl: Fix for MacOS X in 64-bit mode.
59171         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
59172         value.
59173         Suggested by Eric Blake.
59174         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
59176 2011-02-22  Jim Meyering  <meyering@redhat.com>
59178         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
59179         * Makefile (sc_cpp_indent_check): Don't limit the check to files
59180         in lib/.
59182 2011-02-22  Eric Blake  <eblake@redhat.com>
59184         maint: avoid any CDPATH issue
59185         * Makefile (sc_cpp_indent_check): Anchor cd argument.
59187         maint: adjust cpp indentation for my modules, as well
59188         * Makefile (sc_cpp_indent_check): Add my name.
59189         * lib/fbufmode.c: Filter through cppi.
59190         * lib/fpurge.c: Likewise.
59191         * lib/freadable.c: Likewise.
59192         * lib/freading.c: Likewise.
59193         * lib/fwritable.c: Likewise.
59194         * lib/fwriting.c: Likewise.
59195         * lib/sigaction.c: Likewise.
59197 2011-02-22  Jim Meyering  <meyering@redhat.com>
59199         maint: adjust cpp indentation to reflect nesting depth
59200         I.e., in a block of code that begins with an unnested "#if",
59201         put one space between the "#" in column 1 and following token.
59202         For example,
59203         -#include <sys/vfs.h>
59204         +# include <sys/vfs.h>
59205         Do this only in .c files that are part of a module I maintain.
59206         * lib/linkat.c: Filter through cppi.
59207         * lib/nanosleep.c: Likewise.
59208         * lib/openat.c: Likewise.
59209         * lib/openat-die.c: Likewise.
59210         * lib/dup3.c: Likewise.
59211         * lib/fchownat.c: Likewise.
59212         * lib/flock.c: Likewise.
59213         * lib/fsync.c: Likewise.
59214         * lib/fts.c: Likewise.
59215         * lib/getpass.c: Likewise.
59216         * lib/gettimeofday.c: Likewise.
59217         * lib/userspec.c: Likewise.
59218         * Makefile (sc_cpp_indent_check): New rule, to check this.
59220 2011-02-22  Bruno Haible  <bruno@clisp.org>
59222         New module 'wctomb'.
59223         * lib/stdlib.in.h (wctomb): New declaration.
59224         * lib/wctomb.c: New file.
59225         * lib/wctomb-impl.h: New file.
59226         * m4/wctomb.m4: New file.
59227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
59228         REPLACE_WCTOMB.
59229         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
59230         REPLACE_WCTOMB.
59231         * modules/wctomb: New file.
59232         * tests/test-stdlib-c++.cc: Test signature of wctomb.
59233         * doc/posix-functions/wctomb.texi: Mention the new module.
59234         * modules/wctob (Depends-on): Add wctomb.
59236 2011-02-22  Bruno Haible  <bruno@clisp.org>
59238         New module 'mbtowc'.
59239         * lib/stdlib.in.h (mbtowc): New declaration.
59240         * lib/mbtowc.c: New file.
59241         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
59242         * m4/mbtowc.m4: New file.
59243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
59244         REPLACE_MBTOWC.
59245         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
59246         REPLACE_MBTOWC.
59247         * modules/mbtowc: New file.
59248         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
59249         * doc/posix-functions/mbtowc.texi: Mention the new module.
59250         * modules/btowc (Depends-on): Add mbtowc.
59252 2011-02-22  Bruno Haible  <bruno@clisp.org>
59254         wcrtomb: Add more tests for native Windows platforms.
59255         * tests/test-wcrtomb-w32-1.sh: New file.
59256         * tests/test-wcrtomb-w32-2.sh: New file.
59257         * tests/test-wcrtomb-w32-3.sh: New file.
59258         * tests/test-wcrtomb-w32-4.sh: New file.
59259         * tests/test-wcrtomb-w32-5.sh: New file.
59260         * tests/test-wcrtomb-w32.c: New file.
59261         * modules/wcrtomb-tests (Files): Add them.
59262         (Makefile.am): Arrange to run these tests.
59263         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
59264         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
59266 2011-02-20  Bruno Haible  <bruno@clisp.org>
59268         wcrtomb: Enhance test.
59269         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
59271 2011-02-20  Bruno Haible  <bruno@clisp.org>
59273         mbrtowc: Tiny optimization.
59274         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
59276 2011-02-20  Jim Meyering  <meyering@redhat.com>
59278         test-exclude.c: remove unmatched #endif
59279         * tests/test-exclude.c: Remove stray #endif, left over from
59280         the change of a week ago.
59282 2011-02-19  Jim Meyering  <meyering@redhat.com>
59284         git-version-gen: skip "-dirty" check when appropriate
59285         * build-aux/git-version-gen: Don't run any git commands when the
59286         version string comes from .tarball-version.  Prior to this, we
59287         would run git update-index --refresh even from a just-unpacked
59288         tarball directory, and that could affect a .git/ directory in a
59289         parent of the build directory.  Reported by Mike Frysinger.
59291 2011-02-19  Bruno Haible  <bruno@clisp.org>
59293         unictype/property-byname: Reduce the size of the 'data' segment.
59294         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
59296 2011-02-19  Bruno Haible  <bruno@clisp.org>
59298         unictype/scripts: Reduce the size of the 'data' segment.
59299         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
59300         '%pic'.
59301         * lib/unictype/scripts_byname.gperf: Regenerated.
59303 2011-02-19  Bruno Haible  <bruno@clisp.org>
59305         stdint: Update documentation.
59306         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
59308 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
59310         stdint: omit redundant check for wchar.h
59311         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
59312         always tests whether wchar.h exists, so remove the now-redundant test.
59314 2011-02-18  Bruno Haible  <bruno@clisp.org>
59316         stdint: Cut dependency to module 'wchar'.
59317         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
59318         include the necessary prerequisites.
59319         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
59320         * modules/stdint (Depends-on): Remove wchar.
59321         (Makefile.am): Substitute HAVE_WCHAR_H.
59322         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
59324 2011-02-18  Eric Blake  <eblake@redhat.com>
59326         longlong: skip, rather than fail, on cross-compilation
59327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59328         when cross-compiling; regression from 2011-02-16.
59330 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59332         * NEWS: Mention 2011-02-08 change to stdlib.
59334 2011-02-17  Bruno Haible  <bruno@clisp.org>
59336         getloadavg: Add comments about platforms.
59337         * m4/getloadavg.m4: Add comment.
59338         * lib/getloadavg.c: Likewise.
59340 2011-02-17  Bruno Haible  <bruno@clisp.org>
59342         getloadavg: Fix link error on Solaris 2.6.
59343         * modules/getloadavg (Link): New section.
59344         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59345         linking test-getloadavg.
59346         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59347         getloadavg.
59349 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59351         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59352         It was 'int', but this doesn't match the IRIX 6.5 manual.
59353         Suggested by Bruno Haible in
59354         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59356 2011-02-17  Bruno Haible  <bruno@clisp.org>
59358         havelib: Fix comments.
59359         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59360         change.
59362 2011-02-17  Bruno Haible  <bruno@clisp.org>
59364         havelib: Update config.rpath.
59365         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59367 2011-02-17  Bruno Haible  <bruno@clisp.org>
59369         getloadavg test: Add some plausibility checks.
59370         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59371         is improbable.
59373 2011-02-16  Eric Blake  <eblake@redhat.com>
59375         maintainer-makefile: make syntax-check a no-op from tarballs
59376         * top/maint.mk (no-vc-detected): New rule.
59377         (local-checks-available): Use it to avoid hanging if someone tries
59378         'make syntax-check' from a tarball.  Also append to any non-syntax
59379         checks already defined in cfg.mk.
59381 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59383         longlong: tune, particularly for common case of c99
59385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59386         or running anything if c99, or if unsigned long long int does not
59387         work.  In either case, we know the answer without further tests.
59388         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59389         it at most once, and use its results for both long long int and
59390         unsigned long long int.  This is more likely to be efficient in
59391         the common case where the program wants to check for both long
59392         long int and unsigned long long int.
59393         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59394         since the answer is already known.
59396 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59398         getloadavg: set errno
59399         * lib/getloadavg.c: Set errno when returning -1.  If no other
59400         error number looks appropriate, set it to ENOSYS if the getloadavg
59401         looks like it can't possibly ever work, ENOTSUP otherwise.
59402         Suggested by Bruno Haible in
59403         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59405         getloadavg: trim unused parts and speed up 'configure'
59406         * NEWS: Document this.
59407         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59408         always compiled if getloadavg is absent.
59409         Move test code to ...
59410         * tests/test-getloadavg.c: New file, containing previous
59411         contents of test from lib/getloadavg.c.  It also contains
59412         suggestions by Bruno Haible in
59413         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59414         * modules/getloadavg-tests: New file.
59415         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59416         Do tests in the same order as they're needed for getloadavg.c.
59417         Omit setgid-related tests that generate symbols KMEM_GROUP,
59418         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59419         Do only the tests that are needed to see whether the system has
59420         getloadavg, moving the other tests into ...
59421         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59422         NLIST_NAME_UNION; nobody should be using it.  Do not define
59423         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59424         relevant, as the user of this module shouldn't care how getloadavg
59425         is implemented.
59427         getloadavg: omit unused var
59428         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59430 2011-02-15  Jim Meyering  <meyering@redhat.com>
59432         doc: update users.txt
59433         * users.txt: Update iwhd's URL.
59435 2011-02-13  Bruno Haible  <bruno@clisp.org>
59437         Consistent macro naming for macros that use GCC __attribute__.
59438         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59439         _ATTRIBUTE_NONNULL_.
59440         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59441         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59442         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59443         ATTRIBUTE_DEPRECATED.
59444         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59445         ATTRIBUTE_NORETURN.
59446         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59447         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59448         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59449         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59450         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59451         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59452         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59453         ATTRIBUTE_SENTINEL.
59454         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59455         ATTRIBUTE_RETURN_CHECK.
59456         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59457         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59458         ATTRIBUTE_NORETURN.
59459         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59460         Reported by Paul Eggert.
59462 2011-02-13  Bruno Haible  <bruno@clisp.org>
59464         Don't interfere with a program's definition of __attribute__.
59465         * lib/argp.h (__attribute__): Remove definition.
59466         (_GL_ATTRIBUTE_FORMAT): New macro.
59467         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59468         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59469         (_GL_ATTRIBUTE_FORMAT): New macro.
59470         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59471         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59472         GCC 3 or newer.
59473         * lib/error.h (__attribute__): Remove definition.
59474         (_GL_ATTRIBUTE_FORMAT): New macro.
59475         (error, error_at_line): Use it.
59476         * lib/hash.h (__attribute__): Remove definition.
59477         (ATTRIBUTE_WUR): Update definition. Define always.
59478         * lib/openat.h (__attribute__): Remove definition.
59479         (ATTRIBUTE_NORETURN): Update definition. Define always.
59480         * lib/sigpipe-die.h (__attribute__): Remove definition.
59481         (ATTRIBUTE_NORETURN): Update definition. Define always.
59482         * lib/vasnprintf.h (__attribute__): Remove definition.
59483         (_GL_ATTRIBUTE_FORMAT): New macro.
59484         (asnprintf, vasnprintf): Use it.
59485         * lib/xalloc.h (__attribute__): Remove definition.
59486         (ATTRIBUTE_NORETURN): Update definition. Define always.
59487         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59488         * lib/xmemdup0.h (__attribute__): Remove definition.
59489         (ATTRIBUTE_NORETURN): Update definition. Define always.
59490         * lib/xprintf.h (__attribute__): Remove definition.
59491         (_GL_ATTRIBUTE_FORMAT): New macro.
59492         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59493         * lib/xstrtol.h (__attribute__): Remove definition.
59494         (ATTRIBUTE_NORETURN): Update definition. Define always.
59495         * lib/xvasprintf.h (__attribute__): Remove definition.
59496         (_GL_ATTRIBUTE_FORMAT): New macro.
59497         (xasprintf, xvasprintf): Use it.
59498         * tests/test-argmatch.c (__attribute__): Remove definition.
59499         (ATTRIBUTE_NORETURN): Update definition. Define always.
59500         * tests/test-exclude.c (__attribute__): Remove definition.
59501         (ATTRIBUTE_NORETURN): Update definition. Define always.
59502         Reported by Paul Eggert.
59504 2011-02-13  Bruno Haible  <bruno@clisp.org>
59506         mbrtowc: Add more tests for native Windows platforms.
59507         * tests/test-mbrtowc-w32-1.sh: New file.
59508         * tests/test-mbrtowc-w32-2.sh: New file.
59509         * tests/test-mbrtowc-w32-3.sh: New file.
59510         * tests/test-mbrtowc-w32-4.sh: New file.
59511         * tests/test-mbrtowc-w32-5.sh: New file.
59512         * tests/test-mbrtowc-w32.c: New file.
59513         * modules/mbrtowc-tests (Files): Add them.
59514         (Makefile.am): Arrange to run these tests.
59515         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59516         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59518 2011-02-13  Bruno Haible  <bruno@clisp.org>
59520         mbrtowc: Work around native Windows bug.
59521         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59522         guess when no suitable locale for testing was found.
59523         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59525 2011-02-13  Bruno Haible  <bruno@clisp.org>
59527         mbsinit: Work around mingw bug.
59528         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59529         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59530         Windows.
59531         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59533 2011-02-13  Bruno Haible  <bruno@clisp.org>
59535         mbsinit: Don't crash for a NULL argument.
59536         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59537         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59539 2011-02-13  Bruno Haible  <bruno@clisp.org>
59541         Don't interfere with a program's definition of __attribute__.
59542         * lib/stdio.in.h (__attribute__): Remove definition.
59543         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59544         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59545         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59546         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59547         * lib/string.in.h (__attribute__): Remove definition.
59548         Reported by Paul Eggert.
59550 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59552         stdlib: don't get in the way of non-GCC __attribute__
59553         See thread starting at
59554         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59555         Revert previous stdlib change, installing the following instead:
59556         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59557         to get in the way of a non-GCC compiler that supports __attribute__.
59558         (_GL_ATTRIBUTE_RETURN): New macro.
59559         (_Exit): Use it instead of __attribute__.
59561 2011-02-12  Bruno Haible  <bruno@clisp.org>
59563         quotearg test: Avoid test failure on mingw.
59564         * tests/test-quotearg.sh: Convert the locale identifier from native
59565         Windows syntax to Unix syntax.
59567 2011-02-12  Bruno Haible  <bruno@clisp.org>
59569         setlocale: Prefer gnulib's override over libintl's override.
59570         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59571         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59572         GNULIB_defined_setlocale is set.
59574 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59576         stdlib: support non-GCC __attribute__
59578         Fix a serious and tricky problem encountered when attempting to
59579         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59580         5.5, but it crashed due to memory corruption on Solaris 10 with
59581         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59582         bits that are otherwise zero.  This tagging is optional inside
59583         Emacs but is preferred and is used when __attribute__ ((__aligned
59584         (8))) works, as it does with both recent-enough GCC and with Sun C
59585         5.11.  However, Sun C 5.11 is not GCC and does not #define
59586         __GNUC__ and __GNUC_MINOR__.
59588         When I added the getloadavg module to Emacs, it brought in
59589         stdlib.in.h, which contained this fragment:
59591            #ifndef __attribute__
59592            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59593            #  define __attribute__(Spec)   /* empty */
59594            # endif
59595            #endif
59597         When files that include <stdlib.h> were compiled with Sun C 5.11,
59598         the above code disabled __attribute__ ((__aligned (8))), which
59599         caused variables to not be properly aligned, which eventually led
59600         to the pointer corruption mentioned above.  (This was a bit hard
59601         to diagnose, unfortunately.)
59603         Several "#define __attribute__(X) /* empty */" code snippets need
59604         to be eradicated from Gnulib to work with non-GCC compilers that
59605         support __attribute__.  The Autoconf way to do this is to test for
59606         each kind of attribute that we want support for, and selectively
59607         enable that in source code.
59609         Fix this problem just for stdlib.h, by adding a test for the
59610         __noreturn__ attribute, and change stdlib.in.h to use that test
59611         when needed.  This technique can be easily generalized to the
59612         other *.in.h files and attributes, and a similar technique can be
59613         used for *.h and *.c files.  This patch is enough to solve the
59614         problem for Emacs + getloadavg, and I thought I'd publish it for
59615         feedback before undertaking further, similar fixes in other
59616         modules.
59618         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59619         because it's not needed for stdlib.h.  It merely substitutes the
59620         value directly into stdlib.h.  We may well need to #define it, or
59621         similar symbols, for other modules, but it's nice to also have an
59622         option to not #define it for applications like Emacs that do not
59623         need it.
59625         * lib/stdlib.in.h (__attribute__): Do not #define.
59626         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59627         be defined only if the _Exit module is also used.
59628         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59630         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59631         platforms.
59632         * modules/_Exit (Files): Add m4/attribute.m4.
59633         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59634         * m4/attribute.m4: New file.
59636 2011-02-12  Bruno Haible  <bruno@clisp.org>
59638         wcsrtombs: Work around bug on native Windows.
59639         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59640         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59641         instead of len.
59642         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59644 2011-02-12  Bruno Haible  <bruno@clisp.org>
59646         mbsrtowcs: Work around bug on native Windows.
59647         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59648         against mingw bug.
59649         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59651 2011-02-12  Bruno Haible  <bruno@clisp.org>
59653         Avoid setlocale bugs in tests.
59654         * modules/btowc (Dependencies): Add setlocale.
59655         * modules/c-strcase (Dependencies): Likewise.
59656         * modules/mbmemcasecmp (Dependencies): Likewise.
59657         * modules/mbmemcasecoll (Dependencies): Likewise.
59658         * modules/mbrtowc (Dependencies): Likewise.
59659         * modules/mbscasecmp (Dependencies): Likewise.
59660         * modules/mbscasestr (Dependencies): Likewise.
59661         * modules/mbschr (Dependencies): Likewise.
59662         * modules/mbscspn (Dependencies): Likewise.
59663         * modules/mbsinit (Dependencies): Likewise.
59664         * modules/mbsncasecmp (Dependencies): Likewise.
59665         * modules/mbsnrtowcs (Dependencies): Likewise.
59666         * modules/mbspbrk (Dependencies): Likewise.
59667         * modules/mbspcasecmp (Dependencies): Likewise.
59668         * modules/mbsrchr (Dependencies): Likewise.
59669         * modules/mbsrtowcs (Dependencies): Likewise.
59670         * modules/mbsspn (Dependencies): Likewise.
59671         * modules/mbsstr (Dependencies): Likewise.
59672         * modules/nl_langinfo (Dependencies): Likewise.
59673         * modules/quotearg (Dependencies): Likewise.
59674         * modules/unicase/locale-language (Dependencies): Likewise.
59675         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59676         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59677         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59678         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59679         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59680         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59681         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59682         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59683         * modules/vasnprintf-posix (Dependencies): Likewise.
59684         * modules/wcrtomb (Dependencies): Likewise.
59685         * modules/wcsnrtombs (Dependencies): Likewise.
59686         * modules/wcsrtombs (Dependencies): Likewise.
59688 2011-02-12  Bruno Haible  <bruno@clisp.org>
59690         setlocale: Workaround native Windows bug.
59691         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59692         succeeds but sets LC_CTYPE to "C", report a failure.
59693         * tests/test-setlocale2.sh: New file.
59694         * tests/test-setlocale2.c: New file.
59695         * modules/setlocale-tests (Files): Add the new files.
59696         (Makefile.am): Enable test-setlocale2.sh test.
59697         * doc/posix-functions/setlocale.texi: Mention workaround.
59699 2011-02-11  Bruno Haible  <bruno@clisp.org>
59701         Tests for module 'setlocale'.
59702         * modules/setlocale-tests: New file.
59703         * tests/test-setlocale1.sh: New file.
59704         * tests/test-setlocale1.c: New file.
59706         New module 'setlocale'.
59707         * lib/locale.in.h (setlocale): New declaration.
59708         * lib/setlocale.c: New file, based on
59709         gettext/gettext-runtime/intl/setlocale.c.
59710         * m4/setlocale.m4: New file.
59711         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59712         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59713         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59714         REPLACE_SETLOCALE.
59715         * modules/setlocale: New file.
59716         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59717         * doc/posix-functions/setlocale.texi: Mention the new module.
59719 2011-02-11  Bruno Haible  <bruno@clisp.org>
59721         Prepare for locale dependent tests on mingw.
59722         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59723         because it has the wrong locale encoding.
59724         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59725         French_France.1252 instead of "fr".
59726         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59727         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59728         because it has the wrong locale encoding.
59729         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59730         native Windows, try Turkish_Turkey.65001.
59731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59732         Chinese_China.54936.
59734         Prepare for locale dependent tests on mingw.
59735         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59736         differently.
59737         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59738         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59742 2011-02-11  Eric Blake  <eblake@redhat.com>
59744         strptime: avoid compiler warnings
59745         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59746         compiler warnings about dead code.
59747         Reported by Daniel P. Berrange.
59749 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59751         doc: update users.txt
59752         * users.txt: Add rcs.
59754 2011-02-10  John W. Eaton  <jwe@gnu.org>
59756         doc: update users.txt
59757         * users.txt: Add octave.
59759 2011-02-10  Jim Meyering  <meyering@redhat.com>
59761         doc: update users.txt
59762         * users.txt: Add iwhd.
59764 2011-02-09  Bruno Haible  <bruno@clisp.org>
59766         gnulib-tool: Make copyright notice adjustment more robust.
59767         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59768         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59769         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59770         License".
59771         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59773 2011-02-06  Bruno Haible  <bruno@clisp.org>
59775         New module 'towctrans'.
59776         * modules/towctrans: New file.
59777         * lib/wctype.in.h (towctrans): New declaration.
59778         * lib/towctrans.c: New file.
59779         * lib/towctrans-impl.h: New file.
59780         * m4/towctrans.m4: New file.
59781         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59782         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59783         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59784         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59785         * doc/posix-functions/towctrans.texi: Mention the new module.
59787 2011-02-06  Bruno Haible  <bruno@clisp.org>
59789         New module 'wctrans'.
59790         * modules/wctrans: New file.
59791         * lib/wctype.in.h (wctrans): New declaration.
59792         * lib/wctrans.c: New file.
59793         * lib/wctrans-impl.h: New file.
59794         * m4/wctrans.m4: New file.
59795         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59796         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59797         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59798         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59799         * doc/posix-functions/wctrans.texi: Mention the new module.
59801 2011-02-06  Bruno Haible  <bruno@clisp.org>
59803         New module 'iswctype'.
59804         * modules/iswctype: New file.
59805         * lib/wctype.in.h (iswctype): New declaration.
59806         * lib/iswctype.c: New file.
59807         * lib/iswctype-impl.h: New file.
59808         * m4/iswctype.m4: New file.
59809         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59810         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59811         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59812         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59813         * doc/posix-functions/iswctype.texi: Mention the new module and the
59814         HP-UX 11.00 problem.
59816 2011-02-06  Bruno Haible  <bruno@clisp.org>
59818         New module 'wctype'.
59819         * modules/wctype: Change to represent the wctype() substitute.
59820         * lib/wctype.in.h (wctype): New declaration.
59821         * lib/wctype.c: New file.
59822         * lib/wctype-impl.h: New file.
59823         * m4/wctype.m4: New file.
59824         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59825         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59826         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59827         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59828         * doc/posix-functions/wctype.texi: Mention the new module and the
59829         HP-UX 11.00 problem.
59831 2011-02-06  Bruno Haible  <bruno@clisp.org>
59833         wctype-h: Ensure wctype_t and wctrans_t are defined.
59834         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59835         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59836         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59837         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59838         HAVE_WCTRANS_T.
59839         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59841 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59843         flock: fix license typo
59845         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59846         omitted.
59848 2011-02-08  Bruno Haible  <bruno@clisp.org>
59850         Split large sed scripts, for HP-UX sed.
59851         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59852         to avoid HP-UX limit of 99 commands, in the near future.
59853         * modules/stdlib (Makefile.am): Likewise.
59854         * modules/unistd (Makefile.am): Likewise.
59855         * modules/wchar (Makefile.am): Likewise.
59856         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59857         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59858         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59860 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59861             Bruno Haible  <bruno@clisp.org>
59863         stdlib: improve random_r modularization
59864         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59865         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59866         you also need the random_r module to get this material right.
59867         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59868         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59869         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59871 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59873         stdlib: don't depend on stdint
59874         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59875         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59876         be independent of whether stdint.h is needed.
59877         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59878         here, instead of ...
59879         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59880         struct random_data should be using the random_r module, not just
59881         the stdlib module (which wouldn't make sense: what package needs
59882         just struct random_data without also needing random_r?).
59883         * modules/stdlib (Depends-on): Remove stdint.
59885         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59886         See the thread rooted at
59887         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59888         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59889         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59890         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59891         __VMS)); previously it was always included (via fcntl--.h).
59892         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59893         hand; this is good enough for load averages.  Also, do not use
59894         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59895         flags directly if available and don't bother otherwise.  (Packages
59896         that need the extra reliability should use the modules that define
59897         these flags on older platforms that lack them.)
59898         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59899         fcntl-safer.
59901 2011-02-08  Jim Meyering  <meyering@redhat.com>
59903         di-set.h, ino-map.h: add multiple-inclusion guard
59904         Technically, the guard is required only for ino-map.h, due to its
59905         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59906         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59907         * lib/ino-map.h: Likewise.
59909 2011-02-06  Bruno Haible  <bruno@clisp.org>
59911         iswblank: Ensure declaration on glibc systems.
59912         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59913         * modules/iswblank (Dependencies): Add 'extensions'.
59914         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59916 2011-02-06  Bruno Haible  <bruno@clisp.org>
59918         New module 'iswblank'.
59919         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59920         * modules/iswblank: New file.
59921         * modules/wctype-h (Files): Remove lib/iswblank.c.
59922         (Makefile.am): Substitute GNULIB_ISWBLANK.
59923         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59924         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59925         (gl_WCTYPE_H_DEFAULTS): New macro.
59926         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59927         * modules/iswblank-tests: New file.
59928         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59929         * tests/test-wctype-h.c (main): Remove iswblank tests.
59930         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59931         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59932         of 'wctype-h'.
59933         * NEWS: Mention the change.
59934         * modules/mbchar (Depends-on): Add iswblank.
59936 2011-02-08  Bruno Haible  <bruno@clisp.org>
59938         di-set tests: Refactor.
59939         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59940         unnecessary includes.
59941         (ASSERT): Remove macro.
59942         (main): Make C90 compliant by avoiding variable declaration after
59943         statement.
59944         * modules/di-set-tests (Files): Add tests/macros.h.
59946 2011-02-08  Bruno Haible  <bruno@clisp.org>
59948         ino-map tests: Refactor.
59949         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59950         unnecessary includes.
59951         (ASSERT): Remove macro.
59952         (main): Make C90 compliant by avoiding variable declaration after
59953         statement.
59954         * modules/ino-map-tests (Files): Add tests/macros.h.
59956 2011-02-08  Jim Meyering  <meyering@redhat.com>
59958         di-set: add "const" to a cast
59959         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59960         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59962 2011-02-06  Bruno Haible  <bruno@clisp.org>
59964         Rename module 'wctype' to 'wctype-h'.
59965         * modules/wctype-h: Renamed from modules/wctype.
59966         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59967         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59968         (Files, Depends-on, Makefile.am): Update.
59969         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59970         (Files, Makefile.am): Update.
59971         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59972         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59973         * doc/posix-headers/wctype.texi: Update.
59974         * doc/posix-functions/iswalnum.texi: Update.
59975         * doc/posix-functions/iswalpha.texi: Update.
59976         * doc/posix-functions/iswblank.texi: Update.
59977         * doc/posix-functions/iswcntrl.texi: Update.
59978         * doc/posix-functions/iswdigit.texi: Update.
59979         * doc/posix-functions/iswgraph.texi: Update.
59980         * doc/posix-functions/iswlower.texi: Update.
59981         * doc/posix-functions/iswprint.texi: Update.
59982         * doc/posix-functions/iswpunct.texi: Update.
59983         * doc/posix-functions/iswspace.texi: Update.
59984         * doc/posix-functions/iswupper.texi: Update.
59985         * doc/posix-functions/iswxdigit.texi: Update.
59986         * doc/posix-functions/towlower.texi: Update.
59987         * doc/posix-functions/towupper.texi: Update.
59988         * NEWS: Mention the change.
59989         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59990         * modules/mbchar (Dependencies): Likewise.
59991         * modules/mbswidth (Dependencies): Likewise.
59992         * modules/quotearg (Dependencies): Likewise.
59993         * modules/regex (Dependencies): Likewise.
59994         * modules/wcscasecmp (Dependencies): Likewise.
59995         * modules/wcsncasecmp (Dependencies): Likewise.
59996         * modules/wcwidth (Dependencies): Likewise.
59998 2011-02-06  Bruno Haible  <bruno@clisp.org>
60000         New module 'wcswidth'.
60001         * modules/wcswidth: New file.
60002         * lib/wchar.in.h (wcswidth): New declaration.
60003         * lib/wcswidth.c: New file.
60004         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
60005         * m4/wcswidth.m4: New file.
60006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
60007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
60008         REPLACE_WCSWIDTH.
60009         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
60010         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
60011         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
60012         * doc/posix-functions/wcswidth.texi: Mention the new module.
60014 2011-02-06  Bruno Haible  <bruno@clisp.org>
60016         New module 'wcstok'.
60017         * modules/wcstok: New file.
60018         * lib/wchar.in.h (wcstok): New declaration.
60019         * lib/wcstok.c: New file.
60020         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
60021         * m4/wcstok.m4: New file.
60022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
60023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
60024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
60025         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
60026         * doc/posix-functions/wcstok.texi: Mention the new module.
60028 2011-02-06  Bruno Haible  <bruno@clisp.org>
60030         New module 'wcsstr'.
60031         * modules/wcsstr: New file.
60032         * lib/wchar.in.h (wcsstr): New declaration.
60033         * lib/wcsstr.c: New file.
60034         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
60035         * m4/wcsstr.m4: New file.
60036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
60037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
60038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
60039         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
60040         * doc/posix-functions/wcsstr.texi: Mention the new module.
60042 2011-02-06  Bruno Haible  <bruno@clisp.org>
60044         New module 'wcspbrk'.
60045         * modules/wcspbrk: New file.
60046         * lib/wchar.in.h (wcspbrk): New declaration.
60047         * lib/wcspbrk.c: New file.
60048         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
60049         * m4/wcspbrk.m4: New file.
60050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
60051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
60052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
60053         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
60054         * doc/posix-functions/wcspbrk.texi: Mention the new module.
60056 2011-02-06  Bruno Haible  <bruno@clisp.org>
60058         New module 'wcsspn'.
60059         * modules/wcsspn: New file.
60060         * lib/wchar.in.h (wcsspn): New declaration.
60061         * lib/wcsspn.c: New file.
60062         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
60063         * m4/wcsspn.m4: New file.
60064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
60065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
60066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
60067         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
60068         * doc/posix-functions/wcsspn.texi: Mention the new module.
60070 2011-02-06  Bruno Haible  <bruno@clisp.org>
60072         New module 'wcscspn'.
60073         * modules/wcscspn: New file.
60074         * lib/wchar.in.h (wcscspn): New declaration.
60075         * lib/wcscspn.c: New file.
60076         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
60077         * m4/wcscspn.m4: New file.
60078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
60079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
60080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
60081         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
60082         * doc/posix-functions/wcscspn.texi: Mention the new module.
60084 2011-02-06  Bruno Haible  <bruno@clisp.org>
60086         New module 'wcsrchr'.
60087         * modules/wcsrchr: New file.
60088         * lib/wchar.in.h (wcsrchr): New declaration.
60089         * lib/wcsrchr.c: New file.
60090         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
60091         * m4/wcsrchr.m4: New file.
60092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
60093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
60094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
60095         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
60096         * doc/posix-functions/wcsrchr.texi: Mention the new module.
60098 2011-02-06  Bruno Haible  <bruno@clisp.org>
60100         New module 'wcschr'.
60101         * modules/wcschr: New file.
60102         * lib/wchar.in.h (wcschr): New declaration.
60103         * lib/wcschr.c: New file.
60104         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
60105         * m4/wcschr.m4: New file.
60106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
60107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
60108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
60109         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
60110         * doc/posix-functions/wcschr.texi: Mention the new module.
60112 2011-02-06  Bruno Haible  <bruno@clisp.org>
60114         New module 'wcsdup'.
60115         * modules/wcsdup: New file.
60116         * lib/wchar.in.h (wcsdup): New declaration.
60117         * lib/wcsdup.c: New file.
60118         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
60119         * m4/wcsdup.m4: New file.
60120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
60121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
60122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
60123         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
60124         * doc/posix-functions/wcsdup.texi: Mention the new module.
60126 2011-02-06  Bruno Haible  <bruno@clisp.org>
60128         New module 'wcsxfrm'.
60129         * modules/wcsxfrm: New file.
60130         * lib/wchar.in.h (wcsxfrm): New declaration.
60131         * lib/wcsxfrm.c: New file.
60132         * lib/wcsxfrm-impl.h: New file.
60133         * m4/wcsxfrm.m4: New file.
60134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
60135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
60136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
60137         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
60138         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
60140 2011-02-06  Bruno Haible  <bruno@clisp.org>
60142         New module 'wcscoll'.
60143         * modules/wcscoll: New file.
60144         * lib/wchar.in.h (wcscoll): New declaration.
60145         * lib/wcscoll.c: New file.
60146         * lib/wcscoll-impl.h: New file.
60147         * m4/wcscoll.m4: New file.
60148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
60149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
60150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
60151         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
60152         * doc/posix-functions/wcscoll.texi: Mention the new module.
60154 2011-02-06  Bruno Haible  <bruno@clisp.org>
60156         New module 'wcsncasecmp'.
60157         * modules/wcsncasecmp: New file.
60158         * lib/wchar.in.h (wcsncasecmp): New declaration.
60159         * lib/wcsncasecmp.c: New file.
60160         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
60161         * m4/wcsncasecmp.m4: New file.
60162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
60163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
60164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
60165         HAVE_WCSNCASECMP.
60166         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
60167         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
60169 2011-02-06  Bruno Haible  <bruno@clisp.org>
60171         New module 'wcscasecmp'.
60172         * modules/wcscasecmp: New file.
60173         * lib/wchar.in.h (wcscasecmp): New declaration.
60174         * lib/wcscasecmp.c: New file.
60175         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
60176         * m4/wcscasecmp.m4: New file.
60177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
60178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
60179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
60180         HAVE_WCSCASECMP.
60181         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
60182         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
60184 2011-02-05  Bruno Haible  <bruno@clisp.org>
60186         New module 'wcsncmp'.
60187         * modules/wcsncmp: New file.
60188         * lib/wchar.in.h (wcsncmp): New declaration.
60189         * lib/wcsncmp.c: New file.
60190         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
60191         * m4/wcsncmp.m4: New file.
60192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
60193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
60194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
60195         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
60196         * doc/posix-functions/wcsncmp.texi: Mention the new module.
60198 2011-02-05  Bruno Haible  <bruno@clisp.org>
60200         New module 'wcscmp'.
60201         * modules/wcscmp: New file.
60202         * lib/wchar.in.h (wcscmp): New declaration.
60203         * lib/wcscmp.c: New file.
60204         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
60205         * m4/wcscmp.m4: New file.
60206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
60207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
60208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
60209         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
60210         * doc/posix-functions/wcscmp.texi: Mention the new module.
60212 2011-02-05  Bruno Haible  <bruno@clisp.org>
60214         New module 'wcsncat'.
60215         * modules/wcsncat: New file.
60216         * lib/wchar.in.h (wcsncat): New declaration.
60217         * lib/wcsncat.c: New file.
60218         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
60219         * m4/wcsncat.m4: New file.
60220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
60221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
60222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
60223         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
60224         * doc/posix-functions/wcsncat.texi: Mention the new module.
60226 2011-02-05  Bruno Haible  <bruno@clisp.org>
60228         New module 'wcscat'.
60229         * modules/wcscat: New file.
60230         * lib/wchar.in.h (wcscat): New declaration.
60231         * lib/wcscat.c: New file.
60232         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
60233         * m4/wcscat.m4: New file.
60234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
60235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
60236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
60237         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
60238         * doc/posix-functions/wcscat.texi: Mention the new module.
60240 2011-02-05  Bruno Haible  <bruno@clisp.org>
60242         New module 'wcpncpy'.
60243         * modules/wcpncpy: New file.
60244         * lib/wchar.in.h (wcpncpy): New declaration.
60245         * lib/wcpncpy.c: New file.
60246         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
60247         * m4/wcpncpy.m4: New file.
60248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
60249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
60250         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
60251         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
60252         * doc/posix-functions/wcpncpy.texi: Mention the new module.
60254 2011-02-05  Bruno Haible  <bruno@clisp.org>
60256         New module 'wcsncpy'.
60257         * modules/wcsncpy: New file.
60258         * lib/wchar.in.h (wcsncpy): New declaration.
60259         * lib/wcsncpy.c: New file.
60260         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
60261         * m4/wcsncpy.m4: New file.
60262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
60263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
60264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
60265         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
60266         * doc/posix-functions/wcsncpy.texi: Mention the new module.
60268 2011-02-05  Bruno Haible  <bruno@clisp.org>
60270         New module 'wcpcpy'.
60271         * modules/wcpcpy: New file.
60272         * lib/wchar.in.h (wcpcpy): New declaration.
60273         * lib/wcpcpy.c: New file.
60274         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
60275         * m4/wcpcpy.m4: New file.
60276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
60277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
60278         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
60279         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
60280         * doc/posix-functions/wcpcpy.texi: Mention the new module.
60282 2011-02-05  Bruno Haible  <bruno@clisp.org>
60284         New module 'wcscpy'.
60285         * modules/wcscpy: New file.
60286         * lib/wchar.in.h (wcscpy): New declaration.
60287         * lib/wcscpy.c: New file.
60288         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
60289         * m4/wcscpy.m4: New file.
60290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
60291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
60292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
60293         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
60294         * doc/posix-functions/wcscpy.texi: Mention the new module.
60296 2011-02-05  Bruno Haible  <bruno@clisp.org>
60298         New module 'wcsnlen'.
60299         * modules/wcsnlen: New file.
60300         * lib/wchar.in.h (wcsnlen): New declaration.
60301         * lib/wcsnlen.c: New file.
60302         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
60303         * m4/wcsnlen.m4: New file.
60304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
60305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
60306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
60307         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
60308         * doc/posix-functions/wcsnlen.texi: Mention the new module.
60310 2011-02-05  Bruno Haible  <bruno@clisp.org>
60312         New module 'wcslen'.
60313         * modules/wcslen: New file.
60314         * lib/wchar.in.h (wcslen): New declaration.
60315         * lib/wcslen.c: New file.
60316         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
60317         * m4/wcslen.m4: New file.
60318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
60319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
60320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
60321         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
60322         * doc/posix-functions/wcslen.texi: Mention the new module.
60324 2011-02-05  Bruno Haible  <bruno@clisp.org>
60326         New module 'wmemset'.
60327         * modules/wmemset: New file.
60328         * lib/wchar.in.h (wmemset): New declaration.
60329         * lib/wmemset.c: New file.
60330         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60331         * m4/wmemset.m4: New file.
60332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60334         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60335         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60336         * doc/posix-functions/wmemset.texi: Mention the new module.
60338 2011-02-05  Bruno Haible  <bruno@clisp.org>
60340         New module 'wmemmove'.
60341         * modules/wmemmove: New file.
60342         * lib/wchar.in.h (wmemmove): New declaration.
60343         * lib/wmemmove.c: New file.
60344         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60345         * m4/wmemmove.m4: New file.
60346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60348         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60349         HAVE_WMEMMOVE.
60350         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60351         * doc/posix-functions/wmemmove.texi: Mention the new module.
60353 2011-02-05  Bruno Haible  <bruno@clisp.org>
60355         New module 'wmemcpy'.
60356         * modules/wmemcpy: New file.
60357         * lib/wchar.in.h (wmemcpy): New declaration.
60358         * lib/wmemcpy.c: New file.
60359         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60360         * m4/wmemcpy.m4: New file.
60361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60363         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60364         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60365         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60367 2011-02-05  Bruno Haible  <bruno@clisp.org>
60369         New module 'wmemcmp'.
60370         * modules/wmemcmp: New file.
60371         * lib/wchar.in.h (wmemcmp): New declaration.
60372         * lib/wmemcmp.c: New file.
60373         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60374         * m4/wmemcmp.m4: New file.
60375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60377         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60378         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60379         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60381 2011-02-07  Jim Meyering  <meyering@redhat.com>
60383         di-set, ino-map: new modules, from coreutils
60384         * lib/di-set.c: New file.
60385         * lib/di-set.h: Likewise.
60386         * lib/ino-map.c: Likewise.
60387         * lib/ino-map.h: Likewise.
60388         * modules/di-set: Likewise.
60389         * modules/di-set-tests: Likewise.
60390         * modules/ino-map: Likewise.
60391         * modules/ino-map-tests: Likewise.
60392         * tests/test-di-set.c: Likewise.
60393         * tests/test-ino-map.c: Likewise.
60395 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60397         getloadavg: merge minor changes from Emacs
60399         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60400         (getloadavg): Use memset, not bzero.
60402         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60403         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60404         clash (bug#86).
60406 2010-11-14  Bruno Haible  <bruno@clisp.org>
60408         Allow multiple gnulib generated replacements to coexist.
60409         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60410         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60411         * lib/langinfo.in.h (nl_item): Likewise.
60412         * lib/math.in.h (_NaN, NAN): Likewise.
60413         * lib/netdb.in.h (struct addrinfo): Likewise.
60414         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60415         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60416         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60417         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60418         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60419         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60420         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60421         pthread_mutexattr_init, pthread_mutexattr_settype,
60422         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60423         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60424         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60425         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60426         * lib/sched.in.h (struct sched_param): Likewise.
60427         * lib/se-selinux.in.h (security_class_t, security_context_t,
60428         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60429         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60430         lsetfilecon, fsetfilecon, security_check_context,
60431         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60432         Likewise.
60433         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60434         Likewise.
60435         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60436         _gl_function_taking_int_returning_void_t, union sigval,
60437         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60438         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60439         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60440         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60441         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60442         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60443         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60444         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60445         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60446         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60447         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60448         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60449         socklen_t, rpl_fd_isset): Likewise.
60450         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60451         * lib/sys_time.in.h (struct timeval): Likewise.
60452         * lib/sys_times.in.h (struct tms): Likewise.
60453         * lib/sys_utsname.in.h (struct utsname):
60454         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60455         * lib/unistd.in.h (getpagesize): Likewise.
60456         * lib/wchar.in.h (mbstate_t): Likewise.
60457         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60458         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60459         towlower, towupper): Likewise.
60460         Reported by Sam Steingold <sds@gnu.org>.
60462 2011-02-05  Eric Blake  <eblake@redhat.com>
60464         unsetenv: work around Haiku issues
60465         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60466         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60468 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60470         libposix: avoid calling error() within libposix
60471         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60472         is defined.
60474 2011-02-05  Eric Blake  <eblake@redhat.com>
60476         strerror_r-posix: port to cygwin
60477         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60478         implementation.
60479         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60480         * tests/test-strerror_r.c (main): Fix test.
60481         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60482         issue.
60484 2011-02-05  Bruno Haible  <bruno@clisp.org>
60486         New module 'wmemchr'.
60487         * modules/wmemchr: New file.
60488         * lib/wchar.in.h (wmemchr): New declaration.
60489         * lib/wmemchr.c: New file.
60490         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60491         * m4/wmemchr.m4: New file.
60492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60494         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60495         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60496         * doc/posix-functions/wmemchr.texi: Mention the new module.
60498 2011-02-04  Eric Blake  <eblake@redhat.com>
60500         fdopendir: detect FreeBSD bug
60501         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60502         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60504 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60506         stdbool: do not define HAVE_STDBOOL_H
60507         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60508         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60509         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60510         imported from the latest Autoconf git.  It was motivated by Emacs,
60511         which uses gnulib but does not need HAVE_STDBOOL_H.
60513 2011-02-04  Bruno Haible  <bruno@clisp.org>
60515         wcsnrtombs: Prepare for new module wwcsnrtombs.
60516         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60517         * lib/wcsnrtombs.c: Include it.
60518         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60520         wcsrtombs: Prepare for new module wwcsrtombs.
60521         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60522         * lib/wcsrtombs.c: Include it.
60523         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60525         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60526         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60527         * lib/mbsnrtowcs.c: Include it.
60528         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60530         mbsrtowcs: Prepare for new module mbsrtowwcs.
60531         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60532         * lib/mbsrtowcs.c: Include it.
60533         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60535 2011-02-04  Bruno Haible  <bruno@clisp.org>
60537         vasnprintf: Reduce use of malloc for small format strings.
60538         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60539         (arguments): Add room for the first 7 arguments.
60540         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60541         (char_directives, u8_directives, u16_directives, u32_directives): Add
60542         room for the first 7 directives.
60543         * lib/printf-parse.c: Include <string.h>.
60544         (PRINTF_PARSE): Change memory handling code so that it uses the first
60545         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60546         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60547         Reported by Pádraig Brady <P@draigbrady.com>.
60549 2011-01-31  Eric Blake  <eblake@redhat.com>
60551         dup2: work around Haiku bug
60552         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60553         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60554         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60555         * tests/test-dup2.c (main): Enhance test.
60557 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60559         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60560         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60561         declared by eglibc 2.11.2.
60562         * lib/stdio.in.h: Likewise.
60564 2011-01-31  Eric Blake  <eblake@redhat.com>
60566         ignore-value: add missing test dependency
60567         * tests/test-ignore-value.c: Revert previous change; stdio.h
60568         provides off_t.
60569         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60571 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60573         mktime: clarify long_int width checking
60574         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60575         the top level, to make it clearer that the assumption about
60576         long_int width is being checked.  See
60577         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60579 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60581         ignore-value: Fix self-test.
60582         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60584 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60586         TYPE_MAXIMUM: avoid theoretically undefined behavior
60587         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60588         negative number, which the C Standard says has undefined behavior.
60589         In practice this is not a problem, but might as well do it by the book.
60590         Reported by Rich Felker and Eric Blake; see
60591         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60592         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60593         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60595         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60596         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60597         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60599         mktime: #undef mktime before #defining it
60600         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60602         mktime: systematically normalize tm_isdst comparisons
60603         * lib/mktime.c (isdst_differ): New function.
60604         (__mktime_internal): Use it systematically for all isdst comparisons.
60605         This completes the fix for libc BZ #6723, and removes the need for
60606         normalizing tm_isdst.  See
60607         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60608         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60610         mktime: fix some integer overflow issues and sidestep the rest
60612         This was prompted by a bug report by Benjamin Lindner for MinGW
60613         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60614         His bug is due to signed integer overflow (0 - INT_MIN), and I
60615         I scanned through mktime.c looking for other integer overflow
60616         problems, fixing all the bugs I found.
60618         Although the C Standard says the resulting code is still not safe
60619         in the presence of integer overflow, in practice it should be good
60620         enough for all real-world two's-complement implementations, except
60621         for debugging environments that deliberately trap on integer
60622         overflow (e.g., gcc -ftrapv).
60624         * lib/mktime.c (WRAPV): New macro.
60625         (SHR): Also check that long_int and time_t shift right in the
60626         usual way, before using the fast-but-unportable method.
60627         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60628         used.  The code already assumed two's complement, so there's
60629         no need to test for alternatives.  All uses removed.
60630         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60631         the C standard.  Problem reported by Rich Felker in
60632         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60633         (twos_complement_arithmetic): Also check long_int and time_t.
60634         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60635         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60636         (__mktime_internal): Avoid integer overflow with unary subtraction
60637         in two instances where -1 - X is an adequate replacement for -X,
60638         since the calculations are approximate.
60640 2011-01-29  Eric Blake  <eblake@redhat.com>
60642         mktime: avoid infinite loop
60643         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60644         type; behavior is still undefined but portable to all known targets.
60645         Reported by Rich Felker.
60647 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60649         rename, unlink, same-inode: Relicense.
60650         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60651         * modules/unlink (License): Likewise.
60652         * modules/same-inode (License): Likewise.
60654 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60656         mktime: avoid problems on NetBSD 5 / i386
60657         * lib/mktime.c (long_int): New type.  This works around a problem
60658         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60659         but time_t is 64 bits, and where I expect the existing code is
60660         wrong in some cases.
60661         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60662         (ydhms_diff): Bring back the compile-time check for wide-enough
60663         year and yday.
60665         mktime: fix misspelling in comment
60666         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60667         This merges all recent glibc changes of importance.
60669 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60671         move-if-change: cope with concurrent mv of identical file.
60672         * build-aux/move-if-change (CMPPROG): Accept environment
60673         variable as an override for `cmp'.
60674         (usage): Document CMPPROG.
60675         Adjust comparison to drop stdout.  Cope with failure of mv if
60676         the target file exists and is identical to the source, for
60677         parallel builds.
60678         Report from H.J. Lu against binutils in PR binutils/12283.
60680 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60682         * users.txt: Mention sharutils.
60684 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60686         * users.txt: Mention OATH Toolkit.
60688 2011-01-27  Bruno Haible  <bruno@clisp.org>
60690         Prepare for supporting FreeBSD 10.
60691         * build-aux/config.libpath: Remove handling of freebsd1*.
60693 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60695         Prepare for supporting FreeBSD 10.
60696         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60697         match FreeBSD 10.0.
60699 2011-01-27  Bruno Haible  <bruno@clisp.org>
60701         vma-iter, get-rusage-as: Add OpenBSD support.
60702         * modules/vma-iter (configure.ac): Test for mquery.
60703         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60704         * lib/vma-iter.c: Include <sys/mman.h>.
60705         (vma_iterate): Add an implementation based on mquery().
60706         * lib/resource-ext.h (get_rusage_as): Update comments.
60707         * lib/get-rusage-as.c: Likewise.
60708         * lib/get-rusage-data.c: Likewise.
60710 2011-01-26  Karl Berry  <karl@gnu.org>
60712         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60713         variables to make it easier to override the makeinfo program used.
60715 2011-01-26  Eric Blake  <eblake@redhat.com>
60717         fcntl: work around Haiku F_DUPFD bugs
60718         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60719         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60720         cloexec bit on duplication.
60721         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60723 2011-01-26  Bruno Haible  <bruno@clisp.org>
60725         Enable memory leak tests on AIX.
60726         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60727         * tests/test-fprintf-posix3.c (main): Likewise.
60729 2011-01-26  Bruno Haible  <bruno@clisp.org>
60731         Tests for module 'get-rusage-data'.
60732         * modules/get-rusage-data-tests: New file.
60733         * tests/test-get-rusage-data.c: New file.
60735         New module 'get-rusage-data'.
60736         * lib/resource-ext.h (get_rusage_data): New declaration.
60737         * lib/get-rusage-data.c: New file.
60738         * modules/get-rusage-data: New file.
60740 2011-01-25  Bruno Haible  <bruno@clisp.org>
60742         get-rusage-as: Allow for easier testing.
60743         * lib/resource-ext.h (get_rusage_as): Add comment.
60744         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60745         (main): New function for interactive testing.
60747 2011-01-25  Bruno Haible  <bruno@clisp.org>
60749         vma-iter: Treat Haiku like BeOS.
60750         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60751         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60753 2011-01-25  Eric Blake  <eblake@redhat.com>
60755         c-stack: fix regression on cygwin when libsigsegv is present
60756         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60758 2011-01-24  Bruno Haible  <bruno@clisp.org>
60760         vma-iter: Avoid empty intervals.
60761         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60762         on an empty interval.
60764 2011-01-24  Jim Meyering  <meyering@redhat.com>
60766         u64: remove unnecessary #include
60767         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60769 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60771         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60772         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60774 2011-01-23  Bruno Haible  <bruno@clisp.org>
60776         New module 'vma-iter'.
60777         * lib/vma-iter.h: New file.
60778         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60779         * modules/vma-iter: New file.
60780         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60781         for get_rusage_as_via_iterator.
60782         (vma_iterate_callback): New function.
60783         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60784         * modules/get-rusage-as (Depends-on): Add vma-iter.
60786 2011-01-23  Bruno Haible  <bruno@clisp.org>
60788         uninorm: Tweak includes.
60789         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60790         Reported by Jim Meyering.
60792 2011-01-23  Bruno Haible  <bruno@clisp.org>
60794         get-rusage-as: Improve on NetBSD.
60795         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60796         /proc, like on FreeBSD.
60798 2011-01-23  Jim Meyering  <meyering@redhat.com>
60800         xreadlink.h: remove unnecessary #include
60801         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60803         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60804         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60806 2011-01-23  Bruno Haible  <bruno@clisp.org>
60808         get-rusage-as: Fix bug.
60809         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60810         original limit when aborting the first loop.
60812 2011-01-23  Bruno Haible  <bruno@clisp.org>
60814         wctype: Ensure valid C syntax.
60815         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60816         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60818 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60820         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60822         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60823         as they are needed only for configure's test case.
60824         This removes two unnecessary symbols from config.h.
60826         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60827         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60829         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60830         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60831         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60832         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60833         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60834         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60836         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60837         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60838         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60839         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60840         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60841         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60842         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60843         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60845 2011-01-21  Eric Blake  <eblake@redhat.com>
60847         maintainer-makefile: work with older git for submodule check
60848         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60849         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60850         Reported by Matthias Bolte.
60852         bootstrap: minor portability fixes
60853         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60854         (usage): Omit leading capital and trailing . on help phrases, per
60855         GNU Coding Standards.
60856         (check_versions, top level): Prefix messages with script name.
60858 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60860         bootstrap: support --no-git option
60861         * build-aux/bootstrap: Add --no-git option, to be used when
60862         --gnulib-srcdir points to the exact desired checkout.
60864 2011-01-21  Eric Blake  <eblake@redhat.com>
60866         strerror_r-posix: work with glibc 2.13
60867         * lib/strerror_r.c (strerror_r): Fix return type.
60869 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60870             Bruno Haible  <bruno@clisp.org>
60872         uN_strstr: New unit tests.
60873         * modules/unistr/u8-strstr-tests: New file.
60874         * modules/unistr/u16-strstr-tests: New file.
60875         * modules/unistr/u32-strstr-tests: New file.
60876         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60877         * tests/unistr/test-u8-strstr.c: New file.
60878         * tests/unistr/test-u16-strstr.c: New file.
60879         * tests/unistr/test-u32-strstr.c: New file.
60881 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60882             Bruno Haible  <bruno@clisp.org>
60884         Make uN_strstr functions O(n) worst-case.
60885         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60886         16-bit and 32-bit unit cases, use the unibyte algorithm from
60887         lib/mbsstr.c.
60888         * lib/unistr/u8-strstr.c: Include <string.h>.
60889         (UNIT_IS_UINT8_T): New macro.
60890         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60891         (U_STRLEN, U_STRNLEN): New macros.
60892         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60893         (U_STRLEN, U_STRNLEN): New macros.
60894         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60895         (configure.ac): Update required libunistring version.
60896         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60897         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60898         malloca.
60899         (configure.ac): Update required libunistring version.
60900         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60901         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60902         malloca.
60903         (configure.ac): Update required libunistring version.
60905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60906             Bruno Haible  <bruno@clisp.org>
60908         Prepare for faster uN_strstr functions.
60909         * lib/str-kmp.h: Support definable UNITs.
60910         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60911         needle_len argument.
60912         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60913         * lib/mbscasestr.c (mbscasestr): Likewise.
60915 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60917         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60918         * tests/test-malloca.c (main): Unset the environment variable
60919         to greatly speed up the test.
60920         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60921         * modules/malloca-tests: Depend on unsetenv.
60923 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60925         ignore-value: remove stdint dependency
60926         * lib/ignore-value.h: Remove <stdint.h>
60927         * modules/ignore-value: Remove stdint dependency.
60929 2011-01-21  Jim Meyering  <meyering@redhat.com>
60931         maint.mk: adjust variable name to be consistent with other gl_ vars
60932         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60933         to be lower case.
60935 2011-01-20  Jim Meyering  <meyering@redhat.com>
60937         maint.mk: make "check" depend on public-submodule-commit by default
60938         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60940 2011-01-20  Bruno Haible  <bruno@clisp.org>
60942         mbfile, mbiter: Complete change from 2008-12-21.
60943         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60944         * m4/mbiter.m4 (gl_MBITER): Likewise.
60946 2011-01-20  Jim Meyering  <meyering@redhat.com>
60948         init.sh: insert space between each function name and "()"
60949         * tests/init.sh: Make it a little easier to see that a function's
60950         name is "warn_", and not "warn" when looking at the first part of
60951         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60953 2011-01-20  Jim Meyering  <meyering@redhat.com>
60955         mountlist: clean up code formatting
60956         * lib/mountlist.c (read_file_system_list): Split a long line,
60957         correct bracing style, use NULL in place of "(struct statfs *)0",
60958         don't parenthesize return value, add spaces around "=" and after
60959         ";-in-for-stmt".
60961 2011-01-14  Markus Duft  <mduft@gentoo.org>
60963         mountlist: add support for Interix
60964         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60965         Apply statvfs to all entries of /dev/fs.
60966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60967         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60969 2011-01-20  Jim Meyering  <meyering@redhat.com>
60971         maint.mk: improve the public-submodule-commit rule
60972         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60973         to suppress printing of its commands... unless V=1.
60974         Add git submodule's --quiet option to suppress printing of e.g.,
60975         "Entering gnulib" output.
60976         "cd" into $(srcdir) before running git submodule.
60978 2011-01-20  Bruno Haible  <bruno@clisp.org>
60980         include_next: Fix bug introduced on 2011-01-18.
60981         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60982         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60983         ac_cv_header_... variable if the second argument is not 'check'.
60984         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60985         gl_NEXT_HEADERS_INTERNAL.
60987 2011-01-20  Bruno Haible  <bruno@clisp.org>
60989         Allow the user to avoid the GNULIB_TEST_* macros.
60990         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60991         Suggested by Paul Eggert.
60993 2011-01-14  Jim Meyering  <meyering@redhat.com>
60995         bootstrap: avoid failure when there is no .gitmodules file
60996         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60997         has been assigned to, even when its value is the empty string.
60998         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60999         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
61000         Reported by John W. Eaton <jwe@gnu.org>.
61002 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61004         assume <ctype.h>, ..., <time.h> exist
61005         For years gnulib has been assuming the existence of the headers
61006         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
61007         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
61008         them, since they don't appear to be needed.
61009         * README (Portability guidelines): Document this.
61010         * lib/flock.c: Assume <fcntl.h> exists.
61011         * lib/regex_internal.h: Assume <locale.h> exists.
61012         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
61013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
61014         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
61015         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
61016         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
61017         * m4/regex.m4 (gl_REGEX): Likewise.
61018         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
61019         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
61020         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
61021         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
61022         * tests/test-argp.c: Likewise.
61023         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
61025         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
61026         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
61027         AA_APPLE_UNIVERSAL_BUILD.  See
61028         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
61029         * NEWS: Document this.
61031 2011-01-19  Eric Blake  <eblake@redhat.com>
61033         c-stack: assume stack overflow if SA_SIGINFO unsupported
61034         * lib/c-stack.c (SIGACTION_WORKS): Rename...
61035         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
61036         sigaction will work.
61037         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
61038         behavior match Linux.
61039         * tests/test-c-stack.c (main): Prefer NULL for pointers.
61041         stdbool-tests: accommodate Haiku
61042         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
61044         binary-io: fix O_TEXT on Haiku
61045         * modules/binary-io (Depends-on): Add fcntl-h.
61046         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
61047         than blindly undefining O_TEXT.
61048         Reported by Scott McCreary.
61050 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61052         include_next: do not check for standard headers like stddef.h
61054         I found this problem when modifying Emacs to use gnulib.
61055         I noticed that it added HAVE_STDDEF_H to config.h, even though
61056         gnulib always assumes <stddef.h> exists as per README and this
61057         symbol is unnecessary.
61058         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
61059         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
61060         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
61061         faster for headers like stddef.h that are known to exist.
61062         (gl_CHECK_NEXT_HEADERS): Use it.
61063         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
61064         rather than gl_CHECK_NEXT_HEADERS.
61065         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
61066         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
61068 2011-01-18  Eric Blake  <eblake@redhat.com>
61070         ansi-c++-opt: skip C++ dependency style if C++ is unused
61071         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
61072         tests when we know C++ compilation is not desired.
61073         Reported by Scott McCreary.
61075 2011-01-18  Bruno Haible  <bruno@clisp.org>
61077         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
61078         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
61079         (main): Perform test also when getrlimit and setrlimit don't exist or
61080         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
61081         limiting the address space size using setrlimit, compare the address
61082         space size before and after the test.
61083         * tests/test-dprintf-posix2.c: Likewise.
61084         * tests/test-fprintf-posix3.sh: Update skip messages.
61085         * tests/test-dprintf-posix2.sh: Likewise.
61086         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
61087         * modules/dprintf-posix-tests (Depends-on): Likewise.
61088         Reported by Bruce Korb <bkorb@gnu.org> and
61089         Gary V. Vaughan <gary@gnu.org>.
61091 2011-01-18  Bruno Haible  <bruno@clisp.org>
61093         get-rusage-as: Improvement for Cygwin.
61094         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
61095         areas that are merely reserved.
61097 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61099         strftime: remove dependencies on multibyte modules
61101         strftime depended on mbrlen, mbsinit, and wchar, but these modules
61102         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
61103         only if __osf__ is defined, and I suspect OSF doesn't need these
61104         other modules.  If my guess is wrong, we'll need to come up with a
61105         variant of strftime that doesn't need the multibyte modules.
61107         I discovered this problem when attempting modify Emacs to use the
61108         strftime module.  With the previous gnulib, this caused Emacs to
61109         need 31 new files, ranging from lib/config.charset to
61110         m4/wint_t.m4.  This was overkill and I expect would be offputting
61111         to the Emacs maintainers.  After this change, only 6 new files are
61112         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
61113         stdbool.m4, and tm_gmtoff.m4.
61115         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
61116         Suggested by Bruno Haible in
61117         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
61118         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
61119         and do not check for wchar.h.
61120         * modules/strftime (Files): Remove m4/mbstate_t.m4.
61121         (Depends-on): Remove mbrlen, mbsinit, wchar.
61123 2011-01-18  Bruno Haible  <bruno@clisp.org>
61125         Tests for module 'get-rusage-as'.
61126         * modules/get-rusage-as-tests: New file.
61127         * tests/test-get-rusage-as.c: New file.
61129         New module 'get-rusage-as'.
61130         * modules/get-rusage-as: New file.
61131         * lib/resource-ext.h: New file.
61132         * lib/get-rusage-as.c: New file.
61134 2011-01-17  Eric Blake  <eblake@redhat.com>
61136         sigaction: relax license from LGPLv3+ to LGPLv2+
61137         * modules/sigaction (License): Relax to LGPLv2+.
61139 2011-01-14  Bruno Haible  <bruno@clisp.org>
61141         filemode: Make function declarations usable in C++ mode.
61142         * lib/filemode.h: Enclose function declarations in extern "C" block.
61143         Reported by John W. Eaton <jwe@gnu.org>.
61145 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
61147         save-cwd: no longer include "xgetcwd.h"
61148         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
61149         This avoids a compilation failure in projects that use save-cwd
61150         without also using the xgetcwd module.
61152 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61154         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
61155         This is so that a program like Emacs, which needs only dtoastr,
61156         does not have to bother with distributing and compiling ftoastr
61157         and ldtoastr.
61158         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
61159         * modules/dtoastr, modules/ldtoastr: New files.
61160         * modules/ftoastr: Now works just for 'float'.
61161         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
61162         (Makefile.am): Remove ftoastr.h (not needed and no effect),
61163         dtoastr.c, ldtoastr.c.
61165 2011-01-11  Jim Meyering  <meyering@redhat.com>
61167         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
61168         There is no need to work around the lack of the fchdir function,
61169         since gnulib can now provide a replacement when required.
61170         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
61171         * modules/save-cwd (Depends-on): Add fchdir.
61173 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61175         openat, save-cwd: avoid xmalloc
61177         This removes a direct (but undocumented) dependency of openat on
61178         xalloc, along with an indirect dependency via save-cwd.  It also
61179         removes a dependency of save-cwd on xgetcwd, and thereby
61180         indirectly on xalloc.  This change causes the openat substitute
61181         to fall back on save_cwd when memory is tight, and for save_cwd to
61182         fail instead of dying when memory is tight, but that's good enough.
61183         Problem and initial idea for fix reported by Bastien Roucaries in
61184         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
61186         * lib/openat-proc.c: Include stdlib.h (for malloc), not
61187         xalloc.h (for xmalloc).
61188         (openat_proc_name): Use malloc, not xmalloc.
61189         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
61190         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
61192         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
61193         This avoids heap allocation for file names whose lengths are in
61194         the range 512..1023, with the upper bound increasing to at most
61195         4031 depending on the platform's PATH_MAX.  (We do not want
61196         pathmax.h here as it might supply a non-constant PATH_MAX.)
61197         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
61198         Perhaps they should be moved to malloca.h?
61199         (OPENAT_BUFFER_SIZE): Use them.
61201 2011-01-10  Bruno Haible  <bruno@clisp.org>
61203         doc: Update users.txt.
61204         * users.txt: Add recutils.
61206 2011-01-09  Karl Berry  <karl@gnu.org>
61208         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
61210         * doc/configmake.texi: New file.
61211         * doc/gnulib.texi: Include it.
61212         * modules/configmake: Move documentation from here.
61214 2011-01-09  Bruno Haible  <bruno@clisp.org>
61216         Update to Unicode 6.0.0.
61217         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
61218         (get_lbp): Update for Unicode 6.0.0.
61219         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
61220         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
61221         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
61222         U+11001, U+11038..U+11046. Remove U+06DE.
61223         (uc_width): Fix bounds of planes.
61224         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61225         lib/uniwidth/width.c.
61226         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
61227         trailing whitespace removed.
61228         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
61229         without comments, but with the original copyright notice.
61230         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
61231         * lib/unicase/ignorable.h: Likewise.
61232         * lib/unicase/tocasefold.h: Likewise.
61233         * lib/unicase/tolower.h: Likewise.
61234         * lib/unicase/totitle.h: Likewise.
61235         * lib/unicase/toupper.h: Likewise.
61236         * lib/unictype/bidi_of.h: Likewise.
61237         * lib/unictype/blocks.h: Likewise.
61238         * lib/unictype/categ_C.h: Likewise.
61239         * lib/unictype/categ_Cn.h: Likewise.
61240         * lib/unictype/categ_L.h: Likewise.
61241         * lib/unictype/categ_Ll.h: Likewise.
61242         * lib/unictype/categ_Lm.h: Likewise.
61243         * lib/unictype/categ_Lo.h: Likewise.
61244         * lib/unictype/categ_Lu.h: Likewise.
61245         * lib/unictype/categ_M.h: Likewise.
61246         * lib/unictype/categ_Mc.h: Likewise.
61247         * lib/unictype/categ_Me.h: Likewise.
61248         * lib/unictype/categ_Mn.h: Likewise.
61249         * lib/unictype/categ_N.h: Likewise.
61250         * lib/unictype/categ_Nd.h: Likewise.
61251         * lib/unictype/categ_No.h: Likewise.
61252         * lib/unictype/categ_P.h: Likewise.
61253         * lib/unictype/categ_Po.h: Likewise.
61254         * lib/unictype/categ_S.h: Likewise.
61255         * lib/unictype/categ_Sc.h: Likewise.
61256         * lib/unictype/categ_Sk.h: Likewise.
61257         * lib/unictype/categ_Sm.h: Likewise.
61258         * lib/unictype/categ_So.h: Likewise.
61259         * lib/unictype/categ_of.h: Likewise.
61260         * lib/unictype/combining.h: Likewise.
61261         * lib/unictype/ctype_alnum.h: Likewise.
61262         * lib/unictype/ctype_alpha.h: Likewise.
61263         * lib/unictype/ctype_graph.h: Likewise.
61264         * lib/unictype/ctype_lower.h: Likewise.
61265         * lib/unictype/ctype_print.h: Likewise.
61266         * lib/unictype/ctype_punct.h: Likewise.
61267         * lib/unictype/ctype_upper.h: Likewise.
61268         * lib/unictype/decdigit.h: Likewise.
61269         * lib/unictype/digit.h: Likewise.
61270         * lib/unictype/numeric.h: Likewise.
61271         * lib/unictype/pr_alphabetic.h: Likewise.
61272         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61273         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61274         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61275         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61276         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61277         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61278         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61279         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61280         * lib/unictype/pr_case_ignorable.h: Likewise.
61281         * lib/unictype/pr_cased.h: Likewise.
61282         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
61283         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
61284         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
61285         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
61286         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
61287         * lib/unictype/pr_combining.h: Likewise.
61288         * lib/unictype/pr_composite.h: Likewise.
61289         * lib/unictype/pr_currency_symbol.h: Likewise.
61290         * lib/unictype/pr_decimal_digit.h: Likewise.
61291         * lib/unictype/pr_deprecated.h: Likewise.
61292         * lib/unictype/pr_format_control.h: Likewise.
61293         * lib/unictype/pr_grapheme_base.h: Likewise.
61294         * lib/unictype/pr_grapheme_extend.h: Likewise.
61295         * lib/unictype/pr_grapheme_link.h: Likewise.
61296         * lib/unictype/pr_id_continue.h: Likewise.
61297         * lib/unictype/pr_id_start.h: Likewise.
61298         * lib/unictype/pr_ideographic.h: Likewise.
61299         * lib/unictype/pr_lowercase.h: Likewise.
61300         * lib/unictype/pr_math.h: Likewise.
61301         * lib/unictype/pr_numeric.h: Likewise.
61302         * lib/unictype/pr_other_alphabetic.h: Likewise.
61303         * lib/unictype/pr_other_id_continue.h: Likewise.
61304         * lib/unictype/pr_other_math.h: Likewise.
61305         * lib/unictype/pr_punctuation.h: Likewise.
61306         * lib/unictype/pr_sentence_terminal.h: Likewise.
61307         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61308         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61309         * lib/unictype/pr_unified_ideograph.h: Likewise.
61310         * lib/unictype/pr_uppercase.h: Likewise.
61311         * lib/unictype/pr_xid_continue.h: Likewise.
61312         * lib/unictype/pr_xid_start.h: Likewise.
61313         * lib/unictype/scripts.h: Likewise.
61314         * lib/unictype/scripts_byname.gperf: Likewise.
61315         * lib/unictype/sy_java_ident.h: Likewise.
61316         * lib/unigbrk/gbrkprop.h: Likewise.
61317         * lib/unilbrk/lbrkprop1.h: Likewise.
61318         * lib/unilbrk/lbrkprop2.h: Likewise.
61319         * lib/uninorm/decomposition-table2.h: Likewise.
61320         * lib/uniwbrk/wbrkprop.h: Likewise.
61321         * tests/unicase/test-cased.c: Likewise.
61322         * tests/unicase/test-ignorable.c: Likewise.
61323         * tests/unicase/test-uc_tolower.c: Likewise.
61324         * tests/unicase/test-uc_totitle.c: Likewise.
61325         * tests/unicase/test-uc_toupper.c: Likewise.
61326         * tests/unictype/test-categ_C.c: Likewise.
61327         * tests/unictype/test-categ_Cn.c: Likewise.
61328         * tests/unictype/test-categ_L.c: Likewise.
61329         * tests/unictype/test-categ_Ll.c: Likewise.
61330         * tests/unictype/test-categ_Lm.c: Likewise.
61331         * tests/unictype/test-categ_Lo.c: Likewise.
61332         * tests/unictype/test-categ_Lu.c: Likewise.
61333         * tests/unictype/test-categ_M.c: Likewise.
61334         * tests/unictype/test-categ_Mc.c: Likewise.
61335         * tests/unictype/test-categ_Me.c: Likewise.
61336         * tests/unictype/test-categ_Mn.c: Likewise.
61337         * tests/unictype/test-categ_N.c: Likewise.
61338         * tests/unictype/test-categ_Nd.c: Likewise.
61339         * tests/unictype/test-categ_No.c: Likewise.
61340         * tests/unictype/test-categ_P.c: Likewise.
61341         * tests/unictype/test-categ_Po.c: Likewise.
61342         * tests/unictype/test-categ_S.c: Likewise.
61343         * tests/unictype/test-categ_Sc.c: Likewise.
61344         * tests/unictype/test-categ_Sk.c: Likewise.
61345         * tests/unictype/test-categ_Sm.c: Likewise.
61346         * tests/unictype/test-categ_So.c: Likewise.
61347         * tests/unictype/test-ctype_alnum.c: Likewise.
61348         * tests/unictype/test-ctype_alpha.c: Likewise.
61349         * tests/unictype/test-ctype_graph.c: Likewise.
61350         * tests/unictype/test-ctype_lower.c: Likewise.
61351         * tests/unictype/test-ctype_print.c: Likewise.
61352         * tests/unictype/test-ctype_punct.c: Likewise.
61353         * tests/unictype/test-ctype_upper.c: Likewise.
61354         * tests/unictype/test-decdigit.h: Likewise.
61355         * tests/unictype/test-digit.h: Likewise.
61356         * tests/unictype/test-numeric.h: Likewise.
61357         * tests/unictype/test-pr_alphabetic.c: Likewise.
61358         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61359         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61360         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61361         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61362         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61363         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61364         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61365         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61366         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61367         * tests/unictype/test-pr_cased.c: Likewise.
61368         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61369         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61370         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61371         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61372         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61373         * tests/unictype/test-pr_combining.c: Likewise.
61374         * tests/unictype/test-pr_composite.c: Likewise.
61375         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61376         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61377         * tests/unictype/test-pr_deprecated.c: Likewise.
61378         * tests/unictype/test-pr_format_control.c: Likewise.
61379         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61380         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61381         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61382         * tests/unictype/test-pr_id_continue.c: Likewise.
61383         * tests/unictype/test-pr_id_start.c: Likewise.
61384         * tests/unictype/test-pr_ideographic.c: Likewise.
61385         * tests/unictype/test-pr_lowercase.c: Likewise.
61386         * tests/unictype/test-pr_math.c: Likewise.
61387         * tests/unictype/test-pr_numeric.c: Likewise.
61388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61389         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61390         * tests/unictype/test-pr_other_math.c: Likewise.
61391         * tests/unictype/test-pr_punctuation.c: Likewise.
61392         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61393         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61394         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61395         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61396         * tests/unictype/test-pr_uppercase.c: Likewise.
61397         * tests/unictype/test-pr_xid_continue.c: Likewise.
61398         * tests/unictype/test-pr_xid_start.c: Likewise.
61399         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61400         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61401         changes.
61402         * lib/unictype/categ_Cc.h: Likewise.
61403         * lib/unictype/categ_Cf.h: Likewise.
61404         * lib/unictype/categ_Co.h: Likewise.
61405         * lib/unictype/categ_Cs.h: Likewise.
61406         * lib/unictype/categ_Lt.h: Likewise.
61407         * lib/unictype/categ_Nl.h: Likewise.
61408         * lib/unictype/categ_Pc.h: Likewise.
61409         * lib/unictype/categ_Pd.h: Likewise.
61410         * lib/unictype/categ_Pe.h: Likewise.
61411         * lib/unictype/categ_Pf.h: Likewise.
61412         * lib/unictype/categ_Pi.h: Likewise.
61413         * lib/unictype/categ_Ps.h: Likewise.
61414         * lib/unictype/categ_Z.h: Likewise.
61415         * lib/unictype/categ_Zl.h: Likewise.
61416         * lib/unictype/categ_Zp.h: Likewise.
61417         * lib/unictype/categ_Zs.h: Likewise.
61418         * lib/unictype/ctype_blank.h: Likewise.
61419         * lib/unictype/ctype_cntrl.h: Likewise.
61420         * lib/unictype/ctype_digit.h: Likewise.
61421         * lib/unictype/ctype_space.h: Likewise.
61422         * lib/unictype/ctype_xdigit.h: Likewise.
61423         * lib/unictype/mirror.h: Likewise.
61424         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61425         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61426         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61427         * lib/unictype/pr_bidi_control.h: Likewise.
61428         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61429         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61430         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61431         * lib/unictype/pr_bidi_pdf.h: Likewise.
61432         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61433         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61434         * lib/unictype/pr_dash.h: Likewise.
61435         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61436         * lib/unictype/pr_diacritic.h: Likewise.
61437         * lib/unictype/pr_extender.h: Likewise.
61438         * lib/unictype/pr_hex_digit.h: Likewise.
61439         * lib/unictype/pr_hyphen.h: Likewise.
61440         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61441         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61442         * lib/unictype/pr_ignorable_control.h: Likewise.
61443         * lib/unictype/pr_iso_control.h: Likewise.
61444         * lib/unictype/pr_join_control.h: Likewise.
61445         * lib/unictype/pr_left_of_pair.h: Likewise.
61446         * lib/unictype/pr_line_separator.h: Likewise.
61447         * lib/unictype/pr_logical_order_exception.h: Likewise.
61448         * lib/unictype/pr_non_break.h: Likewise.
61449         * lib/unictype/pr_not_a_character.h: Likewise.
61450         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61451         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61452         * lib/unictype/pr_other_id_start.h: Likewise.
61453         * lib/unictype/pr_other_lowercase.h: Likewise.
61454         * lib/unictype/pr_other_uppercase.h: Likewise.
61455         * lib/unictype/pr_paired_punctuation.h: Likewise.
61456         * lib/unictype/pr_paragraph_separator.h: Likewise.
61457         * lib/unictype/pr_pattern_syntax.h: Likewise.
61458         * lib/unictype/pr_pattern_white_space.h: Likewise.
61459         * lib/unictype/pr_private_use.h: Likewise.
61460         * lib/unictype/pr_quotation_mark.h: Likewise.
61461         * lib/unictype/pr_radical.h: Likewise.
61462         * lib/unictype/pr_soft_dotted.h: Likewise.
61463         * lib/unictype/pr_space.h: Likewise.
61464         * lib/unictype/pr_titlecase.h: Likewise.
61465         * lib/unictype/pr_variation_selector.h: Likewise.
61466         * lib/unictype/pr_white_space.h: Likewise.
61467         * lib/unictype/pr_zero_width.h: Likewise.
61468         * lib/unictype/sy_c_ident.h: Likewise.
61469         * lib/unictype/sy_c_whitespace.h: Likewise.
61470         * lib/unictype/sy_java_whitespace.h: Likewise.
61471         * lib/uninorm/composition-table.gperf: Likewise.
61472         * lib/uninorm/decomposition-table1.h: Likewise.
61473         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61474         LB8.
61475         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61476         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61477         * modules/unictype/*: Bump version number of expected libunistring
61478         version.
61480 2011-01-09  Bruno Haible  <bruno@clisp.org>
61482         Update to Unicode 5.2.0.
61483         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61484         trailing whitespace removed.
61486 2011-01-09  Bruno Haible  <bruno@clisp.org>
61488         New Unicode character properties, from Unicode 5.2.0.
61489         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61490         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61491         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61492         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61493         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61494         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61495         uc_is_property_cased, uc_is_property_case_ignorable,
61496         uc_is_property_changes_when_lowercased,
61497         uc_is_property_changes_when_uppercased,
61498         uc_is_property_changes_when_titlecased,
61499         uc_is_property_changes_when_casefolded,
61500         uc_is_property_changes_when_casemapped): New declarations.
61501         * lib/unictype/pr_byname.gperf: Add the new properties.
61502         * modules/unictype/property-byname (Depends-on): Depend on the new
61503         properties modules.
61504         * modules/unictype/property-all (Depends-on): Likewise.
61505         * MODULES.html.sh (Unicode string functions): Add
61506         unictype/property-case-ignorable, unictype/property-cased,
61507         unictype/property-changes-when-casefolded,
61508         unictype/property-changes-when-casemapped,
61509         unictype/property-changes-when-lowercased,
61510         unictype/property-changes-when-titlecased,
61511         unictype/property-changes-when-uppercased.
61513         New module 'unictype/property-changes-when-casemapped'.
61514         * modules/unictype/property-changes-when-casemapped: New file.
61515         * lib/unictype/pr_changes_when_casemapped.c: New file.
61516         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61517         generated by gen-uni-tables.
61518         * modules/unictype/property-changes-when-casemapped-tests: New file.
61519         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61520         automatically generated by gen-uni-tables.
61522         New module 'unictype/property-changes-when-casefolded'.
61523         * modules/unictype/property-changes-when-casefolded: New file.
61524         * lib/unictype/pr_changes_when_casefolded.c: New file.
61525         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61526         generated by gen-uni-tables.
61527         * modules/unictype/property-changes-when-casefolded-tests: New file.
61528         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61529         automatically generated by gen-uni-tables.
61531         New module 'unictype/property-changes-when-titlecased'.
61532         * modules/unictype/property-changes-when-titlecased: New file.
61533         * lib/unictype/pr_changes_when_titlecased.c: New file.
61534         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61535         generated by gen-uni-tables.
61536         * modules/unictype/property-changes-when-titlecased-tests: New file.
61537         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61538         automatically generated by gen-uni-tables.
61540         New module 'unictype/property-changes-when-uppercased'.
61541         * modules/unictype/property-changes-when-uppercased: New file.
61542         * lib/unictype/pr_changes_when_uppercased.c: New file.
61543         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61544         generated by gen-uni-tables.
61545         * modules/unictype/property-changes-when-uppercased-tests: New file.
61546         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61547         automatically generated by gen-uni-tables.
61549         New module 'unictype/property-changes-when-lowercased'.
61550         * modules/unictype/property-changes-when-lowercased: New file.
61551         * lib/unictype/pr_changes_when_lowercased.c: New file.
61552         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61553         generated by gen-uni-tables.
61554         * modules/unictype/property-changes-when-lowercased-tests: New file.
61555         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61556         automatically generated by gen-uni-tables.
61558         New module 'unictype/property-case-ignorable'.
61559         * modules/unictype/property-case-ignorable: New file.
61560         * lib/unictype/pr_case_ignorable.c: New file.
61561         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61562         by gen-uni-tables.
61563         * modules/unictype/property-case-ignorable-tests: New file.
61564         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61565         generated by gen-uni-tables.
61567         New module 'unictype/property-cased'.
61568         * modules/unictype/property-cased: New file.
61569         * lib/unictype/pr_cased.c: New file.
61570         * lib/unictype/pr_cased.h: New file, automatically generated by
61571         gen-uni-tables.
61572         * modules/unictype/property-cased-tests: New file.
61573         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61574         gen-uni-tables.
61576 2011-01-09  Bruno Haible  <bruno@clisp.org>
61578         Update to Unicode 5.2.0.
61579         * lib/gen-uni-tables.c (output_predicate, output_category,
61580         output_combclass, output_bidi_category, output_decimal_digit_test,
61581         output_decimal_digit, output_digit_test, output_digit,
61582         output_numeric_test, output_numeric, output_mirror, output_scripts,
61583         output_scripts_byname, output_blocks, output_ident_category): Fix
61584         comment header.
61585         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61586         get_wbp.
61587         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61588         items.
61589         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61590         Changes_When_Lowercased, Changes_When_Uppercased,
61591         Changes_When_Titlecased, Changes_When_Casefolded,
61592         Changes_When_Casemapped.
61593         (is_property_alphabetic, is_property_default_ignorable_code_point):
61594         Update for Unicode 5.2.0.
61595         (is_property_cased, is_property_case_ignorable,
61596         is_property_changes_when_lowercased,
61597         is_property_changes_when_uppercased,
61598         is_property_changes_when_titlecased,
61599         is_property_changes_when_casefolded,
61600         is_property_changes_when_casemapped): New functions.
61601         (output_properties): Output also the properties cased, case_ignorable,
61602         changes_when_lowercased, changes_when_uppercased,
61603         changes_when_titlecased, changes_when_casefolded,
61604         changes_when_casemapped.
61605         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61606         Unicode TR#11 revision 17 -> 19.
61607         (LBP_CP): New enumeration value.
61608         (LBP_*): Adjust values accordingly.
61609         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61610         TR#14 revision 22 -> 24.
61611         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61612         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61613         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61614         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61615         is_WBP_MIDLETTER.
61616         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61617         the code1 and code2 of each composition rule.
61618         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61619         * lib/unicase/ignorable.h: Likewise.
61620         * lib/unicase/tocasefold.h: Likewise.
61621         * lib/unicase/tolower.h: Likewise.
61622         * lib/unicase/totitle.h: Likewise.
61623         * lib/unicase/toupper.h: Likewise.
61624         * lib/unictype/bidi_of.h: Likewise.
61625         * lib/unictype/blocks.h: Likewise.
61626         * lib/unictype/categ_C.h: Likewise.
61627         * lib/unictype/categ_Cf.h: Likewise.
61628         * lib/unictype/categ_Cn.h: Likewise.
61629         * lib/unictype/categ_L.h: Likewise.
61630         * lib/unictype/categ_Ll.h: Likewise.
61631         * lib/unictype/categ_Lm.h: Likewise.
61632         * lib/unictype/categ_Lo.h: Likewise.
61633         * lib/unictype/categ_Lu.h: Likewise.
61634         * lib/unictype/categ_M.h: Likewise.
61635         * lib/unictype/categ_Mc.h: Likewise.
61636         * lib/unictype/categ_Mn.h: Likewise.
61637         * lib/unictype/categ_N.h: Likewise.
61638         * lib/unictype/categ_Nd.h: Likewise.
61639         * lib/unictype/categ_Nl.h: Likewise.
61640         * lib/unictype/categ_No.h: Likewise.
61641         * lib/unictype/categ_P.h: Likewise.
61642         * lib/unictype/categ_Pd.h: Likewise.
61643         * lib/unictype/categ_Po.h: Likewise.
61644         * lib/unictype/categ_S.h: Likewise.
61645         * lib/unictype/categ_Sc.h: Likewise.
61646         * lib/unictype/categ_So.h: Likewise.
61647         * lib/unictype/categ_of.h: Likewise.
61648         * lib/unictype/combining.h: Likewise.
61649         * lib/unictype/ctype_alnum.h: Likewise.
61650         * lib/unictype/ctype_alpha.h: Likewise.
61651         * lib/unictype/ctype_graph.h: Likewise.
61652         * lib/unictype/ctype_lower.h: Likewise.
61653         * lib/unictype/ctype_print.h: Likewise.
61654         * lib/unictype/ctype_punct.h: Likewise.
61655         * lib/unictype/ctype_upper.h: Likewise.
61656         * lib/unictype/decdigit.h: Likewise.
61657         * lib/unictype/digit.h: Likewise.
61658         * lib/unictype/numeric.h: Likewise.
61659         * lib/unictype/pr_alphabetic.h: Likewise.
61660         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61661         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61662         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61663         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61664         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61665         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61666         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61667         * lib/unictype/pr_combining.h: Likewise.
61668         * lib/unictype/pr_composite.h: Likewise.
61669         * lib/unictype/pr_currency_symbol.h: Likewise.
61670         * lib/unictype/pr_dash.h: Likewise.
61671         * lib/unictype/pr_decimal_digit.h: Likewise.
61672         * lib/unictype/pr_deprecated.h: Likewise.
61673         * lib/unictype/pr_diacritic.h: Likewise.
61674         * lib/unictype/pr_extender.h: Likewise.
61675         * lib/unictype/pr_grapheme_base.h: Likewise.
61676         * lib/unictype/pr_grapheme_extend.h: Likewise.
61677         * lib/unictype/pr_grapheme_link.h: Likewise.
61678         * lib/unictype/pr_id_continue.h: Likewise.
61679         * lib/unictype/pr_id_start.h: Likewise.
61680         * lib/unictype/pr_ideographic.h: Likewise.
61681         * lib/unictype/pr_ignorable_control.h: Likewise.
61682         * lib/unictype/pr_logical_order_exception.h: Likewise.
61683         * lib/unictype/pr_lowercase.h: Likewise.
61684         * lib/unictype/pr_numeric.h: Likewise.
61685         * lib/unictype/pr_other_alphabetic.h: Likewise.
61686         * lib/unictype/pr_punctuation.h: Likewise.
61687         * lib/unictype/pr_sentence_terminal.h: Likewise.
61688         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61689         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61690         * lib/unictype/pr_unified_ideograph.h: Likewise.
61691         * lib/unictype/pr_uppercase.h: Likewise.
61692         * lib/unictype/pr_xid_continue.h: Likewise.
61693         * lib/unictype/pr_xid_start.h: Likewise.
61694         * lib/unictype/pr_zero_width.h: Likewise.
61695         * lib/unictype/scripts.h: Likewise.
61696         * lib/unictype/scripts_byname.gperf: Likewise.
61697         * lib/unictype/sy_java_ident.h: Likewise.
61698         * lib/unigbrk/gbrkprop.h: Likewise.
61699         * lib/unilbrk/lbrkprop1.h: Likewise.
61700         * lib/unilbrk/lbrkprop2.h: Likewise.
61701         * lib/unilbrk/lbrktables.h: Likewise.
61702         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61703         LBP_CP. Implement rule LB30.
61704         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61705         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61706         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61707         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61708         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61709         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61710         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61711         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61712         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61713         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61714         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61715         bits instead of 16 bits in the code1 and code2 of each composition
61716         rule.
61717         (uc_composition): Update for Unicode 5.2.0.
61718         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61719         * lib/uninorm/decomposition-table2.h: Likewise.
61720         * lib/uniwbrk/wbrkprop.h: Likewise.
61721         * tests/unicase/test-cased.c: Likewise.
61722         * tests/unicase/test-ignorable.c: Likewise.
61723         * tests/unicase/test-uc_tolower.c: Likewise.
61724         * tests/unicase/test-uc_totitle.c: Likewise.
61725         * tests/unicase/test-uc_toupper.c: Likewise.
61726         * tests/unictype/test-categ_C.c: Likewise.
61727         * tests/unictype/test-categ_Cf.c: Likewise.
61728         * tests/unictype/test-categ_Cn.c: Likewise.
61729         * tests/unictype/test-categ_L.c: Likewise.
61730         * tests/unictype/test-categ_Ll.c: Likewise.
61731         * tests/unictype/test-categ_Lm.c: Likewise.
61732         * tests/unictype/test-categ_Lo.c: Likewise.
61733         * tests/unictype/test-categ_Lu.c: Likewise.
61734         * tests/unictype/test-categ_M.c: Likewise.
61735         * tests/unictype/test-categ_Mc.c: Likewise.
61736         * tests/unictype/test-categ_Mn.c: Likewise.
61737         * tests/unictype/test-categ_N.c: Likewise.
61738         * tests/unictype/test-categ_Nd.c: Likewise.
61739         * tests/unictype/test-categ_Nl.c: Likewise.
61740         * tests/unictype/test-categ_No.c: Likewise.
61741         * tests/unictype/test-categ_P.c: Likewise.
61742         * tests/unictype/test-categ_Pd.c: Likewise.
61743         * tests/unictype/test-categ_Po.c: Likewise.
61744         * tests/unictype/test-categ_S.c: Likewise.
61745         * tests/unictype/test-categ_Sc.c: Likewise.
61746         * tests/unictype/test-categ_So.c: Likewise.
61747         * tests/unictype/test-ctype_alnum.c: Likewise.
61748         * tests/unictype/test-ctype_alpha.c: Likewise.
61749         * tests/unictype/test-ctype_graph.c: Likewise.
61750         * tests/unictype/test-ctype_lower.c: Likewise.
61751         * tests/unictype/test-ctype_print.c: Likewise.
61752         * tests/unictype/test-ctype_punct.c: Likewise.
61753         * tests/unictype/test-ctype_upper.c: Likewise.
61754         * tests/unictype/test-decdigit.h: Likewise.
61755         * tests/unictype/test-digit.h: Likewise.
61756         * tests/unictype/test-numeric.h: Likewise.
61757         * tests/unictype/test-pr_alphabetic.c: Likewise.
61758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61759         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61760         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61761         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61762         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61763         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61764         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61765         * tests/unictype/test-pr_combining.c: Likewise.
61766         * tests/unictype/test-pr_composite.c: Likewise.
61767         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61768         * tests/unictype/test-pr_dash.c: Likewise.
61769         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61770         * tests/unictype/test-pr_deprecated.c: Likewise.
61771         * tests/unictype/test-pr_diacritic.c: Likewise.
61772         * tests/unictype/test-pr_extender.c: Likewise.
61773         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61774         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61775         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61776         * tests/unictype/test-pr_id_continue.c: Likewise.
61777         * tests/unictype/test-pr_id_start.c: Likewise.
61778         * tests/unictype/test-pr_ideographic.c: Likewise.
61779         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61780         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61781         * tests/unictype/test-pr_lowercase.c: Likewise.
61782         * tests/unictype/test-pr_numeric.c: Likewise.
61783         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61784         * tests/unictype/test-pr_punctuation.c: Likewise.
61785         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61786         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61787         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61788         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61789         * tests/unictype/test-pr_uppercase.c: Likewise.
61790         * tests/unictype/test-pr_xid_continue.c: Likewise.
61791         * tests/unictype/test-pr_xid_start.c: Likewise.
61792         * tests/unictype/test-pr_zero_width.c: Likewise.
61793         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61794         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61795         changed behaviour: line breaking is now disallowed between a letter
61796         or '=' and '('.
61797         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61798         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61799         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61800         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61801         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61802         lib/uniwidth/width.c.
61803         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61804         without comments, but with the original copyright notice.
61805         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61806         changes.
61807         * lib/unictype/categ_Cc.h: Likewise.
61808         * lib/unictype/categ_Co.h: Likewise.
61809         * lib/unictype/categ_Cs.h: Likewise.
61810         * lib/unictype/categ_Lt.h: Likewise.
61811         * lib/unictype/categ_Me.h: Likewise.
61812         * lib/unictype/categ_Pc.h: Likewise.
61813         * lib/unictype/categ_Pe.h: Likewise.
61814         * lib/unictype/categ_Pf.h: Likewise.
61815         * lib/unictype/categ_Pi.h: Likewise.
61816         * lib/unictype/categ_Ps.h: Likewise.
61817         * lib/unictype/categ_Sk.h: Likewise.
61818         * lib/unictype/categ_Sm.h: Likewise.
61819         * lib/unictype/categ_Z.h: Likewise.
61820         * lib/unictype/categ_Zl.h: Likewise.
61821         * lib/unictype/categ_Zp.h: Likewise.
61822         * lib/unictype/categ_Zs.h: Likewise.
61823         * lib/unictype/ctype_blank.h: Likewise.
61824         * lib/unictype/ctype_cntrl.h: Likewise.
61825         * lib/unictype/ctype_digit.h: Likewise.
61826         * lib/unictype/ctype_space.h: Likewise.
61827         * lib/unictype/ctype_xdigit.h: Likewise.
61828         * lib/unictype/mirror.h: Likewise.
61829         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61830         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61831         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61832         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61833         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61834         * lib/unictype/pr_bidi_control.h: Likewise.
61835         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61836         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61837         * lib/unictype/pr_bidi_pdf.h: Likewise.
61838         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61839         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61840         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61841         * lib/unictype/pr_format_control.h: Likewise.
61842         * lib/unictype/pr_hex_digit.h: Likewise.
61843         * lib/unictype/pr_hyphen.h: Likewise.
61844         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61845         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61846         * lib/unictype/pr_iso_control.h: Likewise.
61847         * lib/unictype/pr_join_control.h: Likewise.
61848         * lib/unictype/pr_left_of_pair.h: Likewise.
61849         * lib/unictype/pr_line_separator.h: Likewise.
61850         * lib/unictype/pr_math.h: Likewise.
61851         * lib/unictype/pr_non_break.h: Likewise.
61852         * lib/unictype/pr_not_a_character.h: Likewise.
61853         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61854         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61855         * lib/unictype/pr_other_id_continue.h: Likewise.
61856         * lib/unictype/pr_other_id_start.h: Likewise.
61857         * lib/unictype/pr_other_lowercase.h: Likewise.
61858         * lib/unictype/pr_other_math.h: Likewise.
61859         * lib/unictype/pr_other_uppercase.h: Likewise.
61860         * lib/unictype/pr_paired_punctuation.h: Likewise.
61861         * lib/unictype/pr_paragraph_separator.h: Likewise.
61862         * lib/unictype/pr_pattern_syntax.h: Likewise.
61863         * lib/unictype/pr_pattern_white_space.h: Likewise.
61864         * lib/unictype/pr_private_use.h: Likewise.
61865         * lib/unictype/pr_quotation_mark.h: Likewise.
61866         * lib/unictype/pr_radical.h: Likewise.
61867         * lib/unictype/pr_soft_dotted.h: Likewise.
61868         * lib/unictype/pr_space.h: Likewise.
61869         * lib/unictype/pr_titlecase.h: Likewise.
61870         * lib/unictype/pr_variation_selector.h: Likewise.
61871         * lib/unictype/pr_white_space.h: Likewise.
61872         * lib/unictype/sy_c_ident.h: Likewise.
61873         * lib/unictype/sy_c_whitespace.h: Likewise.
61874         * lib/unictype/sy_java_whitespace.h: Likewise.
61875         * modules/uni*/*: Bump version number of expected libunistring version.
61876         Reported by Simon Josefsson.
61878 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61880         useless-if-before-free: fix typo in --help and make the internal,
61881         automatic version date update process work once again.
61882         --help output contained a NUL character instead of the
61883         backslash-zero that was intended.  Also, the "must lie within
61884         the first 8 lines" line is on line 9, and hence not getting
61885         automatically updated.
61886         * build-aux/useless-if-before-free: Fix the former by adding a
61887         backslash, and the latter by condensing the three lines of what-it-does
61888         to a single line, leaving one line of slack for the future.
61890 2011-01-09  Bruno Haible  <bruno@clisp.org>
61892         uniwidth/width: Fix width of U+1D173..U+1D17A.
61893         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61894         symbolic_width, output_width_property_test): New functions.
61895         (main): Invoke output_nonspacing_property, output_width_property_test.
61896         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61897         U+1D173..U+1D17A.
61898         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61899         1.
61900         * modules/uniwidth/*: Bump version number of expected libunistring
61901         version.
61902         * modules/unilbrk/*: Likewise.
61904 2011-01-08  Bruno Haible  <bruno@clisp.org>
61906         uninorm tests: Preserve copyright of Unicode data file.
61907         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61908         Mention modifications.
61910 2011-01-08  Bruno Haible  <bruno@clisp.org>
61912         gen-uni-tables: Prepare for Unicode 5.2.0.
61913         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61914         (debug_output_lbp, output_lbp): Update.
61916 2011-01-08  Bruno Haible  <bruno@clisp.org>
61918         unilbrk: Clarify gen-uni-tables.c code.
61919         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61920         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61921         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61923 2011-01-07  Bruno Haible  <bruno@clisp.org>
61925         strtod: Restore errno when successfully parsing Infinity or NaN.
61926         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61927         restore the original errno.
61929 2011-01-07  Bruno Haible  <bruno@clisp.org>
61931         remove test: Avoid failure on HP-UX 11.
61932         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61934 2011-01-07  Bruno Haible  <bruno@clisp.org>
61936         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61937         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61938         error code.
61940 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61942         ignore-value: fixup comments, and add Eric Blake
61943         as an author since he rewrote the macros.
61944         * lib/ignore-value.h (ignore_value):  State that
61945         we now support aggregates.  Also specify exactly
61946         when the GCC warn_unused_result feature was added.
61948 2011-01-06  Eric Blake  <eblake@redhat.com>
61950         ignore-value: support aggregate types
61951         * lib/ignore-value.h (ignore_value): Provide separate gcc
61952         definition.
61953         * modules/ignore-value-tests: New test module.
61954         * tests/test-ignore-value.c: New test.
61956         maint.mk: improve sc_prohibit_strcmp regex
61957         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61958         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61959         definition of STRNEQ.
61961         signal: work around Haiku issue with SIGBUS
61962         * lib/siglist.h: Add comment.
61963         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61964         strsignal's favoring of SIGSEGV.
61965         * tests/test-signal.c (main): Avoid test failure.
61966         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61967         Reported by Scott McCreary.
61969         maint.mk: add pre-release check to ensure submodule commits are public
61970         * top/maint.mk (public-submodule-commit): New rule.
61971         (submodule-checks): New variable.
61972         (alpha beta stable): Depend on the variable.
61974 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61975         and Jim Meyering  <meyering@redhat.com>
61977         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61978         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61979         (ATTRIBUTE_DEPRECATED): Define.
61980         (_ignore_case): New function.
61981         (ignore_value): New macro, to replace the old function.
61982         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61983         * modules/ignore-value (Depends-on): Add stdint.
61985 2011-01-04  Eric Blake  <eblake@redhat.com>
61987         doc: regenerate INSTALL
61988         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61989         @firstparagraphindent support, now that autoconf dropped it.
61990         (INSTALL_PRELUDE): Reinstate old macro.
61991         * doc/install.texi: Resync from autoconf.
61992         * doc/INSTALL: Reflect recent autoconf update.
61993         * doc/INSTALL.ISO: Likewise.
61994         * doc/INSTALL.UTF-8: Likewise.
61995         Reported by Karl Berry.
61997 2011-01-04  Bruce Korb  <address@hidden>
61999         git-version-gen: avoid a sub-shell
62000         * build-aux/git-version-gen: Redirect stderr in `...` via
62001         "exec 2>...", rather than via an added sub-shell.
62003 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
62005         git-version-gen: use (...) rather than sh -c '...'
62006         * build-aux/git-version-gen: Rather than hard-coding a shell's name
62007         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
62009 2011-01-03  Jim Meyering  <meyering@redhat.com>
62011         git-version-gen: convert leading TABs to spaces
62012         * build-aux/git-version-gen: Expand leading TABs.
62014         git-version-gen: handle failed "git rev-list"
62015         * build-aux/git-version-gen: Rather than leaking a "fatal" error
62016         from git and proceeding as if it had succeeded but printed no SHA1
62017         checksums, suppress the diagnostic and handle the failure.
62018         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
62020         git-version-gen: include command name in one more diagnostic
62021         * build-aux/git-version-gen: When the required .tarball-version file
62022         was missing or unreadable, you might see the diagnostic from "cat",
62023         but no trace of the name of the invoking script.  Now, you still see
62024         the diagnostic from cat, but also get one from "git-version-gen: ".
62025         Inspired by a patch from Bruce Korb.
62027         update-copyright: adjust test to match changed code
62028         * tests/test-update-copyright.sh: Change test's expected output
62029         to match new actual output.
62031 2011-01-02  Bruno Haible  <bruno@clisp.org>
62033         getlogin_r: Avoid test failure on HP-UX 11.
62034         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
62035         ERANGE when the second argument is zero.
62036         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
62037         portability problem.
62039 2011-01-02  Bruce Korb  <bkorb@gnu.org>
62041         * build-aux/update-copyright: doc Simon's changes
62043 2011-01-02  Simon Josefsson  <simon@josefsson.org>
62045         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
62046         environment variable.
62048 2011-01-02  Bruno Haible  <bruno@clisp.org>
62050         unigbrk: Avoid gcc warnings.
62051         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
62052         unused variable.
62053         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
62054         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
62055         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
62056         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
62057         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
62058         Change type of first argument to 'const char *'.
62059         (main): Remove unused variable.
62060         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
62061         type of first argument to 'const char *'.
62062         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
62063         Likewise.
62064         (main): Change type of variable 's'.
62065         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
62066         to 'int'.
62068 2011-01-02  Bruno Haible  <bruno@clisp.org>
62070         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
62071         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
62072         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
62073         bug.
62074         * lib/pwrite.c: Undo 2010-12-31 patch.
62075         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
62077 2011-01-02  Bruno Haible  <bruno@clisp.org>
62079         pread: Fix test whether it works.
62080         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
62082 2011-01-02  Bruno Haible  <bruno@clisp.org>
62084         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
62085         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
62086         ends in "6". Don't require a specific month name. Try also the locale
62087         names found on HP-UX 11 and Solaris 7.
62089 2011-01-02  Bruno Haible  <bruno@clisp.org>
62091         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
62092         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
62093         C linkage.
62094         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
62096 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62098         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
62099         for consistency, since the "cluster" term is not used elsewhere.
62100         * lib/unigbrk.in.h: Update name.
62101         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
62102         * lib/unigbrk/u16-grapheme-next.c: Update name.
62103         * lib/unigbrk/u16-grapheme-prev.c: Update name.
62104         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
62105         * lib/unigbrk/u32-grapheme-next.c: Update name.
62106         * lib/unigbrk/u32-grapheme-prev.c: Update name.
62107         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
62108         * lib/unigbrk/u8-grapheme-next.c: Update name.
62109         * lib/unigbrk/u8-grapheme-prev.c: Update name.
62110         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
62111         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
62112         Suggested by Bruno Haible.
62114 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62116         Remove module 'u8-grapheme-len' as too redundant with
62117         'u8-grapheme-next'.
62118         * modules/unigbrk/u8-grapheme-len: Delete file.
62119         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
62120         * lib/unigbrk.in.h: Remove prototype for deleted function.
62121         * lib/unigbrk/u8-grapheme-len.c: Delete file.
62122         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
62124         Remove module 'u16-grapheme-len' as too redundant with
62125         'u16-grapheme-next'.
62126         * modules/unigbrk/u16-grapheme-len: Delete file.
62127         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
62128         * lib/unigbrk.in.h: Remove prototype for deleted function.
62129         * lib/unigbrk/u16-grapheme-len.c: Delete file.
62130         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
62132         Remove module 'u32-grapheme-len' as too redundant with
62133         'u32-grapheme-next'.
62134         * modules/unigbrk/u32-grapheme-len: Delete file.
62135         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
62136         * lib/unigbrk.in.h: Remove prototype for deleted function.
62137         * lib/unigbrk/u32-grapheme-len.c: Delete file.
62138         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
62140         Suggested by Bruno Haible.
62142 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62144         * unigbrk.in.h: Fix typo: "ben" => "been".
62145         Reported by Bruno Haible.
62147 2011-01-01  Jim Meyering  <meyering@redhat.com>
62149         maint: update almost all copyright ranges to include 2011
62150         Run the new "make update-copyright" rule.
62152 2011-01-01  Jim Meyering  <meyering@redhat.com>
62154         maint: update-copyright: exempt doc/INSTALL*
62155         * Makefile (update-copyright): Also exclude doc/INSTALL*,
62156         since they are generated.  Suggested by Bruno Haible.
62158 2011-01-01  Jim Meyering  <meyering@redhat.com>
62160         maint: refine the update-copyright rule
62161         * Makefile (update-copyright): Also exclude any file that includes
62162         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
62163         code that merely generates the comment.
62165 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62167         New module 'u8-grapheme-len'.
62168         * modules/unigbrk/u8-grapheme-len: New file.
62169         * modules/unigbrk/u8-grapheme-len-tests: New file.
62170         * lib/unigbrk.in.h: Add prototype for new function.
62171         * lib/unigbrk/u8-grapheme-len.c: New file.
62172         * tests/unigbrk/test-u8-grapheme-len.c: New file.
62174         New module 'u16-grapheme-len'.
62175         * modules/unigbrk/u16-grapheme-len: New file.
62176         * modules/unigbrk/u16-grapheme-len-tests: New file.
62177         * lib/unigbrk.in.h: Add prototype for new function.
62178         * lib/unigbrk/u16-grapheme-len.c: New file.
62179         * tests/unigbrk/test-u16-grapheme-len.c: New file.
62181         New module 'u32-grapheme-len'.
62182         * modules/unigbrk/u32-grapheme-len: New file.
62183         * modules/unigbrk/u32-grapheme-len-tests: New file.
62184         * lib/unigbrk.in.h: Add prototype for new function.
62185         * lib/unigbrk/u32-grapheme-len.c: New file.
62186         * tests/unigbrk/test-u32-grapheme-len.c: New file.
62188         New module 'u8-grapheme-next'.
62189         * modules/unigbrk/u8-grapheme-next: New file.
62190         * modules/unigbrk/u8-grapheme-next-tests: New file.
62191         * lib/unigbrk.in.h: Add prototype for new function.
62192         * lib/unigbrk/u8-grapheme-next.c: New file.
62193         * tests/unigbrk/test-u8-grapheme-next.c: New file.
62195         New module 'u16-grapheme-next'.
62196         * modules/unigbrk/u16-grapheme-next: New file.
62197         * modules/unigbrk/u16-grapheme-next-tests: New file.
62198         * lib/unigbrk.in.h: Add prototype for new function.
62199         * lib/unigbrk/u16-grapheme-next.c: New file.
62200         * tests/unigbrk/test-u16-grapheme-next.c: New file.
62202         New module 'u32-grapheme-next'.
62203         * modules/unigbrk/u32-grapheme-next: New file.
62204         * modules/unigbrk/u32-grapheme-next-tests: New file.
62205         * lib/unigbrk.in.h: Add prototype for new function.
62206         * lib/unigbrk/u32-grapheme-next.c: New file.
62207         * tests/unigbrk/test-u32-grapheme-next.c: New file.
62209         New module 'u8-grapheme-prev'.
62210         * modules/unigbrk/u8-grapheme-prev: New file.
62211         * modules/unigbrk/u8-grapheme-prev-tests: New file.
62212         * lib/unigbrk.in.h: Add prototype for new function.
62213         * lib/unigbrk/u8-grapheme-prev.c: New file.
62214         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
62216         New module 'u16-grapheme-prev'.
62217         * modules/unigbrk/u16-grapheme-prev: New file.
62218         * modules/unigbrk/u16-grapheme-prev-tests: New file.
62219         * lib/unigbrk.in.h: Add prototype for new function.
62220         * lib/unigbrk/u16-grapheme-prev.c: New file.
62221         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
62223         New module 'u32-grapheme-prev'.
62224         * modules/unigbrk/u32-grapheme-prev: New file.
62225         * modules/unigbrk/u32-grapheme-prev-tests: New file.
62226         * lib/unigbrk.in.h: Add prototype for new function.
62227         * lib/unigbrk/u32-grapheme-prev.c: New file.
62228         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
62230         New module 'u8-grapheme-breaks'.
62231         * modules/unigbrk/u8-grapheme-breaks: New file.
62232         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
62233         * lib/unigbrk.in.h: Add prototype for new function.
62234         * lib/unigbrk/u8-grapheme-breaks.c: New file.
62235         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
62237         New module 'u16-grapheme-breaks'.
62238         * modules/unigbrk/u16-grapheme-breaks: New file.
62239         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
62240         * lib/unigbrk.in.h: Add prototype for new function.
62241         * lib/unigbrk/u16-grapheme-breaks.c: New file.
62242         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
62244         New module 'u32-grapheme-breaks'.
62245         * modules/unigbrk/u32-grapheme-breaks: New file.
62246         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
62247         * lib/unigbrk.in.h: Add prototype for new function.
62248         * lib/unigbrk/u32-grapheme-breaks.c: New file.
62249         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
62251         New module 'ulc-grapheme-breaks'.
62252         * modules/unigbrk/ulc-grapheme-breaks: New file.
62253         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
62254         * m4/locale-ar.m4: New file.
62255         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
62256         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
62257         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
62259 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62261         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
62262         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
62263         modified how this file was generated before I initially submitted
62264         the module, but failed to regenerate it.  This meant that several
62265         of the level2 entries were wrong.
62266         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
62267         Remove the division-by-2 that is folded into the table now that
62268         gbrkprop.h has been regenerated properly.  Now -1 entries are
62269         handled correctly.
62271         New module 'unigbrk/uc-gbrk-prop-tests'.
62272         * modules/unigbrk/uc-gbrk-prop-tests: New file.
62273         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
62274         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
62275         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
62277 2011-01-01  Bruno Haible  <bruno@clisp.org>
62279         Avoid use of hexadecimal escapes.
62280         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
62281         instead of hexadecimal escapes.
62283 2011-01-01  Jim Meyering  <meyering@redhat.com>
62285         maint: new rule to update copyright year ranges
62286         * Makefile (update-copyright): New rule.
62288         maint: indent with TABs in Makefile
62289         * Makefile: Expand leading sequences of spaces to TABs
62291         version-etc: update the copyright year it reports
62292         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
62294 2010-12-31  Bruno Haible  <bruno@clisp.org>
62296         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
62297         * lib/isfinite.c (zerof, zerod, zerol): New variables.
62298         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
62299         zero.
62301 2010-12-31  Bruno Haible  <bruno@clisp.org>
62303         pwrite: Work around HP-UX 11.11 bug.
62304         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
62305         works and set REPLACE_PWRITE if not.
62306         * lib/pwrite.c (pwrite): Add an implementation that uses the system
62307         function.
62308         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
62310 2010-12-31  Bruno Haible  <bruno@clisp.org>
62312         pread: Work around HP-UX 11 bugs.
62313         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
62314         and set REPLACE_PREAD if not.
62315         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
62317 2010-12-31  Eric Blake  <eblake@redhat.com>
62319         nl_langinfo: fix YESEXPR on Irix 6.5
62320         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
62321         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
62322         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
62323         it.
62325 2010-12-31  Bruno Haible  <bruno@clisp.org>
62327         iconv: Document HP-UX 11 bug.
62328         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62330 2010-12-31  Bruno Haible  <bruno@clisp.org>
62332         ldexpl: Fix link error on HP-UX 11.
62333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62334         LDEXPL_LIBM, using $ISNANL_LIBM.
62336 2010-12-31  Eric Blake  <eblake@redhat.com>
62338         ftello: avoid compilation failure with SunStudio c89
62339         * lib/ftello.c (ftello): Use lseek, not llseek.
62341         tests: avoid failing coreutils tests on cygwin
62342         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62343         (create_exe_shims_): Return 0 when skipping.
62345 2010-12-31  Bruno Haible  <bruno@clisp.org>
62347         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62348         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62350 2010-12-31  Bruno Haible  <bruno@clisp.org>
62352         waitpid: Fix link error in C++ mode.
62353         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62355 2010-12-31  Bruno Haible  <bruno@clisp.org>
62357         isnan: Use GCC built-ins when possible.
62358         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62359         __builtin_isnan.
62360         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62361         (isnan): Define using GCC built-ins for GCC >= 4.0.
62363 2010-12-31  Bruno Haible  <bruno@clisp.org>
62365         isnand: Fix mistake.
62366         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62367         __builtin_isnand.
62369 2010-12-31  Bruno Haible  <bruno@clisp.org>
62371         open: Avoid C++ error on HP-UX 11.
62372         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62374 2010-12-31  Bruno Haible  <bruno@clisp.org>
62376         time_r: Add missing declarations on HP-UX 11.
62377         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62378         instead of HAVE_LOCALTIME_R.
62379         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62380         HAVE_LOCALTIME_R always.
62381         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62382         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62383         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62384         HAVE_LOCALTIME_R.
62385         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62386         * doc/posix-functions/localtime_r.texi: Likewise.
62388 2010-12-29  Eric Blake  <eblake@redhat.com>
62390         mountlist: tweak previous commit
62391         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62392         Reported by Paul Eggert.
62394         mountlist: fix local drive detection on cygwin
62395         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62396         that works for cygwin.
62398 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62400         ftoastr, snprintf: ftoastr + snprintf module
62401         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62402         since the snprintf module now should be good enough here.
62403         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62404         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62405         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62406         GNULIB_SNPRINTF only for the test directory, and the latter
62407         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62408         seems to suffice by itself.
62410 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62412         alloca: one step towards thread-safety
62413         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62414         need for a static variable.  All callers changed.  This does not
62415         make the alloca replacement thread-safe, but it's one step.
62417         tests: minor indenting change
62418         * tests/init.sh: Sync from coreutils housekeeping patch
62419         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62420         to keep lines within 80 columns.
62422 2010-12-28  Jim Meyering  <meyering@redhat.com>
62424         regex: don't infloop on persistent failing calloc
62425         * lib/regexec.c (build_trtable): Return failure indication upon
62426         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62427         In glibc, this was fixed for version 2.13:
62428         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62430 2010-12-28  Bruno Haible  <bruno@clisp.org>
62431             Paul Eggert <eggert@cs.ucla.edu>
62433         linkat: Make implementation robust against system behaviour variations.
62434         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62435         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62436         way, and to -2 if it needs a generic runtime test.
62437         * lib/linkat.c (solaris_optimized_link_immediate,
62438         solaris_optimized_link_follow): New functions.
62439         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62440         (check_same_link): Use it.
62442 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62444         New module 'unigbrk/base'.
62445         * modules/unigbrk/base: New file.
62446         * lib/unigbrk.in.h: New file.
62448         New module 'unigbrk/uc-gbrk-prop'.
62449         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62450         * modules/unigbrk/uc-gbrk-prop: New file.
62451         * lib/unigbrk/gbrkprop.h: New file.
62452         * lib/unigbrk/uc-gbrk-prop.c: New file.
62454         New module 'unigbrk/uc-is-grapheme-break'.
62455         * modules/unigbrk/uc-is-grapheme-break: New file.
62456         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62457         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62458         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62459         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62460         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62462         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62464 2010-12-27  Bruno Haible  <bruno@clisp.org>
62466         linkat test: Avoid failure on Solaris 11 2010-11.
62467         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62469 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62471         utimens: work around glibc rounding bug on more platforms
62472         * lib/utimens.c (fdutimens): Work around rounding bug even if
62473         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62474         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62476 2010-12-27  Bruno Haible  <bruno@clisp.org>
62478         select tests: Improve comments.
62479         * tests/test-select.c (do_select): Add comments.
62481 2010-12-27  Bruno Haible  <bruno@clisp.org>
62483         select tests: Safer way of handling timeout.
62484         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62485         at every invocation.
62487 2010-12-27  Bruno Haible  <bruno@clisp.org>
62489         select tests: Use 'bool' where appropriate.
62490         * tests/test-select.c (connect_to_socket): Change argument type to
62491         'bool'.
62493 2010-12-27  Bruno Haible  <bruno@clisp.org>
62495         select tests: Use existing modules.
62496         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62497         (configure.ac): Don't test for unistd.h.
62498         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62499         declared in <unistd.h>.
62501 2010-12-27  Bruno Haible  <bruno@clisp.org>
62503         mbrtowc: Work around a Solaris 7 bug.
62504         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62505         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62506         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62507         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62508         MBRTOWC_NULL_ARG1_BUG.
62509         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62510         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62511         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62512         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62514 2010-12-27  Jim Meyering  <meyering@redhat.com>
62516         read-file.c: tweak syntax
62517         * lib/read-file.c (fread_file): Remove space after "*" in function
62518         definitions.
62520 2010-12-27  Bruno Haible  <bruno@clisp.org>
62522         times test: Avoid gcc warnings on OSF/1.
62523         * tests/test-times.c (main): Cast printf arguments from clock_t to
62524         'long int'.
62526 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62528         utimens: work around glibc rounding bug on older Linux kernels
62529         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62530         on Linux with a glibc whose utimes might not work, then work
62531         around a longstanding glibc bug involving rounding rather than
62532         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62533         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62535 2010-12-26  Bruno Haible  <bruno@clisp.org>
62537         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62538         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62539         _GL_CXXALIAS_SYS.
62540         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62542 2010-12-26  Bruno Haible  <bruno@clisp.org>
62544         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62545         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62546         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62547         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62548         looking for the declaration.
62549         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62550         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62551         problem.
62552         * doc/posix-functions/inet_pton.texi: Likewise.
62554 2010-12-26  Bruno Haible  <bruno@clisp.org>
62556         arpa_inet: Use the common idioms with C++ support.
62557         * lib/arpa_inet.in.h: Include c++defs.h.
62558         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62559         support.
62560         * modules/arpa_inet (Depends-on): Add c++defs.
62561         (Makefile.am): Substitute the contents of c++defs.h.
62562         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62563         * modules/arpa_inet-c++-tests: New file.
62564         * tests/test-arpa_inet-c++.cc: New file.
62566 2010-12-25  Bruno Haible  <bruno@clisp.org>
62568         Fix more C++ link errors on Solaris 8.
62569         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62570         $(LIB_EACCESS).
62571         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62572         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62573         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62574         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62575         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62577 2010-12-25  Bruno Haible  <bruno@clisp.org>
62579         printf-posix: Fix link error when a non-GCC compiler is used.
62580         * lib/stdio.in.h (printf): When not using GCC, override printf
62581         correctly.
62582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62584 2010-12-25  Bruno Haible  <bruno@clisp.org>
62586         strerror_r-posix: Update doc.
62587         * doc/posix-functions/strerror_r.texi: Update doc about the return
62588         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62590 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62592         utimens: simplify the logic of the previous change
62593         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62594         This should not affect whether the test succeeds or fails.
62596         utimens: configure better on hosts with NFS clock skew
62597         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62598         uses the clock of the local host.  It might use the clock of the
62599         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62600         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62602 2010-12-25  Bruno Haible  <bruno@clisp.org>
62604         ptsname test: Avoid failure on Solaris.
62605         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62606         open a pseudo-terminal; don't use BSD-style ptys.
62607         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62609 2010-12-25  Bruno Haible  <bruno@clisp.org>
62611         ptsname: Avoid ERANGE failure on some systems.
62612         * lib/ptsname.c (buffer): Increase size.
62614 2010-12-25  Bruno Haible  <bruno@clisp.org>
62616         rename, renameat: Avoid test failures at NFS mounted locations.
62617         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62618         so that subsequent mkdir calls succeed.
62620 2010-12-25  Bruno Haible  <bruno@clisp.org>
62622         iswblank: Fix C++ link error on Solaris 8.
62623         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62624         _GL_FUNCDECL_SYS.
62626 2010-12-25  Bruno Haible  <bruno@clisp.org>
62628         unistd: Fix C++ link error on Solaris 8.
62629         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62631 2010-12-25  Bruno Haible  <bruno@clisp.org>
62633         readlink doc: Mention an old glibc bug.
62634         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62636 2010-12-25  Bruno Haible  <bruno@clisp.org>
62638         fcntl-h: Fix for use of C++ on glibc systems.
62639         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62640         also on glibc systems in C++ mode.
62641         Reported by Gary V. Vaughan <gary@gnu.org>.
62643 2010-12-25  Bruno Haible  <bruno@clisp.org>
62645         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62646         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62648 2010-12-25  Bruno Haible  <bruno@clisp.org>
62650         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62651         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62652         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62653         test whether truncl works according to ISO C 99 with IEC 60559.
62654         * m4/truncl-ieee.m4: New file.
62655         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62656         m4/signbit.m4.
62657         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62659 2010-12-25  Bruno Haible  <bruno@clisp.org>
62661         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62662         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62663         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62664         test whether ceill works according to ISO C 99 with IEC 60559.
62665         * m4/ceill-ieee.m4: New file.
62666         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62667         m4/signbit.m4.
62668         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62670 2010-12-25  Bruno Haible  <bruno@clisp.org>
62672         Ensure all prerequisites of <wchar.h> are included.
62673         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62674         before <wchar.h>.
62675         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62676         gl_MBRLEN_NUL_RETVAL): Likewise.
62677         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62678         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62679         AC_FUNC_MBRTOWC): Likewise.
62680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62681         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62682         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62683         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62684         Likewise.
62685         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62686         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62687         (gl_WCHAR_H): Improve comments.
62688         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62690 2010-12-25  Bruno Haible  <bruno@clisp.org>
62692         strtok_r: Fix C syntax error in autoconf macro.
62693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62694         characters in test program.
62696 2010-12-24  Bruno Haible  <bruno@clisp.org>
62698         ceil, trunc, round: Fix gcc warnings.
62699         * lib/ceil.c (MIN): Undefine before redefining.
62700         * lib/trunc.c (MIN): Likewise.
62701         * lib/round.c (MIN): Likewise.
62702         Include <math.h> first.
62704 2010-12-24  Bruno Haible  <bruno@clisp.org>
62706         select tests: Avoid failures on OSF/1 5.1.
62707         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62708         failure of closing the last socket; it may fail with ECONNRESET.
62710 2010-12-24  Eric Blake  <eblake@redhat.com>
62712         stdint: avoid HP-UX 10.20 preprocessor bug
62713         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62714         than #if.
62715         * tests/test-floor2.c (main): Likewise.
62716         Reported by Peter O'Gorman.
62718         pipe: make obsoletion transition easier
62719         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62720         * modules/pipe (Files): Include revived file.
62721         (Include): Drop reference, to mirror getdate's behavior.
62723 2010-12-24  Bruno Haible  <bruno@clisp.org>
62725         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62726         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62727         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62728         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62730 2010-12-24  Bruno Haible  <bruno@clisp.org>
62732         gethostname: Ensure declaration on NonStop Kernel.
62733         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62734         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62736 2010-12-24  Bruno Haible  <bruno@clisp.org>
62738         sys_select: Ensure all necessary types on NonStop Kernel.
62739         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62740         include <sys/time.h>.
62741         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62742         NonStop Kernel.
62743         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62745 2010-12-24  Bruno Haible  <bruno@clisp.org>
62747         sys_select: Remove unneeded include.
62748         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62749         have <sys/select.h>.
62751 2010-12-24  Bruno Haible  <bruno@clisp.org>
62753         gethostname: Provide a fallback for HOST_NAME_MAX.
62754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62755         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62756         instead.
62757         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62759 2010-12-24  Bruno Haible  <bruno@clisp.org>
62761         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62762         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62763         (SA_RESTART): Likewise.
62764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62766 2010-12-24  Bruno Haible  <bruno@clisp.org>
62768         signal: Define NSIG.
62769         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62770         * tests/test-signal.c (nsig): New variable.
62771         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62773 2010-12-24  Bruno Haible  <bruno@clisp.org>
62775         rename, renameat: Avoid test failures on OSF/1 5.1.
62776         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62777         alternative error codes.
62778         * tests/test-renameat.c (main): Likewise.
62780 2010-12-24  Bruno Haible  <bruno@clisp.org>
62782         *printf: Detect large precisions bug on Solaris 10/SPARC.
62783         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62784         by Paul Eggert.
62785         * tests/test-snprintf-posix.h (test_function): Add this test code here
62786         too.
62787         * tests/test-sprintf-posix.h (test_function): Likewise.
62788         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62789         * tests/test-vasprintf-posix.c (test_function): Likewise.
62790         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62791         around by gnulib.
62792         * doc/posix-functions/printf.texi: Likewise.
62793         * doc/posix-functions/snprintf.texi: Likewise.
62794         * doc/posix-functions/sprintf.texi: Likewise.
62795         * doc/posix-functions/vfprintf.texi: Likewise.
62796         * doc/posix-functions/vprintf.texi: Likewise.
62797         * doc/posix-functions/vsnprintf.texi: Likewise.
62798         * doc/posix-functions/vsprintf.texi: Likewise.
62799         * doc/posix-functions/dprintf.texi: Undo last commit.
62800         * doc/posix-functions/vdprintf.texi: Likewise.
62802 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62804         tests: port test-fdutimensat.c to Solaris 8
62805         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62806         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62807         On Solaris 8, it fails with errno == ENOSYS, because there is no
62808         futimens (so it can't use the fd), and there is no lutimens (so it
62809         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62811         vsnprintf: make more consistent with snprintf; doc fixes
62813         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62814         the byte count return problem was promoted from the snprintf-posix
62815         to the snprintf module.
62816         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62817         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62818         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62819         * tests/test-snprintf.c (main): Check the byte count returned.
62820         * tests/test-vsnprintf.c (main): Likewise.
62822 2010-12-23  Eric Blake  <eblake@redhat.com>
62824         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62825         * modules/sigpipe (License): Relax license.
62827 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62829         doc: document Solaris printf bug with large float precisions
62830         * doc/posix-functions/dprintf.texi (dprintf):
62831         * doc/posix-functions/fprintf.texi (fprintf):
62832         * doc/posix-functions/printf.texi (printf):
62833         * doc/posix-functions/snprintf.texi (snprintf):
62834         * doc/posix-functions/sprintf.texi (sprintf):
62835         * doc/posix-functions/vdprintf.texi (vdprintf):
62836         * doc/posix-functions/vfprintf.texi (vfprintf):
62837         * doc/posix-functions/vprintf.texi (vprintf):
62838         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62839         * doc/posix-functions/vsprintf.texi (vsprintf):
62840         Mention that these functions mishandle large floating point
62841         precisions on Solaris 10.  The same bug is also present in Solaris
62842         8, and I assume earlier.  This causes "cd gnulib-tests; make
62843         check" to fail on Solaris 8 (and I assume, later) when building
62844         the latest coreutils, in test-vasprintf-posix's call to
62845         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62846         the wide flavors (e.g., wprintf) so this patch just updates the
62847         documentation for the narrow ones.
62849         test-posixtm.c: add two tests
62850         * tests/test-posixtm.c: Add two tests, to highlight the
62851         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62852         around this bug; this is merely to document it.
62854 2010-12-22  Bruno Haible  <bruno@clisp.org>
62856         getlogin_r: Work around portability problem on OSF/1.
62857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62858         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62859         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62860         test for a truncated result.
62861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62862         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62863         * modules/getlogin_r (Depends-on): Add memchr.
62864         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62866 2010-12-22  Bruno Haible  <bruno@clisp.org>
62868         ptsname: Avoid test failure on OSF/1 5.1.
62869         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62870         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62871         (same_slave): New function.
62872         (main): Use it to compare ptsname's result with the expected file name.
62874 2010-12-22  Bruno Haible  <bruno@clisp.org>
62876         Port extended stdio modules to HP NonStop Kernel.
62877         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62878         macros.
62879         * lib/fbufmode.c: Update comments.
62880         * lib/fflush.c: Likewise.
62881         * lib/fpurge.c: Likewise.
62882         * lib/freadable.c: Likewise.
62883         * lib/freadahead.c: Likewise.
62884         * lib/freading.c: Likewise.
62885         * lib/freadptr.c: Likewise.
62886         * lib/freadseek.c: Likewise.
62887         * lib/fseeko.c: Likewise.
62888         * lib/fseterr.c: Likewise.
62889         * lib/fwritable.c: Likewise.
62890         * lib/fwriting.c: Likewise.
62891         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62893 2010-12-22  Bruno Haible  <bruno@clisp.org>
62895         ttyname_r: Work around bug on OSF/1 5.1.
62896         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62897         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62898         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62899         present.
62900         * lib/ttyname_r.c (ttyname_r): Update comments.
62902 2010-12-22  Bruno Haible  <bruno@clisp.org>
62904         round: Implement result sign according to IEEE 754.
62905         * lib/round.c (MIN, MINUS_ZERO): New macros.
62906         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62907         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62908         * tests/test-round-ieee.c (main): Likewise.
62909         * tests/test-roundl-ieee.c (main): Likewise.
62911         trunc: Implement result sign according to IEEE 754.
62912         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62913         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62914         * tests/test-trunc2.c: Include minus-zero.h.
62915         (MINUS_ZERO): New macro.
62916         (trunc_reference): Keep in sync with lib/trunc.c.
62917         * tests/test-truncf2.c: Include minus-zero.h.
62918         (MINUS_ZERO): New macro.
62919         (truncf_reference): Keep in sync with lib/trunc.c.
62920         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62921         * tests/test-trunc-ieee.c (main): Likewise.
62922         * tests/test-truncl-ieee.c (main): Likewise.
62924         ceil: Implement result sign according to IEEE 754.
62925         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62926         (FUNC): Return -0.0 for -1 < x < 0.
62927         * tests/test-ceil2.c: Include minus-zero.h.
62928         (MINUS_ZERO): New macro.
62929         (ceil_reference): Keep in sync with lib/ceil.c.
62930         * tests/test-ceilf2.c: Include minus-zero.h.
62931         (MINUS_ZERO): New macro.
62932         (ceilf_reference): Keep in sync with lib/ceil.c.
62933         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62934         * tests/test-ceil-ieee.c (main): Likewise.
62935         * tests/test-ceill-ieee.c (main): Likewise.
62937         floor: Implement result sign according to IEEE 754.
62938         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62939         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62940         * tests/test-floorf2.c (floorf_reference): Likewise.
62941         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62942         * tests/test-floor-ieee.c (main): Likewise.
62943         * tests/test-floorl-ieee.c (main): Likewise.
62945 2010-12-22  Bruno Haible  <bruno@clisp.org>
62947         getaddrinfo: Update doc.
62948         * doc/posix-functions/gai_strerror.texi: Return type is also different
62949         on AIX and HP-UX.
62951 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62953         getaddrinfo, inet_ntop: Update doc for Solaris.
62954         * doc/posix-functions/gai_strerror.texi: Return type is also an
62955         issue on Solaris 9 and earlier.
62956         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62957         on Solaris 10 and earlier.
62959 2010-12-21  Bruno Haible  <bruno@clisp.org>
62961         New module 'roundl-ieee'.
62962         * modules/roundl-ieee: New file.
62963         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62964         test whether roundl works according to ISO C 99 with IEC 60559.
62965         * m4/roundl-ieee.m4: New file.
62966         * modules/roundl-ieee-tests: New file.
62967         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62968         * tests/test-roundl.c (main): Remove signbit tests.
62969         * modules/roundl-tests (Depends-on): Remove signbit.
62970         * doc/posix-functions/roundl.texi: Mention the new module.
62972 2010-12-21  Bruno Haible  <bruno@clisp.org>
62974         New module 'truncl-ieee'.
62975         * modules/truncl-ieee: New file.
62976         * modules/truncl-ieee-tests: New file.
62977         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62978         * tests/test-truncl.c (main): Remove signbit tests.
62979         * modules/truncl-tests (Depends-on): Remove signbit.
62980         * doc/posix-functions/truncl.texi: Mention the new module.
62982 2010-12-21  Bruno Haible  <bruno@clisp.org>
62984         New module 'ceill-ieee'.
62985         * modules/ceill-ieee: New file.
62986         * modules/ceill-ieee-tests: New file.
62987         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62988         * tests/test-ceill.c (main): Remove signbit tests.
62989         * modules/ceill-tests (Depends-on): Remove signbit.
62990         * doc/posix-functions/ceill.texi: Mention the new module.
62992 2010-12-21  Bruno Haible  <bruno@clisp.org>
62994         New module 'floorl-ieee'.
62995         * modules/floorl-ieee: New file.
62996         * modules/floorl-ieee-tests: New file.
62997         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62998         * tests/test-floorl.c (main): Remove signbit tests.
62999         * modules/floorl-tests (Depends-on): Remove signbit.
63000         * doc/posix-functions/floorl.texi: Mention the new module.
63002 2010-12-21  Bruno Haible  <bruno@clisp.org>
63004         New module 'round-ieee'.
63005         * modules/round-ieee: New file.
63006         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
63007         whether round works according to ISO C 99 with IEC 60559.
63008         * m4/round-ieee.m4: New file.
63009         * modules/round-ieee-tests: New file.
63010         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
63011         * tests/test-round1.c (main): Remove signbit tests.
63012         * modules/round-tests (Depends-on): Remove 'signbit'.
63013         * doc/posix-functions/round.texi: Mention the new module.
63015 2010-12-21  Bruno Haible  <bruno@clisp.org>
63017         New module 'trunc-ieee'.
63018         * modules/trunc-ieee: New file.
63019         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
63020         whether trunc works according to ISO C 99 with IEC 60559.
63021         * m4/trunc-ieee.m4: New file.
63022         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
63023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
63024         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
63025         * modules/trunc-ieee-tests: New file.
63026         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
63027         * tests/test-trunc1.c (main): Remove signbit tests.
63028         * modules/trunc-tests (Depends-on): Remove 'signbit'.
63029         * doc/posix-functions/trunc.texi: Mention the new module.
63031 2010-12-21  Bruno Haible  <bruno@clisp.org>
63033         New module 'ceil-ieee'.
63034         * modules/ceil-ieee: New file.
63035         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
63036         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
63037         ISO C 99 with IEC 60559.
63038         * m4/ceil-ieee.m4: New file.
63039         * modules/ceil (Files): Add lib/ceil.c.
63040         (Depends-on): Add 'float'.
63041         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63042         * lib/math.in.h (ceil): New declaration.
63043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
63044         REPLACE_CEIL.
63045         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
63046         * modules/ceil-ieee-tests: New file.
63047         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
63048         * tests/test-math-c++.cc: Check the signature of 'ceil'.
63049         * doc/posix-functions/ceil.texi: Mention the new module.
63051 2010-12-21  Bruno Haible  <bruno@clisp.org>
63053         New module 'floor-ieee'.
63054         * modules/floor-ieee: New file.
63055         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
63056         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
63057         ISO C 99 with IEC 60559.
63058         * m4/floor-ieee.m4: New file.
63059         * modules/floor (Files): Add lib/floor.c.
63060         (Depends-on): Add 'float'.
63061         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63062         * lib/math.in.h (floor): New declaration.
63063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
63064         REPLACE_FLOOR.
63065         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
63066         * modules/floor-ieee-tests: New file.
63067         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
63068         * tests/test-math-c++.cc: Check the signature of 'floor'.
63069         * doc/posix-functions/floor.texi: Mention the new module.
63071 2010-12-21  Bruno Haible  <bruno@clisp.org>
63073         New module 'roundf-ieee'.
63074         * modules/roundf-ieee: New file.
63075         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
63076         test whether roundf works according to ISO C 99 with IEC 60559.
63077         * m4/roundf-ieee.m4: New file.
63078         * modules/roundf-ieee-tests: New file.
63079         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
63080         * tests/test-roundf1.c (main): Remove signbit tests.
63081         * modules/roundf-tests (Depends-on): Remove 'signbit'.
63082         * doc/posix-functions/roundf.texi: Mention the new module.
63084 2010-12-21  Bruno Haible  <bruno@clisp.org>
63086         New module 'truncf-ieee'.
63087         * modules/truncf-ieee: New file.
63088         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
63089         test whether truncf works according to ISO C 99 with IEC 60559.
63090         * m4/truncf-ieee.m4: New file.
63091         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
63092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
63093         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
63094         * modules/truncf-ieee-tests: New file.
63095         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
63096         * tests/test-truncf1.c (main): Remove signbit tests.
63097         * modules/truncf-tests (Depends-on): Remove 'signbit'.
63098         * doc/posix-functions/truncf.texi: Mention the new module.
63100 2010-12-21  Bruno Haible  <bruno@clisp.org>
63102         New module 'ceilf-ieee'.
63103         * modules/ceilf-ieee: New file.
63104         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
63105         test whether ceilf works according to ISO C 99 with IEC 60559.
63106         * m4/ceilf-ieee.m4: New file.
63107         * modules/ceilf-ieee-tests: New file.
63108         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
63109         * tests/test-ceilf1.c (main): Remove signbit tests.
63110         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
63111         * doc/posix-functions/ceilf.texi: Mention the new module.
63113 2010-12-21  Bruno Haible  <bruno@clisp.org>
63115         New module 'floorf-ieee'.
63116         * modules/floorf-ieee: New file.
63117         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
63118         test whether floorf works according to ISO C 99 with IEC 60559.
63119         * m4/floorf-ieee.m4: New file.
63120         * modules/floorf-ieee-tests: New file.
63121         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
63122         * tests/test-floorf1.c (main): Remove signbit tests.
63123         * modules/floorf-tests (Depends-on): Remove 'signbit'.
63124         * doc/posix-functions/floorf.texi: Mention the new module.
63126 2010-12-21  Bruno Haible  <bruno@clisp.org>
63128         Support for minus zero in autoconf macros.
63129         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
63130         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
63131         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
63132         * tests/minus-zero.h: Update comments.
63134 2010-12-21  Bruno Haible  <bruno@clisp.org>
63136         Tests for module 'ceil'.
63137         * modules/ceil-tests: New file.
63138         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
63139         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
63141 2010-12-21  Bruno Haible  <bruno@clisp.org>
63143         Tests for module 'floor'.
63144         * modules/floor-tests: New file.
63145         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
63146         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
63148 2010-12-21  Bruno Haible  <bruno@clisp.org>
63150         math: Fix indentation.
63151         * lib/math.in.h (floorf): Fix indentation.
63153 2010-12-21  Bruno Haible  <bruno@clisp.org>
63155         Fix cross-compilation guesses on Solaris.
63156         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
63157         not match "solaris2.10".
63158         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63159         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
63160         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
63162 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63164         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
63165         This fixes a problem observed with the latest coreutils snapshot
63166         that caused a test to fail on Solaris 8.  src/csplit.c's call
63167         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
63168         earlier, instead of returning the number of bytes that would have
63169         been generated; this causes csplit to incorrectly report memory
63170         exhaustion.
63171         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
63172         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
63173         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
63174         comments to match.
63175         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
63176         Fix typo in matching older versions of Solaris: "solaris2.10"
63177         is matched by the shell pattern "solaris2.[0-9]*".  This matters
63178         only for guessing while cross-compiling.
63179         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
63181 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
63183         ftoastr: fix comment again
63184         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63185         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
63186         Also, simplify example a bit by using flags = 0.
63188 2010-12-20  Bruno Haible  <bruno@clisp.org>
63190         round*, trunc*: Update documentation regarding glibc.
63191         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
63192         * doc/posix-functions/round.texi: Likewise.
63193         * doc/posix-functions/roundl.texi: Likewise.
63194         * doc/posix-functions/truncf.texi: Likewise.
63195         * doc/posix-functions/trunc.texi: Likewise.
63196         * doc/posix-functions/truncl.texi: Likewise.
63198 2010-12-20  Bruno Haible  <bruno@clisp.org>
63200         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
63201         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
63202         * doc/posix-functions/round.texi: Likewise.
63203         * doc/posix-functions/roundl.texi: Likewise.
63205 2010-12-20  Bruno Haible  <bruno@clisp.org>
63207         ttyname_r: Add missing declaration on HP-UX 11.
63208         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
63209         HAVE_TTYNAME_R.
63210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
63211         declared. Set HAVE_TTYNAME_R always.
63212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63213         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
63214         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
63215         HAVE_TTYNAME_R.
63216         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
63218 2010-12-20  Bruno Haible  <bruno@clisp.org>
63220         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
63221         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
63222         * doc/posix-functions/getlogin_r.texi: Likewise.
63223         * tests/test-getlogin.c: Include <errno.h>.
63224         (main): Avoid test failure on HP-UX 11.11.
63225         * tests/test-getlogin_r.c (main): Likewise.
63227 2010-12-20  Bruno Haible  <bruno@clisp.org>
63229         getlogin_r: Add missing declaration on HP-UX 11.
63230         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
63231         declared also when it exists as a function.
63232         * doc/posix-functions/getlogin_r.texi: Document this workaround.
63234 2010-12-20  Bruno Haible  <bruno@clisp.org>
63236         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
63237         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
63238         through wcrtomb.
63240 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63242         ftoastr: fix comment
63243         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63244         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
63246 2010-12-19  Bruno Haible  <bruno@clisp.org>
63248         isnan: Ensure it is a macro.
63249         * lib/math.in.h (isnan): Define as a macro if not already a macro.
63250         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
63251         Solaris.
63253 2010-12-19  Bruno Haible  <bruno@clisp.org>
63255         ldexpl test: Fix link error on OSF/1 5.1.
63256         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
63258 2010-12-19  Bruno Haible  <bruno@clisp.org>
63260         wctype: Make it work in C++ mode on OSF/1 5.1.
63261         * lib/wctype.in.h (iswblank): Declare but not define here.
63262         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
63263         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
63264         * modules/wctype (Files): Add lib/iswblank.c.
63266 2010-12-19  Bruno Haible  <bruno@clisp.org>
63268         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
63269         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
63270         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
63272 2010-12-19  Bruno Haible  <bruno@clisp.org>
63274         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
63275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
63276         _POSIX_PII_SOCKET.
63277         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
63278         * doc/posix-functions/recvfrom.texi: Likewise.
63279         * doc/posix-functions/send.texi: Likewise.
63280         * doc/posix-functions/sendto.texi: Likewise.
63282 2010-12-19  Bruno Haible  <bruno@clisp.org>
63284         tcgetsid: Add missing declaration on OSF/1 5.1.
63285         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
63286         HAVE_TCGETSID.
63287         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
63288         Don't set HAVE_TCGETSID.
63289         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
63290         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
63291         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
63292         HAVE_TCGETSID.
63293         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
63295 2010-12-19  Bruno Haible  <bruno@clisp.org>
63297         stdio: Fix problem with popen() declaration on OSF/1 5.1.
63298         * lib/stdio.in.h: During the include_next statement, let recursive
63299         includes of this file include only the system header file.
63301 2010-12-19  Bruno Haible  <bruno@clisp.org>
63303         iconv_open: Fix regression from 2010-12-04.
63304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
63305         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
63307 2010-12-19  Bruno Haible  <bruno@clisp.org>
63309         stdbool test: Avoid a gcc warning.
63310         * tests/test-stdbool.c (main): Fail if e1 is false.
63311         Reported by Jim Meyering.
63313 2010-12-19  Jim Meyering  <meyering@redhat.com>
63315         setenv: restore to working order
63316         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
63317         mistakenly removed.
63318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
63319         HAVE_SETENV.
63320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
63321         HAVE_SETENV.
63323 2010-12-19  Bruno Haible  <bruno@clisp.org>
63325         Document some different function declarations on OSF/1 5.1.
63326         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63327         * doc/posix-functions/inet_ntop.texi: Likewise.
63328         * doc/posix-functions/gethostname.texi: Likewise.
63329         * lib/unistd.in.h (gethostname): Update comment.
63331 2010-12-19  Bruno Haible  <bruno@clisp.org>
63333         doc: Mention vasprintf-posix module.
63334         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63335         the 'vasprintf-posix' module.
63336         * doc/glibc-functions/vasprintf.texi: Likewise.
63338 2010-12-19  Bruno Haible  <bruno@clisp.org>
63340         unsetenv: Add missing declaration on OSF/1 5.1.
63341         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63342         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63343         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63345         not HAVE_UNSETENV.
63346         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63347         HAVE_UNSETENV.
63348         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63350 2010-12-19  Bruno Haible  <bruno@clisp.org>
63352         setenv: Add missing declaration on OSF/1 5.1.
63353         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63354         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63355         declared. Don't set HAVE_SETENV.
63356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63357         not HAVE_SETENV.
63358         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63359         HAVE_SETENV.
63360         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63362 2010-12-19  Bruno Haible  <bruno@clisp.org>
63364         nl_langinfo tests: Avoid gcc warning.
63365         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63367 2010-12-19  Bruno Haible  <bruno@clisp.org>
63369         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63370         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63371         _GL_CXXALIAS_SYS.
63373 2010-12-19  Bruno Haible  <bruno@clisp.org>
63375         stdbool: Relax test.
63376         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63377         address to 'bool' work in static initializer, for compilers other than
63378         GCC.
63380 2010-12-19  Bruno Haible  <bruno@clisp.org>
63382         ftello: Add missing declaration on OSF/1 5.1.
63383         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63384         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63386         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63387         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63389 2010-12-19  Bruno Haible  <bruno@clisp.org>
63391         fseeko: Add missing declaration on OSF/1 5.1.
63392         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63395         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63396         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63398 2010-12-19  Bruno Haible  <bruno@clisp.org>
63400         fchdir: Add missing declaration on OSF/1 5.1.
63401         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63404         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63405         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63407 2010-12-19  Bruno Haible  <bruno@clisp.org>
63409         relocatable-prog-wrapper: Separate from relocatable-prog.
63410         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63411         uninstall-relocwrapper rule here.
63412         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63413         Reported by Ian Beckwith <ianb@erislabs.net>.
63415 2010-12-19  Bruno Haible  <bruno@clisp.org>
63417         unistr/u8-mbsnlen: Add missing dependency.
63418         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63419         Reported by Ian Beckwith <ianb@erislabs.net>.
63421 2010-12-19  Bruno Haible  <bruno@clisp.org>
63423         iconv: Make it possible again to use this module without 'iconv-h'.
63424         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63425         if it is not defined.
63426         Reported by Ian Beckwith <ianb@erislabs.net>.
63428 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63430         acl: port to Solaris 8 when copying from tmpfs to ufs
63431         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63432         error number.  Problem observed on Solaris 8 with latest
63433         coreutils, with "mv A B", where A is on a tmpfs file system and B
63434         is on a ufs file system.  This caused coreutils' mv/part-symlink
63435         test to fail.
63437         tests: set fail=0 at start
63438         * tests/init.sh (setup_): Move fail=0 initialization here ...
63439         (mktempd_): ... from here, so that tests can rely on fail being
63440         set to 0 initially.  This fixes a problem in coreutils; see:
63441         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63443 2010-12-18  Bruno Haible  <bruno@clisp.org>
63445         memmem-simple: Stylistic changes.
63446         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63447         Fix preprocessor directive indentation.
63449 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63451         memmem, memmem-simple: reorganize and expand empty needle check
63452         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63453         functional checks to memmem-simple so that one has a fully functional
63454         memmem by using just this module.
63455         Restrict the performance only check to the memmem module.
63456         Also expand the empty needle check to ensure the correct
63457         pointer is returned, not just a non NULL pointer.
63458         * doc/glibc-functions/memmem.texi: Rearrange the portability
63459         documentation to correlate with the rearranged checks.
63460         Clarify exactly how the memmem and memmem-simple modules
63461         relate to each other.
63463 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63464             Bruno Haible  <bruno@clisp.org>
63466         Improve cross-compilation guesses for uClibc.
63467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63468         that uClibc does not have the glibc bug.
63469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63470         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63472 2010-12-14  Eric Blake  <eblake@redhat.com>
63474         configmake: provide fallbacks for oldest supported autotools
63475         * m4/configmake.m4: New file.
63476         * modules/configmake (Files): Ship it.
63477         (configure.ac): Use it to guarantee fallbacks.
63479 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63481         read-file: Improve handling of large files
63482         * lib/read-file.c (fread_file): Minimize realloc()s
63483         for regular files, and better manage sizes around SIZE_MAX.
63485 2010-12-13  Eric Blake  <eblake@redhat.com>
63487         cloexec, fcntl: relax license
63488         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63489         consent from all contributors.
63490         * modules/fcntl (License): Likewise.
63492 2010-12-10  Bruno Haible  <bruno@clisp.org>
63494         Tests for module 'pipe-posix'.
63495         * modules/pipe-posix-tests: New file.
63496         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63498 2010-12-10  Bruno Haible  <bruno@clisp.org>
63500         pipe-posix: Make it work in C++ mode.
63501         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63502         (pipe): Use common idiom, not a macro definition.
63503         * lib/pipe.c: New file.
63504         * m4/pipe.m4: New file.
63505         * modules/pipe-posix (Description): Enhance.
63506         (Files): Add lib/pipe.c, m4/pipe.m4.
63507         (configure.ac): Invoke gl_FUNC_PIPE.
63508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63509         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63510         * tests/test-unistd-c++.cc: Check the signature of pipe.
63512 2010-12-10  Bruno Haible  <bruno@clisp.org>
63514         Rename module 'pipe' to 'spawn-pipe'.
63515         * modules/spawn-pipe: New file, renamed from modules/pipe.
63516         (Files, configure.ac, Makefile.am): Update.
63517         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63518         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63519         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63520         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63521         "spawn-pipe.h" instead of "pipe.h".
63522         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63523         to gl_SPAWN_PIPE.
63524         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63525         (Files, Makefile.am): Update.
63526         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63527         Update.
63528         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63529         Include "spawn-pipe.h" instead of "pipe.h".
63530         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63531         * lib/javacomp.c: Likewise.
63532         * lib/javaversion.c: Likewise.
63533         * lib/pipe-filter-gi.c: Likewise.
63534         * lib/pipe-filter-ii.c: Likewise.
63535         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63536         * modules/javacomp (Depends-on): Likewise.
63537         * modules/javaversion (Depends-on): Likewise.
63538         * modules/pipe-filter-gi (Depends-on): Likewise.
63539         * modules/pipe-filter-ii (Depends-on): Likewise.
63540         * MODULES.html.sh (Executing programs): Update.
63541         * NEWS: Mention the change.
63543 2010-12-10  Eric Blake  <eblake@redhat.com>
63545         pipe-posix: new module
63546         * modules/pipe-posix: New file.
63547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63548         (gl_UNISTD_H): Check for declaration.
63549         * modules/unistd (Makefile.am): Substitute it.
63550         * lib/unistd.in.h (pipe): Provide it for mingw.
63551         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63552         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63554 2010-12-07  Bruno Haible  <bruno@clisp.org>
63556         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63557         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63558         u8_strcmp_gnu.
63559         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63561 2010-12-06  Bruno Haible  <bruno@clisp.org>
63563         Update internal documentation.
63564         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63566 2010-12-04  Bruno Haible  <bruno@clisp.org>
63568         Put more information about failed tests into the test return codes.
63569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63570         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63571         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63572         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63575         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63576         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63577         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63580         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63581         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63582         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63584         returns a bit mask.
63585         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63586         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63587         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63588         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63589         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63590         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63593         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63594         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63595         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63596         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63597         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63599         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63600         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63601         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63602         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63603         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63605         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63606         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63608         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63609         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63610         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63611         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63612         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63613         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63614         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63615         gl_PRINTF_PRECISION): Likewise.
63616         * m4/regex.m4 (gl_REGEX): Likewise.
63617         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63620         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63621         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63624         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63625         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63626         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63627         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63628         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63629         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63630         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63631         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63632         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63633         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63634         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63636         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63637         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63638         enumerated value.
63639         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63641 2010-12-04  Bruno Haible  <bruno@clisp.org>
63643         Update for Solaris 11 2010-11.
63644         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63645         Express, released in November 2010.
63647 2010-12-04  Bruno Haible  <bruno@clisp.org>
63649         nproc: Relax license.
63650         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63651         and Paul Eggert.
63652         Requested by Ludovic Courtès <ludo@gnu.org>.
63654 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63656         utimecmp: fine-grained src to nearby coarse-grained dest
63658         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63659         and the source is on a file system with higher-resolution time
63660         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63661         not work, and the time stamps are close together, the algorithm to
63662         determine the exact resolution from the read-back mtime was buggy:
63663         it had a "!=" where it should have had an "==".  This bug has been
63664         in the code ever since it was introduced to gnulib.
63665         Problem reported by Dan Jacobson in
63666         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63668 2010-11-30  Bruno Haible  <bruno@clisp.org>
63670         strerror_r-posix: Fix autoconf test.
63671         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63673 2010-11-28  Bruno Haible  <bruno@clisp.org>
63674             Paul Eggert  <eggert@cs.ucla.edu>
63676         Tests for module 'getdomainname'.
63677         * modules/getdomainname-tests: New file.
63678         * tests/test-getdomainname.c: New file, based on
63679         tests/test-gethostname.c.
63681 2010-11-28  Bruno Haible  <bruno@clisp.org>
63682             Paul Eggert  <eggert@cs.ucla.edu>
63684         getdomainname: Use the system function when possible.
63685         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63686         (getdomainname): Replace if needed. Provide the declaration if it is
63687         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63688         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63689         (getdomainname): When the system has getdomainname, call the system
63690         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63691         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63692         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63693         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63694         the function if its second argument is of type 'int' or if it is found
63695         in libnsl.
63696         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63697         <sys/systeminfo.h> and sysinfo().
63698         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63700         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63701         HAVE_GETDOMAINNAME.
63702         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63703         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63704         * doc/glibc-functions/getdomainname.texi: Document the problems with
63705         the getdomainname declaration.
63707 2010-11-28  Bruno Haible  <bruno@clisp.org>
63709         sys_socket: Ensure ss_family field on AIX.
63710         * lib/sys_socket.in.h (ss_family): New macro definition.
63711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63712         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63713         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63714         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63715         * modules/sys_socket (Makefile.am): Substitute
63716         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63717         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63719 2010-11-27  Bruno Haible  <bruno@clisp.org>
63721         readline: Improve configure output.
63722         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63723         "checking for readline..." result understandable.
63725 2010-11-27  Bruno Haible  <bruno@clisp.org>
63727         *printf-posix: Detect a bug on Solaris 10/x86.
63728         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63729         for floating-point output.
63730         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63731         directive.
63732         * tests/test-snprintf-posix.h (test_function): Likewise.
63733         * tests/test-sprintf-posix.h (test_function): Likewise.
63734         * tests/test-vasprintf-posix.c (test_function): Likewise.
63735         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63736         * doc/posix-functions/printf.texi: Likewise.
63737         * doc/posix-functions/snprintf.texi: Likewise.
63738         * doc/posix-functions/sprintf.texi: Likewise.
63739         * doc/posix-functions/vfprintf.texi: Likewise.
63740         * doc/posix-functions/vprintf.texi: Likewise.
63741         * doc/posix-functions/vsnprintf.texi: Likewise.
63742         * doc/posix-functions/vsprintf.texi: Likewise.
63743         * doc/glibc-functions/obstack_printf.texi: Likewise.
63744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63746 2010-11-27  Bruno Haible  <bruno@clisp.org>
63748         Fix link error when module libunistring-optional is in use.
63749         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63750         * modules/striconveha-tests (Makefile.am): Likewise.
63752 2010-11-27  Bruno Haible  <bruno@clisp.org>
63754         regex: Mention link dependencies.
63755         * modules/regex (Link): New section.
63756         * modules/rpmatch (Link): Likewise.
63757         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63759 2010-11-27  Bruno Haible  <bruno@clisp.org>
63761         ftoastr: Fix compilation error on Solaris.
63762         * lib/ftoastr.c: Include <config.h>.
63764 2010-11-27  Bruno Haible  <bruno@clisp.org>
63766         getloadavg: Update documentation.
63767         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63769 2010-11-27  Bruno Haible  <bruno@clisp.org>
63771         sys_socket: Fix test whether the functions are declared.
63772         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63773         not <sys/select.h>.
63775 2010-11-27  Bruno Haible  <bruno@clisp.org>
63777         getpass: Make sure to get system declaration on some platforms.
63778         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63779         gl_USE_SYSTEM_EXTENSIONS.
63780         * modules/getpass (Depends-on): Add extensions.
63782 2010-11-26  Bruno Haible  <bruno@clisp.org>
63784         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63785         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63786         'iconv' module is present.
63787         (ICONV_CONST): New macro.
63788         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63789         ICONV_CONST.
63790         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63791         set ICONV_CONST.
63792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63793         here.
63794         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63795         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63796         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63797         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63798         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63799         present.
63801 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63803         ftoastr: comment fix
63804         * lib/ftoastr.c: "little" -> "little or no" in comment
63806 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63808         stdint: port to GCC 4.3 + OSX + Octave
63809         On this platform, stdint.h is buggy and defines int64_t to long
63810         long int.  The replacement defined it to long int, causing
63811         problems with C++ style name mangling.  Instead, trust the system
63812         definition if INT64_MAX is defined, and likewise for the unsigned
63813         variant.   Problem reported by Jarno Rajahalme in
63814         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63815         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63816         and don't mess with int64_t and INT64_MAX in this case.
63817         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63819 2010-11-24  Bruno Haible  <bruno@clisp.org>
63821         doc: Corrections regarding MacOS X 10.4 and 10.5.
63822         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63823         MacOS X.
63824         Reported by Simon Josefsson.
63826 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63828         Uninstall ".bin" files installed by relocwrapper.
63829         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63830         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63831         unless it is already there.
63833 2010-11-21  Bruno Haible  <bruno@clisp.org>
63835         Update for NetBSD 5.0.
63836         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63837         NetBSD; the test fails on NetBSD 5.0.
63838         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63839         about NetBSD.
63841 2010-11-21  Bruno Haible  <bruno@clisp.org>
63843         Update for HP-UX 11.23 and HP-UX 11.31.
63844         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63845         HP-UX.
63847 2010-11-21  Bruno Haible  <bruno@clisp.org>
63849         Update for MacOS X 10.5.
63850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63851         MacOS X; the test fails on MacOS X 10.5.8.
63852         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63853         about MacOS X.
63855 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63857         bootstrap: add bootstrap_sync option.
63858         See discussion at
63859         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63860         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63861         * build-aux/bootstrap: Accept --bootstrap-sync to update
63862         bootstrap if it is not identical to the local gnulib's
63863         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63864         enable this by default.  Accept --no-bootstrap-sync to disable
63865         it.
63867 2010-11-20  Bruno Haible  <bruno@clisp.org>
63869         Ensure that <features.h> is included before __GLIBC__ is tested.
63870         * lib/printf-parse.h: Include <features.h>.
63871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63872         Reported by Mike Frysinger <vapier@gentoo.org>.
63874         Ensure that <features.h> is included before __GLIBC__ is tested.
63875         * lib/wchar.in.h: Include <features.h>.
63876         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63877         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63878         Reported by Mike Frysinger <vapier@gentoo.org>.
63880         Ensure that <features.h> is included before __GLIBC__ is tested.
63881         * lib/arpa_inet.in.h: Include <features.h>.
63882         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63883         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63884         Reported by Mike Frysinger <vapier@gentoo.org>.
63886         Ensure that <features.h> is included before __GLIBC__ is tested.
63887         * build-aux/link-warning.h: Include <features.h>.
63888         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63889         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63890         Reported by Mike Frysinger <vapier@gentoo.org>.
63892         Ensure that <features.h> is included before __GLIBC__ is tested.
63893         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63894         Reported by Mike Frysinger <vapier@gentoo.org>.
63896 2010-11-20  Bruno Haible  <bruno@clisp.org>
63898         memmem: Fix autoconf test.
63899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63901 2010-11-20  Bruno Haible  <bruno@clisp.org>
63903         Port to uClibc.
63904         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63905         * lib/fcntl.in.h: Likewise.
63906         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63907         * lib/mbrtowc.c (mbrtowc): Likewise.
63908         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63909         * lib/strerror_r.c: Likewise.
63910         * lib/unistr/u8-strnlen.c: Likewise.
63911         * lib/vasnprintf.c (decimal_point_char): Likewise.
63912         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63913         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63915         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63916         * tests/test-sigaction.c (handler, main): Likewise.
63917         * lib/freading.h: Treat uClibc like a non-glibc platform.
63918         * lib/freading.c: Likewise.
63919         * lib/gettext.h: Likewise.
63920         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63921         Likewise.
63922         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63924         * lib/propername.c (proper_name_utf8): Likewise.
63925         * lib/spawn.in.h: Likewise.
63926         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63927         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63928         mem_cd_iconveh_internal): Likewise.
63929         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63930         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63931         strstr, strcasestr): Likewise.
63932         * lib/unicodeio.c (unicode_to_mb): Likewise.
63933         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63934         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63935         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63936         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63937         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63938         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63939         * lib/unistr/u8-stpncpy.c: Likewise.
63940         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63941         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63942         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63943         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63944         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63946         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63949         Likewise.
63950         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63951         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63952         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63954         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63955         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63956         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63957         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63958         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63959         * tests/test-striconveha.c (main): Likewise.
63960         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63961         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63962         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63963         * doc/posix-functions/getline.texi: Likewise.
63964         Reported by Mike Frysinger <vapier@gentoo.org>.
63966 2010-11-20  Bruno Haible  <bruno@clisp.org>
63968         nproc: Fix condition.
63969         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63970         HAVE_PTHREAD_AFFINITY_NP.
63972 2010-11-20  Bruno Haible  <bruno@clisp.org>
63974         Fix a comment.
63975         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63977 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63979         ftoastr: don't assume snprintf
63980         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63981         Implement a subset of snprintf here, by using sprintf safely.
63982         * modules/ftoastr (Depends-on): Remove snprintf.
63984 2010-11-19  Jim Meyering  <meyering@redhat.com>
63986         test-rename.h: fix compilation failure
63987         * tests/test-rename.h (test_rename): Add omitted "}".
63989 2010-11-17  Jim Meyering  <meyering@redhat.com>
63991         maint.mk: add a URL discussing the no-@acronym policy
63992         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63994 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63996         ftoastr: depend on snprintf, improve comments
63997         * lib/ftoastr.c: Also mention Loitsch's draft.
63998         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63999         needed in the current implementation, but it might simplify
64000         speeding up the code later.
64001         * modules/ftoastr: Depend on snprintf; this improves portability.
64002         Suggested by Bruno Haible in the same email.
64004         ftoastr: port to hosts lacking strtof and strtold
64005         Problem reported by Bruno Haible in
64006         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
64007         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
64008         environment and strtold (and presumably strtof) are not available.
64009         * modules/ftoastr (Files): Add m4/c-strtod.m4.
64010         (configure.ac): Require gl_C99_STRTOLD.
64012 2010-11-18  Bruno Haible  <bruno@clisp.org>
64014         c-strtold: Avoid link error on AIX 7.
64015         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
64016         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
64017         (gl_C_STRTOLD): Test whether strtold_l exists.
64018         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64020 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64022         intprops: new macro INT_BITS_STRLEN_BOUND
64023         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
64024         ftoastr.h.  This exposes an internal of intprops.h that was formerly
64025         not exposed.  Also, it uses a slightly tighter bound than before;
64026         though this makes no practical difference, we might as well be as
64027         tight as we easily can.
64029         ftoastr: new module, for lossless conversion of floats to short strings
64030         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
64031         * modules/ftoastr: New files.
64033 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64035         bootstrap: port to Solaris sed
64036         * build-aux/bootstrap (get_version): Port to Solaris sed.
64037         See Ralf Wildenhues's note in
64038         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
64040 2010-11-14  Jim Meyering  <meyering@redhat.com>
64042         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
64043         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
64044         and move definition closer to sole use.
64046 2010-11-13  Jim Meyering  <meyering@redhat.com>
64048         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
64049         Now we require at least autoconf-2.59, which means the work-around
64050         is no longer needed.
64051         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
64052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64053         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64054         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64055         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64057 2010-11-13  Bruno Haible  <bruno@clisp.org>
64059         rename, renameat: Avoid test failures at NFS mounted locations.
64060         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
64061         functions.
64062         (test_rename): Use assert_nonexistent.
64063         * tests/test-rename.c: Include <dirent.h>.
64064         * tests/test-renameat.c: Likewise.
64065         Reported by Gary V. Vaughan <gary@gnu.org>.
64067         rename, renameat: Document Linux bug with NFS
64068         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
64069         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
64070         * doc/posix-functions/renameat.texi: Likewise.
64071         Suggested by Eric Blake.
64073 2010-11-13  Bruno Haible  <bruno@clisp.org>
64075         rename test: Add comments.
64076         * tests/test-rename.h (test_rename): Add structure and comments.
64078 2010-11-13  Eric Blake  <eblake@redhat.com>
64080         maintainer-makefile: cover a few more files
64081         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
64082         scripts generated within C files, for libvirt.
64084 2010-11-13  Bruno Haible  <bruno@clisp.org>
64086         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
64087         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
64088         character, return the number of bytes that belong together, not always
64089         1.
64090         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
64091         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
64092         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
64093         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
64094         number of bytes of an invalid character.
64095         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
64096         (main): Invoke it.
64097         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
64098         results.
64099         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
64100         malformed byte sequences.
64101         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
64102         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
64103         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
64104         Reported by Ben Pfaff and Paolo Bonzini.
64106 2010-11-13  Bruno Haible  <bruno@clisp.org>
64108         openat: Work around glibc bug with fchownat() and empty file names.
64109         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
64110         (gl_FUNC_FCHOWNAT): Invoke it.
64111         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
64112         * doc/posix-functions/fchownat.texi: Document the glibc bug.
64113         Reported by Gary V. Vaughan <gary@gnu.org>.
64115 2010-11-13  Bruno Haible  <bruno@clisp.org>
64117         openat: Ensure autoconf macro ordering.
64118         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
64119         gl_USE_SYSTEM_EXTENSIONS.
64120         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
64122 2010-11-13  Bruno Haible  <bruno@clisp.org>
64124         Update comments.
64125         * lib/unistr/u8-check.c: Update file name in comments.
64126         * lib/unistr/u8-mblen.c: Likewise.
64127         * lib/unistr/u8-prev.c: Likewise.
64128         * lib/unistr/u8-strmblen.c: Likewise.
64129         * lib/unistr/u8-strmbtouc.c: Likewise.
64131 2010-11-13  Jim Meyering  <meyering@redhat.com>
64133         tests: avoid test failure on Solaris 10 due to lack of PATH export
64134         * tests/test-update-copyright.sh: Don't forget to export PATH.
64136         init.sh: ensure that IFS is defined, just in case...
64137         * tests/init.sh (setup_): Ensure that IFS is defined,
64138         so that saving and restoring it works as expected.  This
64139         appears to be useful at least for an old version of dash
64140         from a long time ago (RH 6).  See here for details:
64141         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
64143         maint.mk: tighten "test a == b" check
64144         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
64145         test to files that contain something like #!/bin/sh.
64146         Without this, coreutils would get two false positives in
64147         the comments of C source files.
64149 2010-11-12  Eric Blake  <eblake@redhat.com>
64151         bootstrap: fix typo in previous attempt
64152         * build-aux/bootstrap (buildreq): Correct the grouping.
64153         Reported by Paul Eggert.
64155         maintainer-makefile: prohibit test x == x
64156         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
64157         Based on a report by Matthias Bolte.
64159         bootstrap: allow FreeBSD gzip
64160         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
64161         which has no '.' and goes to stderr.
64162         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
64163         Reported by Matthias Bolte.
64165         maintainer-makefile: check for i18n setup
64166         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
64167         will likely work.
64169 2010-11-12  Bruno Haible  <bruno@clisp.org>
64171         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
64172         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
64173         * lib/nanosleep.c (nanosleep): Likewise.
64175 2010-11-11  Bruno Haible  <bruno@clisp.org>
64177         fcntl-h: Fix for use of C++ on glibc systems.
64178         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
64179         also on glibc systems in C++ mode.
64180         Reported by Gary V. Vaughan <gary@gnu.org>.
64182 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64184         mknod: avoid false failure with dash
64185         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
64187 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64189         unlink: Fix "is it should" typo in diagnostic.
64190         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
64191         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
64193 2010-11-11  Bruno Haible  <bruno@clisp.org>
64195         Tests for module 'strerror_r-posix'.
64196         * modules/strerror_r-posix-tests: New file.
64197         * tests/test-strerror_r.c: New file.
64198         * tests/test-string-c++.cc: Check the signature of strerror_r.
64200         New module 'strerror_r-posix'.
64201         * lib/string.in.h (strerror_r): New declaration.
64202         * lib/strerror_r.c: New file.
64203         * m4/strerror_r.m4: New file.
64204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
64205         of strerror_r.
64206         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
64207         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64208         * modules/strerror_r-posix: New file.
64209         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
64210         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64211         * doc/posix-functions/strerror_r.texi: Mention the new module and the
64212         portability problems.
64214 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
64216         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
64217         line is also considered for output. Quoted function name in shell
64218         command, so temporary files for functions like MyClass::operator()
64219         are removed correctly without errors.
64221 2010-11-09  Bruno Haible  <bruno@clisp.org>
64223         * doc/posix-functions/strerror.texi: List more failing platforms.
64225         * doc/posix-functions/strerror.texi: Add a comment.
64227 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64229         fdopendir: fix bug on MacOS X when low on file descriptors
64231         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
64232         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
64233         All callers changed.
64234         (fdopendir): Invoke save_cwd at the top level, not after using
64235         multiple dup() calls to use up file descriptors.  Then retry
64236         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
64237         less than the maximum number of open file descriptors, because
64238         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
64239         on Mac OS X 10.6.4 for tar 1.24
64240         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
64241         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
64242         and for tar 1.25
64243         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
64245 2010-11-07  Bruno Haible  <bruno@clisp.org>
64247         vasnprintf: Support I flag on glibc systems.
64248         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
64249         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
64250         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
64251         snprintf function.
64252         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
64253         glibc systems.
64254         * tests/test-vasnprintf-posix3.c: New file.
64255         * modules/vasnprintf-posix-tests (Files): Add it.
64256         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
64258 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64260         [html] Fix copy/paste bug: Use unique name for compiler warnings.
64261         * MODULES.html.sh: For compiler warnings, use name
64262         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
64264 2010-11-05  Eric Blake  <eblake@redhat.com>
64266         ceil, floor: avoid spurious failure with icc
64267         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
64268         [denormals-as-zero] when optimizing without -mieee-fp option.
64269         * tests/test-floorf2.c (floorf_reference): Likewise.
64270         * tests/test-ceilf1.c (dummy): New function.
64271         (main): Use it to outsmart icc's optimization.
64272         * tests/test-floorf1.c (dummy, main): Likewise.
64274         tests: require working signbit
64275         * modules/ceilf-tests (Depends-on): Add signbit.
64276         * modules/ceill-tests (Depends-on): Likewise.
64277         * modules/floorf-tests (Depends-on): Likewise.
64278         * modules/floorl-tests (Depends-on): Likewise.
64279         * modules/round-tests (Depends-on): Likewise.
64280         * modules/roundf-tests (Depends-on): Likewise.
64281         * modules/roundl-tests (Depends-on): Likewise.
64282         * modules/trunc-tests (Depends-on): Likewise.
64283         * modules/truncf-tests (Depends-on): Likewise.
64284         * modules/truncl-tests (Depends-on): Likewise.
64286         strtod: work around icc bug
64287         * lib/strtod.c (minus_zero): Define to working value.
64288         (strtod): Use it to avoid icc bug.
64290         copysign: enhance tests
64291         * modules/copysign-tests (Files): Add minus-zero.h.
64292         * tests/test-copysign.c (main): Also test zeros.
64294 2010-11-04  Eric Blake  <eblake@redhat.com>
64296         ceil, floor, round, trunc: enhance tests of -0
64297         * tests/test-ceilf1.c (main): Ensure correct sign of result.
64298         * tests/test-ceill.c (main): Likewise.
64299         * tests/test-floorf1.c (main): Likewise.
64300         * tests/test-floorl.c (main): Likewise.
64301         * tests/test-round1.c (main): Likewise.
64302         * tests/test-roundf1.c (main): Likewise.
64303         * tests/test-roundl.c (main): Likewise.
64304         * tests/test-trunc1.c (main): Likewise.
64305         * tests/test-truncf1.c (main): Likewise.
64306         * tests/test-truncl.c (main): Likewise.
64308 2010-11-04  Eric Blake  <eblake@redhat.com>
64310         frexp, tests: work around ICC bug with -zero
64311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
64312         works with more compilers.
64313         * tests/minus-zero.h: New file.
64314         * modules/ceilf-tests (Files): Include it.
64315         * modules/ceill-tests (Files): Likewise.
64316         * modules/floorf-tests (Files): Likewise.
64317         * modules/floorl-tests (Files): Likewise.
64318         * modules/frexp-nolibm-tests (Files): Likewise.
64319         * modules/frexp-tests (Files): Likewise.
64320         * modules/frexpl-nolibm-tests (Files): Likewise.
64321         * modules/frexpl-tests (Files): Likewise.
64322         * modules/isnan-tests (Files): Likewise.
64323         * modules/isnand-nolibm-tests (Files): Likewise.
64324         * modules/isnand-tests (Files): Likewise.
64325         * modules/isnanf-nolibm-tests (Files): Likewise.
64326         * modules/isnanf-tests (Files): Likewise.
64327         * modules/isnanl-nolibm-tests (Files): Likewise.
64328         * modules/isnanl-tests (Files): Likewise.
64329         * modules/round-tests (Files): Likewise.
64330         * modules/roundf-tests (Files): Likewise.
64331         * modules/roundl-tests (Files): Likewise.
64332         * modules/ldexpl-tests (Files): Likewise.
64333         * modules/signbit-tests (Files): Likewise.
64334         * modules/snprintf-posix-tests (Files): Likewise.
64335         * modules/sprintf-posix-tests (Files): Likewise.
64336         * modules/strtod-tests (Files): Likewise.
64337         * modules/trunc-tests (Files): Likewise.
64338         * modules/truncf-tests (Files): Likewise.
64339         * modules/truncl-tests (Files): Likewise.
64340         * modules/vsnprintf-posix-tests (Files): Likewise.
64341         * modules/vsprintf-posix-tests (Files): Likewise.
64342         * modules/vasnprintf-posix-tests (Files): Likewise.
64343         * modules/vasprintf-posix-tests (Files): Likewise.
64344         * tests/test-ceilf1.c (main): Use it.
64345         * tests/test-ceill.c (main): Likewise.
64346         * tests/test-floorf1.c (main): Likewise.
64347         * tests/test-floorl.c (main): Likewise.
64348         * tests/test-frexp.c (main): Likewise.
64349         * tests/test-frexpl.c (main): Likewise.
64350         * tests/test-isnan.c (main): Likewise.
64351         * tests/test-isnand.h (main): Likewise.
64352         * tests/test-isnanf.h (main): Likewise.
64353         * tests/test-isnanl.h (main): Likewise.
64354         * tests/test-ldexpl.c (main): Likewise.
64355         * tests/test-round.c (main): Likewise.
64356         * tests/test-roundf.c (main): Likewise.
64357         * tests/test-roundl.c (main): Likewise.
64358         * tests/test-signbit.c (test_signbitf, test_signbitd)
64359         (test_signbitl): Likewise.
64360         * tests/test-snprintf-posix.h (test_function): Likewise.
64361         * tests/test-sprintf-posix.h (test_function): Likewise.
64362         * tests/test-strtod.c (main): Likewise.
64363         * tests/test-trunc1.c (main): Likewise.
64364         * tests/test-truncf1.c (main): Likewise.
64365         * tests/test-truncl.c (main): Likewise.
64367         isnanl: work around icc bug
64368         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64370 2010-11-03  Eric Blake  <eblake@redhat.com>
64372         tests: fix compiler warnings
64373         * tests/test-getopt.h (test_getopt): Fix condition.
64374         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64375         * tests/test-pipe2.c (main): Likewise.
64376         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64378         utimens: fix broken m4 test
64379         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64381 2010-10-28  Bruno Haible  <bruno@clisp.org>
64383         posix_spawn*, getdtablesize: Relax license.
64384         * modules/posix_spawn (License): Change to LGPLv2+.
64385         * modules/posix_spawnp (License): Likewise.
64386         * modules/posix_spawn-internal (License): Likewise.
64387         * modules/posix_spawnattr_init (License): Likewise.
64388         * modules/posix_spawnattr_getflags (License): Likewise.
64389         * modules/posix_spawnattr_setflags (License): Likewise.
64390         * modules/posix_spawnattr_getpgroup (License): Likewise.
64391         * modules/posix_spawnattr_setpgroup (License): Likewise.
64392         * modules/posix_spawnattr_getschedparam (License): Likewise.
64393         * modules/posix_spawnattr_setschedparam (License): Likewise.
64394         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64395         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64396         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64397         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64398         * modules/posix_spawnattr_getsigmask (License): Likewise.
64399         * modules/posix_spawnattr_setsigmask (License): Likewise.
64400         * modules/posix_spawnattr_destroy (License): Likewise.
64401         * modules/posix_spawn_file_actions_init (License): Likewise.
64402         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64403         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64404         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64405         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64406         * modules/getdtablesize (License): Likewise.
64407         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64409 2010-10-26  Bruno Haible  <bruno@clisp.org>
64411         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64412         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64413         Cygwin and mingw.
64414         Suggested by Eric Blake.
64416 2010-10-26  Bruno Haible  <bruno@clisp.org>
64418         stdio: Work around compilation error due to renameat() on Solaris 10.
64419         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64420         * lib/renameat.c: Don't include <unistd.h> here.
64421         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64422         Reported by Paul Eggert and Eric Blake.
64424 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64426         renameat: port to Solaris 10, which declares renameat in unistd.h
64428         * lib/renameat.c: Include unistd.h before stdio.h, because
64429         Solaris 10 declares renameat in unistd.h.  Problem encountered
64430         when building GNU tar 1.24 on Solaris 10.
64432 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64434         fdopendir: fix C89 compilation
64435         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64436         compilers.
64438 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64440         inttostr: simplify by removing unnecessary redundancy
64441         * lib/anytostr.c: Don't include verify.h.
64442         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64443         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64444         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64445         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64446         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64447         Likewise.
64448         * modules/inttostr (Depends-on): Remove 'verify'.
64450 2010-10-23  Bruno Haible  <bruno@clisp.org>
64452         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64453         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64454         Reported by Eric Blake.
64456 2010-10-23  Bruno Haible  <bruno@clisp.org>
64458         Tests: Fix LOCALE_JA on MirBSD 10.
64459         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64460         to an UTF-8 locale.
64461         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64463         Reported by Eric Blake.
64465 2010-10-21  Bruno Haible  <bruno@clisp.org>
64467         nl_langinfo test: Avoid test failure on NetBSD 5.
64468         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64469         Reported by Eric Blake.
64471 2010-10-21  Eric Blake  <eblake@redhat.com>
64473         c-stack: work around libsigsegv 2.8 bug
64474         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64475         overflow on at least PowerPC64.
64477 2010-10-17  Bruno Haible  <bruno@clisp.org>
64479         userspec: Drop redundant file.
64480         * modules/userspec (Files): Remove lib/inttostr.h.
64482 2010-10-17  Bruno Haible  <bruno@clisp.org>
64484         nl_langinfo tests: Silence some warnings.
64485         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64486         Reported by Jim Meyering.
64488 2010-10-17  Bruno Haible  <bruno@clisp.org>
64490         Make use of GCC's attribute __alloc_size__.
64491         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64492         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64493         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64494         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64495         __alloc_size__.
64496         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64497         Suggested by Jim Meyering.
64499 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64501         bootstrap: anchor .gitignore entries.
64502         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64503         with...
64504         (insert_vc_ignore): ... this new function, which prepends `/' to
64505         all .gitignore entries before passing them to
64506         insert_sorted_if_absent.
64508 2010-10-16  Bruno Haible  <bruno@clisp.org>
64510         nextafter: Fix configure check.
64511         * modules/nextafter (configure.ac): Correct expected prototype.
64513 2010-10-16  Bruno Haible  <bruno@clisp.org>
64515         termios: Update documentation.
64516         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64518 2010-10-16  Bruno Haible  <bruno@clisp.org>
64520         tests: Make them compile with TinyCC.
64521         * tests/test-strstr.c (main): Remove parentheses around array
64522         initializer.
64524 2010-10-15  Eric Blake  <eblake@redhat.com>
64526         ignore-value: make header idempotent
64527         * lib/ignore-value.h: Add double-inclusion guards.
64528         Reported by Stefan Berger.
64530 2010-10-15  Jim Meyering  <meyering@redhat.com>
64532         GNUmakefile: handle "stable" target, not "major"
64533         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64534         lists in maint.mk and announce-gen.  Without this, "make stable"
64535         would fail to ensure that $(VERSION) is up to date.
64537 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64539         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64540         & co.
64542 2010-10-14  Bruno Haible  <bruno@clisp.org>
64544         vasnprintf: Don't set errno to 0.
64545         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64546         block that sets it to 0.
64547         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64549 2010-10-14  Bruno Haible  <bruno@clisp.org>
64551         socketlib: Fix.
64552         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64553         gl_PREREQ_SYS_H_WINSOCK2.
64554         Reported by Ian Beckwith <ianb@erislabs.net>.
64556 2010-10-13  Jim Meyering  <meyering@redhat.com>
64558         test-select-stdin.c: avoid warn_unused_result warnings
64559         * tests/test-select-stdin.c: Include "macros.h".
64560         ASSERT that read and fflush succeed.
64562 2010-10-13  Jim Meyering  <meyering@redhat.com>
64564         git-version-gen: do require git-VC'd files in cwd
64565         * build-aux/git-version-gen: Reject a git version string
64566         if there are no commits associated with the current directory.
64567         This avoids an unlikely false-positive (unrelated dir whose parent
64568         repository also contains a tag matching v*), as pointed out
64569         by Giuseppe Scrivano in
64570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64572 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64574         argv-iter: omit nonconforming declaration
64575         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64576         enum arg_iter_err declaration, which doesn't conform to C99.
64577         Solaris 10 cc warns about this.
64579 2010-10-13  Eric Blake  <eblake@redhat.com>
64581         termios: fix compilation on mingw
64582         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64583         (gl_TERMIOS_H): Adjust it on mingw.
64584         * modules/termios (Makefile.am): Substitute new key.
64585         * lib/termios.in.h (includes): Make include_next conditional.
64586         * doc/posix-headers/termios.texi (termios.h): Update
64587         documentation.
64588         Reported by Daniel P. Berrange.
64590 2010-10-13  Jim Meyering  <meyering@redhat.com>
64592         git-version-gen: don't require that .git/ be in the current dir
64593         * build-aux/git-version-gen: Adjust this script so that it works
64594         when run from any working directory beneath the top-level .git/-
64595         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64598         test-select: avoid warn_unused_result warnings
64599         * tests/test-select.c: Include "macros.h".
64600         ASSERT that each call to read, write, and pipe succeeds.
64601         While not technically required, also check each "close".
64602         * modules/select-tests (Files): Add tests/macros.h.
64604         test-symlinkat: remove declaration of unused local
64605         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64607         test-inttostr: avoid shadowing warnings
64608         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64609         and use malloc rather than the stack for the same reason as
64610         mentioned in the comment justifying the other allocation.
64612 2010-10-11  Bruno Haible  <bruno@clisp.org>
64614         stdlib: Allow multiple gnulib generated replacements to coexist.
64615         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64616         Reported by Sam Steingold <sds@gnu.org>.
64618 2010-10-11  Jim Meyering  <meyering@redhat.com>
64620         fix a documentation typo
64621         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64623 2010-10-11  Eric Blake  <eblake@redhat.com>
64625         futimens: work around Solaris 11 bug
64626         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64627         * tests/test-futimens.h (test_futimens): Enhance, rather than
64628         weaken test.
64629         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64631 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64633         Indentation.
64634         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64635         higher-level operators more to the left.
64637 2010-10-11  Jim Meyering  <meyering@redhat.com>
64639         test-futimens: avoid unwarranted test failure on Solaris 5.11
64640         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64641         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64642         because it tries to dereference the NULL name argument.
64644 2010-10-11  Bruno Haible  <bruno@clisp.org>
64646         Indentation.
64647         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64648         indentation.
64650 2010-10-11  Jim Meyering  <meyering@redhat.com>
64652         spawn.in.h: make indentation consistent with parentheses
64653         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64654         Make indentation consistent with parentheses.
64656 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64658         Fix mismatched parens in previous commit
64659         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64660         parens.
64662 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64664         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64666         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64667         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64668         * lib/malloca.c: Include "verify.h".
64669         (verify1): Remove, replacing with a verify call.
64670         * lib/relocwrapper.c (verify1): Likewise.
64671         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64672         Likewise.
64673         * modules/malloca (Depends-on): Add 'verify'.
64674         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64675         * modules/vasnprintf (Depends-on): Add 'verify'.
64676         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64677         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64678         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64679         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64680         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64681         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64682         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64684         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64686         Formerly the style was sometimes 2*X - 1, because the C standard
64687         was wrongly thought to disallow ?: in integral constant expressions.
64688         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64689         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64690         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64691         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64692         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64693         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64694         verify that time_t cannot be floating.
64696 2010-10-08  Eric Blake  <eblake@redhat.com>
64698         time: enforce recent POSIX ruling that time_t is integral
64699         * lib/time.in.h (__time_t_must_be_integral): Detect any
64700         problematic systems, allowing the rest of gnulib to assume POSIX.
64702 2010-10-08  Jim Meyering  <meyering@redhat.com>
64704         fdopendir: fix a bug on systems lacking openat and /proc support
64705         OpenBSD 4.7 is one such system.  The most noticeable effect was
64706         failure of any application making nontrivial use of fts: rm, du,
64707         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64708           ./rm: traversal failed: `a': Bad file descriptor
64709         Debugging that, you see that even though FD 6 was closed just
64710         prior to the opendir call in fd_clone_opendir, its resulting
64711         dir->dd_fd was 8, rather than the expected value of 6:
64713         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64714         93                close (fd);
64715         (gdb) n
64716         94                dir = fd_clone_opendir (dupfd);
64717         (gdb) n
64718         95                saved_errno = errno;
64719         (gdb) p dir->dd_fd
64720         $11 = 8
64722         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64723         The problem is that on OpenBSD, fd_clone_opendir has to resort
64724         to using the old-style save/restore CWD mechanism, due to its
64725         lack of openat/proc support, and *that* would steal the FD (6)
64726         that opendir was supposed to use.
64728         The fix is to squirrel away the desired FD so that save_cwd uses a
64729         different one, and then free the dest FD right before calling opendir.
64730         That guarantees opendir will use the required file descriptor.
64732         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64734 2010-10-08  Bruno Haible  <bruno@clisp.org>
64736         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64737         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64739 2010-10-08  Bruno Haible  <bruno@clisp.org>
64741         nanosleep: Make replacement POSIX compliant.
64742         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64743         is out of range.
64744         Reported by Jim Meyering.
64746 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64748         bootstrap: add hook for altering gnulib.mk, for Bison
64749         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64750         the Bison bootstrapping process can rewrite file names and variables
64751         in this file before later parts of 'bootstrap' use the file.
64752         Bison wants to include lib/gnulib.mk from the top-level makefile,
64753         so it needs the file names in this file to be relative to the top
64754         level, not relative to lib; plus it needs variable names to be
64755         rewritten.
64756         (slurp): Use the new function.
64758         bootstrap: reformat for readability
64759         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64761 2010-10-08  Eric Blake  <eblake@redhat.com>
64763         docs: update cygwin progress
64764         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64765         1.7.7.
64766         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64767         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64768         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64769         * doc/posix-functions/carg.texi (carg): Likewise.
64770         * doc/posix-functions/cargf.texi (cargf): Likewise.
64771         * doc/posix-functions/casin.texi (casin): Likewise.
64772         * doc/posix-functions/casinf.texi (casinf): Likewise.
64773         * doc/posix-functions/casinh.texi (casinh): Likewise.
64774         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64775         * doc/posix-functions/catan.texi (catan): Likewise.
64776         * doc/posix-functions/catanf.texi (catanf): Likewise.
64777         * doc/posix-functions/catanh.texi (catanh): Likewise.
64778         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64779         * doc/posix-functions/ccos.texi (ccos): Likewise.
64780         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64781         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64782         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64783         * doc/posix-functions/cexp.texi (cexp): Likewise.
64784         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64785         * doc/posix-functions/cimag.texi (cimag): Likewise.
64786         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64787         * doc/posix-functions/clog.texi (clog): Likewise.
64788         * doc/posix-functions/clogf.texi (clogf): Likewise.
64789         * doc/posix-functions/conj.texi (conj): Likewise.
64790         * doc/posix-functions/conjf.texi (conjf): Likewise.
64791         * doc/posix-functions/cpow.texi (cpow): Likewise.
64792         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64793         * doc/posix-functions/cproj.texi (cproj): Likewise.
64794         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64795         * doc/posix-functions/creal.texi (creal): Likewise.
64796         * doc/posix-functions/crealf.texi (crealf): Likewise.
64797         * doc/posix-functions/csin.texi (csin): Likewise.
64798         * doc/posix-functions/csinf.texi (csinf): Likewise.
64799         * doc/posix-functions/csinh.texi (csinh): Likewise.
64800         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64801         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64802         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64803         * doc/posix-functions/ctan.texi (ctan): Likewise.
64804         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64805         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64806         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64807         * doc/posix-headers/complex.texi (complex.h): Likewise.
64809 2010-10-07  Jim Meyering  <meyering@redhat.com>
64811         parse-datetime: avoid compilation failure on OpenBSD 4.7
64812         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64813         This works around a compilation failure on OpenBSD 4.7:
64814         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64816 2010-10-07  Eric Blake  <eblake@redhat.com>
64818         docs: update cygwin progress
64819         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64820         1.7.6.
64821         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64822         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64823         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64824         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64825         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64826         Likewise.
64827         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64828         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64829         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64830         Likewise.
64831         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64832         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64833         Likewise.
64834         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64835         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64836         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64837         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64838         Likewise.
64839         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64840         Likewise.
64841         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64843         docs: update parse-datetime history
64844         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64845         documentation of this function's history and alternatives.
64847         cygwin: use more robust version check
64848         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64849         exclude an eventual cygwin 1.9.1.
64850         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64852         (gl_FUNC_STRCASESTR): Likewise.
64853         Reported by Bruno Haible.
64855 2010-10-06  Bruno Haible  <bruno@clisp.org>
64857         string, sys_select: Avoid #including large headers unless necessary.
64858         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64859         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64860         OSF/1, BeOS, Haiku.
64861         Reported by Jim Meyering.
64863 2010-10-05  Eric Blake  <eblake@redhat.com>
64865         memmem, strstr, strcasestr: fix bug with long periodic needle
64866         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64867         periodic needle having false positive.
64868         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64869         and cygwin 1.7.7.
64870         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64872         (gl_FUNC_STRCASESTR): Likewise.
64873         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64874         * tests/test-memmem.c (main): Expose the bug.
64875         * tests/test-strcasestr.c (main): Likewise.
64876         * tests/test-strstr.c (main): Likewise.
64877         * tests/test-c-strcasestr.c (main): Likewise.
64878         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64879         * doc/posix-functions/strstr.texi (strstr): Likewise.
64880         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64881         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64883 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64885         parse-datetime: do some more renaming
64886         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64887         parse_datetime, not get_date.  Mention the renaming.
64888         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64889         in comments.
64890         * m4/bison.m4: Likewise.
64892 2010-10-05  Eric Blake  <eblake@redhat.com>
64894         parse-datetime: better name than get_date
64895         * NEWS: Reword the deprecation notice.
64896         * modules/get_date: Rename to modules/parse-datetime.
64897         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64898         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64899         * lib/get_date.y: Rename to lib/parse-datetime.y.
64900         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64901         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64902         * doc/getdate.texi: Provide fallback wrapper.
64903         * lib/getdate.h: Move guts, and wrap...
64904         * lib/parse-datetime.h: ...new file.
64905         * lib/parse-datetime.y (get_date): Rename...
64906         (parse_datetime): ...to this.
64907         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64908         (gl_PARSE_DATETIME): ...to this.
64909         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64910         documentation.
64911         * modules/getdate (Files): Provide fallback docs and header.
64912         (Notice, Depends-on): Update references.
64913         * tests/test-parse-datetime.c: Likewise.
64914         * DEPENDENCIES: Likewise.
64915         * MODULES.html.sh (Date and time <time.h>): Likewise.
64916         * doc/parse-datetime.texi (Date input formats)
64917         (Authors of parse_datetime): Likewise.
64918         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64919         (Include): Likewise.
64920         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64921         * gnulib-tool: Likewise.
64922         * m4/bison.m4 (gl_BISON): Likewise.
64923         Suggested by Bruno Haible.
64925 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64927         more ports to Solaris tr, which needs [] around ranges
64928         * gnulib-tool: Solaris tr needs [] around ranges.
64929         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64930         * tests/test-pipe-filter-gi1.c (main): Likewise.
64931         * tests/test-pipe-filter-ii1.c (main): Likewise.
64933 2010-10-05  Eric Blake  <eblake@redhat.com>
64935         bootstrap: fix Solaris regression
64936         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64937         around ranges.
64938         Reported by Pádraig Brady.
64940         bootstrap: work with pkg-config
64941         * build-aux/bootstrap (check_versions): Also transliterate - in
64942         prerequisite name.
64943         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64944         prerequisites that were already found, to avoid confusion.
64945         Reported by Justin Clift.
64947         faccessat: remove unused wrappers
64948         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64949         presence of these wrappers dragged in -lgen on Solaris.
64950         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64952 2010-10-05  Jim Meyering  <meyering@redhat.com>
64954         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64955         * Makefile (sc_pragma_columns): New syntax-check rule.
64957 2010-10-04  Bruno Haible  <bruno@clisp.org>
64959         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64960         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64961         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64962         Reported by Bruce Korb and Eric Blake.
64964 2010-10-04  Bruno Haible  <bruno@clisp.org>
64966         threadlib: Make option --with-libpth-prefix work.
64967         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64968         use $LIBPTH, not just -lpth.
64970 2010-10-04  Bruno Haible  <bruno@clisp.org>
64972         Avoid line length limitation from HP NonStop system header files.
64973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64974         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64975         * lib/ctype.in.h: Likewise.
64976         * lib/dirent.in.h: Likewise.
64977         * lib/errno.in.h: Likewise.
64978         * lib/fcntl.in.h: Likewise.
64979         * lib/float.in.h: Likewise.
64980         * lib/getopt.in.h: Likewise.
64981         * lib/iconv.in.h: Likewise.
64982         * lib/inttypes.in.h: Likewise.
64983         * lib/langinfo.in.h: Likewise.
64984         * lib/locale.in.h: Likewise.
64985         * lib/math.in.h: Likewise.
64986         * lib/netdb.in.h: Likewise.
64987         * lib/netinet_in.in.h: Likewise.
64988         * lib/poll.in.h: Likewise.
64989         * lib/pthread.in.h: Likewise.
64990         * lib/pty.in.h: Likewise.
64991         * lib/sched.in.h: Likewise.
64992         * lib/se-selinux.in.h: Likewise.
64993         * lib/search.in.h: Likewise.
64994         * lib/signal.in.h: Likewise.
64995         * lib/spawn.in.h: Likewise.
64996         * lib/stdarg.in.h: Likewise.
64997         * lib/stddef.in.h: Likewise.
64998         * lib/stdint.in.h: Likewise.
64999         * lib/stdio.in.h: Likewise.
65000         * lib/stdlib.in.h: Likewise.
65001         * lib/string.in.h: Likewise.
65002         * lib/strings.in.h: Likewise.
65003         * lib/sys_file.in.h: Likewise.
65004         * lib/sys_ioctl.in.h: Likewise.
65005         * lib/sys_select.in.h: Likewise.
65006         * lib/sys_socket.in.h: Likewise.
65007         * lib/sys_stat.in.h: Likewise.
65008         * lib/sys_time.in.h: Likewise.
65009         * lib/sys_times.in.h: Likewise.
65010         * lib/sys_utsname.in.h: Likewise.
65011         * lib/sys_wait.in.h: Likewise.
65012         * lib/sysexits.in.h: Likewise.
65013         * lib/termios.in.h: Likewise.
65014         * lib/time.in.h: Likewise.
65015         * lib/unistd.in.h: Likewise.
65016         * lib/wchar.in.h: Likewise.
65017         * lib/wctype.in.h: Likewise.
65018         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
65019         * modules/ctype (Makefile.am): Likewise.
65020         * modules/dirent (Makefile.am): Likewise.
65021         * modules/errno (Makefile.am): Likewise.
65022         * modules/fcntl-h (Makefile.am): Likewise.
65023         * modules/float (Makefile.am): Likewise.
65024         * modules/getopt-posix (Makefile.am): Likewise.
65025         * modules/iconv-h (Makefile.am): Likewise.
65026         * modules/inttypes (Makefile.am): Likewise.
65027         * modules/langinfo (Makefile.am): Likewise.
65028         * modules/locale (Makefile.am): Likewise.
65029         * modules/math (Makefile.am): Likewise.
65030         * modules/netdb (Makefile.am): Likewise.
65031         * modules/netinet_in (Makefile.am): Likewise.
65032         * modules/poll-h (Makefile.am): Likewise.
65033         * modules/pthread (Makefile.am): Likewise.
65034         * modules/pty (Makefile.am): Likewise.
65035         * modules/sched (Makefile.am): Likewise.
65036         * modules/search (Makefile.am): Likewise.
65037         * modules/selinux-h (Makefile.am): Likewise.
65038         * modules/signal (Makefile.am): Likewise.
65039         * modules/spawn (Makefile.am): Likewise.
65040         * modules/stdarg (Makefile.am): Likewise.
65041         * modules/stddef (Makefile.am): Likewise.
65042         * modules/stdint (Makefile.am): Likewise.
65043         * modules/stdio (Makefile.am): Likewise.
65044         * modules/stdlib (Makefile.am): Likewise.
65045         * modules/string (Makefile.am): Likewise.
65046         * modules/strings (Makefile.am): Likewise.
65047         * modules/sys_file (Makefile.am): Likewise.
65048         * modules/sys_ioctl (Makefile.am): Likewise.
65049         * modules/sys_select (Makefile.am): Likewise.
65050         * modules/sys_socket (Makefile.am): Likewise.
65051         * modules/sys_stat (Makefile.am): Likewise.
65052         * modules/sys_time (Makefile.am): Likewise.
65053         * modules/sys_times (Makefile.am): Likewise.
65054         * modules/sys_utsname (Makefile.am): Likewise.
65055         * modules/sys_wait (Makefile.am): Likewise.
65056         * modules/sysexits (Makefile.am): Likewise.
65057         * modules/termios (Makefile.am): Likewise.
65058         * modules/time (Makefile.am): Likewise.
65059         * modules/unistd (Makefile.am): Likewise.
65060         * modules/wchar (Makefile.am): Likewise.
65061         * modules/wctype (Makefile.am): Likewise.
65063 2010-10-04  Bruno Haible  <bruno@clisp.org>
65065         read-file tests: Avoid a test failure on NonStop Kernel.
65066         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
65067         a regular file.
65068         Reported by Joachim Schmitz <schmitz@hp.com>.
65070 2010-10-03  Bruno Haible  <bruno@clisp.org>
65072         gnulib-tool: Fixes for --create-testdir with --libtool.
65073         * gnulib-tool (func_get_automake_snippet): Don't augment
65074         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
65075         an executable.
65076         (func_create_testdir): Handle module 'alloca' like func_import.
65077         Reported by Bruce Korb <bruce.korb@gmail.com>.
65079 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65081         Avoid some lines longer than 80 characters.
65082         * lib/stdint.in.h: Break long comment lines.
65083         * lib/math.in.h: Likewise.
65084         (_GL_NUM_UINT_WORDS): New macro, for readability.
65085         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
65086         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
65087         * lib/stdlib.in.h: Likewise.
65088         * lib/spawn.in.h: Likewise.
65089         * lib/sys_socket.in.h: Update an URL.
65090         * lib/sys_stat.in.h: Break long line.
65092 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
65094         Improve pmccabe2html.
65095         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
65096         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
65097         when the sources change. Remove the line in the HTML about "Used
65098         ranges" (which implied that there might be other unused ranges),
65099         rename "Resume" to "Summary" (easier to understand for more users).
65100         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
65101         styles, and some unnecessary blank lines.
65103 2010-10-03  Bruno Haible  <bruno@clisp.org>
65104             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
65106         acl: Add support for ACLs on NonStop Kernel.
65107         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
65108         Check whether the function aclsort() exists.
65109         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
65110         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
65111         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65112         (acl_nontrivial [HAVE_ACLSORT]: New function.
65113         (file_has_acl): Implement for NonStop Kernel.
65114         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65115         (qset_acl): Implement for NonStop Kernel.
65116         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
65117         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65118         (main): Implement for NonStop Kernel.
65119         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
65120         Kernel. Handle this flavor.
65121         * tests/test-set-mode-acl.sh: Likewise.
65122         * tests/test-copy-acl.sh: Likewise.
65123         * tests/test-copy-file.sh: Likewise.
65125 2010-10-03  Bruno Haible  <bruno@clisp.org>
65127         Info about ACLs on NonStop Kernel.
65128         * doc/acl-resources.txt: Add info about NonStop Kernel.
65129         References by Joachim Schmitz <schmitz@hp.com>.
65131 2010-10-02  Bruno Haible  <bruno@clisp.org>
65133         Define missing EDQUOT on NonStop Kernel.
65134         * lib/errno.in.h (EDQUOT): Assign a value if missing.
65135         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
65136         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
65137         missing.
65138         * doc/posix-headers/errno.texi: Mention the NSK bug.
65139         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
65140         Reported by Joachim Schmitz <schmitz@hp.com>.
65142 2010-10-02  Bruno Haible  <bruno@clisp.org>
65144         Update doc for POSIX:2008.
65145         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
65146         Update URL of POSIX specification.
65148 2010-10-02  Bruno Haible  <bruno@clisp.org>
65150         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
65151         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
65152         from gnulib, not from Automake.
65154 2010-10-02  Bruno Haible  <bruno@clisp.org>
65156         New module 'system-posix'.
65157         * modules/system-posix: New file.
65158         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
65159         module is present.
65160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65161         GNULIB_SYSTEM_POSIX.
65162         * modules/stdlib (Depends-on): Remove sys_wait.
65163         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
65164         * doc/posix-functions/system.texi: Mention the new module.
65165         * doc/posix-headers/stdlib.texi: Likewise.
65166         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
65167         define test_sys_wait_macros to a no-op.
65168         Reported by Sam Steingold <sds@gnu.org>.
65170 2010-09-30  Bruno Haible  <bruno@clisp.org>
65172         More renaming from 'getdate' to 'get_date'.
65173         * doc/get_date.texi: Renamed from doc/getdate.texi.
65174         * modules/get_date (Files): Update.
65175         * MODULES.html.sh (Date and time <time.h>): Update.
65176         * DEPENDENCIES: Update.
65177         * gnulib-tool: Update comment.
65178         * m4/bison.m4 (gl_BISON): Likewise.
65179         * m4/get_date.m4 (gl_GET_DATE): Likewise.
65181 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
65183         bootstrap: support ACLOCAL_FLAGS during aclocal
65184         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
65185         can add additional -I dir for third-party .m4 files.
65187 2010-09-30  Eric Blake  <eblake@redhat.com>
65189         bootstrap: use glibtoolize on MacOS
65190         * build-aux/bootstrap (check_versions): Convert libtool into
65191         libtoolize.
65192         (tool search): Move libtool check earlier, and look for
65193         glibtoolize for MacOS.
65194         (gnulib_tool_options): Auto-add --libtool when appropriate.
65195         Reported by Justin Clift.
65197         poll: fix typo that broke test on MacOS
65198         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
65199         Reported by Justin Clift.
65201         getdate: rename to get_date
65202         Note: getdate.h is not renamed, to minimize client impact.
65203         * modules/getdate: Mark obsolete.  Move old contents...
65204         * modules/get_date: ...to new module name.
65205         * modules/getdate-tests: Move...
65206         * modules/get_date-tests: ...here.
65207         * m4/getdate.m4: Move...
65208         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
65209         * lib/getdate.y: Move...
65210         * lib/get_date.y: ...here.
65211         * tests/test-getdate.c: Move...
65212         * tests/test-get_date.c: ...here.
65213         * doc/posix-functions/getdate.texi (getdate): Update name.
65214         * NEWS: Mention the change.
65216 2010-09-29  Bruno Haible  <bruno@clisp.org>
65218         Separate the module 'waitpid' from the module 'sys_wait'.
65219         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
65220         present.
65221         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
65222         gl_MODULE_INDICATOR_FOR_TESTS.
65223         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
65224         * modules/sys_wait (Depends-on): Remove waitpid.
65225         (Makefile.am): Substitute GNULIB_WAITPID.
65226         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
65227         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
65228         signature only if the 'waitpid' module is present.
65229         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
65230         * NEWS: Mention the change.
65231         * modules/grantpt (Depends-on): Add waitpid.
65232         * modules/wait-process (Depends-on): Likewise.
65234 2010-09-29  Bruno Haible  <bruno@clisp.org>
65236         More tests for module 'sys_wait'.
65237         * modules/sys_wait-c++-tests: New file.
65238         * tests/test-sys_wait-c++.cc: New file.
65239         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
65240         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65242 2010-09-29  Bruno Haible  <bruno@clisp.org>
65244         New module 'waitpid'.
65245         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
65246         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
65247         Don't include <process.h>.
65248         (waitpid): Declare only, using modern idiom.
65249         * m4/waitpid.m4: New file.
65250         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
65251         * modules/waitpid: New file.
65252         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
65253         (Makefile.am): Update.
65254         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65256 2010-09-28  Bruno Haible  <bruno@clisp.org>
65258         poll: Assume ANSI C.
65259         * lib/poll.c (poll): Use an ANSI C declaration.
65261 2010-09-28  Bruno Haible  <bruno@clisp.org>
65263         poll-h: Create poll.h on all platforms.
65264         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
65265         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
65266         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
65267         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
65268         (gl_REPLACE_POLL_H): Don't set POLL_H.
65269         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
65270         * modules/poll-h (Depends-on): Add include_next.
65271         (Makefile.am): Create poll.h unconditionally. Substitute also
65272         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
65274 2010-09-28  Bruno Haible  <bruno@clisp.org>
65276         Tests for module 'poll-h'.
65277         * modules/poll-h-c++-tests: New file.
65278         * tests/test-poll-h-c++.cc: New file.
65280         Tests for module 'poll-h'.
65281         * modules/poll-h-tests: New file.
65282         * tests/test-poll-h.c: New file.
65284 2010-09-28  Bruno Haible  <bruno@clisp.org>
65286         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
65287         * modules/poll-h (Depends-on): Add 'extensions'.
65289 2010-09-28  Bruno Haible  <bruno@clisp.org>
65291         New module 'poll-h'.
65292         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
65293         (poll): Use modern idiom.
65294         * modules/poll-h: New file.
65295         * modules/poll (Files): Remove lib/poll.in.h.
65296         (Depends-on): Add poll-h.
65297         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
65298         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
65299         * m4/poll_h.m4: New file.
65300         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
65301         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
65302         and invoke gl_REPLACE_POLL_H.
65303         * lib/poll.c: Use common idiom.
65304         * tests/test-poll.c: Likewise.
65305         * doc/posix-headers/poll.texi: Mention the poll-h module.
65306         Suggested by Eric Blake.
65308 2010-09-26  Bruno Haible  <bruno@clisp.org>
65310         sys_wait: Implement WSTOPSIG.
65311         * lib/sys_wait.in.h (WSTOPSIG): New macro.
65312         Reported by Simon Josefsson.
65314 2010-09-26  Simon Josefsson  <simon@josefsson.org>
65316         stdlib, sys_wait: Avoid compilation error on mingw.
65317         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
65319 2010-09-26  Bruno Haible  <bruno@clisp.org>
65321         stdlib tests: Avoid code duplication.
65322         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
65323         * modules/sys_wait-tests (Files): Likewise.
65324         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
65325         * tests/test-stdlib.c: Include test-sys_wait.h.
65326         (main): Invoke test_sys_wait_macros.
65327         * tests/test-sys_wait.c: Include test-sys_wait.h.
65328         (main): Invoke test_sys_wait_macros.
65330 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65332         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65333         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65334         sure Windows sockets are working before calling getaddrinfo.
65335         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65336         * doc/gnulib.texi (Windows sockets): Fix typo.
65338 2010-09-25  Bruno Haible  <bruno@clisp.org>
65340         Tests for module 'regex-quote'.
65341         * modules/regex-quote-tests: New file.
65342         * tests/test-regex-quote.c: New file.
65344         New module 'regex-quote'.
65345         * lib/regex-quote.h: New file.
65346         * lib/regex-quote.c: New file.
65347         * modules/regex-quote: New file.
65348         Suggested by Reuben Thomas <rrt@sc3d.org>.
65350 2010-09-24  Bruno Haible  <bruno@clisp.org>
65352         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65353         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65355 2010-09-23  Bruno Haible  <bruno@clisp.org>
65357         setenv: Relax license.
65358         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65359         Blake.
65360         Requested by Eric Blake.
65362 2010-09-22  Bruno Haible  <bruno@clisp.org>
65364         termios: Relax license.
65365         * modules/termios (License): Change to LGPLv2+.
65366         Requested by Eric Blake.
65368 2010-09-22  Bruno Haible  <bruno@clisp.org>
65370         threadlib: Allow the package to change the default to 'no'.
65371         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65372         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65373         Reported by Paul Eggert.
65375 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65376             Bruno Haible  <bruno@clisp.org>
65378         Fix endless loop in mbmemcasecoll.
65379         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65380         byte.
65381         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65383 2010-09-22  Bruno Haible  <bruno@clisp.org>
65385         Tests for module 'memcoll'.
65386         * modules/memcoll-tests: New file.
65387         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65389         memcoll, xmemcoll: Clarify size vs. length.
65390         * modules/memcoll.c (memcoll0): Clarify specification.
65391         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65392         passed to collate_error.
65394 2010-09-22  Bruno Haible  <bruno@clisp.org>
65396         Tests for module 'memcasecmp'.
65397         * modules/memcasecmp-tests: New file.
65398         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65400 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65402         * lib/pthread.in.h: Add split double-inclusion guard, and include
65403         system <pthread.h> if there is one.  Use @@-style as in other
65404         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65405         pthread.h doesn't.
65406         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65407         (pthread_mutexattr_settype, pthread_mutex_trylock):
65408         New static inline functions, if there's no system <pthread.h>.
65409         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65410         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65411         Approximate with mutexes if the system lacks spinlocks, as in
65412         MacOS.
65413         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65414         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65415         @@-style.  Check for spinlocks separately.
65416         (gl_PTHREAD_DEFAULTS): New macro.
65417         * modules/pthread: Redo to use a more typical style for in.h files.
65419 2010-09-21  Eric Blake  <eblake@redhat.com>
65421         net_if: enhance tests
65422         * tests/test-net_if.c (main): Move signature checks earlier.
65423         Print failures to stderr.
65424         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65425         Document the bug that we do not yet fix.
65427 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65429         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65430         about gnulib, not GSS.
65432 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65434         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65435         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65436         for Emacs.
65437         * build-aux/pmccabe2html: Make Makefile.am example code more
65438         cut-and-paste friendly.
65440 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65442         * tests/test-net_if.c: New file.
65443         * modules/net_if-tests: New file.
65445 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65447         pthread: add pthread_spin_destroy
65448         * lib/pthread.in.h (pthread_spin_destroy): New function.
65450 2010-09-19  Bruno Haible  <bruno@clisp.org>
65452         gnulib-tool: Fix --help output.
65453         * gnulib-tool (func_usage): Fix help message.
65454         Reported by Reuben Thomas <rrt@sc3d.org>.
65456 2010-09-18  Jim Meyering  <meyering@redhat.com>
65458         maint.mk: avoid unexpanded \n in two diagnostics
65459         * top/maint.mk (sc_prohibit_always_true_header_tests):
65460         Don't use a literal \n in a halt=... assignment.  It would not be
65461         expanded, and the two \n bytes would appear in the diagnostic output
65462         rather than the desired newline.  Use halt=$$(printf ... instead.
65463         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65465 2010-09-18  Bruno Haible  <bruno@clisp.org>
65467         netinet_in: Doc tweak.
65468         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65469         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65471 2010-09-18  Jim Meyering  <meyering@redhat.com>
65473         init.sh: correct an outdated comment
65474         * tests/init.sh (create_exe_shims_):  s/function/alias/
65476         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65477         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65478         a file named "*.exe" is removed between the glob expansion and the
65479         processing of that oddly named file.
65481 2010-09-17  Eric Blake  <eblake@redhat.com>
65483         mirbsd: add some more support
65484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65485         in BSD family.
65486         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65487         devices as OpenBSD.
65488         * m4/host-os.m4 (mirbsd): Add MirBSD.
65490         tests: fix unportable assumption on sys/wait.h
65491         * tests/test-sys_wait.c (main): Relax test.
65492         * tests/test-stdlib.c (main): Likewise.
65494         init.sh: accommodate directory with no .exes
65495         * tests/init.sh: Accomodate directory containing only scripts.
65497         tests: avoid compiler warning
65498         * tests/test-stdlib.c (main): Use the variable.
65500         fdutimens, fdutimensat: update signature, again
65501         * lib/utimens.h (gl_futimens): Delete, and move signature...
65502         (fdutimens): ...here.
65503         (fdutimensat): Rearrange signature.
65504         (lutimensat): Rename variable for clarity.
65505         * lib/fdutimensat.c (fdutimensat): Update signature.
65506         * lib/utimens.c (fdutimens): Likewise.
65507         (gl_futimens): Delete.
65508         (utimens, lutimens): Update callers.
65509         * lib/futimens.c (futimens): Likewise.
65510         * tests/test-fdutimensat.c: Likewise.
65511         * tests/test-utimens.c: Likewise.
65512         * tests/test-futimens.h: Update comment.
65513         * NEWS: Mention this.
65514         Suggested by Paul Eggert.
65516 2010-09-17  Bruno Haible  <bruno@clisp.org>
65518         Take over the maintenance of some older macros from Autoconf.
65519         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65520         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65521         GNU Autoconf.
65522         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65523         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65525 2010-09-17  Eric Blake  <eblake@redhat.com>
65527         fdutimensat: drop atflag validation
65528         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65529         with valid fd, to close a race scenario where futimens is
65530         unsupported and FILE was replaced by a symlink.
65531         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65532         accordingly.
65533         Suggested by Paul Eggert.
65535 2010-09-16  Bruno Haible  <bruno@clisp.org>
65537         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65538         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65540 2010-09-16  Bruno Haible  <bruno@clisp.org>
65542         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65543         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65544         login_tty exists.
65545         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65547 2010-09-16  Bruno Haible  <bruno@clisp.org>
65549         login_tty: Make the replacement code work on BSD systems.
65550         * lib/login_tty.c: Include <sys/ioctl.h>.
65551         (login_tty): Use ioctl TIOCSCTTY when available.
65552         * modules/login_tty (Depends-on): Add sys_ioctl.
65553         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65555 2010-09-16  Bruno Haible  <bruno@clisp.org>
65557         login_tty: Stricter unit test.
65558         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65559         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65560         and tcgetsid() after login_tty.
65561         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65563 2010-09-16  Bruno Haible  <bruno@clisp.org>
65565         New module 'tcgetsid'.
65566         * lib/tcgetsid.c: New file.
65567         * m4/tcgetsid.m4: New file.
65568         * modules/tcgetsid: New file.
65569         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65570         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65571         GNULIB_TCGETSID, HAVE_TCGETSID.
65572         * lib/termios.in.h: Include <sys/types.h>.
65573         (tcgetsid): New declaration.
65574         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65575         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65576         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65577         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65579 2010-09-16  Bruno Haible  <bruno@clisp.org>
65581         Tests for module 'termios'.
65582         * modules/termios-c++-tests: New file.
65583         * modules/termios-tests: New file.
65584         * tests/test-termios-c++.cc: New file.
65585         * tests/test-termios.c: New file.
65587         New module 'termios'.
65588         * modules/termios: New file.
65589         * lib/termios.in.h: New file.
65590         * m4/termios_h.m4: New file.
65591         * doc/posix-headers/termios.texi: Mention the new module.
65593 2010-09-16  Eric Blake  <eblake@redhat.com>
65595         fdutimensat: add an atflag parameter
65596         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65597         * lib/utimens.h (fdutimensat): Update prototype.
65598         * tests/test-fdutimensat.c: Adjust test to match.
65599         * NEWS: Document the change.
65600         Suggested by Paul Eggert.
65602 2010-09-16  Bruno Haible  <bruno@clisp.org>
65604         Fix typos in comments.
65605         * lib/striconveh.h: Fix typo in comment.
65606         * lib/login_tty.c (login_tty): Likewise.
65608 2010-09-15  Bruno Haible  <bruno@clisp.org>
65610         stdlib: clarify MirBSD WEXITSTATUS bug
65611         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65612         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65614 2010-09-15  Eric Blake  <eblake@redhat.com>
65616         stdlib: work around MirBSD WEXITSTATUS bug
65617         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65618         * modules/stdlib (Depends-on): Add sys_wait.
65619         * tests/test-sys_wait.c (main): Enhance test.
65620         * tests/test-stdlib.c (main): Likewise.
65621         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65623         docs: mention MacOS issue with WEXITSTATUS(constant)
65624         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65625         issue.
65626         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65628         strnlen: add tests
65629         * modules/strnlen-tests: New file.
65630         * tests/test-strnlen.c: Likewise.
65632 2010-09-14  Bruno Haible  <bruno@clisp.org>
65634         unistr/base: Avoid link errors when module 'libunistring' is also used.
65635         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65636         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65637         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65638         Declare also when HAVE_LIBUNISTRING is set.
65639         Reported by Pádraig Brady <P@draigbrady.com>.
65641 2010-09-14  Eric Blake  <eblake@redhat.com>
65643         test-rawmemchr: make more robust
65644         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65645         (Depends-on, configure.ac): Add needed prerequisites to use it.
65646         * modules/memchr-tests (Files, Depends-on, configure.ac):
65647         Likewise, to avoid implicit reliance on memchr module prereqs.
65648         * tests/test-memchr.c (main): Ensure proper masking.
65649         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65650         reads.
65652         memchr: detect glibc Alpha bug
65653         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65654         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65655         Alpha.
65656         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65657         * tests/test-memchr.c (main): Enhance test.
65658         Reported by Nelson H. F. Beebe.
65660 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65662         fts, getcwd, glob: audit for dirfd returning -1
65663         * lib/fts.c (opendir): Remove #define; no longer used.
65664         (opendirat): New arg PDIR_FD.  All callers changed.
65665         (fts_build, _opendir2): Use new opendirat to avoid the need for
65666         dirfd, or for checking whether dirfd returns a negative value.
65667         Don't use opendir; always use openat followed by fdopendir.
65668         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65669         it.
65670         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65671         returns -1 here.
65672         * modules/fts (Depends-on): Remove dirfd.
65673         * modules/getcwd (Depends-on): Likewise.
65675 2010-09-13  Eric Blake  <eblake@redhat.com>
65677         float: fix broken MirBSD header
65678         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65679         * doc/posix-headers/float.texi (float.h): Document it.
65681 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65683         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65684         * lib/fts.c (opendirat): New arg extra_flags.
65685         (__opendir2): Use it to avoid following symlinks when opening
65686         a directory, if symlinks are not supposed to be followed.  See
65687         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65689         fdopendir: preserve argument fd before returning
65690         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65691         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65692         (fdopendir): Use them, arranging for FD to be open to the same
65693         directory that it was when it started.  (It might be temporarily
65694         closed while fdopendir is running, so this not thread- or
65695         signal-safe.)  Be careful to do the right thing even when file
65696         descriptors are scarce and dup fails with errno == EMFILE.  See
65697         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65699 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65701         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65702         * NEWS: Document change.
65703         * m4/regex.m4: Disable test for regoff_t size.
65705 2010-09-13  Jim Meyering  <meyering@redhat.com>
65707         fts: don't operate on an invalid file descriptor after failed dup
65708         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65709         negative file descriptor.
65711 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65713         savedir: add streamsavedir, deprecate fdsavedir
65714         * NEWS: Mention deprecation of fdsavedir.
65715         * lib/savedir.c (streamsavedir): New extern function, whose name
65716         ends in "savedir" to be consistent with the others.  This differs
65717         from savedirstream in that it doesn't close its argument.  The
65718         next version of GNU tar will use this instead of fdsavedir, to
65719         avoid some race conditions and conserve file descriptors.
65720         (savedirstream): Reimplement as a wrapper around streamsavedir.
65721         (fdsavedir): Add a comment deprecating this function.  As far as
65722         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65723         * lib/savedir.h (streamsavedir): New decl.
65724         (fdsavedir): Add a comment deprecating this.
65726 2010-09-10  Bruno Haible  <bruno@clisp.org>
65728         langinfo: Fix last commit.
65729         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65730         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65733 2010-09-10  Bruno Haible  <bruno@clisp.org>
65735         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65736         * lib/progreloc.c (O_EXEC): Define fallback.
65738 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65740         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65741         * NEWS: Document recent changes to fcntl-h.
65742         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65743         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65744         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65745         Similarly for O_SEARCH; this last was already true, but not documented.
65746         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65747         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65748         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65749         Likewise.
65750         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65751         is zero, not whether it is defined.
65752         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65753         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65754         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65756 2010-09-10  Bruno Haible  <bruno@clisp.org>
65758         langinfo, nl_langinfo: Fix for IRIX 5.3.
65759         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65760         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65761         HAVE_LANGINFO_YESEXPR.
65762         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65763         HAVE_LANGINFO_YESEXPR.
65764         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65765         HAVE_LANGINFO_T_FMT_AMPM is 0.
65766         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65767         HAVE_LANGINFO_YESEXPR is 0.
65768         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65769         NOEXPR.
65770         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65771         * doc/posix-functions/nl_langinfo.texi: Likewise.
65772         Reported by Eric Blake.
65774 2010-09-10  Bruno Haible  <bruno@clisp.org>
65776         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65777         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65778         on FreeBSD 8.0 and OpenBSD 4.6.
65779         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65780         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65781         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65782         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65783         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65784         ac_includes_default.
65785         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65787 2010-09-09  Eric Blake  <eblake@redhat.com>
65789         strsignal: work around NetBSD bug
65790         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65791         * lib/string.in.h (includes): Likewise.
65792         * doc/posix-functions/strsignal.texi (strsignal): Document the
65793         bug.
65794         Reported by Nelson H. F. Beebe.
65796         gnulib-tool: work with NetBSD /bin/sh
65797         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65798         (func_get_description, func_get_comment, func_get_status)
65799         (func_get_notice, func_get_applicability, func_get_filelist)
65800         (func_get_dependencies, func_get_autoconf_early_snippet)
65801         (func_get_autoconf_snippet, func_get_automake_snippet)
65802         (func_get_include_directive, func_get_link_directive)
65803         (func_get_license, func_get_maintainer, func_import): Avoid
65804         shell syntax errors from parsing syntax extensions.
65806 2010-09-09  Bruno Haible  <bruno@clisp.org>
65808         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65809         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65810         a reliable way to determine whether the 'alias' command works.
65812 2010-09-08  Jim Meyering  <meyering@redhat.com>
65814         init.sh: penalize a set-x-impaired shell; don't disqualify it
65815         * tests/init.sh: Too many shells corrupt application stderr when
65816         you set -x, so we can't afford to disqualify them, since at least
65817         on Irix-6.5, that would disqualify all bourne shells.
65818         Instead, use a two-pass approach.
65819         On the first pass, try to find a shell that meets the stricter
65820         condition that set -x does not corrupt stderr.
65821         If no shell meets the stricter condition, retest each candidate
65822         shell, but without that extra condition.  Finally, when
65823         VERBOSE=yes is requested and set -x might cause trouble, simply
65824         issue a warning and refrain from enabling debug output.
65826 2010-09-08  Eric Blake  <eblake@redhat.com>
65828         unsetenv: fix OpenBSD bug
65829         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65830         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65831         documentation.
65832         Reported by Jim Meyering.
65834         strtod: work around IRIX 6.5 bug
65835         * lib/strtod.c (strtod): Reparse number on shorter string if
65836         exponent parse was invalid.
65837         * tests/test-strtod.c (main): Add check for "0x1p 2".
65838         Reported by Tom G. Christensen.
65840         getopt: optimize previous patch
65841         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65842         empty variable.  Speed up awk script.
65843         Reported by Paolo Bonzini.
65845 2010-09-08  Jim Meyering  <meyering@redhat.com>
65847         test.sh: disqualify shells for which set -x corrupts stderr
65848         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65849         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65850         appear in stderr output.  For example, this command:
65851             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65852         prints "P=1" on those two systems:
65854 2010-09-08  Bruno Haible  <bruno@clisp.org>
65856         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65857         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65858         commands, because some shells ignore redirections when there is an
65859         error in the command lookup.
65860         Reported by Eric Blake.
65862 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65864         * lib/regex.h: Fix a mention of `regex_compile' (should be
65865         `re_compile_pattern').
65866         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65867         (re_set_registers): Correct name of parameter in comment.
65869         * doc/regex.texi: Add documentation for missing syntax flags.
65870         Remove commented-out documentation of defunct syntax option
65871         RE_NO_EMPTY_ALTS.
65872         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65873         Add documentation of re_set_registers.
65874         Document trick to re-use a pattern buffer by setting fastmap manually.
65875         Update documentation of struct re_pattern_buffer per public members.
65876         Uncomment documentation of equivalence class operators and
65877         collating symbol operators, since they are now implemented,
65878         Explain leftmost-longest matching in relation to alternatives.
65879         Tidy documentation of substring matching.
65880         Remove POSIX documentation, which is done better in
65881         glibc, and refer the reader there. Keep BSD API documentation, as
65882         that is not readily available elsewhere.
65884 2010-09-07  Eric Blake  <eblake@redhat.com>
65886         getopt: handle POSIXLY_CORRECT set but not exported
65887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65888         export state of POSIXLY_CORRECT, due to bash set -o posix.
65889         Reported by Dustin J. Mitchell.
65891 2010-09-05  Bruno Haible  <bruno@clisp.org>
65893         gnulib-tool: Highlight the changed options.
65894         * gnulib-tool (func_usage): Display the --import, --add-import,
65895         --remove-import explanations in bold font.
65897 2010-09-06  Karl Berry  <karl@gnu.org>
65899         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65901 2010-09-05  Bruno Haible  <bruno@clisp.org>
65903         uniwidth/width: Update comment.
65904         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65905         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65907 2010-09-05  Bruno Haible  <bruno@clisp.org>
65909         isinf, isnan: Relax license.
65910         * modules/isinf (License): Change from GPL to LGPL, with consent from
65911         Ben Pfaff.
65912         * modules/isnan (License): Likewise.
65913         Requested by Ludovic Courtès.
65915 2010-09-04  Bruno Haible  <bruno@clisp.org>
65917         gnulib-tool: Help migration from --import to --add-import or --update.
65918         * gnulib-tool: Emit a verbose error message when --import is used
65919         without any module name.
65921 2010-09-04  Bruno Haible  <bruno@clisp.org>
65923         Update doc about gnulib-tool.
65924         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65925         'gnulib-tool --update' in more detail.
65926         Reported by Eric Blake.
65928 2010-09-04  Bruno Haible  <bruno@clisp.org>
65930         gnulib-tool: Change --import. New options --add/remove-import.
65931         * gnulib-tool: New options --add-import, --remove-import.
65932         (func_usage): Document them.
65933         (have_associative): Define always.
65934         (func_import): In import mode, don't merge the specified settings with
65935         the cached settings. Implement remove-import mode.
65936         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65937         Explain when to use them versus --import.
65938         (Simple update): Use --add-import instead of --import.
65939         * NEWS: Mention the change.
65941 2010-09-04  Bruno Haible  <bruno@clisp.org>
65943         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65944         separate gnulib.mk.
65946 2010-09-04  Bruno Haible  <bruno@clisp.org>
65948         gnulib-tool: Don't talk about CVS any more.
65949         * gnulib-tool (func_usage, func_import): Write "version control"
65950         instead of CVS.
65952 2010-09-04  Jim Meyering  <meyering@redhat.com>
65954         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65955         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65956         false positives (whose names may be ill-chosen) when searching
65957         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65958         would cause a false-positive.
65960         avoid coreutils "make distcheck" failure
65961         Coreutils tests with an absolute build directory name that contains
65962         a space.  Not quoting this directory name caused a failure.
65963         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65964         * tests/test-vc-list-files-cvs.sh: Likewise.
65966 2010-09-04  Bruno Haible  <bruno@clisp.org>
65968         gnulib-tool: Avoid error when run in a package without Makefile.am.
65969         * gnulib-tool: When collecting the m4dirs in a package that does not
65970         have a Makefile.am, eliminate those directories that contain no
65971         gnulib-cache.m4. Fix expression that counts these directories.
65973 2010-09-04  Bruno Haible  <bruno@clisp.org>
65975         update-copyright test: Improve output when perl is missing or too old.
65976         * tests/test-update-copyright.sh: Move test of Perl version down after
65977         the test whether Perl exists. Provide an explanation relating Perl's
65978         error message to Automake's SKIP: message.
65980 2010-09-04  Bruno Haible  <bruno@clisp.org>
65982         Don't augment PATH in TESTS_ENVIRONMENT.
65983         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65984         set abs_aux_dir instead of augmenting PATH.
65985         * modules/vc-list-files-tests (Makefile.am): Likewise.
65986         * tests/test-update-copyright.sh: Augment PATH here.
65987         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65988         path_prepend_.
65989         * tests/test-vc-list-files-git.sh: Likewise.
65991 2010-09-04  Jim Meyering  <meyering@redhat.com>
65993         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65994         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65996 2010-09-04  Bruno Haible  <bruno@clisp.org>
65998         strdup: Fix compilation error in C++ mode.
65999         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
66000         the macro.
66002 2010-09-04  Bruno Haible  <bruno@clisp.org>
66004         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
66005         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
66006         macro into a function.
66007         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66009 2010-09-04  Bruno Haible  <bruno@clisp.org>
66011         Set PATH_SEPARATOR the same way autoconf does.
66012         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
66013         the value of PATH_SEPARATOR the same way autoconf-generated configure
66014         scripts do.
66015         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
66016         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66018 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
66020         Set PATH_SEPARATOR the same way autoconf does.
66021         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
66022         the same way autoconf-generated configure scripts do.
66023         * posix-modules: Likewise.
66025 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66027         hash: fix safe_hasher const typo
66028         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
66029         const; otherwise, there is a type error later.
66031 2010-09-02  Jim Meyering  <meyering@redhat.com>
66033         test-update-copyright.sh: require perl 5.8.0
66034         * tests/test-update-copyright.sh: Require 5.8.0,
66035         which Tom G. Christensen has confirmed is adequate,
66036         while 5.6.1 is not.
66038 2010-09-02  Eric Blake  <eblake@redhat.com>
66040         tests: init.sh improvements for re-exec'ing with zsh
66041         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
66042         -vx through shell re-exec.
66043         Reported by Tom G. Christensen.
66045         wctype: fix typo in previous commit
66046         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
66047         Reported by Ludovic Courtès.
66049 2010-09-02  Jim Meyering  <meyering@redhat.com>
66051         test-update-copyright.sh: skip test if Perl is too old
66052         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
66053         Reported by Tom G. Christensen.
66055 2010-09-02  Bruno Haible  <bruno@clisp.org>
66057         wctype: Avoid compilation error on IRIX 6.5.30.
66058         * lib/wctype.in.h (iswblank): Declare with a replacement if
66059         REPLACE_ISWBLANK is set.
66060         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
66061         declared. Set REPLACE_ISWBLANK.
66062         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
66063         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
66064         * doc/posix-headers/wctype.texi: Likewise.
66065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66067 2010-09-01  Bruno Haible  <bruno@clisp.org>
66069         New module 'socketlib'.
66070         * modules/socketlib: New file.
66071         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
66072         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
66073         * modules/sockets (Depends-on): Add socketlib.
66074         Suggested by Sam Steingold <sds@gnu.org>.
66076 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66078         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
66080         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
66081         when one needs search access to a directory but not read access.
66082         On systems where it is available, it works in some cases where
66083         O_RDONLY does not, namely on directories that are searchable but
66084         not readable, and which need only to be searchable.  If O_SEARCH
66085         is not available, fall back to the traditional method of using
66086         O_RDONLY.
66088         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
66089         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
66090         when opening a directory that needs only to be searchable.
66091         * lib/chdir-safer.c (chdir_no_follow): Likewise.
66092         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
66093         * lib/openat-proc.c (openat_proc_name): Likewise.
66094         * lib/openat.c (openat_needs_fchdir): Likewise.
66095         * lib/save-cwd.c (save_cwd): Likewise.
66096         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
66098 2010-08-28  Bruno Haible  <bruno@clisp.org>
66100         New module 'host-cpu-c-abi'.
66101         * modules/host-cpu-c-abi: New file.
66102         * m4/host-cpu-c-abi.m4: New file, based on part of
66103         clisp/src/m4/general.m4.
66104         Requested by Sam Steingold <sds@gnu.org>.
66106 2010-08-31  Eric Blake  <eblake@redhat.com>
66107         and Jim Meyering  <meyering@redhat.com>
66109         hash: factor, and guard against misbehaving hasher function
66110         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
66111         of table->hasher's return value.  Also protect against a hash value
66112         so large that adding it to table->bucket results in a NULL pointer.
66113         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
66114         Use it in place of open-coded check-and-abort.
66116 2010-08-30  Bruno Haible  <bruno@clisp.org>
66118         hash: silence spurious clang warning
66119         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
66120         Reported by Eric Blake.
66122 2010-08-30  Eric Blake  <eblake@redhat.com>
66124         strstr, memmem, strcasestr: avoid leaked shell message
66125         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
66126         FreeBSD.
66127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66130         tests: silence clang warning
66131         * tests/test-malloca.c (do_allocation): Avoid dead store.
66133 2010-08-29  Bruno Haible  <bruno@clisp.org>
66135         gettext: Fix recent mistake.
66136         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
66138 2010-08-29  Bruno Haible  <bruno@clisp.org>
66140         selinux-h: Offer a --without-selinux option.
66141         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
66142         --without-selinux was specified, skip all tests and define
66143         HAVE_SELINUX_SELINUX_H to 0.
66144         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
66145         set LIB_SELINUX to empty.
66146         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
66147         gl_LIBSELINUX. If --without-selinux was specified, replace
66148         selinux/context.h.
66149         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
66151 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66152             Bruno Haible  <bruno@clisp.org>
66154         Make the module 'realloc-gnu' work again on AIX and OSF/1.
66155         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
66156         of HAVE_REALLOC.
66157         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
66158         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
66159         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
66160         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66162 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66163             Bruno Haible  <bruno@clisp.org>
66165         Make the module 'calloc-gnu' work again on AIX and OSF/1.
66166         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
66167         HAVE_CALLOC.
66168         * lib/xmalloc.c: Update accordingly.
66169         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
66170         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
66171         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
66173 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66174             Bruno Haible  <bruno@clisp.org>
66176         Make the module 'malloc-gnu' work again on AIX and OSF/1.
66177         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
66178         HAVE_MALLOC.
66179         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
66180         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
66181         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66183 2010-08-29  Bruno Haible  <bruno@clisp.org>
66185         Update modules list.
66186         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66187         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
66188         (String handling <string.h>): Add astrxfrm.
66189         (File system functions): Add readlinkat.
66191 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66193         Tests for module 'realloc-gnu'.
66194         * modules/realloc-gnu-tests: New file.
66195         * tests/test-realloc-gnu.c: New file.
66197         Tests for module 'calloc-gnu'.
66198         * modules/calloc-gnu-tests: New file.
66199         * tests/test-calloc-gnu.c: New file.
66201         Tests for module 'malloc-gnu'.
66202         * modules/malloc-gnu-tests: New file.
66203         * tests/test-malloc-gnu.c: New file.
66205 2010-08-28  Bruno Haible  <bruno@clisp.org>
66207         Rename module 'realloc' -> 'realloc-gnu'.
66208         * modules/realloc-gnu: New file, copied from modules/realloc.
66209         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
66210         obsolete.
66211         * modules/mgetgroups (Depends-on): Update.
66212         * doc/posix-functions/realloc.texi: Update.
66213         * NEWS: Mention the change.
66215         Rename module 'calloc' -> 'calloc-gnu'.
66216         * modules/calloc-gnu: New file, copied from modules/calloc.
66217         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
66218         obsolete.
66219         * doc/posix-functions/calloc.texi: Update.
66220         * NEWS: Mention the change.
66222         Rename module 'malloc' -> 'malloc-gnu'.
66223         * modules/malloc-gnu: New file, copied from modules/malloc.
66224         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
66225         obsolete.
66226         * modules/argp (Depends-on): Update.
66227         * modules/regex (Depends-on): Update.
66228         * doc/posix-functions/malloc.texi: Update.
66229         * NEWS: Mention the change.
66231 2010-08-28  Eric Blake  <eblake@redhat.com>
66233         pread, pwrite: add missing dependency
66234         * modules/pread (Depends-on): Add extensions.
66235         * modules/pwrite (Depends-on): Likewise.
66237 2010-08-28  Bruno Haible  <bruno@clisp.org>
66239         unistr/u*-strchr: Fix tests dependencies.
66240         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
66241         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
66242         Reported by Ian Beckwith <ianb@erislabs.net>.
66244 2010-08-28  Bruno Haible  <bruno@clisp.org>
66246         read-file: Don't occupy too much unused memory.
66247         * lib/read-file.c (fread_file): Shrink the buffer at the end.
66249 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
66250             Eric Blake  <eblake@redhat.com>
66251             Bruno Haible  <bruno@clisp.org>
66253         read-file: Avoid memory reallocations with regular files.
66254         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
66255         (fread_file): With regular files, use the remaining length as the
66256         initial buffer size.  Check against overflow.
66257         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
66258         sys_stat.
66260 2010-08-28  Bruno Haible  <bruno@clisp.org>
66262         ftello: Relax license.
66263         * modules/ftello (License): Relax to LGPLv2+.
66264         Reported by Eric Blake.
66266 2010-08-28  Bruno Haible  <bruno@clisp.org>
66268         Avoid relocwrapper link errors due to gnulib replacement functions.
66269         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
66270         function.
66271         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66273 2010-08-28  Bruno Haible  <bruno@clisp.org>
66275         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
66276         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
66277         defined.
66278         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
66279         Suggested by Eric Blake.
66281 2010-08-28  Bruno Haible  <bruno@clisp.org>
66283         sys_socket, netdb: Ensure socklen_t gets defined.
66284         * modules/sys_socket (Depends-on): Add socklen.
66285         * modules/netdb (Depends-on): Likewise.
66286         * modules/getaddrinfo (Depends-on): Remove socklen.
66287         * modules/getsockopt (Depends-on): Likewise.
66288         * modules/setsockopt (Depends-on): Likewise.
66289         * tests/test-sys_socket.c: Check that socklen_t is defined.
66290         * tests/test-netdb.c: Likewise.
66291         * m4/socklen.m4: Update comments.
66292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66294 2010-08-27  Eric Blake  <eblake@redhat.com>
66296         login_tty: add missing dependency
66297         * modules/login_tty (Depends-on): Add pty.
66299 2010-08-26  Eric Blake  <eblake@redhat.com>
66301         lib-symbol-versions: fix m4 quoting
66302         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
66303         format for AC_LINK_IFELSE.
66305         glob: fix compile test
66306         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
66308         btowc: fix missing file
66309         * modules/btowc (Files): Also ship locale-fr.m4.
66311         lseek: fix link test
66312         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
66313         AC_LINK_IFELSE.
66315         include_next: silence autoconf 2.68 warning
66316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
66317         AC_COMPILE_IFELSE as special.
66318         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
66319         autoconf < 2.68.
66321         acl: fix compilation test
66322         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
66323         AC_COMPILE_IFELSE.
66325 2010-08-26  Bruno Haible  <bruno@clisp.org>
66327         Modernize AC_TRY_RUN invocations.
66328         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66329         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66330         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66331         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66332         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66333         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66335         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66336         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66337         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66338         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66339         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66341         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66343         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66344         gl_MBRLEN_NUL_RETVAL): Likewise.
66345         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66346         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66347         Likewise.
66348         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66349         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66350         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66351         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66352         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66353         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66354         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66355         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66356         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66357         Likewise.
66358         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66359         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66362         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66364         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66365         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66366         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66367         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66369 2010-08-26  Bruno Haible  <bruno@clisp.org>
66371         Modernize AC_TRY_LINK invocations.
66372         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66373         AC_TRY_LINK.
66374         * m4/argp.m4 (gl_ARGP): Likewise.
66375         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66376         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66377         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66378         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66379         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66380         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66381         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66382         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66383         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66384         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66385         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66386         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66387         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66388         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66389         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66390         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66391         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66392         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66393         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66394         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66395         Likewise.
66396         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66397         Likewise.
66398         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66399         Likewise.
66400         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66402         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66403         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66404         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66405         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66406         * m4/servent.m4 (gl_SERVENT): Likewise.
66407         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66408         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66409         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66410         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66411         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66412         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66413         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66414         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66415         * modules/tsearch-tests (configure.ac): Likewise.
66417 2010-08-26  Bruno Haible  <bruno@clisp.org>
66419         Modernize AC_TRY_COMPILE invocations.
66420         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66421         AC_TRY_COMPILE.
66422         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66423         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66424         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66425         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66426         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66427         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66428         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66429         * m4/lock.m4 (gl_LOCK): Likewise.
66430         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66431         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66432         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66433         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66434         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66435         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66436         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66438         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66439         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66440         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66441         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66442         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66443         extraneous semicolon.
66445 2010-08-26  Jim Meyering  <meyering@redhat.com>
66447         stat-time: relax license LGPL
66448         * modules/stat-time (License): Change from GPL to LGPL,
66449         with consent from all contributors, for use in libguile.
66450         Requested by Ludovic Courtès.
66452 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66454         poll: return immediately on POLLHUP.
66455         * lib/poll.c (poll): Always set timeout before wait_timeout is
66456         computed.
66458 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66460         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66461         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66462         rmdir ("dir/.//"), unlinkat.
66464 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66466         stdbool: avoid spurious failure with modern xlc
66467         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66469 2010-08-24  Bruno Haible  <bruno@clisp.org>
66471         getloadavg: simplify code
66472         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66473         gl_have_func. Update comments.
66475 2010-08-24  Eric Blake  <eblake@redhat.com>
66477         getloadavg: don't define SVR4 on cygwin
66478         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66479         only define SVR4 when -lkvm is required.
66480         Reported by Yaakov Selkowitz.
66482 2010-08-24  Bruno Haible  <bruno@clisp.org>
66484         priv-set: fix comment
66485         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66487 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66489         priv-set: fix comments
66490         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66491         to match code, as suggested by David Bartley in:
66492         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66494 2010-08-23  Eric Blake  <eblake@redhat.com>
66496         stdbool: avoid rejecting clang
66497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66498         * tests/test-stdbool.c: Enable more tests if using the system
66499         <stdbool.h> instead of the gnulib replacement.
66500         (main): Move xlc bug test to a runtime test for all compilers.
66501         Reported by Anders Kaseorg.
66503         argz: fix shell quoting issue
66504         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66505         Reported by Charles Wilson.
66507 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66508             Erik Faye-Lund <kusmabite@gmail.com>
66510         poll, select: handle ERROR_BROKEN_PIPE.
66511         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66512         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66513         * lib/select.c (win32_compute_revents): Do not mark a pipe
66514         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66516 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66518         fts: allow compilation with C++
66519         * lib/fts_.h: Specify extern "C" linkage with C++.
66521 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66523         Fix gnulib-tool sed script de-commentation for AIX sed.
66524         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66525         sed.
66527 2010-08-17  Eric Blake  <eblake@redhat.com>
66529         test-stddef: test for (some) offsetof bugs
66530         * tests/test-stddef.c: Enhance test to ensure correct type of
66531         offsetof.
66532         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66533         that we are not fixing at this time.
66535 2010-08-15  Bruno Haible  <bruno@clisp.org>
66537         stpncpy: Allow stpncpy to be defined as a macro.
66538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66539         if it's already correctly declared.
66540         * lib/string.in.h (stpncpy): Undefine before redefining.
66541         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66543 2010-08-14  Bruno Haible  <bruno@clisp.org>
66545         Rename module 'memxfrm' to 'amemxfrm'.
66546         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66547         (amemxfrm): Renamed from memxfrm.
66548         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66549         (amemxfrm): Renamed from memxfrm.
66550         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66551         * NEWS: Mention the change.
66552         * MODULES.html.sh (String handling <string.h>): Update.
66553         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66554         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66555         * lib/unicase/u16-casexfrm.c: Likewise.
66556         * lib/unicase/u32-casexfrm.c: Likewise.
66557         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66558         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66559         * lib/uninorm/u16-normxfrm.c: Likewise.
66560         * lib/uninorm/u32-normxfrm.c: Likewise.
66561         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66562         memxfrm.
66563         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66564         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66565         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66566         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66567         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66568         Suggested by Paul Eggert.
66570 2010-08-14  Bruno Haible  <bruno@clisp.org>
66572         Tests for module 'astrxfrm'.
66573         * modules/astrxfrm-tests: New file.
66574         * tests/test-astrxfrm.c: New file.
66576         New module 'astrxfrm'.
66577         * lib/astrxfrm.h: New file.
66578         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66579         * modules/astrxfrm: New file.
66581 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66583         regex: Tweak doc.
66584         * doc/regex.texi (Overview): Don't mention regex.c.
66585         (GNU Regular Expression Compiling): Likewise.
66586         (Match-end-of-line Operator): Mention 'not_eol'.
66588 2010-08-14  Brian Gough  <bjg@gnu.org>
66589             Bruno Haible  <bruno@clisp.org>
66591         git-merge-changelog: add doc relating to use with bzr and hg.
66592         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66594 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66596         pthread: fix pthread.h creation for srcdir != builddir
66597         * modules/pthread (Makefile.am): Fix the rule to work also in a
66598         non-srcdir build.
66600 2010-08-13  Karl Berry  <karl@gnu.org>
66602         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66603         * doc/posix-*/*: force line break before @url of POSIX
66604         specifications.
66605         Suggested by Werner Lemberg.
66607 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66609         strtod: fix const diagnostic
66610         * lib/strtod.c (strtod): Don't assign const char * to char *,
66611         as this elicits a warning from GCC when warnings are enabled.
66613 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66614         and Eric Blake  <eblake@redhat.com>
66616         copy-acl: ignore ENOTSUP on HP-UX
66617         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66618         so that it is available for HP-UX.
66619         * lib/copy-acl.c (qcopy_acl): Use it.
66620         Reported by Patrick M. Callahan.
66622 2010-08-10  Eric Blake  <eblake@redhat.com>
66624         open, chown: relax license
66625         * modules/open (License): Change to LGPLv2+, with consent by all
66626         authors, for use in augeas.
66627         * modules/chown (License): Likewise.
66628         * modules/lchown (Likewise): Likewise.
66629         Requested by Adam Stokes.
66631 2010-08-09  Karl Berry  <karl@gnu.org>
66633         * build-aux/ar-lib: new file, import from Automake.
66634         * config/srclist.txt: autocheck for updates.
66636 2010-08-09  Eric Blake  <eblake@redhat.com>
66638         readlinkat: adjust client modules
66639         * modules/areadlinkat (Depends-on): Use readlinkat, not
66640         symlinkat.
66641         * modules/areadlinkat-with-size (Depends-on): Likewise.
66643         mknod: be more vocal about danger of running tests as root
66644         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66645         root, since that is just asking for problems.
66646         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66648         readlinkat: split into its own module
66649         * modules/symlinkat: Split readlinkat...
66650         * modules/readlinkat: ...into separate module.
66651         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66652         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66653         * lib/symlinkat.c (readlinkat): Move...
66654         * lib/readlinkat.c: ...into new file.
66655         * modules/symlinkat-tests: Split readlinkat test...
66656         * modules/readlinkat-tests: ...into separate module.
66657         * tests/test-symlinkat.c: Split...
66658         * tests/test-readlinkat.c: ...into new file.
66659         * NEWS: Document the split.
66660         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66661         * lib/unistd.in.h (readlinkat): Likewise.
66662         Suggested by Bruno Haible.
66664 2010-08-08  Bruno Haible  <bruno@clisp.org>
66666         memxfrm: Speed up.
66667         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66668         that usually only one call to strxfrm is necessary for each string
66669         part.
66670         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66672 2010-08-07  Karl Berry  <karl@gnu.org>
66674         * doc/posix-headers/limits.texi,
66675         * doc/posix-functions/malloc.texi,
66676         * doc/posix-functions/strsignal.texi: missing @item.
66677         * doc/ld-version-script.texi: spurious leading i.
66678         * doc/regex.texi (Interval Operators): no commas inside @var.
66680 2010-08-01  Bruno Haible  <bruno@clisp.org>
66682         Integrate the regex documentation.
66683         * doc/gnulib.texi: Define 'cn' index.
66684         (Regular expressions): New a chapter that includes regex.texi and
66685         regexprops-generic.texi.
66686         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66687         syntax.
66689         Whitespace cleanup.
66690         * doc/regex.texi: Remove trailing spaces.
66692         Add regex documentation.
66693         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66694         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66695         Written by Kathy A. Hargreaves and Karl Berry.
66697 2010-08-01  Bruno Haible  <bruno@clisp.org>
66699         link: Update documentation.
66700         * doc/posix-functions/link.texi: Update regarding Solaris.
66702 2010-07-31  Bruno Haible  <bruno@clisp.org>
66704         Update modules list.
66705         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66706         (String handling <string.h>): Add memcmp2, memxfrm.
66707         (Container data structures): Add xlist, xsublist, xoset.
66708         (Core language properties): Add alignof, unused-parameter.
66709         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66710         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66711         (Unibyte characters <ctype.h>): New section.
66712         (String handling <string.h>): New section.
66713         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66714         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66715         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66716         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66717         tan, tanh, tanl, y0, y1, yn.
66718         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66719         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66720         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66721         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66722         unlockpt, vdprintf, vdprintf-posix.
66723         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66724         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66725         xconcat-filename.
66726         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66727         getdtablesize, pipe2, pipe2-safer.
66728         (Security): New section.
66729         (Networking functions): Add accept4.
66730         (Signal handling): Add sigpipe.
66731         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66732         mbmemcasecoll.
66733         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66734         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66735         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66736         pipe-filter-ii.
66737         (Misc): Add argp-version-etc, login_tty, parse-duration.
66739 2010-07-31  Bruno Haible  <bruno@clisp.org>
66741         Improve doc in MODULES.html.
66742         * modules/linkat (Description): Add the word "function".
66743         * modules/mkfifo (Description): Likewise.
66744         * modules/mknod (Description): Likewise.
66745         * modules/remove (Description): Likewise.
66746         * modules/renameat (Description): Likewise.
66747         * modules/stat (Description): Likewise.
66748         * modules/symlink (Description): Likewise.
66749         * modules/unlink (Description): Likewise.
66751 2010-07-31  Bruno Haible  <bruno@clisp.org>
66753         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66754         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66755         option --enable/disable-c++ instead of --enable/disable-cxx.
66756         * NEWS: Mention the change.
66758 2010-07-31  Bruno Haible  <bruno@clisp.org>
66760         readlink, areadlink: Relax test a bit.
66761         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66762         alternative to ENOTDIR.
66763         * tests/test-areadlink.h (test_areadlink): Likewise.
66764         Reported by Rainer Tammer.
66766 2010-07-31  Bruno Haible  <bruno@clisp.org>
66768         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66769         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66770         character, perform the search using U_STRCHR.
66771         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66772         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66773         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66774         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66775         Suggested by Paolo Bonzini.
66777 2010-07-31  Bruno Haible  <bruno@clisp.org>
66779         unistr/u*-strstr: Fix dependencies.
66780         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66781         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66782         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66784 2010-07-31  Bruno Haible  <bruno@clisp.org>
66786         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66787         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66788         the beginning of the loop.
66789         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66790         cases in 'switch' statement.
66792         unistr/u8-strchr: Fix several bugs.
66793         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66794         the string. When not found, return NULL, not a pointer near the end.
66796         More tests for unistr/u8-strchr.
66797         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66798         that the function does not read past the first occurrence of the byte
66799         being searched.
66800         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66801         * tests/unistr/test-u16-strchr.c (main): New function.
66802         * tests/unistr/test-u32-strchr.c (main): New function.
66804 2010-07-31  Bruno Haible  <bruno@clisp.org>
66806         posix-modules: Ignore backup files of documentation files.
66807         * posix-modules: grep only through files named *.texi.
66809 2010-07-31  Bruno Haible  <bruno@clisp.org>
66811         symlinkat: Fix documentation.
66812         * doc/posix-functions/readlinkat.texi: Fix module name.
66814 2010-07-31  Bruno Haible  <bruno@clisp.org>
66816         fchownat: Replace also when chown has the trailing slash bug.
66817         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66818         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66819         introduced on 2010-04-10.
66820         Reported by Rainer Tammer.
66822 2010-07-31  Bruno Haible  <bruno@clisp.org>
66824         linkat: Work around AIX 7.1 bug.
66825         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66826         whether linkat handles trailing slash correctly. If not, replace linkat
66827         and define LINKAT_TRAILING_SLASH_BUG.
66828         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66829         check whether (fd1,file1) points to a directory if file1 or file2 ends
66830         in a slash. Code taken from lib/link.c.
66831         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66832         Reported by Rainer Tammer.
66834 2010-07-31  Bruno Haible  <bruno@clisp.org>
66836         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66837         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66838         This disables an xlc optimization that was causing wrong test results.
66839         Reported by Rainer Tammer.
66841 2010-07-31  Bruno Haible  <bruno@clisp.org>
66843         iconv: Work around AIX 6.1..7.1 bug.
66844         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66845         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66846         cross-compiling, guess no on all versions of AIX.
66847         Reported by Rainer Tammer.
66849 2010-07-31  Bruno Haible  <bruno@clisp.org>
66851         readlink: Relax test a bit.
66852         * tests/test-readlink.h (test_readlink): Allow different errno value
66853         when readlink is called with a file name that ends in / and refers to
66854         a file.
66855         Suggested by Eric Blake.
66856         Reported by Rainer Tammer.
66858 2010-07-31  Bruno Haible  <bruno@clisp.org>
66860         copysign: Does not require -lm on glibc systems.
66861         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66862         gl_COMMON_DOUBLE_MATHFUNC.
66863         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66865 2010-07-31  Bruno Haible  <bruno@clisp.org>
66867         duplocale: Work around AIX 7.1 bug.
66868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66869         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66870         * lib/duplocale.c (rpl_duplocale): Update comment.
66871         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66872         Reported by Rainer Tammer.
66874 2010-07-30  Bruno Haible  <bruno@clisp.org>
66876         dirfd: Avoid link error on AIX 7.1.
66877         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66878         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66879         exist, set REPLACE_DIRFD.
66880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66881         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66882         * doc/posix-functions/dirfd.texi: Update.
66883         Reported by Rainer Tammer.
66885 2010-07-30  Eric Blake  <eblake@redhat.com>
66887         strtod: next round of AIX fixes
66888         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66889         exponent.
66890         * tests/test-strtod.c (main): Enhance tests.
66891         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66892         Reported by Rainer Tammer.
66894         futimens: fix configure check
66895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66896         Reported by Bruno Haible.
66898 2010-07-30  Bruno Haible  <bruno@clisp.org>
66900         getline: Update regarding AIX.
66901         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66902         Reported by Rainer Tammer.
66904 2010-07-30  Bruno Haible  <bruno@clisp.org>
66906         wcwidth: Drop replacement on AIX 7.
66907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66908         AIX 7.
66909         Reported by Rainer Tammer.
66911 2010-07-30  Bruno Haible  <bruno@clisp.org>
66913         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66914         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66915         a 'char *'.
66916         Reported by Rainer Tammer.
66918 2010-07-30  Bruno Haible  <bruno@clisp.org>
66920         unlink: Update regarding AIX.
66921         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66922         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66923         Reported by Rainer Tammer.
66925 2010-07-30  Bruno Haible  <bruno@clisp.org>
66927         symlink: Update regarding AIX.
66928         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66930         Reported by Rainer Tammer.
66932 2010-07-30  Bruno Haible  <bruno@clisp.org>
66934         strndup: Update regarding AIX.
66935         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66936         AIX 7.
66937         Reported by Rainer Tammer.
66939 2010-07-30  Bruno Haible  <bruno@clisp.org>
66941         stat: Update regarding AIX.
66942         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66943         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66944         Reported by Rainer Tammer.
66946 2010-07-30  Bruno Haible  <bruno@clisp.org>
66948         truncl: Fix autoconf test.
66949         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66950         whether truncl works.
66951         Reported by Rainer Tammer.
66953 2010-07-30  Bruno Haible  <bruno@clisp.org>
66955         round: Update regarding AIX.
66956         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66957         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66958         Reported by Rainer Tammer.
66960 2010-07-30  Bruno Haible  <bruno@clisp.org>
66962         rename: Update regarding AIX.
66963         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66964         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66965         Reported by Rainer Tammer.
66967 2010-07-30  Bruno Haible  <bruno@clisp.org>
66969         printf.m4: Update regarding AIX.
66970         * m4/printf.m4: Update comments regarding AIX.
66971         Reported by Rainer Tammer.
66973 2010-07-30  Bruno Haible  <bruno@clisp.org>
66975         iconv: Update regarding AIX.
66976         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66977         AIX 7.
66978         Reported by Rainer Tammer.
66980 2010-07-30  Bruno Haible  <bruno@clisp.org>
66982         getopt: Update regarding AIX.
66983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66984         no on AIX.
66985         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66986         Reported by Rainer Tammer.
66988 2010-07-30  Bruno Haible  <bruno@clisp.org>
66990         ldexpl; Update regarding AIX.
66991         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66992         on AIX 7.
66993         Reported by Rainer Tammer.
66995 2010-07-30  Bruno Haible  <bruno@clisp.org>
66997         frexpl: Update regarding AIX.
66998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66999         on AIX 7.
67000         Reported by Rainer Tammer.
67002 2010-07-30  Bruno Haible  <bruno@clisp.org>
67004         open, fopen: Update regarding AIX.
67005         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
67006         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
67007         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
67008         * doc/posix-functions/fopen.texi: Likewise.
67009         Reported by Rainer Tammer.
67011 2010-07-30  Bruno Haible  <bruno@clisp.org>
67013         chown: Update doc regarding AIX.
67014         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
67015         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
67016         Reported by Rainer Tammer.
67018 2010-07-30  Eric Blake  <eblake@redhat.com>
67020         strtod: fix bug in replacement function on AIX
67021         * lib/strtod.c (strtod): Special case broken "0x" parse in
67022         underlying strtod.
67023         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
67024         * doc/posix-functions/strtod.texi (strtod): Likewise.
67025         Reported by Rainer Tammer.
67027 2010-07-30  Bruno Haible  <bruno@clisp.org>
67029         mbrlen: Fix cross-compilation guess for AIX.
67030         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
67031         guess. Leftover from 2008-12-22.
67033 2010-07-30  Bruno Haible  <bruno@clisp.org>
67035         mbrtowc: Fix cross-compilation guess for AIX.
67036         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
67037         guess. Leftover from 2008-12-21.
67039 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
67041         init.sh: work around trap limitation of some shells
67042         * tests/init.sh (setup_): Move exit trap outside of shell function.
67044 2010-07-29  Eric Blake  <eblake@redhat.com>
67046         strtod: aid debugging
67047         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
67048         understanding why strtod is rejected.
67050 2010-07-28  Bruno Haible  <bruno@clisp.org>
67052         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
67053         * lib/unistr/u8-chr.c: Include <string.h>.
67054         * tests/unistr/test-u8-chr.c: Likewise.
67055         * tests/unistr/test-u16-chr.c: Likewise.
67056         * tests/unistr/test-u32-chr.c: Likewise.
67057         * tests/unistr/test-u8-strchr.c: Likewise.
67058         * tests/unistr/test-u16-strchr.c: Likewise.
67059         * tests/unistr/test-u32-strchr.c: Likewise.
67060         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
67061         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
67062         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
67063         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
67065 2010-07-28  Bruno Haible  <bruno@clisp.org>
67067         Use spaces for indentation, not tabs.
67068         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
67070 2010-07-27  Bruno Haible  <bruno@clisp.org>
67072         mbspcasecmp: Fix function specification.
67073         * lib/string.in.h (mbspcasecmp): Fix specification comment.
67074         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
67075         Reported by Eric Blake <eblake@redhat.com>.
67077 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
67079         timespec: use cast and not conditional, as truncation isn't possible
67080         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
67081         instead of a conditional.  Comment about the situation in more detail.
67082         This undoes most of the 2009-10-29 patch.
67084 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
67086         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
67087         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
67088         * lib/unistr/u8-strchr.c: Likewise.
67089         * modules/unistr/u8-chr: Depend on memchr.
67091         unistr/u*-strchr: add tests
67092         * modules/unistr/u8-strchr-tests: New file.
67093         * modules/unistr/u16-strchr-tests: New file.
67094         * modules/unistr/u32-strchr-tests: New file.
67095         * tests/unistr/test-strchr.h: New file.
67096         * tests/unistr/test-u8-strchr.c: New file.
67097         * tests/unistr/test-u16-strchr.c: New file.
67098         * tests/unistr/test-u32-strchr.c: New file.
67100         unistr/u*-chr: test multibyte sequences more
67101         * tests/unistr/test-chr.h: Do complete testing of the characters in the
67102         test vector.
67103         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
67104         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
67105         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
67107         unistr/u*-chr: test multibyte sequences
67108         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
67110         unistr/u*-chr: prepare for multibyte tests
67111         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
67112         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
67113         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
67114         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
67115         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
67116         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
67118 2010-07-18  Bruno Haible  <bruno@clisp.org>
67120         unistr/u8-strchr: Optimize non-ASCII argument case.
67121         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
67122         because the first byte often matches anyway.
67123         Reported by Pádraig Brady <P@draigbrady.com>.
67125 2010-07-15  Karl Berry  <karl@gnu.org>
67127         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
67129 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
67131         getcwd: on Solaris, work better if ancestors are inaccessible
67132         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
67133         buffer and size, try again with a large buffer.  This works better
67134         on Solaris, since its getcwd succeeds even if the path to the root
67135         is inaccessible, and this is helpful in common cases such as .zfs
67136         hidden directories.  Problem reported by J Chapman Flack in
67137         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
67138         Use system getcwd if it's declared, not merely if it's partly
67139         working; use the partly-working test only to avoid needless effort
67140         if the system getcwd fails.
67141         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
67142         comment that was already obsolete and is now even more obsolete.
67143         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
67144         now might call strdup.
67146 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
67148         pthread: Add enough so that coreutils/src/sort.c compiles.
67149         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
67150         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
67151         gnulib. Include <sched.h> and <time.h>, as per POSIX.
67152         Include <sys/types.h>, in case it defines pthread_t.
67153         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
67154         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
67155         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
67156         (pthread_rwlockattr_t, pthread_spinlock_t):
67157         New typedefs, if HAVE_PTHREAD_T is not defined.
67158         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
67159         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
67160         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
67161         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
67162         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
67163         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
67164         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
67165         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
67166         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
67167         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
67168         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
67169         New macros.
67170         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
67171         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
67172         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
67173         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
67174         (pthread_spin_unlock): New dummy functions.
67175         (pthread_create): Return EAGAIN; don't set errno.
67176         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
67177         require AC_C_INLINE.
67178         * modules/pthread (Depends-on): Add sched, time.
67179         (pthread.h): Use AM_V_GEN.
67181 2010-07-13  Bruno Haible  <bruno@clisp.org>
67183         striconveh: Don't malloc memory if the result buffer is sufficient.
67184         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
67185         buffer if its size is sufficient.
67186         Reported by Ludovic Courtès <ludo@gnu.org>.
67188 2010-07-13  Bruno Haible  <bruno@clisp.org>
67190         strtod: Add safety check.
67191         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
67193 2010-07-12  Bruno Haible  <bruno@clisp.org>
67195         Unify tests that set gl_cv_func_ldexpl_no_libm.
67196         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
67197         gl_FUNC_LDEXPL.
67198         (gl_FUNC_LDEXPL): Invoke it.
67199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67201 2010-07-12  Bruno Haible  <bruno@clisp.org>
67203         Unify tests that set gl_cv_func_ldexp_no_libm.
67204         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
67205         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
67206         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
67207         (configure.ac): Simply invoke gl_FUNC_LDEXP.
67208         * modules/strtod (Files): Add m4/ldexp.m4.
67210 2010-07-12  Bruno Haible  <bruno@clisp.org>
67212         Unify tests that set gl_cv_func_frexpl_no_libm.
67213         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
67214         gl_FUNC_FREXPL_NO_LIBM.
67215         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
67216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67218 2010-07-12  Bruno Haible  <bruno@clisp.org>
67220         Unify tests that set gl_cv_func_frexp_no_libm.
67221         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
67222         gl_FUNC_FREXP_NO_LIBM.
67223         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
67224         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
67226 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67228         memcoll: clarify sizes versus lengths, document better, and tweak perf
67229         * lib/memcoll.c (strcoll_loop, memcoll0):
67230         Improve quality of descriptive comments.  Name variables
67231         consistently as to whether they are lengths (which do not include
67232         terminating null) versus sizes (which do).
67233         * lib/xmemcoll.c (xmemcoll0): Likewise.
67234         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
67235         returned when s1size == 0; this is easier to compile and saves
67236         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
67238 2010-07-12  Bruno Haible  <bruno@clisp.org>
67240         Tests for module '_Exit'.
67241         * modules/_Exit-tests: New file.
67242         * tests/test-_Exit.sh: New file.
67243         * tests/test-_Exit.c: New file.
67245         New module '_Exit'.
67246         * lib/stdlib.in.h (__attribute__): New macro.
67247         (_Exit): New declaration.
67248         * lib/_Exit.c: New file.
67249         * m4/_Exit.m4: New file.
67250         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
67251         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
67252         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
67253         * modules/_Exit: New file.
67254         * tests/test-stdlib-c++.cc (_Exit): Check signature.
67255         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
67257 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67259         strtod: make it more-accurate typically, and don't require libm
67260         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
67261         Include limits.h.  Don't include string.h.
67262         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
67263         (locale_isspace): New function, so that no casts are needed to
67264         check whether *s is a space.
67265         (ldexp): Provide an unused dummy if not available.
67266         (scale_radix_exp, parse_number, underlying_strtod): New functions.
67267         (strtod): Use them.  This implementation prefers to use the
67268         underlying strtod if available, falling back on our own code
67269         only to fix known bugs.  This is more likely to produce an
67270         accurate result.  Also, it avoids the use of libm functions.
67271         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
67272         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
67273         was absent, but it caused a test failure with coreutils.
67274         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
67275         with libm.
67276         * modules/strtod (Makefile.am, Link): libm is no longer needed.
67277         * modules/strtod-tests (Makefile.am): Likewise.
67279 2010-07-11  Pádraig Brady  <P@draigBrady.com>
67280             Bruno Haible  <bruno@clisp.org>
67282         unistr/u8-strchr: Optimize ASCII argument case.
67283         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
67285 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67287         (x)memcoll: minor tweaks
67288         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
67289         is after the type that it qualifies.
67290         (memcoll0): Likewise.
67291         * lib/memcoll.h (memcoll0): Likewise.
67292         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
67293         * lib/xmemcoll.h (xmemcoll0): Likewise.
67294         * lib/memcoll.c (memcoll0): Correct the comment.  This function
67295         differs from memcoll in that the NUL byte is part of the argument.
67296         Omit the abort-checks, as performance is a real issue here.  Plus,
67297         the checks were wrong anyway (an off-by-one error).  Omit local
67298         variable 'diff', as it's a bit clearer that way.
67299         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
67300         no longer needed.
67302 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
67304         (x)memcoll: speedup when input is known to be NUL delimited
67305         * lib/memcoll.c: Include stdlib.
67306         (memcoll0): New function.
67307         (strcoll_loop): New function, refactored for use in both memcoll
67308         and memcoll0.
67309         * lib/memcoll.h (memcoll0): Add prototype.
67310         * lib/xmemcoll.c (xmemcoll0): New function.
67311         (collate_error): New function, refactored for use in both xmemcoll
67312         and xmemcoll0.
67313         * lib/xmemcoll.h (xmemcoll0): Add prototype.
67314         * m4/memcoll.m4: add inline invocation.
67316 2010-07-06  Pádraig Brady  <P@draigBrady.com>
67318         * build-aux/bootstrap: Remove any local translations
67319         from the translation project synchronization directory,
67320         so that local only translations are not distributed.
67322 2010-07-04  Bruno Haible  <bruno@clisp.org>
67324         fsusage: Clarify which code applies to which platforms.
67325         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
67326         platform.
67327         * lib/fsusage.c (get_fs_usage): Likewise.
67329 2010-07-04  Bruno Haible  <bruno@clisp.org>
67331         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67332         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67333         Reported by Martin Lambers <marlam@marlam.de>.
67335 2010-07-04  Jim Meyering  <meyering@redhat.com>
67337         hash: once again explicitly disallow insertion of NULL
67338         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67339         inserting a NULL pointer cannot work with these functions.
67340         Add a comment with details.
67341         This reverts part of the 2010-07-01 commit, 5bef1a35
67342         "hash: extend module to deal with non-pointer keys".
67344 2010-07-01  Bruno Haible  <bruno@clisp.org>
67346         stdbool: Update doc.
67347         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67348         Info from Christian Weisgerber <naddy@mips.inka.de>.
67350 2010-07-01  Jim Meyering  <meyering@redhat.com>
67352         hash: extend module to deal with non-pointer keys
67353         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67354         but that allows insertion of non-pointer entries.
67355         Do not disallow an ENTRY value of NULL.
67356         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67357         * lib/hash.h (hash_insert0): Declare.
67359 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67361         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67362         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67363         not present (i.e. with autoconf 2.59 and when using gettextize, not
67364         gnulib), require AC_GNU_SOURCE instead.
67366 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67368         idpriv-drop: Fix tests.
67369         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67370         not to the test-idpriv-droptemp program.
67372 2010-06-29  Bruno Haible  <bruno@clisp.org>
67374         string: Fix syntax error with g++ 2.96.
67375         * lib/string.in.h (__pure__): Remove definition.
67376         (_GL_ATTRIBUTE_PURE): New macro.
67377         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67378         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67379         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67381 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67383         unitypes: Fix bug introduced on 2010-05-18.
67384         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67386 2010-06-22  Eric Blake  <eblake@redhat.com>
67388         memmem: slight optimization
67389         * lib/str-two-way.h (critical_factorization): Update comments.
67390         Reduce work during factorization phase.
67391         Reported by Carlos Bueno <carlos@bueno.org>.
67393 2010-06-21  Bruno Haible  <bruno@clisp.org>
67395         Fix HAVE_CALLOC_POSIX misnomer.
67396         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67397         !HAVE_CALLOC_POSIX.
67398         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67399         HAVE_CALLOC_POSIX.
67400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67401         instead of HAVE_CALLOC_POSIX.
67402         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67403         HAVE_CALLOC_POSIX.
67405         Use modern idiom for calloc() replacement.
67406         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67407         AC_FUNC_CALLOC.
67408         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67409         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67410         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67411         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67412         (gl_REPLACE_CALLOC): New macro.
67414 2010-06-21  Bruno Haible  <bruno@clisp.org>
67416         Fix HAVE_REALLOC_POSIX misnomer.
67417         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67418         !HAVE_REALLOC_POSIX.
67419         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67420         HAVE_REALLOC_POSIX.
67421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67422         instead of HAVE_REALLOC_POSIX.
67423         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67424         HAVE_REALLOC_POSIX.
67426         Use modern idiom for realloc() replacement.
67427         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67428         AC_FUNC_REALLOC.
67429         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67430         Autoconf's AC_FUNC_REALLOC.
67431         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67432         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67433         (gl_REPLACE_REALLOC): New macro.
67434         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67436 2010-06-21  Bruno Haible  <bruno@clisp.org>
67438         Fix HAVE_MALLOC_POSIX misnomer.
67439         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67440         !HAVE_MALLOC_POSIX.
67441         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67442         HAVE_MALLOC_POSIX.
67443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67444         instead of HAVE_MALLOC_POSIX.
67445         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67446         HAVE_MALLOC_POSIX.
67448         Use modern idiom for malloc() replacement.
67449         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67450         AC_FUNC_MALLOC.
67451         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67452         Autoconf's AC_FUNC_MALLOC.
67453         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67454         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67455         (gl_REPLACE_MALLOC): New macro.
67456         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67458 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67460         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67461         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67462         This macro takes 3 arguments, not 4.
67464 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67466         ipv6: fix detection under mingw
67467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67468         in6_addr.
67470 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67472         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67473         that strtod() works when cross-compiling to a glibc version known
67474         to work.
67476 2010-06-15  Bruno Haible  <bruno@clisp.org>
67478         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67480 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67482         select: Correct timeout.
67483         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67485 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67487         git-version-gen: init shell var to avoid env var influence
67488         * build-aux/git-version-gen (v): Init shell var to empty.
67490 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67492         priv-set: Don't assume that priv.h exists merely because getppriv does.
67493         See Jan Andersen's bug report about AIX 5L in
67494         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67495         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67496         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67497         * lib/priv-set.h: Likewise.
67498         * tests/test-priv-set.c: Likewise.
67500 2010-06-13  Bruno Haible  <bruno@clisp.org>
67502         relocatable: Make it easier to test whether to install wrappers.
67503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67504         RELOCATABLE_VIA_WRAPPER.
67506 2010-06-13  Bruno Haible  <bruno@clisp.org>
67508         gnulib-tool: Display specified modules and dependencies differently.
67509         * gnulib-tool (func_show_module_list): New function.
67510         (func_import, func_create_testdir): Invoke it.
67511         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67513 2010-06-13  Bruno Haible  <bruno@clisp.org>
67515         gnulib-tool: Align code of func_import and func_create_testdir.
67516         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67517         specified_modules.
67519 2010-06-12  Jim Meyering  <meyering@redhat.com>
67521         test-inttostr: avoid spurious failure on Solaris 9
67522         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67523         to accept "%ju".  Reported by Bruno Haible.
67525 2010-06-11  Jim Meyering  <meyering@redhat.com>
67527         test-sys_socket: mark variables as used more readably
67528         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67529         as "used" explicitly via (void) statement casts.  This is more
67530         readable than using them in an artificial return expression.
67531         Suggestion from Bruno Haible.
67533 2010-06-11  Bruno Haible  <bruno@clisp.org>
67535         Avoid some more warnings from "gcc -Wwrite-strings".
67536         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67537         to 'const char *'.
67538         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67539         * tests/test-c-strcasestr.c (main): Likewise.
67540         * tests/test-mbscasestr1.c (main): Likewise.
67541         * tests/test-mbscasestr2.c (main): Likewise.
67542         * tests/test-memmem.c (main): Likewise.
67543         * tests/test-strstr.c (main): Likewise.
67544         * tests/test-strcasestr.c (main): Likewise.
67546 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67548         init.sh: change framework_failure_ to fail with status 99, not 1
67549         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67550         automake's parallel-tests rule that this is an unexpected failure,
67551         even if the test is listed in XFAIL_TESTS.
67553 2010-06-11  Jim Meyering  <meyering@redhat.com>
67555         test-inttostr: avoid warnings about 4-6KB literal strings
67556         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67557         Include "macros.h", for its definition of ASSERT.
67558         (CK): s/assert/ASSERT/
67559         * modules/inttostr-tests (Files): Add macros.h.
67561         init.sh: don't use $ME_ or skip_ before they are defined
67562         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67563         their first uses.  Also hoist their companions: warn_, fail_,
67564         framework_failure_, $stderr_fileno.  Prompted by a patch from
67565         Stefano Lattarini.
67567         test-sys_socket: avoid set-but-not-used warnings from gcc
67568         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67569         avoid warning about set-but-not-used variables.
67571         test-xvasprintf: avoid 'const' discard warnings
67572         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67573         "const" when assigning from literal strings.
67574         (test_xasprintf): Add "void" in function argument list to placate
67575         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67577         tests: avoid compilation warnings in argmatch and exclude tests...
67578         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67579         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67580         Since it always exits, declare with the "noreturn" attribute.
67581         * tests/test-argmatch.c: Likewise.
67583         tests: avoid 'const' discard warnings in mbsstr tests
67584         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67585         * tests/test-mbsstr2.c (main): Likewise.
67587         test-verify: avoid warning from gcc's -Wmissing-declarations
67588         * tests/test-verify.c (function): Declare to be static.
67590         test-inttostr.c: include <string.h> for use of strcmp
67591         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67593         test-linkat: avoid failed assertion on "other" architectures
67594         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67595         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67596         sparc: https://bugs.launchpad.net/bugs/591968
67598 2010-06-11  Jim Meyering  <meyering@redhat.com>
67600         printf.m4: avoid autoconf's "Expanded Before Required" warning
67601         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67602         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67603         autoconf warning.
67605 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67607         Replacement header templates are now named with ".in", not "_".
67608         * doc/gnulib-intro.texi: Correct.
67610 2010-06-10  Jim Meyering  <meyering@redhat.com>
67612         inttostr-tests: depend on snprintf, not snprintf-posix
67613         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67614         snprintf-posix, to avoid this aclocal failure:
67615           missing file gnulib-tests/vasnprintf.c
67616           configure.ac:45: error: expected source file, required through \
67617           AC_LIBSOURCES, not found
67619 2010-06-10  Jim Meyering  <meyering@redhat.com>
67621         inttostr: add a new function, inttostr, and tests
67622         The namesake function was not available.  The existence of the
67623         template file, inttostr.c makes its addition nontrivial.
67624         * lib/anytostr.c: Rename from inttostr.c.
67625         (anytostr): Rename from inttostr.
67626         * lib/inttostr.c: New file.
67627         * modules/inttostr (Files): Add anytostr.c.
67628         (Makefile.am): Set lib_SOURCES instead of ...
67629         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67630         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67631         * lib/offtostr.c: Likewise.
67632         * lib/uinttostr.c: Likewise.
67633         * lib/umaxtostr.c: Likewise.
67634         * modules/inttostr-tests: New file.
67635         * tests/test-inttostr.c: New file.  Test these functions.
67637 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67638             Bruno Haible  <bruno@clisp.org>
67640         Add "Extending Gnulib" chapter to manual.
67641         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67642         chapter.
67643         (Extending Gnulib): New chapter.
67644         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67645         chapter.
67647 2010-06-09  Bruno Haible  <bruno@clisp.org>
67649         Avoid relocwrapper link errors due to gnulib replacement functions.
67650         * lib/areadlink.c: Use the system's malloc, realloc functions.
67651         (areadlink): Set errno to ENOMEM explicitly.
67652         * modules/areadlink (Depends-on): Remove malloc-posix.
67653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67655 2010-06-09  Bruno Haible  <bruno@clisp.org>
67657         Avoid relocwrapper link errors due to gnulib replacement functions.
67658         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67659         * lib/malloca.c: Likewise.
67660         * lib/relocatable.c: Likewise.
67661         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67662         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67663         * lib/setenv.c: Use the system's malloc, realloc functions.
67664         * lib/strerror.c: Use the system's sprintf function.
67665         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67667 2010-06-04  Bruno Haible  <bruno@clisp.org>
67669         Prefer documented low-level autoconf macro names.
67670         * m4/lib-link.m4: Use m4_translit instead of translit.
67671         * m4/environ.m4: Likewise.
67672         * m4/mathfunc.m4: Likewise.
67673         * m4/onceonly.m4: Likewise.
67674         * m4/stdint.m4: Likewise.
67675         Suggested by Eric Blake.
67677 2010-06-04  Martin Lambers  <marlam@marlam.de>
67678             Bruno Haible  <bruno@clisp.org>
67680         havelib: Allow library names with '+' characters.
67681         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67682         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67684 2010-06-09  Bruno Haible  <bruno@clisp.org>
67686         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67687         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67688         realloc failed.
67690 2010-06-08  Peter Simons  <simons@cryp.to>
67692         maint.mk: make the news-check rule more configurable
67693         * top/maint.mk (news-check-lines-spec): New variable.
67694         (news-check): Use "sed -n 1,10p" in place of "head".
67696 2010-06-07  Jim Meyering  <meyering@redhat.com>
67698         do-release-commit-and-tag: fix typo in --help
67699         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67701         regex: avoid new dead-code warning with gcc-4.6.0
67702         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67703         if-block containing a while-loop.  It's been unused for at least
67704         5 years.
67706 2010-06-05  Bruno Haible  <bruno@clisp.org>
67708         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67709         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67711 2010-06-04  Bruno Haible  <bruno@clisp.org>
67713         Update to GNU gettext 0.18.1.
67714         * modules/gettext (configure.ac): Require gettext infrastructure from
67715         version 0.18.1.
67717 2010-06-03  Bruno Haible  <bruno@clisp.org>
67719         Don't use AC_LIBOBJ with file names in subdirectories.
67720         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67721         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67722         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67723         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67724         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67725         gl_LIBUNISTRING_LIBSOURCE.
67726         (Makefile.am): Augment lib_SOURCES here, conditionally.
67727         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67729 2010-06-03  Bruno Haible  <bruno@clisp.org>
67731         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67732         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67733         expansion does not end with a newline.
67734         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67735         unnecessary newline.
67737 2010-06-03  Bruno Haible  <bruno@clisp.org>
67739         Reduce dependencies.
67740         * tests/test-quotearg.h: New file, extracted from
67741         tests/test-quotearg.c.
67742         * tests/test-quotearg-simple.c: New file, extracted from
67743         tests/test-quotearg.c.
67744         * tests/test-quotearg.c: Don't include <ctype.h>.
67745         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67746         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67747         use_quote_double_quotes, use_quotearg_colon): Moved to
67748         tests/test-quotearg.h.
67749         (results_g, flag_results, custom_quotes, custom_results): Moved
67750         to tests/test-quotearg-simple.c.
67751         (main): Moved the part that does not depend on gettext to
67752         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67753         performed.
67754         * modules/quotearg-simple: New file.
67755         * modules/quotearg-simple-tests: New file.
67756         * modules/quotearg (Depends-on): Add quotearg-simple.
67757         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67758         (Files): Add tests/test-quotearg.h.
67759         Reported by Paolo Bonzini.
67761 2010-06-03  Bruno Haible  <bruno@clisp.org>
67763         Reduce dependencies.
67764         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67766 2010-06-03  Bruno Haible  <bruno@clisp.org>
67768         time: Undefine more broken macros.
67769         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67770         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67771         Reported by Eric Blake.
67773 2010-06-03  Bruno Haible  <bruno@clisp.org>
67775         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67776         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67777         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67778         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67779         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67780         Reported by Ludovic Courtès <ludo@gnu.org>.
67782 2010-06-02  Eric Blake  <eblake@redhat.com>
67784         time: work with mingw + pthreads-win32 library
67785         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67786         if timespec is defined only in pthread.h.
67787         * modules/time (Makefile.am): Substitute it.
67788         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67789         <pthread.h>, when needed.
67790         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67791         from the library.
67793 2010-05-31  Bruno Haible  <bruno@clisp.org>
67795         Avoid expanding two macros in the wrong order.
67796         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67797         gl_LIBUNISTRING if it is defined.
67798         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67799         autoconf >= 2.64.
67800         Reported by Ludovic Courtès <ludo@gnu.org>.
67802 2010-05-27  Jim Meyering  <meyering@redhat.com>
67804         maint.mk: also prohibit "#undef" of always-defined symbols
67805         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67806         Allow more than one space before the symbol name.
67807         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67808         the regexp uses alternation.
67810 2010-05-26  Eric Blake  <eblake@redhat.com>
67812         maint.mk: avoid echo -e
67813         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67814         Convert all uses of echo -* to printf.
67815         Reported by Matthias Bolte.
67817 2010-05-25  Bruno Haible  <bruno@clisp.org>
67819         Update to GNU gettext 0.18, part 2.
67820         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67821         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67823 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67825         Add missing include in test-pwrite.c.
67826         * tests/test-pwrite.c: Include string.h, for strcmp.
67828 2010-05-24  Bruno Haible  <bruno@clisp.org>
67830         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67832 2010-05-24  Bruno Haible  <bruno@clisp.org>
67834         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67835         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67836         iconveh_error argument.
67837         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67838         U_STRCONV_TO_LOCALE.
67839         * lib/unistr/u16-strcoll.c: Likewise.
67840         * lib/unistr/u32-strcoll.c: Likewise.
67841         * modules/unistr/u8-strcoll (Depends-on): Add
67842         uniconv/u8-strconv-to-enc, localcharset. Remove
67843         uniconv/u8-strconv-to-locale.
67844         (configure.ac): Bump version number.
67845         * modules/unistr/u16-strcoll (Depends-on): Add
67846         uniconv/u16-strconv-to-enc, localcharset. Remove
67847         uniconv/u16-strconv-to-locale.
67848         (configure.ac): Bump version number.
67849         * modules/unistr/u32-strcoll (Depends-on): Add
67850         uniconv/u32-strconv-to-enc, localcharset. Remove
67851         uniconv/u32-strconv-to-locale.
67852         (configure.ac): Bump version number.
67854 2010-05-24  Bruno Haible  <bruno@clisp.org>
67856         Avoid a test failure on NetBSD 5.0.
67857         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67858         an iconv() bug.
67860 2010-05-24  Bruno Haible  <bruno@clisp.org>
67862         Adjust #include directive style.
67863         * modules/regex (Includes): Recommend to write <regex.h>.
67865 2010-05-24  Bruno Haible  <bruno@clisp.org>
67867         regex: Don't require alloca.
67868         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67869         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67870         only inside if (0).
67872 2010-05-23  Jim Meyering  <meyering@redhat.com>
67874         test-renameat.c: include <sys/stat.h>
67875         * tests/test-renameat.c: Include <sys/stat.h>; required for
67876         definition of S_IS* macros.
67878 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67880         Update maintainer documentation for 'relocatable-prog' module.
67881         * doc/relocatable-maint.texi: Update.
67882         Comments by Bruno Haible.
67884 2010-05-23  Bruno Haible  <bruno@clisp.org>
67886         git-merge-changelog: Enable --split-merged-entry by default.
67887         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67888         (usage): Don't mention this option any more.
67889         Reported by Ralf Wildenhues.
67891 2010-05-23  Jim Meyering  <meyering@redhat.com>
67893         test-pwrite: do not leave behind a test file named "out"
67894         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67895         The trivial-looking use of init.sh is really necessary.
67896         It ensures that the temporary file, "out", is created in
67897         a temporary directory, and removed upon termination.
67898         * tests/test-pwrite.sh: Re-add file.
67899         * modules/pwrite-tests: Reference it.
67901 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67903         Fix output redirection buglet in init.sh.
67904         * tests/init.sh: Fix redirection of stderr.
67906 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67908         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67910 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67912         * modules/valgrind-tests: New file.
67913         * m4/valgrind-tests.m4: New file.
67914         * doc/valgrind-tests.texi: New file.
67915         * doc/gnulib.texi (Running self-tests under valgrind): New
67916         section.
67918 2010-05-19  Bruno Haible  <bruno@clisp.org>
67920         Clean up dead code in recent commit.
67921         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67922         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67923         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67924         Suggested by Paolo Bonzini.
67926 2010-05-19  Bruno Haible  <bruno@clisp.org>
67928         Avoid valgrind error reports from libunistring.
67929         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67930         * modules/libunistring (Files): Add it.
67931         * modules/libunistring-optional (Files): Likewise.
67933 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67934             Bruno Haible  <bruno@clisp.org>
67936         New module 'libunistring-optional'.
67937         * modules/libunistring-optional: New file.
67938         * m4/libunistring-base.m4: New file.
67939         * m4/libunistring-optional.m4: New file.
67940         * lib/unicase.in.h: Renamed from lib/unicase.h.
67941         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67942         * lib/unictype.in.h: Renamed from lib/unictype.h.
67943         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67944         * lib/uniname.in.h: Renamed from lib/uniname.h.
67945         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67946         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67947         * lib/unistr.in.h: Renamed from lib/unistr.h.
67948         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67949         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67950         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67951         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67952         gl_LIBUNISTRING. If the library was found, determine the installed
67953         version and set LIBUNISTRING_VERSION.
67954         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67955         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67956         handle a configuration option --with-included-libunistring.
67957         * modules/libunistring (Files): Add m4/absolute-header.m4.
67958         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67959         Add m4/libunistring-base.m4.
67960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67961         (Makefile.am): Build unicase.h from unicase.in.h.
67962         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67963         Add m4/libunistring-base.m4.
67964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67965         (Makefile.am): Build uniconv.h from uniconv.in.h.
67966         * modules/unictype/base (Files): Use unictype.in.h instead of
67967         unictype.h. Add m4/libunistring-base.m4.
67968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67969         (Makefile.am): Build unictype.h from unictype.in.h.
67970         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67971         Add m4/libunistring-base.m4.
67972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67973         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67974         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67975         Add m4/libunistring-base.m4.
67976         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67977         (Makefile.am): Build uniname.h from uniname.in.h.
67978         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67979         Add m4/libunistring-base.m4.
67980         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67981         (Makefile.am): Build uninorm.h from uninorm.in.h.
67982         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67983         unistdio.h. Add m4/libunistring-base.m4.
67984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67985         (Makefile.am): Build unistdio.h from unistdio.in.h.
67986         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67987         Add m4/libunistring-base.m4.
67988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67989         (Makefile.am): Build unistr.h from unistr.in.h.
67990         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67991         Add m4/libunistring-base.m4.
67992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67993         (Makefile.am): Build unitypes.h from unitypes.in.h.
67994         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67995         Add m4/libunistring-base.m4.
67996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67997         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67998         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67999         uniwidth.h. Add m4/libunistring-base.m4.
68000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68001         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
68002         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
68003         instead of augmenting lib_SOURCES.
68004         * modules/unicase/empty-suffix-context: Likewise.
68005         * modules/unicase/locale-language: Likewise.
68006         * modules/unicase/tolower: Likewise.
68007         * modules/unicase/totitle: Likewise.
68008         * modules/unicase/toupper: Likewise.
68009         * modules/unicase/u8-casecmp: Likewise.
68010         * modules/unicase/u8-casecoll: Likewise.
68011         * modules/unicase/u8-casefold: Likewise.
68012         * modules/unicase/u8-casexfrm: Likewise.
68013         * modules/unicase/u8-ct-casefold: Likewise.
68014         * modules/unicase/u8-ct-tolower: Likewise.
68015         * modules/unicase/u8-ct-totitle: Likewise.
68016         * modules/unicase/u8-ct-toupper: Likewise.
68017         * modules/unicase/u8-is-cased: Likewise.
68018         * modules/unicase/u8-is-casefolded: Likewise.
68019         * modules/unicase/u8-is-lowercase: Likewise.
68020         * modules/unicase/u8-is-titlecase: Likewise.
68021         * modules/unicase/u8-is-uppercase: Likewise.
68022         * modules/unicase/u8-prefix-context: Likewise.
68023         * modules/unicase/u8-suffix-context: Likewise.
68024         * modules/unicase/u8-tolower: Likewise.
68025         * modules/unicase/u8-totitle: Likewise.
68026         * modules/unicase/u8-toupper: Likewise.
68027         * modules/unicase/u16-casecmp: Likewise.
68028         * modules/unicase/u16-casecoll: Likewise.
68029         * modules/unicase/u16-casefold: Likewise.
68030         * modules/unicase/u16-casexfrm: Likewise.
68031         * modules/unicase/u16-ct-casefold: Likewise.
68032         * modules/unicase/u16-ct-tolower: Likewise.
68033         * modules/unicase/u16-ct-totitle: Likewise.
68034         * modules/unicase/u16-ct-toupper: Likewise.
68035         * modules/unicase/u16-is-cased: Likewise.
68036         * modules/unicase/u16-is-casefolded: Likewise.
68037         * modules/unicase/u16-is-lowercase: Likewise.
68038         * modules/unicase/u16-is-titlecase: Likewise.
68039         * modules/unicase/u16-is-uppercase: Likewise.
68040         * modules/unicase/u16-prefix-context: Likewise.
68041         * modules/unicase/u16-suffix-context: Likewise.
68042         * modules/unicase/u16-tolower: Likewise.
68043         * modules/unicase/u16-totitle: Likewise.
68044         * modules/unicase/u16-toupper: Likewise.
68045         * modules/unicase/u32-casecmp: Likewise.
68046         * modules/unicase/u32-casecoll: Likewise.
68047         * modules/unicase/u32-casefold: Likewise.
68048         * modules/unicase/u32-casexfrm: Likewise.
68049         * modules/unicase/u32-ct-casefold: Likewise.
68050         * modules/unicase/u32-ct-tolower: Likewise.
68051         * modules/unicase/u32-ct-totitle: Likewise.
68052         * modules/unicase/u32-ct-toupper: Likewise.
68053         * modules/unicase/u32-is-cased: Likewise.
68054         * modules/unicase/u32-is-casefolded: Likewise.
68055         * modules/unicase/u32-is-lowercase: Likewise.
68056         * modules/unicase/u32-is-titlecase: Likewise.
68057         * modules/unicase/u32-is-uppercase: Likewise.
68058         * modules/unicase/u32-prefix-context: Likewise.
68059         * modules/unicase/u32-suffix-context: Likewise.
68060         * modules/unicase/u32-tolower: Likewise.
68061         * modules/unicase/u32-totitle: Likewise.
68062         * modules/unicase/u32-toupper: Likewise.
68063         * modules/unicase/ulc-casecmp: Likewise.
68064         * modules/unicase/ulc-casecoll: Likewise.
68065         * modules/unicase/ulc-casexfrm: Likewise.
68066         * modules/uniconv/u8-conv-from-enc: Likewise.
68067         * modules/uniconv/u8-conv-to-enc: Likewise.
68068         * modules/uniconv/u8-strconv-from-enc: Likewise.
68069         * modules/uniconv/u8-strconv-from-locale: Likewise.
68070         * modules/uniconv/u8-strconv-to-enc: Likewise.
68071         * modules/uniconv/u8-strconv-to-locale: Likewise.
68072         * modules/uniconv/u16-conv-from-enc: Likewise.
68073         * modules/uniconv/u16-conv-to-enc: Likewise.
68074         * modules/uniconv/u16-strconv-from-enc: Likewise.
68075         * modules/uniconv/u16-strconv-from-locale: Likewise.
68076         * modules/uniconv/u16-strconv-to-enc: Likewise.
68077         * modules/uniconv/u16-strconv-to-locale: Likewise.
68078         * modules/uniconv/u32-conv-from-enc: Likewise.
68079         * modules/uniconv/u32-conv-to-enc: Likewise.
68080         * modules/uniconv/u32-strconv-from-enc: Likewise.
68081         * modules/uniconv/u32-strconv-from-locale: Likewise.
68082         * modules/uniconv/u32-strconv-to-enc: Likewise.
68083         * modules/uniconv/u32-strconv-to-locale: Likewise.
68084         * modules/unictype/bidicategory-byname: Likewise.
68085         * modules/unictype/bidicategory-name: Likewise.
68086         * modules/unictype/bidicategory-of: Likewise.
68087         * modules/unictype/bidicategory-test: Likewise.
68088         * modules/unictype/block-list: Likewise.
68089         * modules/unictype/block-test: Likewise.
68090         * modules/unictype/category-C: Likewise.
68091         * modules/unictype/category-Cc: Likewise.
68092         * modules/unictype/category-Cf: Likewise.
68093         * modules/unictype/category-Cn: Likewise.
68094         * modules/unictype/category-Co: Likewise.
68095         * modules/unictype/category-Cs: Likewise.
68096         * modules/unictype/category-L: Likewise.
68097         * modules/unictype/category-Ll: Likewise.
68098         * modules/unictype/category-Lm: Likewise.
68099         * modules/unictype/category-Lo: Likewise.
68100         * modules/unictype/category-Lt: Likewise.
68101         * modules/unictype/category-Lu: Likewise.
68102         * modules/unictype/category-M: Likewise.
68103         * modules/unictype/category-Mc: Likewise.
68104         * modules/unictype/category-Me: Likewise.
68105         * modules/unictype/category-Mn: Likewise.
68106         * modules/unictype/category-N: Likewise.
68107         * modules/unictype/category-Nd: Likewise.
68108         * modules/unictype/category-Nl: Likewise.
68109         * modules/unictype/category-No: Likewise.
68110         * modules/unictype/category-P: Likewise.
68111         * modules/unictype/category-Pc: Likewise.
68112         * modules/unictype/category-Pd: Likewise.
68113         * modules/unictype/category-Pe: Likewise.
68114         * modules/unictype/category-Pf: Likewise.
68115         * modules/unictype/category-Pi: Likewise.
68116         * modules/unictype/category-Po: Likewise.
68117         * modules/unictype/category-Ps: Likewise.
68118         * modules/unictype/category-S: Likewise.
68119         * modules/unictype/category-Sc: Likewise.
68120         * modules/unictype/category-Sk: Likewise.
68121         * modules/unictype/category-Sm: Likewise.
68122         * modules/unictype/category-So: Likewise.
68123         * modules/unictype/category-Z: Likewise.
68124         * modules/unictype/category-Zl: Likewise.
68125         * modules/unictype/category-Zp: Likewise.
68126         * modules/unictype/category-Zs: Likewise.
68127         * modules/unictype/category-and: Likewise.
68128         * modules/unictype/category-and-not: Likewise.
68129         * modules/unictype/category-byname: Likewise.
68130         * modules/unictype/category-name: Likewise.
68131         * modules/unictype/category-none: Likewise.
68132         * modules/unictype/category-of: Likewise.
68133         * modules/unictype/category-or: Likewise.
68134         * modules/unictype/category-test: Likewise.
68135         * modules/unictype/combining-class: Likewise.
68136         * modules/unictype/ctype-alnum: Likewise.
68137         * modules/unictype/ctype-alpha: Likewise.
68138         * modules/unictype/ctype-blank: Likewise.
68139         * modules/unictype/ctype-cntrl: Likewise.
68140         * modules/unictype/ctype-digit: Likewise.
68141         * modules/unictype/ctype-graph: Likewise.
68142         * modules/unictype/ctype-lower: Likewise.
68143         * modules/unictype/ctype-print: Likewise.
68144         * modules/unictype/ctype-punct: Likewise.
68145         * modules/unictype/ctype-space: Likewise.
68146         * modules/unictype/ctype-upper: Likewise.
68147         * modules/unictype/ctype-xdigit: Likewise.
68148         * modules/unictype/decimal-digit: Likewise.
68149         * modules/unictype/digit: Likewise.
68150         * modules/unictype/mirror: Likewise.
68151         * modules/unictype/numeric: Likewise.
68152         * modules/unictype/property-alphabetic: Likewise.
68153         * modules/unictype/property-ascii-hex-digit: Likewise.
68154         * modules/unictype/property-bidi-arabic-digit: Likewise.
68155         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
68156         * modules/unictype/property-bidi-block-separator: Likewise.
68157         * modules/unictype/property-bidi-boundary-neutral: Likewise.
68158         * modules/unictype/property-bidi-common-separator: Likewise.
68159         * modules/unictype/property-bidi-control: Likewise.
68160         * modules/unictype/property-bidi-embedding-or-override: Likewise.
68161         * modules/unictype/property-bidi-eur-num-separator: Likewise.
68162         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
68163         * modules/unictype/property-bidi-european-digit: Likewise.
68164         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
68165         * modules/unictype/property-bidi-left-to-right: Likewise.
68166         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
68167         * modules/unictype/property-bidi-other-neutral: Likewise.
68168         * modules/unictype/property-bidi-pdf: Likewise.
68169         * modules/unictype/property-bidi-segment-separator: Likewise.
68170         * modules/unictype/property-bidi-whitespace: Likewise.
68171         * modules/unictype/property-byname: Likewise.
68172         * modules/unictype/property-combining: Likewise.
68173         * modules/unictype/property-composite: Likewise.
68174         * modules/unictype/property-currency-symbol: Likewise.
68175         * modules/unictype/property-dash: Likewise.
68176         * modules/unictype/property-decimal-digit: Likewise.
68177         * modules/unictype/property-default-ignorable-code-point: Likewise.
68178         * modules/unictype/property-deprecated: Likewise.
68179         * modules/unictype/property-diacritic: Likewise.
68180         * modules/unictype/property-extender: Likewise.
68181         * modules/unictype/property-format-control: Likewise.
68182         * modules/unictype/property-grapheme-base: Likewise.
68183         * modules/unictype/property-grapheme-extend: Likewise.
68184         * modules/unictype/property-grapheme-link: Likewise.
68185         * modules/unictype/property-hex-digit: Likewise.
68186         * modules/unictype/property-hyphen: Likewise.
68187         * modules/unictype/property-id-continue: Likewise.
68188         * modules/unictype/property-id-start: Likewise.
68189         * modules/unictype/property-ideographic: Likewise.
68190         * modules/unictype/property-ids-binary-operator: Likewise.
68191         * modules/unictype/property-ids-trinary-operator: Likewise.
68192         * modules/unictype/property-ignorable-control: Likewise.
68193         * modules/unictype/property-iso-control: Likewise.
68194         * modules/unictype/property-join-control: Likewise.
68195         * modules/unictype/property-left-of-pair: Likewise.
68196         * modules/unictype/property-line-separator: Likewise.
68197         * modules/unictype/property-logical-order-exception: Likewise.
68198         * modules/unictype/property-lowercase: Likewise.
68199         * modules/unictype/property-math: Likewise.
68200         * modules/unictype/property-non-break: Likewise.
68201         * modules/unictype/property-not-a-character: Likewise.
68202         * modules/unictype/property-numeric: Likewise.
68203         * modules/unictype/property-other-alphabetic: Likewise.
68204         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
68205         * modules/unictype/property-other-grapheme-extend: Likewise.
68206         * modules/unictype/property-other-id-continue: Likewise.
68207         * modules/unictype/property-other-id-start: Likewise.
68208         * modules/unictype/property-other-lowercase: Likewise.
68209         * modules/unictype/property-other-math: Likewise.
68210         * modules/unictype/property-other-uppercase: Likewise.
68211         * modules/unictype/property-paired-punctuation: Likewise.
68212         * modules/unictype/property-paragraph-separator: Likewise.
68213         * modules/unictype/property-pattern-syntax: Likewise.
68214         * modules/unictype/property-pattern-white-space: Likewise.
68215         * modules/unictype/property-private-use: Likewise.
68216         * modules/unictype/property-punctuation: Likewise.
68217         * modules/unictype/property-quotation-mark: Likewise.
68218         * modules/unictype/property-radical: Likewise.
68219         * modules/unictype/property-sentence-terminal: Likewise.
68220         * modules/unictype/property-soft-dotted: Likewise.
68221         * modules/unictype/property-space: Likewise.
68222         * modules/unictype/property-terminal-punctuation: Likewise.
68223         * modules/unictype/property-test: Likewise.
68224         * modules/unictype/property-titlecase: Likewise.
68225         * modules/unictype/property-unassigned-code-value: Likewise.
68226         * modules/unictype/property-unified-ideograph: Likewise.
68227         * modules/unictype/property-uppercase: Likewise.
68228         * modules/unictype/property-variation-selector: Likewise.
68229         * modules/unictype/property-white-space: Likewise.
68230         * modules/unictype/property-xid-continue: Likewise.
68231         * modules/unictype/property-xid-start: Likewise.
68232         * modules/unictype/property-zero-width: Likewise.
68233         * modules/unictype/scripts: Likewise.
68234         * modules/unictype/syntax-c-ident: Likewise.
68235         * modules/unictype/syntax-c-whitespace: Likewise.
68236         * modules/unictype/syntax-java-ident: Likewise.
68237         * modules/unictype/syntax-java-whitespace: Likewise.
68238         * modules/unilbrk/u8-possible-linebreaks: Likewise.
68239         * modules/unilbrk/u8-width-linebreaks: Likewise.
68240         * modules/unilbrk/u16-possible-linebreaks: Likewise.
68241         * modules/unilbrk/u16-width-linebreaks: Likewise.
68242         * modules/unilbrk/u32-possible-linebreaks: Likewise.
68243         * modules/unilbrk/u32-width-linebreaks: Likewise.
68244         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
68245         * modules/unilbrk/ulc-width-linebreaks: Likewise.
68246         * modules/uniname/uniname: Likewise.
68247         * modules/uninorm/canonical-decomposition: Likewise.
68248         * modules/uninorm/composition: Likewise.
68249         * modules/uninorm/decomposing-form: Likewise.
68250         * modules/uninorm/decomposition: Likewise.
68251         * modules/uninorm/filter: Likewise.
68252         * modules/uninorm/nfc: Likewise.
68253         * modules/uninorm/nfd: Likewise.
68254         * modules/uninorm/nfkc: Likewise.
68255         * modules/uninorm/nfkd: Likewise.
68256         * modules/uninorm/u8-normalize: Likewise.
68257         * modules/uninorm/u8-normcmp: Likewise.
68258         * modules/uninorm/u8-normcoll: Likewise.
68259         * modules/uninorm/u8-normxfrm: Likewise.
68260         * modules/uninorm/u16-normalize: Likewise.
68261         * modules/uninorm/u16-normcmp: Likewise.
68262         * modules/uninorm/u16-normcoll: Likewise.
68263         * modules/uninorm/u16-normxfrm: Likewise.
68264         * modules/uninorm/u32-normalize: Likewise.
68265         * modules/uninorm/u32-normcmp: Likewise.
68266         * modules/uninorm/u32-normcoll: Likewise.
68267         * modules/uninorm/u32-normxfrm: Likewise.
68268         * modules/unistdio/u8-asnprintf: Likewise.
68269         * modules/unistdio/u8-asprintf: Likewise.
68270         * modules/unistdio/u8-snprintf: Likewise.
68271         * modules/unistdio/u8-sprintf: Likewise.
68272         * modules/unistdio/u8-u8-asnprintf: Likewise.
68273         * modules/unistdio/u8-u8-asprintf: Likewise.
68274         * modules/unistdio/u8-u8-snprintf: Likewise.
68275         * modules/unistdio/u8-u8-sprintf: Likewise.
68276         * modules/unistdio/u8-u8-vasnprintf: Likewise.
68277         * modules/unistdio/u8-u8-vasprintf: Likewise.
68278         * modules/unistdio/u8-u8-vsnprintf: Likewise.
68279         * modules/unistdio/u8-u8-vsprintf: Likewise.
68280         * modules/unistdio/u8-vasnprintf: Likewise.
68281         * modules/unistdio/u8-vasprintf: Likewise.
68282         * modules/unistdio/u8-vsnprintf: Likewise.
68283         * modules/unistdio/u8-vsprintf: Likewise.
68284         * modules/unistdio/u16-asnprintf: Likewise.
68285         * modules/unistdio/u16-asprintf: Likewise.
68286         * modules/unistdio/u16-snprintf: Likewise.
68287         * modules/unistdio/u16-sprintf: Likewise.
68288         * modules/unistdio/u16-u16-asnprintf: Likewise.
68289         * modules/unistdio/u16-u16-asprintf: Likewise.
68290         * modules/unistdio/u16-u16-snprintf: Likewise.
68291         * modules/unistdio/u16-u16-sprintf: Likewise.
68292         * modules/unistdio/u16-u16-vasnprintf: Likewise.
68293         * modules/unistdio/u16-u16-vasprintf: Likewise.
68294         * modules/unistdio/u16-u16-vsnprintf: Likewise.
68295         * modules/unistdio/u16-u16-vsprintf: Likewise.
68296         * modules/unistdio/u16-vasnprintf: Likewise.
68297         * modules/unistdio/u16-vasprintf: Likewise.
68298         * modules/unistdio/u16-vsnprintf: Likewise.
68299         * modules/unistdio/u16-vsprintf: Likewise.
68300         * modules/unistdio/u32-asnprintf: Likewise.
68301         * modules/unistdio/u32-asprintf: Likewise.
68302         * modules/unistdio/u32-snprintf: Likewise.
68303         * modules/unistdio/u32-sprintf: Likewise.
68304         * modules/unistdio/u32-u32-asnprintf: Likewise.
68305         * modules/unistdio/u32-u32-asprintf: Likewise.
68306         * modules/unistdio/u32-u32-snprintf: Likewise.
68307         * modules/unistdio/u32-u32-sprintf: Likewise.
68308         * modules/unistdio/u32-u32-vasnprintf: Likewise.
68309         * modules/unistdio/u32-u32-vasprintf: Likewise.
68310         * modules/unistdio/u32-u32-vsnprintf: Likewise.
68311         * modules/unistdio/u32-u32-vsprintf: Likewise.
68312         * modules/unistdio/u32-vasnprintf: Likewise.
68313         * modules/unistdio/u32-vasprintf: Likewise.
68314         * modules/unistdio/u32-vsnprintf: Likewise.
68315         * modules/unistdio/u32-vsprintf: Likewise.
68316         * modules/unistdio/ulc-asnprintf: Likewise.
68317         * modules/unistdio/ulc-asprintf: Likewise.
68318         * modules/unistdio/ulc-fprintf: Likewise.
68319         * modules/unistdio/ulc-snprintf: Likewise.
68320         * modules/unistdio/ulc-sprintf: Likewise.
68321         * modules/unistdio/ulc-vasnprintf: Likewise.
68322         * modules/unistdio/ulc-vasprintf: Likewise.
68323         * modules/unistdio/ulc-vfprintf: Likewise.
68324         * modules/unistdio/ulc-vsnprintf: Likewise.
68325         * modules/unistdio/ulc-vsprintf: Likewise.
68326         * modules/unistr/u8-check: Likewise.
68327         * modules/unistr/u8-chr: Likewise.
68328         * modules/unistr/u8-cmp: Likewise.
68329         * modules/unistr/u8-cmp2: Likewise.
68330         * modules/unistr/u8-cpy: Likewise.
68331         * modules/unistr/u8-cpy-alloc: Likewise.
68332         * modules/unistr/u8-endswith: Likewise.
68333         * modules/unistr/u8-mblen: Likewise.
68334         * modules/unistr/u8-mbsnlen: Likewise.
68335         * modules/unistr/u8-mbtouc: Likewise.
68336         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68337         * modules/unistr/u8-mbtoucr: Likewise.
68338         * modules/unistr/u8-move: Likewise.
68339         * modules/unistr/u8-next: Likewise.
68340         * modules/unistr/u8-prev: Likewise.
68341         * modules/unistr/u8-set: Likewise.
68342         * modules/unistr/u8-startswith: Likewise.
68343         * modules/unistr/u8-stpcpy: Likewise.
68344         * modules/unistr/u8-stpncpy: Likewise.
68345         * modules/unistr/u8-strcat: Likewise.
68346         * modules/unistr/u8-strchr: Likewise.
68347         * modules/unistr/u8-strcmp: Likewise.
68348         * modules/unistr/u8-strcoll: Likewise.
68349         * modules/unistr/u8-strcpy: Likewise.
68350         * modules/unistr/u8-strcspn: Likewise.
68351         * modules/unistr/u8-strdup: Likewise.
68352         * modules/unistr/u8-strlen: Likewise.
68353         * modules/unistr/u8-strmblen: Likewise.
68354         * modules/unistr/u8-strmbtouc: Likewise.
68355         * modules/unistr/u8-strncat: Likewise.
68356         * modules/unistr/u8-strncmp: Likewise.
68357         * modules/unistr/u8-strncpy: Likewise.
68358         * modules/unistr/u8-strnlen: Likewise.
68359         * modules/unistr/u8-strpbrk: Likewise.
68360         * modules/unistr/u8-strrchr: Likewise.
68361         * modules/unistr/u8-strspn: Likewise.
68362         * modules/unistr/u8-strstr: Likewise.
68363         * modules/unistr/u8-strtok: Likewise.
68364         * modules/unistr/u8-to-u16: Likewise.
68365         * modules/unistr/u8-to-u32: Likewise.
68366         * modules/unistr/u8-uctomb: Likewise.
68367         * modules/unistr/u16-check: Likewise.
68368         * modules/unistr/u16-chr: Likewise.
68369         * modules/unistr/u16-cmp: Likewise.
68370         * modules/unistr/u16-cmp2: Likewise.
68371         * modules/unistr/u16-cpy: Likewise.
68372         * modules/unistr/u16-cpy-alloc: Likewise.
68373         * modules/unistr/u16-endswith: Likewise.
68374         * modules/unistr/u16-mblen: Likewise.
68375         * modules/unistr/u16-mbsnlen: Likewise.
68376         * modules/unistr/u16-mbtouc: Likewise.
68377         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68378         * modules/unistr/u16-mbtoucr: Likewise.
68379         * modules/unistr/u16-move: Likewise.
68380         * modules/unistr/u16-next: Likewise.
68381         * modules/unistr/u16-prev: Likewise.
68382         * modules/unistr/u16-set: Likewise.
68383         * modules/unistr/u16-startswith: Likewise.
68384         * modules/unistr/u16-stpcpy: Likewise.
68385         * modules/unistr/u16-stpncpy: Likewise.
68386         * modules/unistr/u16-strcat: Likewise.
68387         * modules/unistr/u16-strchr: Likewise.
68388         * modules/unistr/u16-strcmp: Likewise.
68389         * modules/unistr/u16-strcoll: Likewise.
68390         * modules/unistr/u16-strcpy: Likewise.
68391         * modules/unistr/u16-strcspn: Likewise.
68392         * modules/unistr/u16-strdup: Likewise.
68393         * modules/unistr/u16-strlen: Likewise.
68394         * modules/unistr/u16-strmblen: Likewise.
68395         * modules/unistr/u16-strmbtouc: Likewise.
68396         * modules/unistr/u16-strncat: Likewise.
68397         * modules/unistr/u16-strncmp: Likewise.
68398         * modules/unistr/u16-strncpy: Likewise.
68399         * modules/unistr/u16-strnlen: Likewise.
68400         * modules/unistr/u16-strpbrk: Likewise.
68401         * modules/unistr/u16-strrchr: Likewise.
68402         * modules/unistr/u16-strspn: Likewise.
68403         * modules/unistr/u16-strstr: Likewise.
68404         * modules/unistr/u16-strtok: Likewise.
68405         * modules/unistr/u16-to-u32: Likewise.
68406         * modules/unistr/u16-to-u8: Likewise.
68407         * modules/unistr/u16-uctomb: Likewise.
68408         * modules/unistr/u32-check: Likewise.
68409         * modules/unistr/u32-chr: Likewise.
68410         * modules/unistr/u32-cmp: Likewise.
68411         * modules/unistr/u32-cmp2: Likewise.
68412         * modules/unistr/u32-cpy: Likewise.
68413         * modules/unistr/u32-cpy-alloc: Likewise.
68414         * modules/unistr/u32-endswith: Likewise.
68415         * modules/unistr/u32-mblen: Likewise.
68416         * modules/unistr/u32-mbsnlen: Likewise.
68417         * modules/unistr/u32-mbtouc: Likewise.
68418         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68419         * modules/unistr/u32-mbtoucr: Likewise.
68420         * modules/unistr/u32-move: Likewise.
68421         * modules/unistr/u32-next: Likewise.
68422         * modules/unistr/u32-prev: Likewise.
68423         * modules/unistr/u32-set: Likewise.
68424         * modules/unistr/u32-startswith: Likewise.
68425         * modules/unistr/u32-stpcpy: Likewise.
68426         * modules/unistr/u32-stpncpy: Likewise.
68427         * modules/unistr/u32-strcat: Likewise.
68428         * modules/unistr/u32-strchr: Likewise.
68429         * modules/unistr/u32-strcmp: Likewise.
68430         * modules/unistr/u32-strcoll: Likewise.
68431         * modules/unistr/u32-strcpy: Likewise.
68432         * modules/unistr/u32-strcspn: Likewise.
68433         * modules/unistr/u32-strdup: Likewise.
68434         * modules/unistr/u32-strlen: Likewise.
68435         * modules/unistr/u32-strmblen: Likewise.
68436         * modules/unistr/u32-strmbtouc: Likewise.
68437         * modules/unistr/u32-strncat: Likewise.
68438         * modules/unistr/u32-strncmp: Likewise.
68439         * modules/unistr/u32-strncpy: Likewise.
68440         * modules/unistr/u32-strnlen: Likewise.
68441         * modules/unistr/u32-strpbrk: Likewise.
68442         * modules/unistr/u32-strrchr: Likewise.
68443         * modules/unistr/u32-strspn: Likewise.
68444         * modules/unistr/u32-strstr: Likewise.
68445         * modules/unistr/u32-strtok: Likewise.
68446         * modules/unistr/u32-to-u16: Likewise.
68447         * modules/unistr/u32-to-u8: Likewise.
68448         * modules/unistr/u32-uctomb: Likewise.
68449         * modules/uniwbrk/u8-wordbreaks: Likewise.
68450         * modules/uniwbrk/u16-wordbreaks: Likewise.
68451         * modules/uniwbrk/u32-wordbreaks: Likewise.
68452         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68453         * modules/uniwbrk/wordbreak-property: Likewise.
68454         * modules/uniwidth/u8-strwidth: Likewise.
68455         * modules/uniwidth/u8-width: Likewise.
68456         * modules/uniwidth/u16-strwidth: Likewise.
68457         * modules/uniwidth/u16-width: Likewise.
68458         * modules/uniwidth/u32-strwidth: Likewise.
68459         * modules/uniwidth/u32-width: Likewise.
68460         * modules/uniwidth/width: Likewise.
68461         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68462         with $(LIBUNISTRING).
68463         * modules/unicase/ignorable-tests: Likewise.
68464         * modules/unicase/locale-language-tests: Likewise.
68465         * modules/unicase/tolower-tests: Likewise.
68466         * modules/unicase/totitle-tests: Likewise.
68467         * modules/unicase/toupper-tests: Likewise.
68468         * modules/unicase/u8-casecmp-tests: Likewise.
68469         * modules/unicase/u8-casecoll-tests: Likewise.
68470         * modules/unicase/u8-casefold-tests: Likewise.
68471         * modules/unicase/u8-is-cased-tests: Likewise.
68472         * modules/unicase/u8-is-casefolded-tests: Likewise.
68473         * modules/unicase/u8-is-lowercase-tests: Likewise.
68474         * modules/unicase/u8-is-titlecase-tests: Likewise.
68475         * modules/unicase/u8-is-uppercase-tests: Likewise.
68476         * modules/unicase/u8-tolower-tests: Likewise.
68477         * modules/unicase/u8-totitle-tests: Likewise.
68478         * modules/unicase/u8-toupper-tests: Likewise.
68479         * modules/unicase/u16-casecmp-tests: Likewise.
68480         * modules/unicase/u16-casecoll-tests: Likewise.
68481         * modules/unicase/u16-casefold-tests: Likewise.
68482         * modules/unicase/u16-is-cased-tests: Likewise.
68483         * modules/unicase/u16-is-casefolded-tests: Likewise.
68484         * modules/unicase/u16-is-lowercase-tests: Likewise.
68485         * modules/unicase/u16-is-titlecase-tests: Likewise.
68486         * modules/unicase/u16-is-uppercase-tests: Likewise.
68487         * modules/unicase/u16-tolower-tests: Likewise.
68488         * modules/unicase/u16-totitle-tests: Likewise.
68489         * modules/unicase/u16-toupper-tests: Likewise.
68490         * modules/unicase/u32-casecmp-tests: Likewise.
68491         * modules/unicase/u32-casecoll-tests: Likewise.
68492         * modules/unicase/u32-casefold-tests: Likewise.
68493         * modules/unicase/u32-is-cased-tests: Likewise.
68494         * modules/unicase/u32-is-casefolded-tests: Likewise.
68495         * modules/unicase/u32-is-lowercase-tests: Likewise.
68496         * modules/unicase/u32-is-titlecase-tests: Likewise.
68497         * modules/unicase/u32-is-uppercase-tests: Likewise.
68498         * modules/unicase/u32-tolower-tests: Likewise.
68499         * modules/unicase/u32-totitle-tests: Likewise.
68500         * modules/unicase/u32-toupper-tests: Likewise.
68501         * modules/unicase/ulc-casecmp-tests: Likewise.
68502         * modules/unicase/ulc-casecoll-tests: Likewise.
68503         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68504         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68505         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68506         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68507         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68508         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68509         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68510         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68511         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68512         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68513         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68514         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68515         * modules/unictype/bidicategory-byname-tests: Likewise.
68516         * modules/unictype/bidicategory-name-tests: Likewise.
68517         * modules/unictype/bidicategory-of-tests: Likewise.
68518         * modules/unictype/bidicategory-test-tests: Likewise.
68519         * modules/unictype/block-list-tests: Likewise.
68520         * modules/unictype/block-of-tests: Likewise.
68521         * modules/unictype/block-test-tests: Likewise.
68522         * modules/unictype/category-C-tests: Likewise.
68523         * modules/unictype/category-Cc-tests: Likewise.
68524         * modules/unictype/category-Cf-tests: Likewise.
68525         * modules/unictype/category-Cn-tests: Likewise.
68526         * modules/unictype/category-Co-tests: Likewise.
68527         * modules/unictype/category-Cs-tests: Likewise.
68528         * modules/unictype/category-L-tests: Likewise.
68529         * modules/unictype/category-Ll-tests: Likewise.
68530         * modules/unictype/category-Lm-tests: Likewise.
68531         * modules/unictype/category-Lo-tests: Likewise.
68532         * modules/unictype/category-Lt-tests: Likewise.
68533         * modules/unictype/category-Lu-tests: Likewise.
68534         * modules/unictype/category-M-tests: Likewise.
68535         * modules/unictype/category-Mc-tests: Likewise.
68536         * modules/unictype/category-Me-tests: Likewise.
68537         * modules/unictype/category-Mn-tests: Likewise.
68538         * modules/unictype/category-N-tests: Likewise.
68539         * modules/unictype/category-Nd-tests: Likewise.
68540         * modules/unictype/category-Nl-tests: Likewise.
68541         * modules/unictype/category-No-tests: Likewise.
68542         * modules/unictype/category-P-tests: Likewise.
68543         * modules/unictype/category-Pc-tests: Likewise.
68544         * modules/unictype/category-Pd-tests: Likewise.
68545         * modules/unictype/category-Pe-tests: Likewise.
68546         * modules/unictype/category-Pf-tests: Likewise.
68547         * modules/unictype/category-Pi-tests: Likewise.
68548         * modules/unictype/category-Po-tests: Likewise.
68549         * modules/unictype/category-Ps-tests: Likewise.
68550         * modules/unictype/category-S-tests: Likewise.
68551         * modules/unictype/category-Sc-tests: Likewise.
68552         * modules/unictype/category-Sk-tests: Likewise.
68553         * modules/unictype/category-Sm-tests: Likewise.
68554         * modules/unictype/category-So-tests: Likewise.
68555         * modules/unictype/category-Z-tests: Likewise.
68556         * modules/unictype/category-Zl-tests: Likewise.
68557         * modules/unictype/category-Zp-tests: Likewise.
68558         * modules/unictype/category-Zs-tests: Likewise.
68559         * modules/unictype/category-and-not-tests: Likewise.
68560         * modules/unictype/category-and-tests: Likewise.
68561         * modules/unictype/category-byname-tests: Likewise.
68562         * modules/unictype/category-name-tests: Likewise.
68563         * modules/unictype/category-none-tests: Likewise.
68564         * modules/unictype/category-of-tests: Likewise.
68565         * modules/unictype/category-or-tests: Likewise.
68566         * modules/unictype/category-test-withtable-tests: Likewise.
68567         * modules/unictype/combining-class-tests: Likewise.
68568         * modules/unictype/ctype-alnum-tests: Likewise.
68569         * modules/unictype/ctype-alpha-tests: Likewise.
68570         * modules/unictype/ctype-blank-tests: Likewise.
68571         * modules/unictype/ctype-cntrl-tests: Likewise.
68572         * modules/unictype/ctype-digit-tests: Likewise.
68573         * modules/unictype/ctype-graph-tests: Likewise.
68574         * modules/unictype/ctype-lower-tests: Likewise.
68575         * modules/unictype/ctype-print-tests: Likewise.
68576         * modules/unictype/ctype-punct-tests: Likewise.
68577         * modules/unictype/ctype-space-tests: Likewise.
68578         * modules/unictype/ctype-upper-tests: Likewise.
68579         * modules/unictype/ctype-xdigit-tests: Likewise.
68580         * modules/unictype/decimal-digit-tests: Likewise.
68581         * modules/unictype/digit-tests: Likewise.
68582         * modules/unictype/mirror-tests: Likewise.
68583         * modules/unictype/numeric-tests: Likewise.
68584         * modules/unictype/property-alphabetic-tests: Likewise.
68585         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68586         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68587         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68588         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68589         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68590         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68591         * modules/unictype/property-bidi-control-tests: Likewise.
68592         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68593         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68594         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68595         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68596         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68597         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68598         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68599         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68600         * modules/unictype/property-bidi-pdf-tests: Likewise.
68601         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68602         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68603         * modules/unictype/property-byname-tests: Likewise.
68604         * modules/unictype/property-combining-tests: Likewise.
68605         * modules/unictype/property-composite-tests: Likewise.
68606         * modules/unictype/property-currency-symbol-tests: Likewise.
68607         * modules/unictype/property-dash-tests: Likewise.
68608         * modules/unictype/property-decimal-digit-tests: Likewise.
68609         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68610         * modules/unictype/property-deprecated-tests: Likewise.
68611         * modules/unictype/property-diacritic-tests: Likewise.
68612         * modules/unictype/property-extender-tests: Likewise.
68613         * modules/unictype/property-format-control-tests: Likewise.
68614         * modules/unictype/property-grapheme-base-tests: Likewise.
68615         * modules/unictype/property-grapheme-extend-tests: Likewise.
68616         * modules/unictype/property-grapheme-link-tests: Likewise.
68617         * modules/unictype/property-hex-digit-tests: Likewise.
68618         * modules/unictype/property-hyphen-tests: Likewise.
68619         * modules/unictype/property-id-continue-tests: Likewise.
68620         * modules/unictype/property-id-start-tests: Likewise.
68621         * modules/unictype/property-ideographic-tests: Likewise.
68622         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68623         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68624         * modules/unictype/property-ignorable-control-tests: Likewise.
68625         * modules/unictype/property-iso-control-tests: Likewise.
68626         * modules/unictype/property-join-control-tests: Likewise.
68627         * modules/unictype/property-left-of-pair-tests: Likewise.
68628         * modules/unictype/property-line-separator-tests: Likewise.
68629         * modules/unictype/property-logical-order-exception-tests: Likewise.
68630         * modules/unictype/property-lowercase-tests: Likewise.
68631         * modules/unictype/property-math-tests: Likewise.
68632         * modules/unictype/property-non-break-tests: Likewise.
68633         * modules/unictype/property-not-a-character-tests: Likewise.
68634         * modules/unictype/property-numeric-tests: Likewise.
68635         * modules/unictype/property-other-alphabetic-tests: Likewise.
68636         * modules/unictype/property-other-default-ignorable-code-point-tests:
68637         Likewise.
68638         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68639         * modules/unictype/property-other-id-continue-tests: Likewise.
68640         * modules/unictype/property-other-id-start-tests: Likewise.
68641         * modules/unictype/property-other-lowercase-tests: Likewise.
68642         * modules/unictype/property-other-math-tests: Likewise.
68643         * modules/unictype/property-other-uppercase-tests: Likewise.
68644         * modules/unictype/property-paired-punctuation-tests: Likewise.
68645         * modules/unictype/property-paragraph-separator-tests: Likewise.
68646         * modules/unictype/property-pattern-syntax-tests: Likewise.
68647         * modules/unictype/property-pattern-white-space-tests: Likewise.
68648         * modules/unictype/property-private-use-tests: Likewise.
68649         * modules/unictype/property-punctuation-tests: Likewise.
68650         * modules/unictype/property-quotation-mark-tests: Likewise.
68651         * modules/unictype/property-radical-tests: Likewise.
68652         * modules/unictype/property-sentence-terminal-tests: Likewise.
68653         * modules/unictype/property-soft-dotted-tests: Likewise.
68654         * modules/unictype/property-space-tests: Likewise.
68655         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68656         * modules/unictype/property-test-tests: Likewise.
68657         * modules/unictype/property-titlecase-tests: Likewise.
68658         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68659         * modules/unictype/property-unified-ideograph-tests: Likewise.
68660         * modules/unictype/property-uppercase-tests: Likewise.
68661         * modules/unictype/property-variation-selector-tests: Likewise.
68662         * modules/unictype/property-white-space-tests: Likewise.
68663         * modules/unictype/property-xid-continue-tests: Likewise.
68664         * modules/unictype/property-xid-start-tests: Likewise.
68665         * modules/unictype/property-zero-width-tests: Likewise.
68666         * modules/unictype/scripts-tests: Likewise.
68667         * modules/unictype/syntax-c-ident-tests: Likewise.
68668         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68669         * modules/unictype/syntax-java-ident-tests: Likewise.
68670         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68671         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68672         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68673         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68674         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68675         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68676         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68677         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68678         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68679         * modules/uniname/uniname-tests: Likewise.
68680         * modules/uninorm/canonical-decomposition-tests: Likewise.
68681         * modules/uninorm/compat-decomposition-tests: Likewise.
68682         * modules/uninorm/composition-tests: Likewise.
68683         * modules/uninorm/decomposing-form-tests: Likewise.
68684         * modules/uninorm/decomposition-tests: Likewise.
68685         * modules/uninorm/filter-tests: Likewise.
68686         * modules/uninorm/nfc-tests: Likewise.
68687         * modules/uninorm/nfd-tests: Likewise.
68688         * modules/uninorm/nfkc-tests: Likewise.
68689         * modules/uninorm/nfkd-tests: Likewise.
68690         * modules/uninorm/u8-normcmp-tests: Likewise.
68691         * modules/uninorm/u8-normcoll-tests: Likewise.
68692         * modules/uninorm/u16-normcmp-tests: Likewise.
68693         * modules/uninorm/u16-normcoll-tests: Likewise.
68694         * modules/uninorm/u32-normcmp-tests: Likewise.
68695         * modules/uninorm/u32-normcoll-tests: Likewise.
68696         * modules/unistdio/u8-asnprintf-tests: Likewise.
68697         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68698         * modules/unistdio/u8-vasprintf-tests: Likewise.
68699         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68700         * modules/unistdio/u8-vsprintf-tests: Likewise.
68701         * modules/unistdio/u16-asnprintf-tests: Likewise.
68702         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68703         * modules/unistdio/u16-vasprintf-tests: Likewise.
68704         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68705         * modules/unistdio/u16-vsprintf-tests: Likewise.
68706         * modules/unistdio/u32-asnprintf-tests: Likewise.
68707         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68708         * modules/unistdio/u32-vasprintf-tests: Likewise.
68709         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68710         * modules/unistdio/u32-vsprintf-tests: Likewise.
68711         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68712         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68713         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68714         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68715         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68716         * modules/unistr/u8-check-tests: Likewise.
68717         * modules/unistr/u8-chr-tests: Likewise.
68718         * modules/unistr/u8-cmp-tests: Likewise.
68719         * modules/unistr/u8-cmp2-tests: Likewise.
68720         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68721         * modules/unistr/u8-cpy-tests: Likewise.
68722         * modules/unistr/u8-mblen-tests: Likewise.
68723         * modules/unistr/u8-mbsnlen-tests: Likewise.
68724         * modules/unistr/u8-mbtouc-tests: Likewise.
68725         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68726         * modules/unistr/u8-mbtoucr-tests: Likewise.
68727         * modules/unistr/u8-move-tests: Likewise.
68728         * modules/unistr/u8-next-tests: Likewise.
68729         * modules/unistr/u8-prev-tests: Likewise.
68730         * modules/unistr/u8-set-tests: Likewise.
68731         * modules/unistr/u8-stpcpy-tests: Likewise.
68732         * modules/unistr/u8-stpncpy-tests: Likewise.
68733         * modules/unistr/u8-strcat-tests: Likewise.
68734         * modules/unistr/u8-strcmp-tests: Likewise.
68735         * modules/unistr/u8-strcoll-tests: Likewise.
68736         * modules/unistr/u8-strcpy-tests: Likewise.
68737         * modules/unistr/u8-strdup-tests: Likewise.
68738         * modules/unistr/u8-strlen-tests: Likewise.
68739         * modules/unistr/u8-strmblen-tests: Likewise.
68740         * modules/unistr/u8-strmbtouc-tests: Likewise.
68741         * modules/unistr/u8-strncat-tests: Likewise.
68742         * modules/unistr/u8-strncmp-tests: Likewise.
68743         * modules/unistr/u8-strncpy-tests: Likewise.
68744         * modules/unistr/u8-strnlen-tests: Likewise.
68745         * modules/unistr/u8-to-u16-tests: Likewise.
68746         * modules/unistr/u8-to-u32-tests: Likewise.
68747         * modules/unistr/u8-uctomb-tests: Likewise.
68748         * modules/unistr/u16-check-tests: Likewise.
68749         * modules/unistr/u16-chr-tests: Likewise.
68750         * modules/unistr/u16-cmp-tests: Likewise.
68751         * modules/unistr/u16-cmp2-tests: Likewise.
68752         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68753         * modules/unistr/u16-cpy-tests: Likewise.
68754         * modules/unistr/u16-mblen-tests: Likewise.
68755         * modules/unistr/u16-mbsnlen-tests: Likewise.
68756         * modules/unistr/u16-mbtouc-tests: Likewise.
68757         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68758         * modules/unistr/u16-mbtoucr-tests: Likewise.
68759         * modules/unistr/u16-move-tests: Likewise.
68760         * modules/unistr/u16-next-tests: Likewise.
68761         * modules/unistr/u16-prev-tests: Likewise.
68762         * modules/unistr/u16-set-tests: Likewise.
68763         * modules/unistr/u16-stpcpy-tests: Likewise.
68764         * modules/unistr/u16-stpncpy-tests: Likewise.
68765         * modules/unistr/u16-strcat-tests: Likewise.
68766         * modules/unistr/u16-strcmp-tests: Likewise.
68767         * modules/unistr/u16-strcoll-tests: Likewise.
68768         * modules/unistr/u16-strcpy-tests: Likewise.
68769         * modules/unistr/u16-strdup-tests: Likewise.
68770         * modules/unistr/u16-strlen-tests: Likewise.
68771         * modules/unistr/u16-strmblen-tests: Likewise.
68772         * modules/unistr/u16-strmbtouc-tests: Likewise.
68773         * modules/unistr/u16-strncat-tests: Likewise.
68774         * modules/unistr/u16-strncmp-tests: Likewise.
68775         * modules/unistr/u16-strncpy-tests: Likewise.
68776         * modules/unistr/u16-strnlen-tests: Likewise.
68777         * modules/unistr/u16-to-u32-tests: Likewise.
68778         * modules/unistr/u16-to-u8-tests: Likewise.
68779         * modules/unistr/u16-uctomb-tests: Likewise.
68780         * modules/unistr/u32-check-tests: Likewise.
68781         * modules/unistr/u32-chr-tests: Likewise.
68782         * modules/unistr/u32-cmp-tests: Likewise.
68783         * modules/unistr/u32-cmp2-tests: Likewise.
68784         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68785         * modules/unistr/u32-cpy-tests: Likewise.
68786         * modules/unistr/u32-mblen-tests: Likewise.
68787         * modules/unistr/u32-mbsnlen-tests: Likewise.
68788         * modules/unistr/u32-mbtouc-tests: Likewise.
68789         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68790         * modules/unistr/u32-mbtoucr-tests: Likewise.
68791         * modules/unistr/u32-move-tests: Likewise.
68792         * modules/unistr/u32-next-tests: Likewise.
68793         * modules/unistr/u32-prev-tests: Likewise.
68794         * modules/unistr/u32-set-tests: Likewise.
68795         * modules/unistr/u32-stpcpy-tests: Likewise.
68796         * modules/unistr/u32-stpncpy-tests: Likewise.
68797         * modules/unistr/u32-strcat-tests: Likewise.
68798         * modules/unistr/u32-strcmp-tests: Likewise.
68799         * modules/unistr/u32-strcoll-tests: Likewise.
68800         * modules/unistr/u32-strcpy-tests: Likewise.
68801         * modules/unistr/u32-strdup-tests: Likewise.
68802         * modules/unistr/u32-strlen-tests: Likewise.
68803         * modules/unistr/u32-strmblen-tests: Likewise.
68804         * modules/unistr/u32-strmbtouc-tests: Likewise.
68805         * modules/unistr/u32-strncat-tests: Likewise.
68806         * modules/unistr/u32-strncmp-tests: Likewise.
68807         * modules/unistr/u32-strncpy-tests: Likewise.
68808         * modules/unistr/u32-strnlen-tests: Likewise.
68809         * modules/unistr/u32-to-u16-tests: Likewise.
68810         * modules/unistr/u32-to-u8-tests: Likewise.
68811         * modules/unistr/u32-uctomb-tests: Likewise.
68812         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68813         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68814         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68815         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68816         * modules/uniwidth/u8-strwidth-tests: Likewise.
68817         * modules/uniwidth/u8-width-tests: Likewise.
68818         * modules/uniwidth/u16-strwidth-tests: Likewise.
68819         * modules/uniwidth/u16-width-tests: Likewise.
68820         * modules/uniwidth/u32-strwidth-tests: Likewise.
68821         * modules/uniwidth/u32-width-tests: Likewise.
68822         * modules/uniwidth/width-tests: Likewise.
68824 2010-05-18  Richard Jones  <rjones@redhat.com>
68826         doc: users.txt: list hivex
68827         * users.txt: Add hivex.
68829 2010-05-18  Richard Jones  <rjones@redhat.com>
68831         doc: users.txt: list febootstrap
68832         * users.txt: Add febootstrap.
68834 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68836         bootstrap: fix an error when gnulib is not used as a git submodule
68837         * build-aux/bootstrap (gnulib_path): If its length is zero then
68838         assign "gnulib" to it.
68839         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68841 2010-05-16  Bruno Haible  <bruno@clisp.org>
68843         Avoid autoconf warnings about AM_ICONV.
68844         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68845         2.64.
68847 2010-05-16  Bruno Haible  <bruno@clisp.org>
68849         absolute-header: Make the macro usable in more situations.
68850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68851         from gl_ABSOLUTE_HEADER.
68852         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68854 2010-05-16  James Youngman  <jay@gnu.org>
68856         doc: update users.txt
68857         * users.txt: Add CSSC.
68859 2010-05-16  Jim Meyering  <meyering@redhat.com>
68861         init.sh: fix an error in the previous change; add more comments
68862         * tests/init.sh: Compare exit code in loop against 9, not 2.
68863         Patch by Bruno Haible.
68864         Make the two tests more similar by adding an empty "then" clause.
68865         Add comments.
68867         init.sh: avoid unnecessary shell re-exec
68868         * tests/init.sh: Improve the re-exec-required check to first test the
68869         current shell.  If it passes the test, do not search for a shell that
68870         does pass, and do not re-exec.  This test is particularly contorted to
68871         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68872         of $(...) evokes a syntax error and causes immediate shell exit with
68873         status 2.  Bruno Haible reported that the re-exec made it impossible
68874         to single-step through any init.sh-using script.
68876 2010-05-16  Bruno Haible  <bruno@clisp.org>
68878         Fix collision between gnulib's and libintl's printf replacements.
68879         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68880         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68881         (printf): When using GNU C, map the __printf__ function to rpl_printf
68882         via __asm__. When not using GNU C, define rpl_printf instead of
68883         __printf__.
68884         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68885         commit.
68886         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68887         commit.
68888         * m4/asm-underscore.m4: New file.
68889         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68890         * modules/stdio (Files): Add m4/asm-underscore.m4.
68891         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68892         Reported by Ben Pfaff.
68894 2010-05-16  Bruno Haible  <bruno@clisp.org>
68896         verify: Avoid skipping the test on openSUSE 11.0.
68897         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68899 2010-05-13  Bruno Haible  <bruno@clisp.org>
68901         Avoid useless warnings from G++.
68902         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68903         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68904         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68906 2010-05-11  Jim Meyering  <meyering@redhat.com>
68908         maint.mk: tweak preceding change
68909         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68910         regexps tighter by anchoring at EOL, and make the new group "shy"
68911         for slightly decreased overhead.
68913 2010-05-11  Eric Blake  <eblake@redhat.com>
68915         maint.mk: gnulib doesn't guarantee NSIG
68916         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68918 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68920         test-pwrite.c: Remove unused variable declaration.
68921         * tests/test-pwrite.c (main): Remove read_buf declaration.
68923         Remove useless test-pwrite.sh file.
68924         * tests/test-pwrite.sh: Delete file.
68925         * modules/pwrite-tests: Remove references.
68926         Reported by Bruno Haible.
68928 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68930         init.sh: fix a typo
68931         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68933 2010-05-10  Jim Meyering  <meyering@redhat.com>
68935         maint.mk: avoid using a temporary file in the always-defined-macros check
68936         * top/maint.mk (.re-defmac): Remove rule.
68937         (gl_trap_): Remove definition.
68938         (sc_prohibit_always-defined_macros): Rewrite not to create and
68939         depend on a temporary file.  Instead, depend on GNU grep's ability
68940         to read a list of regular expressions from stdin when given "-f -".
68942 2010-05-09  Bruno Haible  <bruno@clisp.org>
68944         Update to GNU gettext 0.18, part 1.
68945         * m4/gettext.m4: Update to GNU gettext 0.18.
68946         * m4/intl.m4: Likewise.
68947         * m4/po.m4: Likewise.
68948         * modules/gettext (Files): Add m4/fcntl-o.m4.
68949         (configure.ac): Require gettext infrastructure from version 0.18.
68951 2010-05-09  Jim Meyering  <meyering@redhat.com>
68953         init.sh: enable MALLOC_PERTURB_
68954         * tests/init.sh: Enable glibc's malloc-perturbing option.
68956         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68957         With my recent change in init.sh from the two-line form:
68958             -#   : ${srcdir=.}
68959             -#   . "$srcdir/init.sh"; path_prepend_ .
68960             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68961         I noticed that using the one-line form would cause this test
68962         to fail with a false-positive, or to stop working altogether,
68963         depending on whether help-version changed or all the tests did.
68964         * top/maint.mk (_hv_regex): Remove this definition.
68965         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68966         (_hv_regex_strong): Use a stronger regex to check for conformance.
68967         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68968         Give a separate diagnostic for lack of conforming use.
68970         maint.mk: prohibit definition of symbols defined by gnulib
68971         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68972         definition of symbols defined by gnulib.
68974 2010-05-09  Bruno Haible  <bruno@clisp.org>
68976         acl: Avoid test failure on Cygwin-hosted mingw.
68977         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68979 2010-05-09  Bruno Haible  <bruno@clisp.org>
68981         error: Use system's fcntl function.
68982         * lib/error.c (fcntl): Undefine.
68984 2010-05-09  Jim Meyering  <meyering@redhat.com>
68986         verify: adjust formatting to be more consistent
68987         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68988         argument-list '('s, and after one comma.
68990 2010-05-09  Bruno Haible  <bruno@clisp.org>
68992         error: More reliable output on mingw.
68993         * lib/error.c: Include <windows.h>.
68994         (is_open): New function.
68995         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68996         defined.
68998 2010-05-09  Bruno Haible  <bruno@clisp.org>
69000         vasnprintf: Fix syntax errors in libintl build on mingw.
69001         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
69002         pad_ourselves and prec_ourselves after use.
69004 2010-05-08  Bruno Haible  <bruno@clisp.org>
69006         * lib/config.charset: Update comments for Cygwin 1.7.
69007         * lib/localcharset.c: Likewise.
69009 2010-05-07  Jim Meyering  <meyering@redhat.com>
69011         init.sh: improve comments
69012         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
69013         . "${srcdir=.}/init.sh"; path_prepend_ .
69014         Add a note about path_prepend_ and the alternative of using
69015         TESTS_ENVIRONMENT.
69017 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69019         exclude: Unescape hashed patterns in wildcard mode.
69020         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
69021         to the hash list.
69022         * tests/test-exclude8.sh: New test case.
69023         * modules/exclude-tests: Add new test.
69025 2010-05-05  Eric Blake  <eblake@redhat.com>
69027         verify: automate tests
69028         * modules/verify-tests: New module.
69029         * tests/test-verify.sh: New file.
69030         * tests/test-verify.c: Guard each negative test with a unique id.
69031         Also avoid warning about unused left hand of comma expressions.
69033 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69035         Further improvements to verify.h, suggested by Eric Blake.
69036         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
69037         the GL_* versions, to avoid collision with OpenGL.
69038         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
69039         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
69040         than testing merely whether it's defined.
69042         Modify verify.h to pacify gcc -Wredundant_decls.
69043         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
69044         These use the prefix "GL_" since they're likely to be useful elsewhere.
69045         We may need to break them out into a different .h file.
69046         (__COUNTER__): Define to 0 if the compiler doesn't support it.
69047         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
69048         of verify_function__.
69050 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69052         Tests for module pwrite.
69053         * modules/pwrite-tests: New file.
69054         * tests/test-pwrite.sh: New file.
69055         * tests/test-pwrite.c: New file.
69057         New module pwrite.
69058         * lib/unistd.in.h (pwrite): New declaration.
69059         * lib/pwrite.c: New file, from glibc with modifications.
69060         * m4/pwrite.m4: New file.
69061         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
69062         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
69063         REPLACE_PWRITE.
69064         * modules/pwrite: New file.
69065         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
69066         REPLACE_PWRITE.
69067         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
69068         * doc/posix-functions/pwrite.texi: Mention the new module.
69070 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69072         pread: Update documentation.
69073         * doc/posix-functions/pread.texi: Mention the 'pread' module.
69075 2010-05-04  Eric Blake  <eblake@redhat.com>
69077         docs: update cygwin progress
69078         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
69079         this bug.
69080         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
69081         Added in cygwin 1.7.2.
69082         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
69083         Likewise.
69084         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
69085         Likewise.
69086         * doc/glibc-functions/dup3.texi (dup3): Likewise.
69087         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
69088         * doc/glibc-functions/accept4.texi (accept4): Likewise.
69089         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
69090         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
69091         Mention nproc module.
69092         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
69093         bug in cygwin 1.7.5 addition.
69094         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
69095         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
69096         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
69097         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
69098         1.7.5.
69099         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
69100         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
69101         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
69102         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
69103         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
69104         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
69105         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
69106         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
69107         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
69108         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
69109         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
69110         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
69111         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
69112         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
69113         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
69114         Likewise.
69115         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
69116         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
69117         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
69118         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
69119         Likewise.
69120         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
69121         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
69122         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
69123         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
69124         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
69125         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
69126         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
69127         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
69128         Likewise.
69129         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
69130         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
69131         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
69132         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
69133         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
69134         Likewise.
69135         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
69136         Likewise.
69137         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
69138         Likewise.
69139         * doc/glibc-functions/xdrrec_endofrecord.texi
69140         (xdrrec_endofrecord): Likewise.
69141         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
69142         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
69143         Likewise.
69144         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
69145         Likewise.
69147 2010-05-04  Jim Meyering  <meyering@redhat.com>
69149         gendocs.sh: make its "-s FILE" option more useful
69150         * build-aux/gendocs.sh: When honoring the -s FILE option, update
69151         $PACKAGE to reflect the probably-different basename of "FILE".
69153 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
69155         bootstrap: don't ignore download_po_files failure
69156         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
69157         failure.
69159 2010-05-03  Jim Meyering  <meyering@redhat.com>
69161         maint.mk: allow to pass options to gendocs.sh
69162         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
69163         (gendocs_options_): New overridable variable.
69165         gnu-web-doc-update: don't ignore configure or build failure
69166         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
69168         announce-gen: backslash-escape '@'s in --help output
69169         * build-aux/announce-gen: Fix syntax errors.
69171         maint.mk, announce-gen: allow project-specific announcement mail headers
69172         * top/maint.mk (translation_project_): Define default.
69173         (announcement_Cc_, announcement_mail_headers_): Likewise.
69174         (announcement): Invoke announce-gen with new --mail-headers option.
69175         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
69177         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
69178         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
69179         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
69180         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
69181         line in the "err2" output file when running "make check" in verbose
69182         mode (i.e., with set -x enabled).
69184 2010-05-03  Bruno Haible  <bruno@clisp.org>
69186         wctob: Fix for weird platforms.
69187         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
69188         argument value.
69190 2010-05-03  Jim Meyering  <meyering@redhat.com>
69192         maint.mk: prohibit unwarranted use of <strings.h>
69193         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
69194         strings.h in a file that does not also use strcasecmp, strncasecmp,
69195         ffs or ffsll.
69197         maint.mk: remove obsolete comments
69198         * top/maint.mk: Remove stale, commented-out rules.
69200 2010-05-02  Bruno Haible  <bruno@clisp.org>
69202         wcwidth: Declare also when it's aliased.
69203         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
69204         macro.
69206 2010-05-02  Bruno Haible  <bruno@clisp.org>
69208         Fix regression from 2010-04-25.
69209         * gnulib-tool (func_modules_transitive_closure): Check the status of
69210         all modules, not only of the tests that are of the form foo-tests where
69211         foo is a module.
69213 2010-05-02  Bruno Haible  <bruno@clisp.org>
69215         wctob: Work around nasty Cygwin 1.7.2 bug.
69216         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
69217         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
69219 2010-05-01  Bruno Haible  <bruno@clisp.org>
69221         fpurge: Sharper test.
69222         * tests/test-fpurge.c (main): Add one more ftell check.
69223         * modules/fpurge-tests (Depends-on): Add ftell.
69224         Suggested by Eric Blake.
69226 2010-05-01  Bruno Haible  <bruno@clisp.org>
69228         ftello: Another test.
69229         * tests/test-ftello3.c: New file.
69230         * modules/ftello-tests (Files): Add it.
69231         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69232         MOSTLYCLEANFILES.
69234         ftell: Another test.
69235         * tests/test-ftell3.c: New file.
69236         * modules/ftell-tests (Files): Add it.
69237         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69238         MOSTLYCLEANFILES.
69240 2010-05-01  Bruno Haible  <bruno@clisp.org>
69242         ftell, ftello: Work around Solaris bug.
69243         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
69244         * lib/ftello.c: Include stdio-impl.h.
69245         (ftello): On Solaris, when _IOWRT is set, compute the result without
69246         looking at _IOREAD.
69247         * modules/ftello (Files): Add lib/stdio-impl.h.
69248         * doc/posix-functions/ftell.texi: Mention Solaris bug.
69249         * doc/posix-functions/ftello.texi: Likewise.
69250         Reported by Eric Blake.
69252 2010-05-01  Bruno Haible  <bruno@clisp.org>
69254         freading: Adapt to special meaning of _IOREAD flag on Solaris.
69255         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
69256         the _IOWRT flag is also set.
69258 2010-05-01  Bruno Haible  <bruno@clisp.org>
69260         Fix doc about a HP-UX stdio bug.
69261         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
69262         * doc/posix-functions/ftello.texi: Likewise.
69264 2010-05-01  Bruno Haible  <bruno@clisp.org>
69266         lseek test: Fix failure on Solaris.
69267         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
69268         output.
69270 2010-04-30  Jim Meyering  <meyering@redhat.com>
69272         bootstrap: don't ignore failure to generate po*/Makevars
69273         * build-aux/bootstrap (with_gettext): Don't ignore failure
69274         to create po/Makevars or runtime-po/Makevars.
69276 2010-04-29  Eric Blake  <eblake@redhat.com>
69278         headers: relax license to LGPLv2+
69279         * modules/fcntl-h (License): Relax license.
69280         * modules/getopt-posix (License): Likewise.
69281         * modules/locale (License): Likewise.
69282         * modules/math (License): Likewise.
69283         * modules/pty (License): Likewise.
69284         * modules/sched (License): Likewise.
69285         * modules/search (License): Likewise.
69286         * modules/spawn (License): Likewise.
69287         * modules/stdarg (License): Likewise.
69288         * modules/sysexits (License): Likewise.
69290 2010-04-29  Jim Meyering  <meyering@redhat.com>
69292         inttypes: relax license to LGPLv2+
69293         * modules/inttypes (License): Relax license.
69295 2010-04-29  Simon Josefsson  <simon@josefsson.org>
69297         * top/maint.mk (indent): Run twice to produce idempotent results.
69299 2010-04-28  Bruno Haible  <bruno@clisp.org>
69301         getdate: Generate getdate.c in the source directory.
69302         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
69303         MOSTLYCLEANFILES.
69304         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
69306 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
69308         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
69309         is not declared as a const *; avoid warnings in that case.
69311 2010-04-28  Eric Blake  <eblake@redhat.com>
69313         canonicalize-lgpl: avoid compiler warning
69314         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
69315         declaration' / 'extraneous semicolon' warning with some compilers.
69316         Reported by Andreas Gruenbacher.
69318 2010-04-28  Jim Meyering  <meyering@redhat.com>
69320         init.sh: ensure a more reliable exit status when exiting via trap
69321         * tests/init.sh (setup_): Don't rely on $? in signal handler.
69322         Inspired by patches from Dmitry V. Levin.
69323         Also trap on signal 3 (SIGQUIT).
69325 2010-04-27  Bruno Haible  <bruno@clisp.org>
69327         Update doc about utimes().
69328         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69329         'utimens' module.
69330         Reported by Andreas Gruenbacher <agruen@suse.de>.
69332 2010-04-27  Eric Blake  <eblake@redhat.com>
69334         full-read, full-write: relax license
69335         * modules/full-read (License): Drop to LGPLv2+.
69336         * modules/full-write (License): Likewise.
69337         * modules/safe-read (License): Likewise.
69338         * modules/safe-write (License): Likewise.
69340         pthread: mention library for linking
69341         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69343 2010-04-27  Jim Meyering  <meyering@redhat.com>
69345         maint.mk: fix a bug introduced in last change
69346         * top/maint.mk (gl_assured_headers_): Now that all names are on
69347         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69348         is not anchored to end of word, it should be adequate.
69350         maint.mk: avoid side-effect in latest syntax-check
69351         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69352         to run commands via $(shell...), and hence to incur cost only when
69353         the new rule is actually run.
69355         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69356         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69357         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69358         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69359         (gl_assured_headers_, az_, AZ_): Define.
69360         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69362 2010-04-26  Jim Meyering  <jim@meyering.net>
69363             Bruno Haible  <bruno@clisp.org>
69365         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69367         Prompted by an exchange with Gilles Espinasse.
69369 2010-04-26  Jim Meyering  <meyering@redhat.com>
69371         git-version-gen: aesthetic tweak
69372         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69373         so that the command remains on a single line.
69375 2010-04-26  Eric Blake  <eblake@redhat.com>
69377         git-version-gen: allow use on EBCDIC hosts
69378         * build-aux/git-version-gen (dirty): Use literal rather than tying
69379         ourselves to ascii.
69380         Reported by Steve Goetze.
69382 2010-04-25  Bruno Haible  <bruno@clisp.org>
69384         netdb: Add support for GNULIB_POSIXCHECK.
69385         * lib/netdb.in.h: Include warn-on-use.h.
69386         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69387         functions are used when GNULIB_POSIXCHECK is defined and the
69388         getaddrinfo module is not in use.
69389         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69390         freeaddrinfo, gai_strerror, getnameinfo are declared.
69391         * modules/netdb (Depends-on): Add warn-on-use.
69392         (Makefile.am): Include warn-on-use.h in netdb.h.
69394 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69396         build: avoid "make check" failure without .git/ directory
69397         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69398         there is no .git/ directory.
69400 2010-04-25  Bruno Haible  <bruno@clisp.org>
69402         ptsname: Fix misuse of ttyname_r.
69403         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69404         of errno.
69406 2010-04-25  Bruno Haible  <bruno@clisp.org>
69408         ttyname_r: Make it work on Solaris 10.
69409         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69410         if the system function has the POSIX declaration. Test whether the
69411         function fails if the buffer is less than 128 bytes large.
69412         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69413         system's ttyname_r function. Provide a reasonably large buffer.
69414         * modules/ttyname_r (Depends-on): Add extensions.
69415         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69417 2010-04-25  Bruno Haible  <bruno@clisp.org>
69419         Use the 'extensions' module for some more functions on Solaris.
69420         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69421         module.
69422         * doc/posix-functions/ctime_r.texi: Likewise.
69423         * doc/posix-functions/getgrgid_r.texi: Likewise.
69424         * doc/posix-functions/getgrnam_r.texi: Likewise.
69425         * doc/posix-functions/getpwnam_r.texi: Likewise.
69426         * doc/posix-functions/getpwuid_r.texi: Likewise.
69427         * doc/posix-functions/readdir_r.texi: Likewise.
69428         * doc/posix-functions/sigwait.texi: Likewise.
69429         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69430         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69432 2010-04-25  Bruno Haible  <bruno@clisp.org>
69434         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69435         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69436         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69437         * lib/ttyname_r.c: Include <limits.h>.
69438         (ttyname_r): Define using the system's ttyname_r function, if it exists
69439         and not on Solaris.
69440         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69441         set.
69442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69443         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69444         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69445         Reported by Simon Josefsson.
69447 2010-04-25  Bruno Haible  <bruno@clisp.org>
69449         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69450         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69451         * doc/posix-functions/ctime_r.texi: Likewise.
69452         * doc/posix-functions/getgrgid_r.texi: Likewise.
69453         * doc/posix-functions/getgrnam_r.texi: Likewise.
69454         * doc/posix-functions/getlogin_r.texi: Likewise.
69455         * doc/posix-functions/getpwnam_r.texi: Likewise.
69456         * doc/posix-functions/getpwuid_r.texi: Likewise.
69457         * doc/posix-functions/readdir_r.texi: Likewise.
69458         * doc/posix-functions/sigwait.texi: Likewise.
69459         * doc/posix-functions/ttyname_r.texi: Likewise.
69460         Reported by Simon Josefsson.
69462 2010-04-25  Bruno Haible  <bruno@clisp.org>
69464         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69465         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69466         also to --create-testdir.
69467         (func_acceptable): Don't consider the status of *-tests modules here.
69468         (func_modules_transitive_closure): Consider it here, before including a
69469         test module.
69470         (func_import, func_create_testdir): Set inc_all_direct_tests,
69471         inc_all_indirect_tests.
69472         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69473         --create-testdir and --create-megatestdir.
69475 2010-04-25  Bruno Haible  <bruno@clisp.org>
69477         gnulib-tool: Add --without-*-tests options.
69478         * gnulib-tool (func_usage): Document the --without-*-tests options.
69479         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69480         excl_unportable_tests): New variables.
69481         Fail if they are specified with --import or --update.
69482         (func_acceptable): Respect the excl_*_tests variables.
69483         (func_import): Set the excl_*_tests variables to empty.
69485 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69486             Bruno Haible  <bruno@clisp.org>
69488         Work around a MacOS X 10.4 bug with openpty.
69489         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69490         * tests/test-openpty.c (main): Close the master side explicitly.
69492 2010-04-25  Bruno Haible  <bruno@clisp.org>
69494         strnlen: Fix a C++ test error on MacOS X and Solaris.
69495         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69496         the function is not declared.
69497         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69498         Simon Josefsson.
69500 2010-04-24  Bruno Haible  <bruno@clisp.org>
69502         Avoid a gcc warning.
69503         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69504         of correct type for %08lx directive.
69505         Reported by Eric Blake.
69507 2010-04-24  Bruno Haible  <bruno@clisp.org>
69509         vasnprintf: Correct errno value in case of out-of-memory.
69510         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69511         or sprintf. Use the errno value from SNPRINTF or sprintf.
69512         Reported by Ian Beckwith <ianb@erislabs.net>.
69514 2010-04-24  Bruno Haible  <bruno@clisp.org>
69516         ansi-c++-opt: Find correct compiler when cross-compiling.
69517         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69518         AC_CHECK_PROGS.
69519         Reported by Simon Josefsson.
69521 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69523         vc-list-files: Add support for subversion
69524         * build-aux/vc-list-files: Use "svn list" to generate the list of
69525         files controlled by subversion.
69527 2010-04-23  Jim Meyering  <meyering@redhat.com>
69529         vc-list-files tests: convert to use init.sh
69530         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69531         path_prepend_.
69532         Use Exit, not exit.
69533         Use skip_ rather than open coding it.
69534         Remove trap set-up and compare definitions.
69535         * tests/test-vc-list-files-git.sh: Likewise.
69536         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69538 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69540         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69541         backup files.
69543 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69545         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69547 2010-04-20  Eric Blake  <eblake@redhat.com>
69549         tests: be robust to ignored SIGPIPE
69550         * tests/test-select-in.sh: Consume all output.
69551         * tests/test-lseek.sh: Check correct exit status, while avoiding
69552         EPIPE.
69554 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69555             Bruno Haible  <bruno@clisp.org>
69557         visibility: Don't use -fvisibility if it leads to a warning.
69558         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69559         yes, don't pretend that visibility works if it leads to a warning.
69560         Reported by Mike Gran <spk121@yahoo.com>.
69562 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69564         * build-aux/bootstrap: Use "git -h" for testing for supported options
69565         instead of "git --help".  The short-form option only shows a summary,
69566         and doesn't layout the full man page.  Grep for the full option name
69567         in the summary, too.
69569 2010-04-19  Bruno Haible  <bruno@clisp.org>
69571         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69572         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69573         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69574         mention of RELOCATABLE_STRIP.
69575         Reported by Sylvain Beucler <beuc@beuc.net>.
69577 2010-04-19  Bruno Haible  <bruno@clisp.org>
69579         * lib/diffseq.h: Fix typo in comment.
69580         Reported by Eric Blake.
69582 2010-04-19  Bruno Haible  <bruno@clisp.org>
69584         ioctl: Move autoconf macro to a .m4 file.
69585         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69586         * modules/ioctl (Files): Add it.
69587         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69588         Reported by Ian Beckwith <ianb@erislabs.net>.
69590 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69591             Bruno Haible  <bruno@clisp.org>
69593         diffseq: Accommodate use-case with abstract arrays.
69594         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69595         is not defined.
69596         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69597         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69599 2010-04-18  Bruno Haible  <bruno@clisp.org>
69601         * doc/posix-headers/stdbool.texi: More precise wording.
69603 2010-04-17  Jim Meyering  <meyering@redhat.com>
69605         maint.mk: use gnu-style indentation in an embedded perl script
69606         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69607         Rename variable: s/two/last_two_bytes/
69609 2010-04-16  Eric Blake  <eblake@redhat.com>
69611         test-stdbool: skip test that fails with Solaris CC
69612         * tests/test-stdbool.c (f): Skip test that causes compilation
69613         error under buggy C++ compiler.
69614         * lib/stdbool.in.h: Document the limitation.
69615         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69617         setenv: allow compilation with C++
69618         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69619         register keyword.
69621         stdint: allow test to pass with C++
69622         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69624         getopt: allow compilation with C++
69625         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69626         struct.
69627         * lib/getopt.c (_getopt_internal_r): Use correct type.
69628         Reported by Dagobert Michelson, via Joel E. Denny.
69630 2010-04-16  Bruno Haible  <bruno@clisp.org>
69632         Override netdb.h always.
69633         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69634         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69635         Reported by Ludovic Courtès <ludo@gnu.org>.
69637 2010-04-15  Bruno Haible  <bruno@clisp.org>
69639         openpty: Fix mistake from 2010-03-21.
69640         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69641         Reported by Simon Josefsson.
69643 2010-04-15  Eric Blake  <eblake@redhat.com>
69645         test-forkpty: fix expected signature
69646         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69647         Reported by Simon Josefsson.
69649 2010-04-15  Jim Meyering  <meyering@redhat.com>
69651         maint.mk: texinfo_suffix_re_: correct the default regexp
69652         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69654         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69655         make it configurable via texinfo_suffix_re_.
69657 2010-04-14  Eric Blake  <eblake@redhat.com>
69659         strtok_r: relax license to LGPLv2+
69660         * modules/strtok_r (License): Relax license.
69661         Reported by Matthias Bolte.
69663 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69665         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69666         version 1.4.4 by default instead of requiring the libgcrypt
69667         version used during build.  This makes it possible to use the
69668         application with older but still binary compatible libgcrypt
69669         versions.
69671 2010-04-13  Eric Blake  <eblake@redhat.com>
69673         getopt-gnu: match recent glibc fixes and posix ruling
69674         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69675         '+' handling, when requesting extensions.
69676         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69677         'W;' handling.
69678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69679         * doc/posix-functions/getopt.texi (getopt): Document this.
69680         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69682         Likewise.
69684         getopt: merge bug fixes from glibc
69685         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69686         diagnostics.  Honor '+:' correctly.  Reject ';'.
69688         getopt-posix: detect MacOS bug
69689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69690         optind when missing a required argument.
69691         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69692         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69693         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69694         Likewise.
69696         getopt-posix: avoid spurious failure on Solaris
69697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69698         an indicator that setting optind=1 is sufficient for reset.
69700         getopt-posix: avoid spurious failure on FreeBSD
69701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69702         in POSIX mode, since the m4 test uses it.
69704         gnulib-tool: silence warning on BSD sh
69705         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69707 2010-04-13  Jim Meyering  <meyering@redhat.com>
69709         doc: users.txt: GNU patch now uses gnulib
69710         * users.txt: Add patch.
69712 2010-04-12  Jim Meyering  <meyering@redhat.com>
69714         maint.mk: generate more concise timing data for syntax-check rules
69715         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69716         " done" from each line that reports a syntax-check test duration.
69718 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69720         git-version-gen: use "git update-index..." rather than "git status"
69721         * build-aux/git-version-gen: Use git update-index --refresh, not
69722         "git status".  With some versions of git, "git status" would fail
69723         to update the index and result in an unwarranted "-dirty" suffix.
69725 2010-04-11  Jim Meyering  <meyering@redhat.com>
69727         openat: correct formatting (no semantic change)
69728         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69729         Suggested by Bruno Haible.
69731 2010-04-11  Bruno Haible  <bruno@clisp.org>
69733         Stricter declaration checking in testdirs.
69734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69735         If for_tests is true, augment AM_CPPFLAGS to define
69736         GNULIB_STRICT_CHECKING.
69737         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69738         GNULIB_STRICT_CHECKING is defined, verify that the function is
69739         declared.
69741 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69742             Bruno Haible  <bruno@clisp.org>
69744         libunistring: Improve configure output.
69745         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69746         Don't say "consider installing GNU libunistring" when checking again
69747         with libiconv.
69749 2010-04-11  Bruno Haible  <bruno@clisp.org>
69751         libunistring: Correct value of $LTLIBUNISTRING.
69752         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69753         correct the value of $LTLIBUNISTRING.
69755 2010-04-11  Bruno Haible  <bruno@clisp.org>
69757         havelib: Add static libraries to LIBS in the right order.
69758         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69759         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69761 2010-04-11  Bruno Haible  <bruno@clisp.org>
69763         libunistring: Detect libunistring also when it depends on libiconv.
69764         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69765         the second AC_LIB_HAVE_LINKFLAGS invocation.
69767 2010-04-11  James Youngman  <jay@gnu.org>
69769         close-stream: declare local scalars to be "const"
69770         * lib/close-stream.c (close_stream): Make boolean variables const
69771         to document the fact that we set but do not change them.
69773 2010-04-11  Bruno Haible  <bruno@clisp.org>
69775         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69777 2010-04-11  Jim Meyering  <meyering@redhat.com>
69779         maint.mk: don't include dist-check.mk
69780         * top/maint.mk: Remove bogus include directive.
69782         maint.mk: improve empty-line-at-EOF check
69783         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69784         solution, rather than tail+Perl-based one.  The latter would read
69785         a few kilobytes from the end of each file, and did not handle empty
69786         files properly.
69788         maint.mk: print the elapsed time for each syntax-check rule
69789         * top/maint.mk (sc_m_rules_): Save start time in a file.
69790         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69791         (local-check): Interpose the .z rules
69793 2010-04-11  Jim Meyering  <meyering@redhat.com>
69795         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69796         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69797         empty file with one that ends in an empty line.
69799 2010-04-10  Bruno Haible  <bruno@clisp.org>
69801         mkdir: Make it work on mingw64.
69802         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69803         * lib/mkdir.c: Update comment.
69804         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69806 2010-04-10  Bruno Haible  <bruno@clisp.org>
69808         Don't override improved macro from newer autoconf.
69809         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69810         autoconf >= 2.62.
69811         Reported by Joel E. Denny <jdenny@clemson.edu>.
69813 2010-04-10  Jim Meyering  <meyering@redhat.com>
69815         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69816         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69818         maint.mk: correct a diagnostic
69819         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69820         in diagnostic; now use $prohibit.
69822 2010-04-10  Bruno Haible  <address@hidden>
69824         fchownat: Fix a C++ test error on Solaris 8.
69825         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69826         the function does not exist.
69828 2010-04-10  Bruno Haible  <bruno@clisp.org>
69830         vasnprintf: Add more tests.
69831         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69832         (test_function): Test converting an invalid wide string.
69834         vasnprintf: Correct handling of unconvertible wide string arguments.
69835         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69836         VASNPRINTF.
69837         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69838         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69839         smaller than the expected maximum need for the directive. Set errno to
69840         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69841         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69843         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69844         * modules/vasnprintf (Files): Add m4/printf.m4.
69845         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69847 2010-04-10  Bruno Haible  <bruno@clisp.org>
69849         vasnprintf: Fix crash in %ls directive.
69850         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69851         string is passed as argument to %ls, with no precision and no width.
69852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69854 2010-04-10  Bruno Haible  <bruno@clisp.org>
69856         vasnprintf: Fix multiple test failures on mingw.
69857         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69858         _snprintf, or snwprintf, not _snwprintf.
69860 2010-04-10  Bruno Haible  <bruno@clisp.org>
69862         write: Fix a C++ test error on mingw.
69863         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69865 2010-04-10  Bruno Haible  <bruno@clisp.org>
69867         vasnprintf test: Reduce code duplication.
69868         * tests/test-vasnprintf.c (test_function): New function, extracted from
69869         test_vasnprintf.
69870         (test_vasnprintf, test_asnprintf): Invoke it.
69872 2010-04-10  Bruno Haible  <bruno@clisp.org>
69874         strnlen: Fix warning in C++ mode on MacOS X.
69875         * lib/string.in.h (strnlen): Use the modern idiom.
69876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69877         defining strnlen as a macro already in <config.h>.
69878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69879         REPLACE_STRNLEN.
69880         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69883 2010-04-08  James Youngman  <jay@gnu.org>
69885         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69886         the example.
69888 2010-04-09  Jim Meyering  <meyering@redhat.com>
69890         maint.mk: print better diagnostic when there is no $(_hv_file)
69891         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69892         announce that when $(_hv_file) (aka help-version) does not exist.
69894         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69895         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69896         not try to interpret its random input bytes.  Jarno Rajahalme reported
69897         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69898         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69899         (mktempd_): Likewise, just in case.
69901         ftruncate: add two years to projected module removal date: 2012
69902         * m4/ftruncate.m4: Adjust comments.
69904         ftruncate: mark module as obsolete; even MinGW provides it, now
69905         * modules/ftruncate (Status): Obsolete.
69906         (Notice): Say that.
69907         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69910 2010-04-08  Bruno Haible  <bruno@clisp.org>
69912         Fix side effects from tests-related modules.
69913         * modules/dprintf-posix (Comment): New section.
69914         * modules/fprintf-posix (Comment): Likewise.
69915         * modules/obstack-printf-posix (Comment): Likewise.
69916         * modules/printf-posix (Comment): Likewise.
69917         * modules/snprintf-posix (Comment): Likewise.
69918         * modules/sprintf-posix (Comment): Likewise.
69919         * modules/vasnprintf-posix (Comment): Likewise.
69920         * modules/vasprintf-posix (Comment): Likewise.
69921         * modules/vdprintf-posix (Comment): Likewise.
69922         * modules/vfprintf-posix (Comment): Likewise.
69923         * modules/vprintf-posix (Comment): Likewise.
69924         * modules/vsnprintf-posix (Comment): Likewise.
69925         * modules/vsprintf-posix (Comment): Likewise.
69926         * modules/xprintf-posix (Comment): Likewise.
69927         * modules/xvasprintf-posix (Comment): Likewise.
69928         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69929         * modules/floorf-tests (Depends-on): Likewise.
69930         * modules/round-tests (Depends-on): Likewise.
69931         * modules/roundf-tests (Depends-on): Likewise.
69932         * modules/trunc-tests (Depends-on): Likewise.
69933         * modules/truncf-tests (Depends-on): Likewise.
69934         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69935         'fprintf-posix' module is not present.
69936         * tests/test-floorf2.c (check): Likewise.
69937         * tests/test-trunc2.c (check): Likewise.
69938         * tests/test-truncf2.c (check): Likewise.
69939         * tests/test-round2.c (equal): Likewise.
69940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69942 2010-04-07  Karl Berry  <karl@gnu.org>
69944         * config/srclist.txt,
69945         * config/srclistvars.sh,
69946         * config/srclist-update: doc fixes.
69948 2010-04-07  Jim Meyering  <meyering@redhat.com>
69950         maint.mk: add a PATH crosschecking syntax-check rule
69951         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69952         Useful if you use a test like the one in help-version (coreutils,
69953         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69954         printed by prog --version.
69956 2010-04-06  Bruno Haible  <bruno@clisp.org>
69958         Fix link error on mingw.
69959         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69960         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69962 2010-04-06  Bruno Haible  <bruno@clisp.org>
69964         Assume rmdir exists.
69965         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69967 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69969         doc: update users.txt
69970         * users.txt: Add gcal.
69972 2010-04-06  Jim Meyering  <meyering@redhat.com>
69974         init.sh: simply unset TMPDIR rather than risking env -i
69975         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69976         although it probably works fine on all Unix-based systems, some
69977         systems (Cygwin?) cannot tolerate a totally cleared environment.
69978         Suggestion from Eric Blake.
69980 2010-04-06  Jim Meyering  <meyering@redhat.com>
69982         init.sh: portability fix: use env's POSIX-specified -i option not -u
69983         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69984         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69986 2010-04-05  Bruno Haible  <bruno@clisp.org>
69988         btowc: Work around Cygwin 1.7.2 bug.
69989         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69990         does not map NUL to 0.
69991         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69993 2010-04-05  Bruno Haible  <bruno@clisp.org>
69995         Make the multithread modules work on Cygwin 1.7.2.
69996         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69997         imported symbols can be declared weak, so that it returns "no" on
69998         Cygwin 1.7.2.
70000 2010-04-05  Bruno Haible  <bruno@clisp.org>
70002         Use the module 'strncat'.
70003         * modules/unistr/u8-strncat (Depends-on): Add strncat.
70005         Tests for module 'strncat'.
70006         * modules/strncat-tests: New file.
70007         * tests/test-strncat.c: New file.
70009         New module 'strncat'.
70010         * lib/string.in.h (strncat): New declaration.
70011         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
70012         * m4/strncat.m4: New file, based on m4/memchr.m4.
70013         * modules/strncat: New file.
70014         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
70015         is declared.
70016         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
70017         REPLACE_STRNCAT.
70018         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
70019         REPLACE_STRNCAT.
70020         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
70021         module.
70022         * tests/test-string-c++.cc: Check signature of strncat.
70024 2010-04-05  Jim Meyering  <meyering@redhat.com>
70026         xstrtoumax-tests: convert to use init.sh
70027         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
70028         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70029         Use Exit, not exit.
70030         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70032         xstrtoimax-tests: convert to use init.sh
70033         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
70034         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70035         Use Exit, not exit.
70036         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70038 2010-04-05  Bruno Haible  <bruno@clisp.org>
70040         sys_socket: Avoid #define replacements in C++ mode.
70041         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
70042         warning to the function if possible, rather than #defining the symbol
70043         to a dysfunctional alias.
70045 2010-04-05  Bruno Haible  <bruno@clisp.org>
70047         fseeko: Fix C++ test error on mingw.
70048         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
70049         gl_FUNC_FSEEKO.
70050         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
70051         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
70052         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
70053         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
70055 2010-04-05  Bruno Haible  <bruno@clisp.org>
70057         duplocale: Improve test output.
70058         * tests/test-duplocale.c (main): Print reason for skipped test.
70060 2010-04-05  Bruno Haible  <bruno@clisp.org>
70062         Assume rmdir exists.
70063         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
70064         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
70066 2010-04-05  Bruno Haible  <bruno@clisp.org>
70068         Fix link error on Solaris 8 with cc.
70069         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
70071 2010-04-05  Bruno Haible  <bruno@clisp.org>
70073         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70074         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
70076 2010-04-05  Bruno Haible  <bruno@clisp.org>
70078         vasprintf: Update documentation.
70079         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
70081 2010-04-05  Bruno Haible  <bruno@clisp.org>
70083         ptsname: Improve test.
70084         * tests/test-ptsname.c (main): Also try the various master names of BSD
70085         systems.
70087 2010-04-05  Bruno Haible  <bruno@clisp.org>
70089         memchr: Avoid a possible C++ test error.
70090         * lib/string.in.h (memchr): Provide declaration if function is missing.
70091         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
70092         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
70093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
70094         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
70096 2010-04-05  Bruno Haible  <bruno@clisp.org>
70098         strtok_r: Improve idiom.
70099         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
70100         AC_LIBOBJ is used.
70102 2010-04-05  Bruno Haible  <bruno@clisp.org>
70104         strdup: Improve idiom.
70105         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
70106         AC_LIBOBJ is used.
70107         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
70108         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
70109         when AC_LIBOBJ is used.
70111 2010-04-05  Bruno Haible  <bruno@clisp.org>
70113         mbsinit, mbrtowc, wcrtomb: Improve idioms.
70114         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
70115         don't set REPLACE_MBSINIT to 1.
70116         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
70117         don't set REPLACE_MBRTOWC to 1.
70118         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
70119         exist, don't set REPLACE_MBSRTOWCS to 1.
70120         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
70121         exist, don't set REPLACE_MBSNRTOWCS to 1.
70122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
70123         don't set REPLACE_WCRTOMB to 1.
70124         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
70125         exist, don't set REPLACE_WCSRTOMBS to 1.
70126         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
70127         exist, don't set REPLACE_WCSNRTOMBS to 1.
70129 2010-04-05  Bruno Haible  <bruno@clisp.org>
70131         ldexpl: Improve idiom.
70132         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
70133         make sure to set HAVE_DECL_LDEXPL to 0.
70135 2010-04-05  Jim Meyering  <meyering@redhat.com>
70137         xstrtol-tests: convert to use init.sh
70138         * modules/xstrtol-tests (Files): Add tests/init.sh.
70139         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70140         Use Exit, not exit.
70141         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70143         atexit-tests: convert to use init.sh
70144         * modules/atexit-tests (Files): Add tests/init.sh.
70145         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70146         Use Exit, not exit.
70147         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70149         init.sh: fix typo
70150         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
70152         init.sh: make it easier for a test script to write to the tty, ...
70153         when using automake's parallel-tests mode.
70154         * tests/init.sh (stderr_fileno_): Define overridable variable.
70155         (warn_): New function, to use it.
70156         (fail_, skip_, framework_failure_): Use warn_.
70158 2010-04-04  Bruno Haible  <bruno@clisp.org>
70160         btowc: Avoid warning.
70161         * lib/btowc.c: Include <stdlib.h>.
70162         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
70164 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70165             Bruno Haible  <bruno@clisp.org>
70167         wchar: Port to NetBSD 1.5.
70168         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
70169         * lib/wctype.in.h (WEOF): Likewise.
70171 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70172             Bruno Haible  <bruno@clisp.org>
70174         Port extended stdio to NetBSD 1.5.
70175         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
70176         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
70177         older.
70179 2010-04-04  Bruno Haible  <bruno@clisp.org>
70181         string: Remove unused substitution.
70182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70183         HAVE_DECL_STRERROR.
70184         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
70186 2010-04-04  Bruno Haible  <bruno@clisp.org>
70188         strtod: Avoid a possible C++ test error.
70189         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
70190         set REPLACE_STRTOD.
70192 2010-04-04  Bruno Haible  <bruno@clisp.org>
70194         strerror: Update documentation.
70195         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
70197 2010-04-04  Bruno Haible  <bruno@clisp.org>
70199         stdio: Fix some C++ test errors on Solaris 8 with GCC.
70200         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
70201         _GL_CXXALIAS_SYS_CAST.
70203 2010-04-04  Bruno Haible  <bruno@clisp.org>
70205         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70206         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
70207         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
70208         REPLACE_FREXPL to 1.
70209         * doc/posix-functions/frexpl.texi: Update documentation.
70211 2010-04-04  Bruno Haible  <bruno@clisp.org>
70213         math: Fix some C++ test errors on Solaris 8 and Cygwin.
70214         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
70216 2010-04-04  Bruno Haible  <bruno@clisp.org>
70218         Implement nanosleep for native Windows.
70219         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
70221 2010-04-04  Bruno Haible  <bruno@clisp.org>
70223         math: Fix some C++ test errors on Solaris 8.
70224         * lib/math.in.h (truncf, trunc): Use simpler idiom.
70226 2010-04-04  Bruno Haible  <bruno@clisp.org>
70228         math: Fix some C++ test errors on Cygwin.
70229         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
70230         truncl): Provide declaration if the system does not have it.
70231         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
70232         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
70233         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
70234         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
70235         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
70236         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
70237         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
70238         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
70239         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
70240         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
70241         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
70242         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
70243         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
70244         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
70245         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
70246         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
70247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
70248         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70249         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70250         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
70251         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70252         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70254 2010-04-04  Bruno Haible  <bruno@clisp.org>
70256         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
70257         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
70258         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
70259         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
70260         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70261         * m4/isinf.m4 (gl_ISINF): Likewise.
70262         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
70264 2010-04-04  Bruno Haible  <bruno@clisp.org>
70266         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
70267         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
70269 2010-04-04  Bruno Haible  <bruno@clisp.org>
70271         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
70272         * modules/tmpfile (configure.ac): Update.
70274         tmpfile: Fix C++ test error on mingw.
70275         * lib/stdio.in.h (tmpfile): New declaration.
70276         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
70277         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
70278         * modules/tmpfile (Depends-on): Add stdio.
70279         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70280         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
70281         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
70282         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
70283         REPLACE_TMPFILE.
70284         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
70286 2010-04-04  Bruno Haible  <bruno@clisp.org>
70288         ioctl: Fix C++ test error on mingw.
70289         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
70290         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
70291         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
70293 2010-04-03  Bruno Haible  <bruno@clisp.org>
70295         wcwidth: Fix C++ test error on mingw.
70296         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
70297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
70298         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
70300 2010-04-03  Bruno Haible  <bruno@clisp.org>
70302         nanosleep: Fix C++ test error on mingw.
70303         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
70304         * lib/time.in.h (nanosleep): Use modern idiom.
70305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
70306         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
70307         REPLACE_NANOSLEEP to 1.
70308         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
70309         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
70311 2010-04-03  Bruno Haible  <bruno@clisp.org>
70313         strptime: Fix C++ test error on mingw.
70314         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
70315         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
70316         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
70317         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
70318         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
70319         not REPLACE_STRPTIME.
70320         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
70321         REPLACE_STRPTIME.
70323 2010-04-03  Bruno Haible  <bruno@clisp.org>
70325         timegm: Fix C++ test error on mingw.
70326         * lib/time.in.h (timegm): Use modern idiom.
70327         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70328         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70330         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70332 2010-04-03  Bruno Haible  <bruno@clisp.org>
70334         timegm: Assume declaration if function exists.
70335         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70336         if it exists. Don't clobber ac_cv_func_timegm.
70338 2010-04-03  Bruno Haible  <bruno@clisp.org>
70340         time_r: Fix C++ test error on mingw.
70341         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70342         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70343         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70345         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70347 2010-04-03  Bruno Haible  <bruno@clisp.org>
70349         time_r: Minor updates.
70350         * modules/time_r (Description): Mention the provided functions.
70351         * lib/time_r.c: Don't include <string.h>.
70352         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70353         * doc/posix-functions/localtime_r.texi: Likewise.
70355 2010-04-03  Bruno Haible  <bruno@clisp.org>
70357         time: Fix regression introduced on 2010-03-08.
70358         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70359         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70361 2010-04-03  Jim Meyering  <meyering@redhat.com>
70363         maint.mk: don't silently disable project-specific syntax-check rules
70364         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70365         that they need to convert their project-specific syntax-check rules
70366         to use the new _sc_search_regexp.
70368 2010-04-03  Bruno Haible  <bruno@clisp.org>
70370         fchdir: Fix regression introduced on 2010-03-08.
70371         * lib/unistd.in.h (fchdir): Fix declaration.
70372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70374         REPLACE_FCHDIR.
70375         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70376         REPLACE_FCHDIR.
70378 2010-04-03  Bruno Haible  <bruno@clisp.org>
70380         getpagesize: Fix C++ test error on mingw.
70381         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70382         system does not declare the function.
70383         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70384         declared.
70385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70386         HAVE_DECL_GETPAGESIZE.
70387         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70389 2010-04-03  Bruno Haible  <bruno@clisp.org>
70391         stdio: Make C++ tests work on mingw.
70392         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70393         does not declare the function.
70395 2010-04-03  Bruno Haible  <bruno@clisp.org>
70397         ftello: Fix C++ test error on mingw.
70398         * lib/stdio.in.h (ftello): Use modern idiom.
70399         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70400         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70401         is missing and that it needs to be replaced.
70402         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70404         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70406 2010-04-03  Bruno Haible  <bruno@clisp.org>
70408         fseeko: Fix C++ test error on mingw.
70409         * lib/stdio.in.h (fseeko): Use modern idiom.
70410         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70412         is missing and that it needs to be replaced.
70413         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70415         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70417 2010-04-03  Bruno Haible  <bruno@clisp.org>
70419         mkstemp: Fix C++ test error on mingw.
70420         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70422         function is missing and that it needs to be replaced.
70423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70424         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70426 2010-04-03  Bruno Haible  <bruno@clisp.org>
70428         stpncpy: Fix C++ test error on mingw.
70429         * lib/string.in.h (stpncpy): Use modern idiom.
70430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70431         function is missing and that it needs to be replaced.
70432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70433         REPLACE_STPNCPY.
70434         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70436 2010-04-03  Bruno Haible  <bruno@clisp.org>
70438         sys_stat: Fix C++ test error on mingw.
70439         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70440         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70442 2010-04-03  Bruno Haible  <bruno@clisp.org>
70444         pty: Update doc.
70445         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70447 2010-04-03  Bruno Haible  <bruno@clisp.org>
70449         unistd: Fix C++ test error on mingw.
70450         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70452 2010-04-03  Bruno Haible  <bruno@clisp.org>
70454         Update doc regarding mingw.
70455         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70456         * doc/glibc-functions/login_tty.texi: Likewise.
70457         * doc/glibc-functions/forkpty.texi: Likewise.
70459 2010-04-03  Bruno Haible  <bruno@clisp.org>
70461         stdlib: Avoid compilation failure of c-strtold on mingw.
70462         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70464 2010-04-03  Bruno Haible  <bruno@clisp.org>
70466         locale: Make C++ tests work on Cygwin and mingw.
70467         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70468         cannot provide the function.
70469         Reported by Simon Josefsson.
70471 2010-04-03  Bruno Haible  <bruno@clisp.org>
70473         localename: Port to MacOS X 10.6.
70474         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70475         memory layout of the locales in MacOS X 10.6 as well.
70476         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70478 2010-04-02  Bruno Haible  <bruno@clisp.org>
70480         gnulib-tool: Ensure that long-running tests are executed last.
70481         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70482         running tests after the one for the other tests.
70484 2010-04-02  Bruno Haible  <bruno@clisp.org>
70486         gnulib-tool: Ensure the tests in the main directory are executed first.
70487         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70488         start with the current directory.
70490 2010-04-02  Bruno Haible  <bruno@clisp.org>
70492         Tests for module 'havelib', moved here from GNU gettext.
70493         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70494         modifications.
70495         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70496         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70497         with modifications.
70498         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70499         modifications.
70500         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70501         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70502         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70503         with modifications.
70504         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70505         with modifications.
70506         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70507         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70508         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70509         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70510         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70511         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70512         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70513         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70514         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70515         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70516         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70517         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70518         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70519         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70520         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70521         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70522         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70523         with modifications.
70524         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70525         with modifications.
70526         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70527         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70528         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70529         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70530         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70531         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70532         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70533         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70534         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70535         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70536         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70537         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70538         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70539         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70540         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70541         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70542         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70543         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70544         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70545         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70546         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70547         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70548         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70549         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70550         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70551         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70552         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70553         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70554         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70555         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70556         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70557         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70558         * tests/havelib/rpathx/rpathx.c: New file, from
70559         gettext/autoconf-lib-link.
70560         * tests/havelib/rpathx/Makefile.am: New file, from
70561         gettext/autoconf-lib-link.
70562         * tests/havelib/rpathx/configure.ac: New file, from
70563         gettext/autoconf-lib-link with modifications.
70564         * tests/havelib/rpathy/rpathy.c: New file, from
70565         gettext/autoconf-lib-link.
70566         * tests/havelib/rpathy/Makefile.am: New file, from
70567         gettext/autoconf-lib-link.
70568         * tests/havelib/rpathy/configure.ac: New file, from
70569         gettext/autoconf-lib-link with modifications.
70570         * tests/havelib/rpathz/rpathz.c: New file, from
70571         gettext/autoconf-lib-link.
70572         * tests/havelib/rpathz/Makefile.am: New file, from
70573         gettext/autoconf-lib-link.
70574         * tests/havelib/rpathz/configure.ac: New file, from
70575         gettext/autoconf-lib-link with modifications.
70576         * tests/havelib/rpathlx/usex.c: New file, from
70577         gettext/autoconf-lib-link.
70578         * tests/havelib/rpathlx/Makefile.am: New file, from
70579         gettext/autoconf-lib-link.
70580         * tests/havelib/rpathlx/configure.ac: New file, from
70581         gettext/autoconf-lib-link with modifications.
70582         * tests/havelib/rpathly/usey.c: New file, from
70583         gettext/autoconf-lib-link.
70584         * tests/havelib/rpathly/Makefile.am: New file, from
70585         gettext/autoconf-lib-link.
70586         * tests/havelib/rpathly/configure.ac: New file, from
70587         gettext/autoconf-lib-link with modifications.
70588         * tests/havelib/rpathlz/usez.c: New file, from
70589         gettext/autoconf-lib-link.
70590         * tests/havelib/rpathlz/Makefile.am: New file, from
70591         gettext/autoconf-lib-link.
70592         * tests/havelib/rpathlz/configure.ac: New file, from
70593         gettext/autoconf-lib-link with modifications.
70594         * tests/havelib/rpathlyx/usey.c: New file, from
70595         gettext/autoconf-lib-link.
70596         * tests/havelib/rpathlyx/Makefile.am: New file, from
70597         gettext/autoconf-lib-link.
70598         * tests/havelib/rpathlyx/configure.ac: New file, from
70599         gettext/autoconf-lib-link with modifications.
70600         * tests/havelib/rpathlzyx/usez.c: New file, from
70601         gettext/autoconf-lib-link.
70602         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70603         gettext/autoconf-lib-link.
70604         * tests/havelib/rpathlzyx/configure.ac: New file, from
70605         gettext/autoconf-lib-link with modifications.
70606         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70607         with modifications.
70609 2010-04-02  Bruno Haible  <bruno@clisp.org>
70611         gnulib-tool: Create distributed built sources also for the tests.
70612         * gnulib-tool (func_create_testdir): Also generate distributed built
70613         sources in the tests directory.
70615 2010-04-02  Bruno Haible  <bruno@clisp.org>
70617         gnulib-tool: Obey user's environment variables.
70618         * gnulib-tool (func_create_testdir): When creating built sources,
70619         respect the environment variables for autoconf, automake, etc. given by
70620         the user.
70622 2010-04-02  Bruno Haible  <bruno@clisp.org>
70624         gnulib-tool: Provide the value of --m4-base to modules.
70625         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70626         of gl_m4_base.
70628 2010-04-02  Eric Blake  <eblake@redhat.com>
70630         maint.mk: fix some fallout
70631         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70632         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70634 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70636         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70637         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70638         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70639         (sc_cast_of_x_alloc_return_value): Likewise.
70640         (sc_cast_of_alloca_return_value): Likewise.
70641         (sc_space_tab): Likewise.
70642         (sc_prohibit_atoi_atof): Likewise.
70643         (sc_prohibit_magic_number_exit): Likewise.
70644         (sc_error_exit_success): Likewise.
70645         (sc_file_system): Likewise.
70646         (sc_prohibit_have_config_h): Likewise.
70647         (sc_require_config_h): Likewise.
70648         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70649         (sc_obsolete_symbols): Likewise.
70650         (sc_changelog): Likewise.
70651         (sc_program_name): Likewise.
70652         (sc_the_the): Likewise.
70653         (sc_trailing_blank): Likewise.
70654         (sc_two_space_separator_in_usage): Likewise.
70655         (sc_useless_cpp_parens): Likewise.
70656         (sc_GPL_version): Likewise.
70657         (sc_GFDL_version): Likewise.
70658         (sc_texinfo_acronym): Likewise.
70659         (sc_prohibit_cvs_keyword): Likewise.
70660         (sc_prohibit_stat_st_blocks): Likewise.
70661         (sc_prohibit_S_IS_definition): Likewise.
70662         (sc_redundant_const): Likewise.
70663         (sc_makefile_TAB_only_indentation): Likewise.
70664         (sc_m4_quote_check): Likewise.
70665         (sc_makefile_path_separator_check): Likewise.
70666         (sc_copyright_check): Likewise.
70667         (sc_Wundef_boolean): Likewise.
70668         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70670         maint.mk: match 0 or more whitespace-before-function-call '('
70671         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70672         that have zero or two-and-more spaces between the function name
70673         and the open parenthesis.
70674         (sc_error_message_warn_fatal): Likewise.
70675         (sc_error_message_uppercase): Likewise.
70676         (sc_error_message_period): Likewise.
70678 2010-03-31  Eric Blake  <eblake@redhat.com>
70680         maint.mk: check for [ as well as test
70681         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70682         Based on a libvirt report by Matthias Bolte.
70684         gnumakefile: don't squelch _version output
70685         * top/GNUmakefile (_version): Create one-shot dependency rather
70686         than using $(shell) when version must be regenerated.
70687         (_autoreconf): Run verbosely, by default.
70689         sys_time: avoid compiler warnings
70690         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70691         unconditional, fixing regression from 2010-03-29.
70692         Reported by Simon Josefsson.
70694 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70696         maint.mk: s/_header_without_use/_sc_header_without_use/
70697         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70698         (sc_prohibit_assert_without_use): Use the new name.
70699         (sc_prohibit_close_stream_without_use): Likewise.
70700         (sc_prohibit_getopt_without_use): Likewise.
70701         (sc_prohibit_quotearg_without_use): Likewise.
70702         (sc_prohibit_quote_without_use): Likewise.
70703         (sc_prohibit_long_options_without_use): Likewise.
70704         (sc_prohibit_inttostr_without_use): Likewise.
70705         (sc_prohibit_ignore_value_without_use): Likewise.
70706         (sc_prohibit_error_without_use): Likewise.
70707         (sc_prohibit_xalloc_without_use): Likewise.
70708         (sc_prohibit_hash_without_use): Likewise.
70709         (sc_prohibit_hash_pjw_without_use): Likewise.
70710         (sc_prohibit_safe_read_without_use): Likewise.
70711         (sc_prohibit_argmatch_without_use): Likewise.
70712         (sc_prohibit_canonicalize_without_use): Likewise.
70713         (sc_prohibit_root_dev_ino_without_use): Likewise.
70714         (sc_prohibit_openat_without_use): Likewise.
70715         (sc_prohibit_c_ctype_without_use): Likewise.
70716         (sc_prohibit_signal_without_use): Likewise.
70717         (sc_prohibit_intprops_without_use): Likewise.
70719 2010-03-30  Eric Blake  <eblake@redhat.com>
70721         maint: improve module indicators
70722         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70723         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70724         columns, and avoid extra macro expansion.
70726         fdopendir: work around FreeBSD bug
70727         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70728         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70729         * modules/dirent (Makefile.am): Substitute it.
70730         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70731         declaration.
70732         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70733         fix.
70734         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70736 2010-03-29  Bruno Haible  <bruno@clisp.org>
70738         Emit #pragma system_header after the inclusion guard, not before.
70739         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70740         guard that spans the entire file, not before. This enables an
70741         optimization in GCC's preprocessor.
70742         * lib/ctype.in.h: Likewise.
70743         * lib/dirent.in.h: Likewise.
70744         * lib/errno.in.h: Likewise.
70745         * lib/float.in.h: Likewise.
70746         * lib/getopt.in.h: Likewise.
70747         * lib/iconv.in.h: Likewise.
70748         * lib/langinfo.in.h: Likewise.
70749         * lib/locale.in.h: Likewise.
70750         * lib/math.in.h: Likewise.
70751         * lib/netdb.in.h: Likewise.
70752         * lib/netinet_in.in.h: Likewise.
70753         * lib/pty.in.h: Likewise.
70754         * lib/sched.in.h: Likewise.
70755         * lib/se-selinux.in.h: Likewise.
70756         * lib/search.in.h: Likewise.
70757         * lib/spawn.in.h: Likewise.
70758         * lib/stdarg.in.h: Likewise.
70759         * lib/stdint.in.h: Likewise.
70760         * lib/string.in.h: Likewise.
70761         * lib/strings.in.h: Likewise.
70762         * lib/sys_file.in.h: Likewise.
70763         * lib/sys_ioctl.in.h: Likewise.
70764         * lib/sys_time.in.h: Likewise.
70765         * lib/sys_times.in.h: Likewise.
70766         * lib/sys_utsname.in.h: Likewise.
70767         * lib/sys_wait.in.h: Likewise.
70768         * lib/sysexits.in.h: Likewise.
70769         * lib/wctype.in.h: Likewise.
70771 2010-03-28  James Youngman  <jay@gnu.org>
70773         save-cwd: don't leak a file descriptor when the caller execs.
70774         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70775         saved file descriptor.
70776         * modules/save-cwd (Depends-on): Depend on cloexec.
70778 2010-03-29  Bruno Haible  <bruno@clisp.org>
70780         Remove vestiges of fts-lgpl module.
70781         * lib/fts_.h: Assume GNULIB_FTS is 1.
70782         * lib/fts.c: Likewise.
70783         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70785 2010-03-28  Bruno Haible  <bruno@clisp.org>
70787         Fix definition of tests witness macro.
70788         * gnulib-tool (func_import): Fix definition of witness macro.
70790 2010-03-28  Bruno Haible  <bruno@clisp.org>
70792         Fix ioctl's protoype on glibc systems.
70793         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70794         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70795         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70796         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70797         signature. If not, arrange to replace the ioctl function.
70798         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70799         REPLACE_IOCTL.
70800         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70801         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70802         Reported by Ludovic Courtès <ludo@gnu.org>.
70804 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70806         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70807         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70808         made it so grep -r --include=GLOB* ... did not work.
70810 2010-03-26  Jim Meyering  <meyering@redhat.com>
70811             Eric Blake  <eblake@redhat.com>
70813         maint.mk: prohibit use of test's -o and -a operators
70814         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70816 2010-03-28  Bruno Haible  <bruno@clisp.org>
70818         Remove unused GNULIB_XYZ macro definitions.
70819         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70820         invocation.
70822 2010-03-28  Bruno Haible  <bruno@clisp.org>
70824         Mark privileged tests modules.
70825         * modules/idpriv-drop-tests (Status): New section.
70826         * modules/idpriv-droptemp-tests (Status): New section.
70828 2010-03-28  Bruno Haible  <bruno@clisp.org>
70830         Split C++ tests into separate tests modules.
70831         * modules/dirent-c++-tests: New file, extracted from
70832         modules/dirent-tests.
70833         * modules/dirent-tests: Depend on it.
70834         * modules/fcntl-h-c++-tests: New file, extracted from
70835         modules/fcntl-h-tests.
70836         * modules/fcntl-h-tests: Depend on it.
70837         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70838         * modules/glob-tests: Depend on it.
70839         * modules/iconv-h-c++-tests: New file, extracted from
70840         modules/iconv-h-tests.
70841         * modules/iconv-h-tests: Depend on it.
70842         * modules/langinfo-c++-tests: New file, extracted from
70843         modules/langinfo-tests.
70844         * modules/langinfo-tests: Depend on it.
70845         * modules/locale-c++-tests: New file, extracted from
70846         modules/locale-tests.
70847         * modules/locale-tests: Depend on it.
70848         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70849         * modules/math-tests: Depend on it.
70850         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70851         * modules/pty-tests: Depend on it.
70852         * modules/search-c++-tests: New file, extracted from
70853         modules/search-tests.
70854         * modules/search-tests: Depend on it.
70855         * modules/signal-c++-tests: New file, extracted from
70856         modules/signal-tests.
70857         * modules/signal-tests: Depend on it.
70858         * modules/spawn-c++-tests: New file, extracted from
70859         modules/spawn-tests.
70860         * modules/spawn-tests: Depend on it.
70861         * modules/stdio-c++-tests: New file, extracted from
70862         modules/stdio-tests.
70863         * modules/stdio-tests: Depend on it.
70864         * modules/stdlib-c++-tests: New file, extracted from
70865         modules/stdlib-tests.
70866         * modules/stdlib-tests: Depend on it.
70867         * modules/string-c++-tests: New file, extracted from
70868         modules/string-tests.
70869         * modules/string-tests: Depend on it.
70870         * modules/sys_ioctl-c++-tests: New file, extracted from
70871         modules/sys_ioctl-tests.
70872         * modules/sys_ioctl-tests: Depend on it.
70873         * modules/sys_select-c++-tests: New file, extracted from
70874         modules/sys_select-tests.
70875         * modules/sys_select-tests: Depend on it.
70876         * modules/sys_socket-c++-tests: New file, extracted from
70877         modules/sys_socket-tests.
70878         * modules/sys_socket-tests: Depend on it.
70879         * modules/sys_stat-c++-tests: New file, extracted from
70880         modules/sys_stat-tests.
70881         * modules/sys_stat-tests: Depend on it.
70882         * modules/sys_time-c++-tests: New file, extracted from
70883         modules/sys_time-tests.
70884         * modules/sys_time-tests: Depend on it.
70885         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70886         * modules/time-tests: Depend on it.
70887         * modules/unistd-c++-tests: New file, extracted from
70888         modules/unistd-tests.
70889         * modules/unistd-tests: Depend on it.
70890         * modules/wchar-c++-tests: New file, extracted from
70891         modules/wchar-tests.
70892         * modules/wchar-tests: Depend on it.
70893         * modules/wctype-c++-tests: New file, extracted from
70894         modules/wctype-tests.
70895         * modules/wctype-tests: Depend on it.
70896         Reported by Simon Josefsson.
70898 2010-03-28  Bruno Haible  <bruno@clisp.org>
70900         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70901         * gnulib-tool (func_exists_module): New function, extracted from
70902         func_verify_module.
70903         (func_verify_module): Use it.
70904         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70905         'foo' only if 'foo' exists.
70906         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70907         module.
70909 2010-03-28  Bruno Haible  <bruno@clisp.org>
70911         gnulib-tool: Add support for special categories of tests.
70912         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70913         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70914         (func_usage): Document them.
70915         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70916         inc_unportable_tests, inc_all_tests): New variables.
70917         (func_acceptable): Consider these variables.
70918         (func_modules_transitive_closure): Make it work when the 'Status' field
70919         consists of multiple words.
70920         (func_import): Store and restore the values of inc_cxx_tests,
70921         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70922         inc_all_tests in gnulib-comp.m4.
70923         (func_create_testdir): Set inc_all_tests to true.
70924         * doc/gnulib.texi (Extra tests modules): New section.
70925         Suggested by Jim Meyering.
70927 2010-03-28  Bruno Haible  <bruno@clisp.org>
70929         ansi-c++-opt: Allow turning off the C++ build by default.
70930         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70931         gl_CXX_CHOICE_DEFAULT_NO is defined.
70932         Requested by Eric Blake.
70934 2010-03-28  Bruno Haible  <bruno@clisp.org>
70936         unistd: Avoid #define replacements in C++ mode.
70937         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70938         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70939         setsockopt, shutdown, select): In C++, attach a warning to the function
70940         if possible, rather than #defining the symbol to a dysfunctional alias.
70941         Reported by John W. Eaton <jwe@gnu.org>.
70943 2010-03-28  Bruno Haible  <bruno@clisp.org>
70945         Fix link errors on mingw.
70946         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70947         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70948         $(LIBSOCKET).
70949         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70950         $(LIBSOCKET).
70952 2010-03-28  Bruno Haible  <bruno@clisp.org>
70953             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70955         lib-ignore: Determine different options for different compilers.
70956         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70957         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70958         Add comments.
70959         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70960         * NEWS: Mention the change.
70962 2010-03-27  Bruno Haible  <bruno@clisp.org>
70964         Remove unused GNULIB_XYZ macro definitions.
70965         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70966         * modules/fseek (configure.ac): Likewise.
70967         * modules/ioctl (configure.ac): Likewise.
70968         * modules/open (configure.ac): Likewise.
70969         * modules/stdlib-safer (configure.ac): Likewise.
70971 2010-03-27  Bruno Haible  <bruno@clisp.org>
70973         Add a remark about certain modules.
70974         * modules/malloc (Comment): New section.
70975         * modules/realloc (Comment): Likewise.
70976         * modules/sigpipe (Comment): Likewise.
70978 2010-03-27  Bruno Haible  <bruno@clisp.org>
70980         Resolve conflict between the two kinds of module indicators.
70981         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70982         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70983         * modules/canonicalize (configure.ac): Invoke
70984         gl_MODULE_INDICATOR_FOR_TESTS.
70985         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70986         GNULIB_XYZ.
70987         * tests/test-dirent-c++.cc: Likewise.
70988         * tests/test-dirent-safer.c: Likewise.
70989         * tests/test-dup2.c: Likewise.
70990         * tests/test-fchdir.c: Likewise.
70991         * tests/test-fcntl-h-c++.cc: Likewise.
70992         * tests/test-getopt.c: Likewise.
70993         * tests/test-getopt.h: Likewise.
70994         * tests/test-langinfo-c++.cc: Likewise.
70995         * tests/test-locale-c++.cc: Likewise.
70996         * tests/test-math-c++.cc: Likewise.
70997         * tests/test-pty-c++.cc: Likewise.
70998         * tests/test-search-c++.cc: Likewise.
70999         * tests/test-signal-c++.cc: Likewise.
71000         * tests/test-spawn-c++.cc: Likewise.
71001         * tests/test-stdio-c++.cc: Likewise.
71002         * tests/test-stdlib-c++.cc: Likewise.
71003         * tests/test-string-c++.cc: Likewise.
71004         * tests/test-sys_ioctl-c++.cc: Likewise.
71005         * tests/test-sys_select-c++.cc: Likewise.
71006         * tests/test-sys_socket-c++.cc: Likewise.
71007         * tests/test-sys_stat-c++.cc: Likewise.
71008         * tests/test-sys_time-c++.cc: Likewise.
71009         * tests/test-time-c++.cc: Likewise.
71010         * tests/test-unistd-c++.cc: Likewise.
71011         * tests/test-wchar-c++.cc: Likewise.
71012         * tests/uninorm/test-u8-nfc.c: Likewise.
71013         * tests/uninorm/test-u8-nfd.c: Likewise.
71014         * tests/uninorm/test-u8-nfkc.c: Likewise.
71015         * tests/uninorm/test-u8-nfkd.c: Likewise.
71016         * tests/uninorm/test-u16-nfc.c: Likewise.
71017         * tests/uninorm/test-u16-nfd.c: Likewise.
71018         * tests/uninorm/test-u16-nfkc.c: Likewise.
71019         * tests/uninorm/test-u16-nfkd.c: Likewise.
71020         * tests/uninorm/test-u32-nfc.c: Likewise.
71021         * tests/uninorm/test-u32-nfc-big.c: Likewise.
71022         * tests/uninorm/test-u32-nfd.c: Likewise.
71023         * tests/uninorm/test-u32-nfd-big.c: Likewise.
71024         * tests/uninorm/test-u32-nfkc.c: Likewise.
71025         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
71026         * tests/uninorm/test-u32-nfkd.c: Likewise.
71027         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
71028         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71030 2010-03-27  Bruno Haible  <bruno@clisp.org>
71032         Distinguish two kinds of module indicators.
71033         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
71034         gl_MODULE_INDICATOR.
71035         (gl_MODULE_INDICATOR): New macro.
71036         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71037         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
71038         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71039         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71040         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71041         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71042         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71043         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71044         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71045         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71046         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71047         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71050         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71052         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71053         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71054         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71055         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71056         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71057         * modules/cloexec (configure.ac): Likewise.
71058         * modules/getopt-gnu (configure.ac): Likewise.
71059         * modules/uninorm/u8-normalize (configure.ac): Likewise.
71060         * modules/uninorm/u16-normalize (configure.ac): Likewise.
71061         * modules/uninorm/u32-normalize (configure.ac): Likewise.
71062         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
71064 2010-03-27  Bruno Haible  <bruno@clisp.org>
71066         New module description field 'Comment'.
71067         * gnulib-tool: New option --extract-comment.
71068         (func_usage): Document it.
71069         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
71070         (func_get_comment): New function.
71071         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
71073 2010-03-27  Bruno Haible  <bruno@clisp.org>
71075         Addendum to 2010-02-07 commit.
71076         * gnulib-tool (func_usage): Document --extract-applicability option.
71078 2010-03-27  Bruno Haible  <bruno@clisp.org>
71080         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
71081         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
71082         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
71083         rather than link errors.
71085 2010-03-27  Bruno Haible  <bruno@clisp.org>
71087         Avoid side effects from tests-related modules on the compilation of lib.
71088         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
71089         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
71090         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
71091         parameter. Emit into AM_CPPFLAGS a definition of the designated C
71092         macro.
71093         (func_import): Define a witness macro. Assign it a value that depends
71094         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
71095         tests-related modules.
71096         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
71097         Reported by Jim Meyering.
71099 2010-03-27  Bruno Haible  <bruno@clisp.org>
71101         Factorize common .m4 code.
71102         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
71103         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
71104         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
71105         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
71106         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71107         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
71108         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
71109         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71110         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71111         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71112         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
71113         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71114         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71115         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71116         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71117         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
71118         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71119         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71121         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
71122         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
71123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71124         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71125         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71126         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71127         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71128         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
71129         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
71130         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
71131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71132         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71133         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71135 2010-03-27  Bruno Haible  <bruno@clisp.org>
71137         Fix a compilation error on Cygwin with g++ >= 4.3.
71138         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
71139         if it is undefined or if we alias it to chmod.
71140         (lstat): Don't warn about the use of this function if it is undefined
71141         or if we alias it to stat.
71142         Reported by Simon Josefsson.
71144 2010-03-27  Bruno Haible  <bruno@clisp.org>
71146         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
71147         * modules/getlogin (configure.ac): Update.
71149         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
71150         * modules/getlogin_r (configure.ac): Update.
71152         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
71153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
71154         * modules/inet_ntop (configure.ac): Update.
71156         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
71157         * modules/inet_pton (configure.ac): Update.
71159         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
71160         * modules/mbslen (configure.ac): Update.
71162         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
71163         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
71164         * modules/forkpty (configure.ac): Update.
71165         * modules/openpty (configure.ac): Update.
71167 2010-03-26  Simon Josefsson  <simon@josefsson.org>
71169         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
71170         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
71172 2010-03-25  Eric Blake  <eblake@redhat.com>
71174         maint: use pragma consistently across replacement headers
71175         * lib/ctype.in.h (system_header): Hoist for consistent placement.
71176         * lib/dirent.in.h (system_header): Likewise.
71177         * lib/errno.in.h (system_header): Likewise.
71178         * lib/float.in.h (system_header): Likewise.
71179         * lib/getopt.in.h (system_header): Likewise.
71180         * lib/iconv.in.h (system_header): Likewise.
71181         * lib/inttypes.in.h (system_header): Likewise.
71182         * lib/langinfo.in.h (system_header): Likewise.
71183         * lib/locale.in.h (system_header): Likewise.
71184         * lib/math.in.h (system_header): Likewise.
71185         * lib/netdb.in.h (system_header): Likewise.
71186         * lib/netinet_in.in.h (system_header): Likewise.
71187         * lib/pty.in.h (system_header): Likewise.
71188         * lib/sched.in.h (system_header): Likewise.
71189         * lib/se-selinux.in.h (system_header): Likewise.
71190         * lib/search.in.h (system_header): Likewise.
71191         * lib/spawn.in.h (system_header): Likewise.
71192         * lib/stdarg.in.h (system_header): Likewise.
71193         * lib/stdint.in.h (system_header): Likewise.
71194         * lib/string.in.h (system_header): Likewise.
71195         * lib/strings.in.h (system_header): Likewise.
71196         * lib/sys_file.in.h (system_header): Likewise.
71197         * lib/sys_ioctl.in.h (system_header): Likewise.
71198         * lib/sys_socket.in.h (system_header): Likewise.
71199         * lib/sys_times.in.h (system_header): Likewise.
71200         * lib/sys_utsname.in.h (system_header): Likewise.
71201         * lib/sys_wait.in.h (system_header): Likewise.
71202         * lib/sysexits.in.h (system_header): Likewise.
71203         * lib/unistd.in.h (system_header): Likewise.
71204         * lib/wctype.in.h (system_header): Likewise.
71206         arpa/inet: fix mingw compilation warning
71207         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
71208         Reported by Matthew Bolte.
71210 2010-03-25  Bruno Haible  <bruno@clisp.org>
71212         Avoid collision between gnulib wrapper and libintl wrapper.
71213         * lib/printf.c (printf): Don't define if a printf wrapper is already
71214         defined in intl/printf.c.
71215         Reported by Michel Boaventura <michel@michelboaventura.com>.
71217 2010-03-25  Bruno Haible  <bruno@clisp.org>
71219         Use ANSI C.
71220         * lib/readutmp.h (getutent): Provide ANSI C prototype.
71222 2010-03-25  Bruno Haible  <bruno@clisp.org>
71224         Minor formatting changes.
71225         * lib/acosl.c: Insert space before function argument list.
71226         * lib/argz.c: Likewise.
71227         * lib/asinl.c: Likewise.
71228         * lib/expl.c: Likewise.
71229         * lib/gen-uni-tables.c: Likewise.
71230         * lib/gettext.h: Likewise.
71231         * lib/glthread/lock.h: Likewise.
71232         * lib/tanl.c: Likewise.
71233         * lib/uniname/uniname.c: Likewise.
71234         * tests/test-idpriv-drop.c: Likewise.
71235         * tests/test-idpriv-droptemp.c: Likewise.
71236         * tests/test-lock.c: Likewise.
71237         * tests/test-tls.c: Likewise.
71238         * lib/argp-help.c: Insert space before function-like macro argument
71239         list.
71240         * lib/memcmp.c: Likewise.
71241         * tests/test-base64.c: Likewise.
71242         * lib/localename.c: Insert space before sizeof's argument list.
71243         * lib/safe-alloc.h: Likewise.
71244         * lib/file-set.h: Insert space before macro argument list.
71245         * tests/test-argp.c: Likewise.
71246         * lib/argp-namefrob.h: Insert space before function parameter list.
71247         * lib/getaddrinfo.c: Likewise.
71248         * lib/netdb.in.h: Likewise.
71249         * lib/parse-duration.h: Likewise.
71250         * lib/parse-duration.c: Likewise.
71251         * lib/poll.c: Likewise.
71252         * lib/select.c: Likewise.
71253         * lib/trim.h: Likewise.
71254         * tests/test-usleep.c: Likewise.
71255         * lib/ldexpl.c: Insert space before function parameter list and before
71256         function argument list.
71257         * lib/logl.c: Likewise.
71258         * lib/sqrtl.c: Likewise.
71259         * lib/trim.c: Likewise.
71260         * lib/cosl.c: Use GNU style indentation. Insert space before function
71261         argument list.
71262         * lib/sinl.c: Likewise.
71263         * lib/tsearch.c: Insert space after 'for'.
71264         Reported by Jim Meyering.
71266 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
71268         * maint.mk (sc_Wundef_boolean): Check for the presence of the
71269         config header before grepping, as it's not present before
71270         autoreconf/configure are run.  Reported by Simon Josefsson.
71272 2010-03-23  Bruno Haible  <bruno@clisp.org>
71274         pt_chown: Make it work with automake < 1.11.
71275         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
71276         Reported by Simon Josefsson.
71278 2010-03-23  Bruno Haible  <bruno@clisp.org>
71280         pt_chown: Don't depend on GPLed modules.
71281         * lib/pt_chown.c: Don't include idpriv.h.
71282         (main): Don't drop privileges.
71283         * modules/pt_chown (Depends-on): Remove idpriv-drop.
71284         Reported by Simon Josefsson.
71286 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71288         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
71289         suggestions from karl@freefriends.org (Karl Berry).
71291 2010-03-22  Eric Blake  <eblake@redhat.com>
71293         gethostname: further tweaks
71294         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
71295         are overriding gethostname.
71296         Suggested by Bruno Haible.
71298 2010-03-21  Bruno Haible  <bruno@clisp.org>
71300         Fix comments.
71301         * lib/forkpty.c (rpl_forkpty): Fix comment.
71302         * lib/openpty.c (rpl_openpty): Likewise.
71303         Reported by Eric Blake.
71305 2010-03-22  Eric Blake  <eblake@redhat.com>
71307         gethostname: fix build on mingw
71308         * lib/unistd.in.h (includes): Work around fact that mingw
71309         <winsock2.h> re-includes <unistd.h>, by avoiding any
71310         redeclarations if we are being included by <winsock2.h>.
71311         Reported by Matthias Bolte.
71313 2010-03-21  Bruno Haible  <bruno@clisp.org>
71315         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71316         * lib/forkpty.c (forkpty): New replacement function, from glibc with
71317         modifications.
71318         * lib/pty.in.h (forkpty): Update declaration. Add comments.
71319         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
71320         provide the replacement.
71321         * modules/forkpty (Depends-on): Add openpty, login_tty.
71322         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
71323         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
71324         * doc/glibc-functions/forkpty.texi: More supported platforms.
71325         * config/srclist.txt: Add forkpty.c (commented).
71327 2010-03-21  Bruno Haible  <bruno@clisp.org>
71329         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71330         (Makefile.am): Verify that PTY_LIB is defined.
71332         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71334 2010-03-21  Bruno Haible  <bruno@clisp.org>
71336         Tests for module 'login_tty'.
71337         * modules/login_tty-tests: New file.
71338         * tests/test-login_tty.c: New file.
71340         New module 'login_tty'.
71341         * lib/login_tty.c: New file.
71342         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71343         * modules/login_tty: New file.
71344         * doc/glibc-functions/login_tty.texi: Mention the new module.
71346 2010-03-21  Bruno Haible  <bruno@clisp.org>
71348         login_tty: Documentation.
71349         * doc/glibc-functions/login_tty.texi: New file.
71350         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71352 2010-03-21  Bruno Haible  <bruno@clisp.org>
71354         pty: Consistent macro naming.
71355         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71356         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71357         * modules/pty (configure.ac): Update.
71359 2010-03-21  Bruno Haible  <bruno@clisp.org>
71361         Tests for openpty: Make stricter.
71362         * tests/test-openpty.c (main): Add test of canonical processing and
71363         erase.
71364         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71366         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71367         * lib/openpty.c (openpty): New replacement function.
71368         * lib/pty.in.h: Include <termios.h>.
71369         (openpty): Update declaration. Add comments.
71370         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71371         is not declared, arrange to provide the replacement. Check for _getpty
71372         and posix_openpt.
71373         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71374         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71375         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71376         * modules/pty-tests (test_pty_c___LDADD): New variable.
71377         * doc/glibc-functions/openpty.texi: More supported platforms.
71379 2010-03-21  Bruno Haible  <bruno@clisp.org>
71381         setenv: Tweaks.
71382         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71383         the test program.
71384         * doc/posix-functions/setenv.texi: Update platforms list.
71386 2010-03-21  Bruno Haible  <bruno@clisp.org>
71388         New module 'unlockpt'.
71389         * lib/unlockpt.c: New file, from glibc with modifications.
71390         * m4/unlockpt.m4: New file.
71391         * modules/unlockpt: New file.
71392         * lib/stdlib.in.h (unlockpt): New declaration.
71393         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71394         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71395         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71396         HAVE_UNLOCKPT.
71397         * doc/posix-functions/unlockpt.texi: Mention the new module.
71398         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71399         * config/srclist.txt: Add unlockpt.c (commented).
71401 2010-03-21  Jim Meyering  <meyering@redhat.com>
71403         maint.mk: prohibit inclusion of "intprops.h" without use
71404         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71406 2010-03-21  Bruno Haible  <bruno@clisp.org>
71408         New module 'grantpt'.
71409         * lib/grantpt.c: New file, from glibc with modifications.
71410         * m4/grantpt.m4: New file.
71411         * modules/grantpt: New file.
71412         * lib/stdlib.in.h (grantpt): New declaration.
71413         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71414         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71415         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71416         HAVE_GRANTPT.
71417         * doc/posix-functions/grantpt.texi: Mention the new module.
71418         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71419         * config/srclist.txt: Add grantpt.c (commented).
71421 2010-03-21  Bruno Haible  <bruno@clisp.org>
71423         New module 'pt_chown'.
71424         * lib/pt_chown.c: New file, from glibc with modifications.
71425         * lib/pty-private.h: New file, from glibc with modifications.
71426         * modules/pt_chown: New file.
71427         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71429 2010-03-21  Bruno Haible  <bruno@clisp.org>
71431         Tests for module 'ptsname'.
71432         * modules/ptsname-tests: New file.
71433         * tests/test-ptsname.c: New file.
71435         New module 'ptsname'.
71436         * lib/ptsname.c: New file, from glibc with modifications.
71437         * m4/ptsname.m4: New file.
71438         * modules/ptsname: New file.
71439         * lib/stdlib.in.h (ptsname): New declaration.
71440         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71441         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71442         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71443         HAVE_PTSNAME.
71444         * doc/posix-functions/ptsname.texi: Mention the new module.
71445         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71446         * config/srclist.txt: Add ptsname.c (commented).
71448 2010-03-21  Bruno Haible  <bruno@clisp.org>
71450         Tests for module 'ttyname_r'.
71451         * modules/ttyname_r-tests: New file.
71452         * tests/test-ttyname_r.c: New file.
71454         New module 'ttyname_r'.
71455         * lib/ttyname_r.c: New file.
71456         * m4/ttyname_r.m4: New file.
71457         * modules/ttyname_r: New file.
71458         * lib/unistd.in.h (ttyname_r): New declaration.
71459         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71460         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71461         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71462         HAVE_TTYNAME_R.
71463         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71464         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71466 2010-03-20  Bruno Haible  <bruno@clisp.org>
71468         signal: Undefine macro definitions in C++ mode.
71469         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71470         sigfillset): Undefine macro definitions from the system header in C++
71471         mode.
71472         Reported by John W. Eaton <jwe@gnu.org>.
71474 2010-03-20  Bruno Haible  <bruno@clisp.org>
71476         Ensure no #include statements inside extern "C" { ... }.
71477         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71478         contain #include statements.
71479         * lib/time.in.h: Likewise.
71481 2010-03-20  Bruno Haible  <bruno@clisp.org>
71483         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71484         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71485         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71486         Reported by John W. Eaton <jwe@gnu.org>.
71488 2010-03-20  Bruno Haible  <bruno@clisp.org>
71490         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71491         Reported by Jim Meyering.
71493 2010-03-20  Bruno Haible  <bruno@clisp.org>
71495         pipe: Set errno upon failure.
71496         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71497         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71498         errno value in error message.
71500 2010-03-20  Bruno Haible  <bruno@clisp.org>
71501             Jim Meyering  <meyering@redhat.com>
71503         lchown: Avoid "unused variable" warning.
71504         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71506 2010-03-20  Bruno Haible  <bruno@clisp.org>
71508         Work around unlink() bug on MacOS X 10.5.6.
71509         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71510         attempting to unlink a parent directory.
71511         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71512         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71513         activate for the replacement function.
71514         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71516 2010-03-20  Bruno Haible  <bruno@clisp.org>
71518         Fix link errors on Solaris 8.
71519         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71520         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71522 2010-03-19  Jim Meyering  <meyering@redhat.com>
71524         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71525         The _LIBC implementation of build_range_exp correctly honors the
71526         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71527         However, the non-_LIBC implementation would ignore that syntax-bit
71528         flag and return REG_ERANGE unconditionally.
71529         This change makes it honor that flag.
71530         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71531         Make two pointer parameters "const".
71532         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71533         (parse_bracket_exp): Update caller.
71535         regex.m4: correct the reversed range endpoint ([b-a]) test
71536         * m4/regex.m4: When requiring that [b-a] evoke failure,
71537         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71538         test pass once again for x86-based systems.
71540 2010-03-19  Bruno Haible  <bruno@clisp.org>
71542         scandir: Fix link error on Solaris 8.
71543         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71544         macros.
71546 2010-03-19  Bruno Haible  <bruno@clisp.org>
71548         getusershell: Fix documentation.
71549         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71550         module.
71551         * doc/glibc-functions/setusershell.texi: Likewise.
71553         getusershell: Provide declaration, missing on Solaris 9.
71554         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71555         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71556         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71557         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71559         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71560         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71561         HAVE_GETUSERSHELL.
71562         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71564 2010-03-19  Bruno Haible  <bruno@clisp.org>
71566         wctype: Provide iswblank function.
71567         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71568         exists and is fine.
71569         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71570         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71571         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71572         * doc/posix-functions/iswblank.texi: Update.
71574 2010-03-19  Bruno Haible  <bruno@clisp.org>
71576         Tests of module 'pty' in C++ mode.
71577         * modules/pty-tests: New file.
71578         * tests/test-pty-c++.cc: New file.
71579         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71581 2010-03-19  Eric Blake  <eblake@redhat.com>
71583         logb: fix documentation
71584         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71585         1.5 declaration bug.
71587         forkpty, openpty: prefer glibc's const-safe prototype
71588         * lib/forkpty.c (rpl_forkpty): New file.
71589         * lib/openpty.c (rpl_openpty): Likewise.
71590         * modules/forkpty (Files): Distribute it.
71591         * modules/openpty (Files): Likewise.
71592         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71593         check...
71594         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71595         replacement for non-const BSD signature.
71596         * modules/pty (Makefile.am): Substitute witnesses.
71597         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71598         * tests/test-forkpty.c: Update signature check.
71599         * tests/test-openpty.c: Likewise.
71600         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71601         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71603         forkpty, openpty: split functions into new modules
71604         * modules/pty (Makefile.am): Substitute new witnesses.
71605         (Libraries): Move library detection...
71606         * modules/forkpty: ...into new module.
71607         * modules/openpty: Another new module.
71608         * modules/pty-tests: Rename and split...
71609         * modules/forkpty-tests: ...to this...
71610         * modules/openpty-tests: ...and this.
71611         * tests/test-pty.c: Rename and split...
71612         * tests/test-forkpty.c: ...to this...
71613         * tests/test-openpty.c: ...and this.
71614         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71615         (gl_PTY): Split library searching...
71616         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71617         (gl_FORKPTY, gl_OPENPTY): New macros.
71618         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71619         * NEWS: Mention the split.
71620         * MODULES.html.sh (Misc): Document the modules.
71621         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71622         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71624         pty: improve replacement header
71625         * lib/pty.in.h: New file.
71626         * modules/pty (Files): Ship it.
71627         (Makefile.am): Always build replacement.
71628         * m4/pty.m4: Rename...
71629         * m4/pty_h.m4: ...to this.
71630         (gl_PTY): Modernize setting of witness macros; update check of
71631         forkpty to take proper advantage of cache.
71632         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71634         getopt: avoid compiler warning
71635         * lib/getopt.c (attribute_hidden): Remove unused macro.
71637 2010-03-18  Bruno Haible  <bruno@clisp.org>
71639         Fix link errors on Solaris 8.
71640         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71641         * modules/search-tests (test_search_c___LDADD): Likewise.
71642         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71643         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71644         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71645         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71646         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71647         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71648         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71650 2010-03-18  Bruno Haible  <bruno@clisp.org>
71652         Fix bug introduced on 2010-03-14.
71653         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71654         (gl_SPAWN_H): Require it.
71655         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71656         Reported by Simon Josefsson.
71658 2010-03-18  Bruno Haible  <bruno@clisp.org>
71660         Fix typo introduced on 2009-12-31.
71661         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71662         posix_spawn_file_actions_adddup2.
71664 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71665         and Eric Blake  <eblake@redhat.com>
71667         test-vc-list-files-git: make more robust
71668         * tests/test-vc-list-files-git.sh: Unset problematic environment
71669         variables.  Chain commands together.
71671 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71673         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71674         `AC_CHECK_DECL' invocation.
71676 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71678         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71679         appears before executable statements. Suggested by Petr Sumbera
71680         <Petr.Sumbera@Sun.COM>.
71682 2010-03-14  Bruno Haible  <bruno@clisp.org>
71684         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71685         portability problems. Instead use a simpler test.
71686         (main): Check that invalid arguments are rejected only on Linux.
71688 2010-03-14  Bruno Haible  <bruno@clisp.org>
71690         Fix bug introduced on 2009-12-31.
71691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71692         gl_PREREQ_SYS_H_WINSOCK2 always.
71693         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71694         SYS_SOCKET_H variable.
71695         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71696         Update comments.
71697         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71699         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71700         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71701         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71703 2010-03-14  Bruno Haible  <bruno@clisp.org>
71705         Fix values returned by sinl, cosl.
71706         * lib/trigl.h: Add specification comments.
71707         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71708         that combines the values from the precomputed table with the values of
71709         the Chebyshev polynomials.
71711 2010-03-14  Bruno Haible  <bruno@clisp.org>
71713         Fix compilation error when modules 'posix_spawn[p]' are not used.
71714         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71717 2010-03-14  Bruno Haible  <bruno@clisp.org>
71719         Fix compilation error on mingw when module 'time_r' is not used.
71720         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71721         is 1.
71722         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71723         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71724         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71727 2010-03-14  Bruno Haible  <bruno@clisp.org>
71729         Fix compilation error with Sun C.
71730         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71731         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71732         instead of GCC specific ULONG_LONG_MAX.
71733         * lib/xstrtoll.c: Likewise.
71734         * lib/xstrtoull.c: Likewise.
71736 2010-03-13  Bruno Haible  <bruno@clisp.org>
71738         Allow the user to disable C++ code and tests.
71739         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71740         (gl_PROG_ANSI_CXX): Require it.
71742 2010-03-13  Bruno Haible  <bruno@clisp.org>
71744         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71745         cases.
71747 2010-03-13  Bruno Haible  <bruno@clisp.org>
71749         Test that gnulib does not break the standard C++ headers.
71750         * tests/test-locale-c++2.cc: New file.
71751         * modules/locale-tests (Files): Add it.
71752         (Makefile.am): Compile it for test-locale-c++.
71753         * tests/test-math-c++2.cc: New file.
71754         * modules/math-tests (Files): Add it.
71755         (Makefile.am): Compile it for test-math-c++.
71756         * tests/test-signal-c++2.cc: New file.
71757         * modules/signal-tests (Files): Add it.
71758         (Makefile.am): Compile it for test-signal-c++.
71759         * tests/test-stdio-c++2.cc: New file.
71760         * modules/stdio-tests (Files): Add it.
71761         (Makefile.am): Compile it for test-stdio-c++.
71762         * tests/test-stdlib-c++2.cc: New file.
71763         * modules/stdlib-tests (Files): Add it.
71764         (Makefile.am): Compile it for test-stdlib-c++.
71765         * tests/test-string-c++2.cc: New file.
71766         * modules/string-tests (Files): Add it.
71767         (Makefile.am): Compile it for test-string-c++.
71768         * tests/test-time-c++2.cc: New file.
71769         * modules/time-tests (Files): Add it.
71770         (Makefile.am): Compile it for test-time-c++.
71771         Reported by John W. Eaton <jwe@gnu.org>.
71773 2010-03-13  Bruno Haible  <bruno@clisp.org>
71775         * gnulib-tool (func_usage): Clarify which options are available for
71776         --create-testdir and --create-megatestdir.
71778 2010-03-13  Bruno Haible  <bruno@clisp.org>
71780         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71781         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71782         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71783         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71784         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71785         when appropriate.
71786         Reported by Jim Meyering.
71788 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71790         * gnulib-tool (func_import): Explain origin of code.
71792 2010-03-12  Bruno Haible  <bruno@clisp.org>
71794         Fix problem with automake's definition of CXXLINK.
71795         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71796         Reported by Simon Josefsson and Ludovic Courtès.
71798 2010-03-12  Bruno Haible  <bruno@clisp.org>
71800         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71801         stable releases.
71803 2010-03-11  Bruno Haible  <bruno@clisp.org>
71805         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71806         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71807         whether the system provides one variant or multiple variants of the
71808         function.
71809         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71810         C++ compilers.
71811         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71812         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71813         Reported by Jim Meyering.
71815 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71817         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71819 2010-03-08  Bruno Haible  <bruno@clisp.org>
71821         gnulib-tool: Add support for --libtool in --create-testdir.
71822         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71823         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71825 2010-03-08  Eric Blake  <eblake@redhat.com>
71827         gnulib-tool.texi: mention possibility of git submodule
71828         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71829         submodules.
71830         * doc/.gitignore: Ignore another generated file.
71832 2010-03-08  Karl Berry  <karl@gnu.org>
71834         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71835         of committing gnulib files while skipping others.
71837 2010-03-07  Bruno Haible  <bruno@clisp.org>
71839         Tests of module 'wctype' in C++ mode.
71840         * tests/test-wctype-c++.cc: New file.
71841         * modules/wctype-tests (Files): Add it and tests/signature.h.
71842         (Depends-on): Add ansi-c++-opt.
71843         (Makefile.am): Arrange to compile and run test-wctype-c++.
71845         Tests of module 'wchar' in C++ mode.
71846         * tests/test-wchar-c++.cc: New file.
71847         * modules/wchar-tests (Files): Add it and tests/signature.h.
71848         (Depends-on): Add ansi-c++-opt.
71849         (Makefile.am): Arrange to compile and run test-wchar-c++.
71850         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71851         gl_MODULE_INDICATOR.
71853         Tests of module 'unistd' in C++ mode.
71854         * tests/test-unistd-c++.cc: New file.
71855         * modules/unistd-tests (Files): Add it and tests/signature.h.
71856         (Depends-on): Add ansi-c++-opt.
71857         (Makefile.am): Arrange to compile and run test-unistd-c++.
71858         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71859         gl_MODULE_INDICATOR.
71861         Tests of module 'time' in C++ mode.
71862         * tests/test-time-c++.cc: New file.
71863         * modules/time-tests (Files): Add it and tests/signature.h.
71864         (Depends-on): Add ansi-c++-opt.
71865         (Makefile.am): Arrange to compile and run test-time-c++.
71866         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71868         Tests of module 'sys_time' in C++ mode.
71869         * tests/test-sys_time-c++.cc: New file.
71870         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71871         (Depends-on): Add ansi-c++-opt.
71872         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71873         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71874         gl_MODULE_INDICATOR.
71876         Tests of module 'sys_stat' in C++ mode.
71877         * tests/test-sys_stat-c++.cc: New file.
71878         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71879         (Depends-on): Add ansi-c++-opt.
71880         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71881         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71882         gl_MODULE_INDICATOR.
71884         Tests of module 'sys_socket' in C++ mode.
71885         * tests/test-sys_socket-c++.cc: New file.
71886         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71887         (Depends-on): Add ansi-c++-opt.
71888         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71889         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71890         gl_MODULE_INDICATOR.
71892         Tests of module 'sys_select' in C++ mode.
71893         * tests/test-sys_select-c++.cc: New file.
71894         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71895         (Depends-on): Add ansi-c++-opt.
71896         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71897         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71898         gl_MODULE_INDICATOR.
71900         Tests of module 'sys_ioctl' in C++ mode.
71901         * tests/test-sys_ioctl-c++.cc: New file.
71902         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71903         (Depends-on): Add ansi-c++-opt.
71904         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71905         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71906         gl_MODULE_INDICATOR.
71908         Tests of module 'string' in C++ mode.
71909         * tests/test-string-c++.cc: New file.
71910         * modules/string-tests (Files): Add it and tests/signature.h.
71911         (Depends-on): Add ansi-c++-opt.
71912         (Makefile.am): Arrange to compile and run test-string-c++.
71913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71914         gl_MODULE_INDICATOR.
71916         Tests of module 'stdlib' in C++ mode.
71917         * tests/test-stdlib-c++.cc: New file.
71918         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71919         (Depends-on): Add ansi-c++-opt.
71920         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71921         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71922         gl_MODULE_INDICATOR.
71924         Tests of module 'stdio' in C++ mode.
71925         * tests/test-stdio-c++.cc: New file.
71926         * modules/stdio-tests (Files): Add it and tests/signature.h.
71927         (Depends-on): Add ansi-c++-opt.
71928         (Makefile.am): Arrange to compile and run test-stdio-c++.
71929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71930         gl_MODULE_INDICATOR.
71932         Tests of module 'spawn' in C++ mode.
71933         * tests/test-spawn-c++.cc: New file.
71934         * modules/spawn-tests (Files): Add it and tests/signature.h.
71935         (Depends-on): Add ansi-c++-opt.
71936         (Makefile.am): Arrange to compile and run test-spawn-c++.
71937         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71938         gl_MODULE_INDICATOR.
71940         Tests of module 'signal' in C++ mode.
71941         * tests/test-signal-c++.cc: New file.
71942         * modules/signal-tests (Files): Add it and tests/signature.h.
71943         (Depends-on): Add ansi-c++-opt.
71944         (Makefile.am): Arrange to compile and run test-signal-c++.
71945         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71946         gl_MODULE_INDICATOR.
71948         Tests of module 'search' in C++ mode.
71949         * tests/test-search-c++.cc: New file.
71950         * modules/search-tests (Files): Add it and tests/signature.h.
71951         (Depends-on): Add ansi-c++-opt.
71952         (Makefile.am): Arrange to compile and run test-search-c++.
71953         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71954         gl_MODULE_INDICATOR.
71956         Tests of module 'math' in C++ mode.
71957         * tests/test-math-c++.cc: New file.
71958         * modules/math-tests (Files): Add it and tests/signature.h.
71959         (Depends-on): Add ansi-c++-opt.
71960         (Makefile.am): Arrange to compile and run test-math-c++.
71961         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71963         Tests of module 'locale' in C++ mode.
71964         * tests/test-locale-c++.cc: New file.
71965         * modules/locale-tests (Files): Add it and tests/signature.h.
71966         (Depends-on): Add ansi-c++-opt.
71967         (Makefile.am): Arrange to compile and run test-locale-c++.
71968         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71969         gl_MODULE_INDICATOR.
71971         Tests of module 'langinfo' in C++ mode.
71972         * tests/test-langinfo-c++.cc: New file.
71973         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71974         (Depends-on): Add ansi-c++-opt.
71975         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71976         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71977         gl_MODULE_INDICATOR.
71979         Tests of module 'iconv-h' in C++ mode.
71980         * tests/test-iconv-h-c++.cc: New file.
71981         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71982         (Depends-on): Add ansi-c++-opt.
71983         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71985         Tests of module 'glob' in C++ mode.
71986         * tests/test-glob-c++.cc: New file.
71987         * modules/glob-tests (Files): Add it.
71988         (Depends-on): Add ansi-c++-opt.
71989         (Makefile.am): Arrange to compile and run test-glob-c++.
71991         Tests of module 'fcntl-h' in C++ mode.
71992         * tests/test-fcntl-h-c++.cc: New file.
71993         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71994         (Depends-on): Add ansi-c++-opt.
71995         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71997         gl_MODULE_INDICATOR.
71999         Tests of module 'dirent' in C++ mode.
72000         * tests/test-dirent-c++.cc: New file.
72001         * modules/dirent-tests (Files): Add it and tests/signature.h.
72002         (Depends-on): Add ansi-c++-opt.
72003         (Makefile.am): Arrange to compile and run test-dirent-c++.
72004         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
72005         gl_MODULE_INDICATOR.
72007         New module 'ansi-c++-opt'.
72008         * modules/ansi-c++-opt: New file.
72009         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
72011         Document C++ namespace mode.
72012         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
72014         wctype: Avoid #define replacements in C++ mode.
72015         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
72016         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
72017         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
72018         In C++, define a namespaced alias symbol.
72019         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
72020         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
72021         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
72022         rule.
72024         wchar: Avoid #define replacements in C++ mode.
72025         * lib/wchar.in.h: Include c++defs.h.
72026         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
72027         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
72028         symbol.
72029         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
72030         * modules/wchar (Depends-on): Add c++defs.
72031         (Makefile.am): Update wchar.h rule.
72033         unistd: Avoid #define replacements in C++ mode.
72034         * lib/unistd.in.h: Include c++defs.h.
72035         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
72036         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
72037         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
72038         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
72039         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
72040         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
72041         symbol.
72042         (environ): Update.
72043         * modules/unistd (Depends-on): Add c++defs.
72044         (Makefile.am): Update unistd.h rule.
72046         time: Avoid #define replacements in C++ mode.
72047         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
72048         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
72049         define a namespaced alias symbol.
72050         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
72051         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
72052         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
72053         * modules/time (Depends-on): Add c++defs, warn-on-use.
72054         (Makefile.am): Update time.h rule.
72055         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72056         * modules/nanosleep (configure.ac): Likewise.
72057         * modules/strptime (configure.ac): Likewise.
72058         * modules/timegm (configure.ac): Likewise.
72060         sys_time: Avoid #define replacements in C++ mode.
72061         * lib/sys_time.in.h: Include c++defs.h.
72062         (gettimeofday): In C++, define a namespaced alias symbol.
72063         * modules/sys_time (Depends-on): Add c++defs.
72064         (Makefile.am): Update sys/time.h rule.
72066         sys_stat: Avoid #define replacements in C++ mode.
72067         * lib/sys_stat.in.h: Include c++defs.h.
72068         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
72069         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
72070         namespaced alias symbol.
72071         In C++, define a namespaced alias symbol.
72072         * modules/sys_stat (Depends-on): Add c++defs.
72073         (Makefile.am): Update sys/stat.h rule.
72075         sys_socket: Avoid #define replacements in C++ mode.
72076         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
72077         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
72078         definitions also when the system has a <sys/socket.h>.
72079         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72080         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
72081         In C++, define a namespaced alias symbol.
72082         * modules/sys_socket (Depends-on): Add c++defs.
72083         (Makefile.am): Update sys/socket.h rule.
72085         sys_select: Avoid #define replacements in C++ mode.
72086         * lib/sys_select.in.h: Include c++defs.h. Enable the function
72087         definitions also when the system has a <sys/select.h>.
72088         (select): In C++, define a namespaced alias symbol.
72089         * modules/sys_select (Depends-on): Add c++defs.
72090         (Makefile.am): Update sys/select.h rule.
72092         sys_ioctl: Avoid #define replacements in C++ mode.
72093         * lib/sys_ioctl.in.h: Include c++defs.h.
72094         (ioctl): In C++, define a namespaced alias symbol.
72095         * modules/sys_ioctl (Depends-on): Add c++defs.
72096         (Makefile.am): Update sys/ioctl.h rule.
72098         string: Avoid #define replacements in C++ mode.
72099         * lib/string.in.h: Include c++defs.h.
72100         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
72101         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72102         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72103         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
72104         strsignal, strverscmp): In C++, define a namespaced alias symbol.
72105         * modules/string (Depends-on): Add c++defs.
72106         (Makefile.am): Update string.h rule.
72108         stdlib: Avoid #define replacements in C++ mode.
72109         * lib/stdlib.in.h: Include c++defs.h.
72110         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
72111         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
72112         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
72113         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
72114         symbol.
72115         * modules/stdlib (Depends-on): Add c++defs.
72116         (Makefile.am): Update stdlib.h rule.
72118         stdio: Avoid #define replacements in C++ mode.
72119         * lib/stdio.in.h: Include c++defs.h.
72120         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
72121         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
72122         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
72123         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
72124         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
72125         namespaced alias symbol.
72126         * modules/stdio (Depends-on): Add c++defs.
72127         (Makefile.am): Update stdio.h rule.
72129         spawn: Avoid #define replacements in C++ mode.
72130         * lib/spawn.in.h: Include c++defs.h.
72131         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72132         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72133         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72134         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72135         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72136         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72137         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72138         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72139         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72140         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72141         In C++, define a namespaced alias symbol.
72142         * modules/spawn (Depends-on): Add c++defs.
72143         (Makefile.am): Update spawn.h rule.
72145         signal: Avoid #define replacements in C++ mode.
72146         * lib/signal.in.h: Include c++defs.h.
72147         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72148         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
72149         namespaced alias symbol.
72150         * modules/signal (Depends-on): Add c++defs.
72151         (Makefile.am): Update signal.h rule.
72153         search: Avoid #define replacements in C++ mode.
72154         * lib/search.in.h: Include c++defs.h.
72155         (_gl_search_compar_fn, _gl_search_action_fn): New types.
72156         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
72157         symbol.
72158         * modules/search (Depends-on): Add c++defs.
72159         (Makefile.am): Update search.h rule.
72161         math: Avoid #define replacements in C++ mode.
72162         * lib/math.in.h: Include c++defs.h.
72163         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
72164         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
72165         trunc, truncl): In C++, define a namespaced alias symbol.
72166         * modules/math (Depends-on): Add c++defs.
72167         (Makefile.am): Update math.h rule.
72169         locale: Avoid #define replacements in C++ mode.
72170         * lib/locale.in.h: Include c++defs.h.
72171         (duplocale): In C++, define a namespaced alias symbol.
72172         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
72173         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
72174         * modules/locale (Depends-on): Add c++defs.
72175         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
72177         langinfo: Avoid #define replacements in C++ mode.
72178         * lib/langinfo.in.h: Include c++defs.h.
72179         (nl_langinfo): In C++, define a namespaced alias symbol.
72180         * modules/langinfo (Depends-on): Add c++defs.
72181         (Makefile.am): Update langinfo.h rule.
72183         iconv-h: Avoid #define replacements in C++ mode.
72184         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
72185         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
72186         symbol.
72187         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72188         whenever iconv is present.
72189         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
72190         (Makefile.am): Update iconv.h rule.
72192         glob: Avoid #define replacements in C++ mode.
72193         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
72194         (_gl_glob_errfunc_fn): New type.
72195         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
72196         symbol.
72197         * modules/glob (Depends-on): Add c++defs, warn-on-use.
72198         (Makefile.am): Update glob.h rule.
72200         fcntl-h: Avoid #define replacements in C++ mode.
72201         * lib/fcntl.in.h: Include c++defs.h.
72202         (fcntl, open, openat): In C++, define a namespaced alias symbol.
72203         * modules/fcntl-h (Depends-on): Add c++defs.
72204         (Makefile.am): Update fcntl.h rule.
72206         dirent: Avoid #define replacements in C++ mode.
72207         * lib/dirent.in.h: Include c++defs.h.
72208         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
72209         namespaced alias symbol.
72210         (dirfd): Update declaration.
72211         * modules/dirent (Depends-on): Add c++defs.
72212         (Makefile.am): Update dirent.h rule.
72214         ctype: Make it usable in C++ code.
72215         * lib/ctype.in.h: Include c++defs.h.
72216         (isblank): Declare as extern "C".
72217         * modules/ctype (Depends-on): Add c++defs.
72218         (Makefile.am): Update ctype.h rule.
72220         New module 'c++defs'.
72221         * modules/c++defs: New file.
72222         * build-aux/c++defs.h: New file.
72223         Reported by John W. Eaton <jwe@gnu.org>.
72225 2010-03-07  Bruno Haible  <bruno@clisp.org>
72227         logb: Provide missing declaration for Cygwin.
72228         * lib/math.in.h (logb): New declaration.
72229         * m4/logb.m4: New file.
72230         * modules/logb (Files): Add m4/logb.m4.
72231         (Depends-on): Add math.
72232         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
72233         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
72234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
72235         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
72236         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
72238 2010-03-07  Bruno Haible  <bruno@clisp.org>
72240         Fix test-cond link error.
72241         * tests/test-cond.c: Include <stdio.h>.
72243 2010-03-07  Bruno Haible  <bruno@clisp.org>
72245         Fix test-dirent-safer link error.
72246         * modules/dirent-safer-tests (Makefile.am): Define
72247         test_dirent_safer_LDADD.
72249 2010-03-07  Bruno Haible  <bruno@clisp.org>
72251         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
72252         among default module list.
72254 2010-03-07  Bruno Haible  <bruno@clisp.org>
72256         Fix link error on platforms with GNU libiconv.
72257         * modules/unistr/u8-strcoll-tests (Makefile): Define
72258         test_u8_strcoll_LDADD.
72259         * modules/unistr/u16-strcoll-tests (Makefile): Define
72260         test_u16_strcoll_LDADD.
72261         * modules/unistr/u32-strcoll-tests (Makefile): Define
72262         test_u32_strcoll_LDADD.
72264 2010-03-07  Bruno Haible  <bruno@clisp.org>
72266         Use POSIX declarations for socket functions.
72267         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
72268         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
72269         rpl_sendto): Change declaration to match POSIX.
72270         * lib/connect.c (rpl_connect): Likewise.
72271         * lib/accept.c (rpl_accept): Likewise.
72272         * lib/bind.c (rpl_bind): Likewise.
72273         * lib/getpeername.c (rpl_getpeername): Likewise.
72274         * lib/getsockname.c (rpl_getsockname): Likewise.
72275         * lib/recv.c (rpl_recv): Likewise.
72276         * lib/send.c (rpl_send): Likewise.
72277         * lib/recvfrom.c (rpl_recvfrom): Likewise.
72278         * lib/sendto.c (rpl_sendto): Likewise.
72280 2010-03-06  Bruno Haible  <bruno@clisp.org>
72282         Clarify access, euidaccess, faccessat.
72283         * doc/posix-functions/faccessat.texi: Mention security problem under
72284         "Other problems", not "Portability problems".
72285         * doc/posix-functions/access.texi: Likewise. Mention a related security
72286         problem.
72287         * doc/glibc-functions/euidaccess.texi: Mention security problems.
72288         * lib/euidaccess.c: Add comments about platforms.
72289         * lib/unistd.in.h (access, euidaccess): Add warnings.
72291 2010-03-07  Bruno Haible  <bruno@clisp.org>
72293         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
72294         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
72295         (POSIX_SPAWN_SETSCHEDULER): Likewise.
72296         (POSIX_SPAWN_USEVFORK): Define in a way that works when
72297         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72298         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
72299         declare when POSIX_SPAWN_SETSCHEDULER is zero.
72300         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
72301         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
72302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
72303         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
72304         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
72305         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
72306         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
72307         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
72308         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
72309         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
72310         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
72311         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
72312         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
72313         Likewise.
72314         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72315         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
72316         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
72317         Likewise.
72318         * tests/test-spawn.c (main): Make it work when
72319         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72321 2010-03-07  Bruno Haible  <bruno@clisp.org>
72323         Fix incorrect Makefile.am generation in German locale.
72324         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72325         Execute sed command with character range in C locale.
72327 2010-03-06  Bruno Haible  <bruno@clisp.org>
72329         Tests for module 'iconv-h'.
72330         * modules/iconv-h-tests: New file.
72331         * tests/test-iconv-h.c: New file.
72333         New module 'iconv-h'.
72334         * modules/iconv-h: New file.
72335         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72336         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72337         (configure.ac): Remove gl_ICONV_H.
72338         (Makefile.am): Remove rule for iconv.h.
72340 2010-03-06  Bruno Haible  <bruno@clisp.org>
72342         More consistent naming of *.m4 files.
72343         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72344         * modules/wctype (Files): Update.
72346         More consistent naming of *.m4 files.
72347         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72348         * modules/wchar (Files): Update.
72350 2010-03-06  Jim Meyering  <meyering@redhat.com>
72352         euidaccess: relax license to LGPLv2+
72353         * modules/euidaccess (License): Relax to LGPLv2+.
72355 2010-03-06  Bruno Haible  <bruno@clisp.org>
72357         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72358         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72359         (Makefile.am): Augment lib_SOURCES instead.
72361 2010-03-04  Jim Meyering  <meyering@redhat.com>
72363         utime: remove obsolete module
72364         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72365         unnecessary for years, and has been marked as obsolete for 10 months.
72366         * modules/utime: Remove file.
72367         * lib/utime.c: Remove file.
72368         * m4/utime.m4: Remove file.
72369         * m4/utimes-null.m4: Remove file.
72370         * doc/posix-functions/utime.texi (utime): Remove reference to
72371         the module.  Move the sole "fixed by gnulib" item into the
72372         "problems not fixed by Gnulib" list.
72373         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72375 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72377         * modules/exit (License): Relax license to LGPLv2+.
72378         (Status): Mark as obsolete.
72379         * NEWS: Mention deprecated 'exit' module.
72380         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72381         of now obsolete 'exit'.
72383 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72385         fts-lgpl: remove unused module
72386         * modules/fts-lgpl: Remove.
72387         * MODULES.html.sh (func_all_modules): Adjust.
72388         * check-module (find_included_lib_files): Adjust.
72389         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72391 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72393         copy-acl: enhance Solaris ACL error handling
72394         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72395         * lib/set-mode-acl.c (qset_acl): Likewise.
72397 2010-03-02  Bruno Haible  <bruno@clisp.org>
72399         spawn: Don't override the system defined values on FreeBSD 8.
72400         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72401         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72402         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72403         if HAVE_POSIX_SPAWN is 1.
72404         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72406 2010-03-01  Bruno Haible  <bruno@clisp.org>
72408         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72409         regarding Automake.
72411 2010-02-25  Bruno Haible  <bruno@clisp.org>
72413         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72414         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72415         setting, not afterwards.
72416         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72418 2010-02-24  Eric Blake  <eblake@redhat.com>
72420         bootstrap, git-version-gen: use timestamp
72421         * build-aux/git-version-gen (scriptversion): Force UTC.
72422         * build-aux/bootstrap (scriptversion): New variable.
72424         bootstrap: allow older git
72425         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72426         older than 1.6.4.  Requested by the libvirt project.
72428 2010-02-23  Eric Blake  <eblake@redhat.com>
72430         warn-on-use: work with old autoconf
72431         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72432         AS_VAR semantics of autoconf 2.60.
72433         Reported by Bruno Haible.
72435         bootstrap: improve some comments
72436         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72437         clarification comments.
72439         gettimeofday: provide correct function
72440         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72441         when replacement is declared, otherwise provide gettimeofday.
72442         Reported by Michael Goffioul.
72444 2010-02-23  Jim Meyering  <meyering@redhat.com>
72446         lib-ignore: relax license to "unlimited", not LGPLv2+
72447         * modules/lib-ignore (License): Relax to "unlimited".
72449 2010-02-23  Jim Meyering  <meyering@redhat.com>
72451         lib-ignore: relax license to LGPLv2+
72452         * modules/lib-ignore (License): Relax to LGPLv2+.
72454 2010-02-22  Eric Blake  <eblake@redhat.com>
72456         lseek: avoid bash 3.2 broken pipe bug
72457         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72458         warning from bash 3.2.
72459         Reported by Ben Pfaff, with analysis from Bruno Haible.
72461         bootstrap: support non-FSF copyright holder
72462         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72463         bootstrap.conf override of COPYRIGHT_HOLDER.
72464         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72466         bootstrap: interoperate with gettext 0.14.1
72467         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72469         bootstrap: allow for alternate submodule location
72470         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72471         hardcoding submodule location.
72472         (gnulib_mk): Allow direct use of Makefile.am.
72474         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72475         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72476         rather than reconfiguring where the submodule points.
72478         gettimeofday: restore support for platforms that lack function
72479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72480         replacement if function is missing.
72481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72482         * modules/sys_time (Makefile.am): Substitute it.
72483         * lib/sys_time.in.h (gettimeofday): Check it.
72484         Reported by Michael Goffioul.
72486 2010-02-21  Bruno Haible  <bruno@clisp.org>
72488         * lib/stdio.in.h (obstack_printf): Fix typo.
72490 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72492         vc-list-files: use bzr ls's -R option
72493         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72494         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72496 2010-02-21  Jim Meyering  <meyering@redhat.com>
72498         init.sh: fix EXEEXT shims to work also for names like test-prog
72499         * tests/init.sh: Re-exec a better shell, when needed.
72500         If the current shell lacks support for posix $(...), an init.sh-using
72501         test will now try to find a shell that supports that.  If EXEEXT is
72502         nonempty, we also require support for hyphen-in-alias-name and shell
72503         substitutions like ${var#glob}.  Failure to find such a shell results
72504         in a skipped test.
72506 2010-02-21  Bruno Haible  <bruno@clisp.org>
72508         Really work around "broken pipe" error message from bash 3.2.
72509         * gnulib-tool (func_reset_sigpipe): Remove function.
72510         (echo): In bash 3.2, define to a function that uses printf.
72511         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72513 2010-02-20  Bruno Haible  <bruno@clisp.org>
72515         Restore support for automake 1.9.6 with autoconf 2.61.
72516         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72517         Reported by James Youngman <jay@gnu.org>.
72519 2010-02-20  Bruno Haible  <bruno@clisp.org>
72521         Improve *printf warning condition.
72522         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72523         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72524         and the function is overridden due to SIGPIPE emulation.
72526 2010-02-20  Bruno Haible  <bruno@clisp.org>
72528         * lib/stdio.in.h: Tweak comments.
72530 2010-02-19  Bruno Haible  <bruno@clisp.org>
72532         Make it easier to find modules. New gnulib-tool option '--find'.
72533         * gnulib-tool: New option --find.
72534         (func_usage): Document it.
72535         (func_sanitize_modulelist): New function, extracted from
72536         func_all_modules.
72537         (func_all_modules): Invoke it.
72538         * doc/gnulib-tool.texi (Which modules?): New node.
72540 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72542         * lib/sys_select.in.h: Provide select replacement even if
72543         sys/select.h exists on a system, for Interix.
72545 2010-02-18  Jim Meyering  <meyering@redhat.com>
72547         init.sh: don't use $(...) just yet
72548         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72549         to accommodate e.g., Solaris' /bin/sh.
72551 2010-02-17  Bruno Haible  <bruno@clisp.org>
72553         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72554         Reported by Ludovic Courtès <ludo@gnu.org>.
72556 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72558         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72559         linking with -lintl.
72561 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72563         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72564         if not provided by the system's netdb.h.  Reported by
72565         ludo@gnu.org (Ludovic Courtès).
72567 2010-02-15  Jim Meyering  <meyering@redhat.com>
72569         init.sh: improve portability and efficiency
72570         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72571         "dummy" in a for loop.
72572         Use '!', not '^' to select the complement of a character set used
72573         in a "case" statement.
72574         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72575         Suggestions from Eric Blake.
72577         init.sh: automatically accommodate programs with the .exe suffix
72578         Automatically arrange for an invocation of "prog" to execute the
72579         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72580         may use the simpler "prog", yet still work when built on a system
72581         that requires specifying the added suffix.
72582         Do this by constructing a function named "prog" that invokes
72583         "prog.exe" for each .exe file in selected directories.
72584         * tests/init.sh (find_exe_basenames_): New function.
72585         (create_exe_shim_functions_): New function.
72586         (path_prepend_): Use it.
72588         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72589         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72590         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72592 2010-02-14  Jim Meyering  <meyering@redhat.com>
72594         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72595         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72596         (sc_prohibit_hash_pjw_without_use): New rule.
72598         maint.mk: allow the default upload destination dir to be overridden
72599         * top/maint.mk (upload_dest_dir_): Define with a default that
72600         preserves the status quo.
72601         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72602         Reported by Peter Simons.
72604         maint.mk: prohibit inclusion of "hash.h" without_use
72605         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72607 2010-02-10  Jim Meyering  <meyering@redhat.com>
72609         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72610         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72612 2010-02-09  Eric Blake  <ebb9@byu.net>
72613         and Bruno Haible  <bruno@clisp.org>
72615         obstack-printf-posix: ensure declaration
72616         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72617         extracted from gl_FUNC_OBSTACK_PRINTF.
72618         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72619         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72620         Likewise.
72621         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72622         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72623         0.
72625 2010-02-08  Bruno Haible  <bruno@clisp.org>
72627         gnulib-tool: Fix typo in 2010-02-07 commit.
72628         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72629         Reported by Eric Blake.
72631 2010-02-07  Bruno Haible  <bruno@clisp.org>
72633         gnulib-tool: Fix up caching patches.
72634         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72635         option --no-cache. Use associative arrays when supported by the shell.
72636         (sed_comments): New variable.
72637         (modcache): Renamed from do_cache.
72638         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72639         abbreviate unnecessarily.
72640         (have_associative): New variable.
72641         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72642         way also for ksh and zsh.
72643         (func_init_sed_convert_to_cache_statements): New function, extracted
72644         from func_cache_lookup_module. Add support for associative arrays.
72645         Don't set the c_MODULE_cached variable here. Ignore all lines before
72646         the first field header. Remove only the final newline, not all trailing
72647         newlines. Support empty fields correctly. Limit the use of 'eval' to
72648         assignments.
72649         (func_get_description, func_get_status, func_get_notice,
72650         func_get_applicability, func_get_filelist, func_get_dependencies,
72651         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72652         func_get_automake_snippet, func_get_include_directive,
72653         func_get_link_directive, func_get_license, func_get_maintainer):
72654         Update documentation. List the unoptimized code first. Add support for
72655         associative arrays. Limit the use of 'eval' to assignments.
72656         (func_get_applicability): Undo stylistic pessimisations.
72657         (func_get_automake_snippet, func_get_include_directive): Reduce code
72658         duplication.
72659         (func_modules_transitive_closure, func_modules_add_dummy,
72660         func_modules_notice, func_modules_to_filelist, func_add_file,
72661         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72662         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72663         func_create_testdir, func_create_megatestdir): Update documentation.
72665 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72667         * gnulib-tool (func_cache_lookup_module): Store the module name
72668         belonging to the cache variable; error out if two different
72669         module names map to the same cache variable name.
72671 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72673         gnulib-tool: Make caching optional.
72674         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72675         Update matching short versions of --no-changelog.
72676         (func_usage): Update.
72677         (sed_extract_cache_prog): Renamed from ...
72678         (sed_extract_prog): ... this; revert to old extraction script.
72679         (func_get_description, func_get_status)
72680         (func_get_notice, func_get_applicability, func_get_filelist)
72681         (func_get_dependencies, func_get_autoconf_early_snippet)
72682         (func_get_autoconf_snippet, func_get_automake_snippet)
72683         (func_get_include_directive, func_get_link_directive)
72684         (func_get_license, func_get_maintainer): If $do_cache is false,
72685         use old, non-caching extraction scripts.
72686         Suggestion by Bruno Haible.
72688 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72690         gnulib-tool: cache module metainformation.
72691         * gnulib-tool (sed_extract_prog): Match newline before each
72692         header, and rewrite header to a shell variable suffix.
72693         (func_cache_var, func_cache_lookup_module): New functions,
72694         to turn a module name into a cache variable prefix, and to
72695         look up and cache module metainformation.
72696         (func_get_description, func_get_status)
72697         (func_get_notice, func_get_applicability, func_get_filelist)
72698         (func_get_dependencies, func_get_autoconf_early_snippet)
72699         (func_get_autoconf_snippet, func_get_automake_snippet)
72700         (func_get_include_directive, func_get_link_directive)
72701         (func_get_license, func_get_maintainer): Use
72702         func_cache_lookup_module.
72704 2010-02-07  Bruno Haible  <bruno@clisp.org>
72706         fnctl: Fix missing dependency.
72707         * modules/fcntl (Depends-on): Add getdtablesize.
72708         Reported by John W. Eaton <jwe@gnu.org>.
72710 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72712         Argp: fix recognition of short alias options.
72714         * lib/argp-parse.c (convert_options): Fix improper use of
72715         `|' between character values.
72716         * tests/test-argp.c (group1_option): New alias option
72717         --read (-r).
72718         (group1_parser): Special handling for 'r'.
72719         (test15): New test case.
72720         (test_fun): Add test15.
72721         * tests/test-argp-2.sh: Update expected --help and --usage
72722         outputs.
72724 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72726         * tests/test-argp.c: Fix indentation.
72728 2010-02-04  Eric Blake  <ebb9@byu.net>
72730         gettimeofday: expose type of second argument
72731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72732         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72733         * tests/test-gettimeofday.c: Use it to silence warning.
72734         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72735         the issue.
72737 2010-02-03  Jim Meyering  <meyering@redhat.com>
72739         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72740         * lib/regcomp.c (TYPE_SIGNED): Define.
72741         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72743         regcomp.c: avoid a new -Wshadow warning
72744         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72746 2010-02-01  Jim Meyering  <meyering@redhat.com>
72748         removing useless parentheses in cpp #define directives
72749         For motivation, see commit c0221df4, "define STREQ(a,b)
72750         consistently, removing useless parentheses"
72751         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72752         * lib/mountlist.c (MNT_IGNORE): Likewise.
72753         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72755 2010-02-01  Eric Blake  <ebb9@byu.net>
72757         sys_time: use link-warning
72758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72759         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72760         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72761         * modules/sys_time (Depends-on): Add warn-on-use.
72762         (Makefile.am): Always build replacement.
72763         (configure.ac): Update substitutions.
72764         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72765         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72766         bother with SYS_TIME_H.
72767         * modules/gettimeofday (configure.ac): Declare indicator.
72768         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72769         in use.
72771         closein-tests: silence compiler warning
72772         * tests/test-closein.c (main): Ignore fread result.
72773         * modules/closein-tests (Depends-on): Add ignore-value.
72775         tests: silence warning about system return
72776         * tests/test-areadlink-with-size.c (main): Ignore system result.
72777         * tests/test-areadlink.c (main): Likewise.
72778         * tests/test-areadlinkat-with-size.c (main): Likewise.
72779         * tests/test-areadlinkat.c (main): Likewise.
72780         * tests/test-canonicalize-lgpl.c (main): Likewise.
72781         * tests/test-canonicalize.c (main): Likewise.
72782         * tests/test-chown.c (main): Likewise.
72783         * tests/test-fchownat.c (main): Likewise.
72784         * tests/test-fdutimensat.c (main): Likewise.
72785         * tests/test-fstatat.c (main): Likewise.
72786         * tests/test-futimens.c (main): Likewise.
72787         * tests/test-lchown.c (main): Likewise.
72788         * tests/test-link.c (main): Likewise.
72789         * tests/test-linkat.c (main): Likewise.
72790         * tests/test-lstat.c (main): Likewise.
72791         * tests/test-mkdir.c (main): Likewise.
72792         * tests/test-mkdirat.c (main): Likewise.
72793         * tests/test-mkfifo.c (main): Likewise.
72794         * tests/test-mkfifoat.c (main): Likewise.
72795         * tests/test-mknod.c (main): Likewise.
72796         * tests/test-readlink.c (main): Likewise.
72797         * tests/test-remove.c (main): Likewise.
72798         * tests/test-rename.c (main): Likewise.
72799         * tests/test-renameat.c (main): Likewise.
72800         * tests/test-rmdir.c (main): Likewise.
72801         * tests/test-symlink.c (main): Likewise.
72802         * tests/test-symlinkat.c (main): Likewise.
72803         * tests/test-unlink.c (main): Likewise.
72804         * tests/test-unlinkat.c (main): Likewise.
72805         * tests/test-utimens.c (main): Likewise.
72806         * tests/test-utimensat.c (main): Likewise.
72807         * modules/areadlink-tests (Depends-on): Add ignore-value.
72808         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72809         * modules/areadlinkat-tests (Depends-on): Likewise.
72810         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72811         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72812         * modules/canonicalize-tests (Depends-on): Likewise.
72813         * modules/chown-tests (Depends-on): Likewise.
72814         * modules/fdutimensat-tests (Depends-on): Likewise.
72815         * modules/futimens-tests (Depends-on): Likewise.
72816         * modules/lchown-tests (Depends-on): Likewise.
72817         * modules/link-tests (Depends-on): Likewise.
72818         * modules/linkat-tests (Depends-on): Likewise.
72819         * modules/lstat-tests (Depends-on): Likewise.
72820         * modules/mkdir-tests (Depends-on): Likewise.
72821         * modules/mkfifo-tests (Depends-on): Likewise.
72822         * modules/mkfifoat-tests (Depends-on): Likewise.
72823         * modules/mknod-tests (Depends-on): Likewise.
72824         * modules/openat-tests (Depends-on): Likewise.
72825         * modules/readlink-tests (Depends-on): Likewise.
72826         * modules/remove-tests (Depends-on): Likewise.
72827         * modules/rename-tests (Depends-on): Likewise.
72828         * modules/renameat-tests (Depends-on): Likewise.
72829         * modules/rmdir-tests (Depends-on): Likewise.
72830         * modules/symlink-tests (Depends-on): Likewise.
72831         * modules/symlinkat-tests (Depends-on): Likewise.
72832         * modules/unlink-tests (Depends-on): Likewise.
72833         * modules/utimens-tests (Depends-on): Likewise.
72834         * modules/utimensat-tests (Depends-on): Likewise.
72836 2010-01-31  Bruno Haible  <bruno@clisp.org>
72838         Perform the same test for many <math.h> functions.
72839         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72840         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72841         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72842         of gl_MATHFUNC.
72843         * modules/acos (configure.ac): Likewise.
72844         * modules/asin (configure.ac): Likewise.
72845         * modules/atan (configure.ac): Likewise.
72846         * modules/atan2 (configure.ac): Likewise.
72847         * modules/cbrt (configure.ac): Likewise.
72848         * modules/copysign (configure.ac): Likewise.
72849         * modules/cos (configure.ac): Likewise.
72850         * modules/cosh (configure.ac): Likewise.
72851         * modules/erf (configure.ac): Likewise.
72852         * modules/erfc (configure.ac): Likewise.
72853         * modules/exp (configure.ac): Likewise.
72854         * modules/fmod (configure.ac): Likewise.
72855         * modules/hypot (configure.ac): Likewise.
72856         * modules/j0 (configure.ac): Likewise.
72857         * modules/j1 (configure.ac): Likewise.
72858         * modules/jn (configure.ac): Likewise.
72859         * modules/lgamma (configure.ac): Likewise.
72860         * modules/log (configure.ac): Likewise.
72861         * modules/log10 (configure.ac): Likewise.
72862         * modules/log1p (configure.ac): Likewise.
72863         * modules/pow (configure.ac): Likewise.
72864         * modules/remainder (configure.ac): Likewise.
72865         * modules/sin (configure.ac): Likewise.
72866         * modules/sinh (configure.ac): Likewise.
72867         * modules/tan (configure.ac): Likewise.
72868         * modules/tanh (configure.ac): Likewise.
72869         * modules/y0 (configure.ac): Likewise.
72870         * modules/y1 (configure.ac): Likewise.
72871         * modules/yn (configure.ac): Likewise.
72872         Suggested by Paolo Bonzini.
72874 2010-01-31  Bruno Haible  <bruno@clisp.org>
72876         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72878 2010-01-31  Bruno Haible  <bruno@clisp.org>
72880         Work around getdelim() bug on FreeBSD 8.0.
72881         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72882         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72883         not work.
72884         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72885         is 1.
72886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72887         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72888         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72889         a non-zero size.
72890         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72892 2010-01-31  Bruno Haible  <bruno@clisp.org>
72894         Work around getline() bug on FreeBSD 8.0.
72895         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72896         and a non-zero size.
72897         * tests/test-getline.c (main): Likewise.
72898         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72899         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72901 2010-01-28  Eric Blake  <ebb9@byu.net>
72903         regex: fix build failure
72904         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72905         platforms.
72907 2010-01-28  Jim Meyering  <meyering@redhat.com>
72909         regex: do not ignore memory allocation failure
72910         * lib/regex_internal.c (create_cd_newstate): Detect
72911         re_node_set_init_copy failure.   Extracted from glibc commit
72912         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72914         regex: sync more white-space changes from libc
72915         * lib/regex_internal.c: White-space only changes.
72916         * lib/regexec.c: Likewise.
72918         regex: add many uses of __attribute_warn_unused_result__
72919         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72920         * lib/regexec.c: Likewise.
72921         Extracted from a messy glibc commit.
72923         regcomp.c: spelling and merge-artifact from glibc
72924         * lib/regcomp.c: Merge remainder of glibc's
72925         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72927         regcomp.c: sync white-space changes from glibc
72928         * lib/regcomp.c: Merge to accommodate white space
72929         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72931         regcomp.c: do not ignore internal return values
72932         * lib/regcomp.c: Do not ignore internal return values.
72933         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72934         but without its white-space changes and spelling fixes.
72936         regex_internal.h: define __attribute_warn_unused_result__
72937         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72939         maint: add a syntax-check rule to check for vulnerable Makefile.in
72940         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72942 2010-01-27  Jim Meyering  <meyering@redhat.com>
72944         ncftpput-ftp: clean up spaces
72945         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72946         Remove trailing blanks.
72948 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72950         * build-aux/git-version-gen: Fix copyright statement.
72951         * build-aux/gnupload: Likewise.
72952         * tests/test-arcfour.c: Likewise.
72953         * tests/test-arctwo.c: Likewise.
72954         * tests/test-count-one-bits.c: Likewise.
72955         * tests/test-crc.c: Likewise.
72956         * tests/test-des.c: Likewise.
72957         * tests/test-gc-arcfour.c: Likewise.
72958         * tests/test-gc-arctwo.c: Likewise.
72959         * tests/test-gc-des.c: Likewise.
72960         * tests/test-gc-hmac-md5.c: Likewise.
72961         * tests/test-gc-hmac-sha1.c: Likewise.
72962         * tests/test-gc-md2.c: Likewise.
72963         * tests/test-gc-md4.c: Likewise.
72964         * tests/test-gc-md5.c: Likewise.
72965         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72966         * tests/test-gc-rijndael.c: Likewise.
72967         * tests/test-gc-sha1.c: Likewise.
72968         * tests/test-gc.c: Likewise.
72969         * tests/test-gethostname.c: Likewise.
72970         * tests/test-gettimeofday.c: Likewise.
72971         * tests/test-hash.c: Likewise.
72972         * tests/test-hmac-md5.c: Likewise.
72973         * tests/test-hmac-sha1.c: Likewise.
72974         * tests/test-md2.c: Likewise.
72975         * tests/test-md4.c: Likewise.
72976         * tests/test-md5.c: Likewise.
72977         * tests/test-memchr.c: Likewise.
72978         * tests/test-memchr2.c: Likewise.
72979         * tests/test-memcmp.c: Likewise.
72980         * tests/test-memmem.c: Likewise.
72981         * tests/test-memrchr.c: Likewise.
72982         * tests/test-rawmemchr.c: Likewise.
72983         * tests/test-read-file.c: Likewise.
72984         * tests/test-rijndael.c: Likewise.
72985         * tests/test-sockets.c: Likewise.
72986         * tests/test-strchrnul.c: Likewise.
72987         * tests/test-strstr.c: Likewise.
72988         * tests/test-strtod.c: Likewise.
72989         * build-aux/ncftpput-ftp: Likewise.
72991 2010-01-26  Eric Blake  <ebb9@byu.net>
72993         ignore-value: update recommended header name
72994         * modules/ignore-value (Include): Only use <> for headers that
72995         exist in glibc.
72997 2010-01-26  Jim Meyering  <meyering@redhat.com>
72999         test-userspec.c: avoid compiler warnings
73000         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
73001         and "initialization discards qualifiers..." warnings.
73002         Put the first "uid" in its own scope, and make char* members "const".
73004 2010-01-25  Bruno Haible  <bruno@clisp.org>
73006         gnulib-tool: Make warning diagnostics consistent.
73007         * gnulib-tool (func_warning): New function.
73008         Use it everywhere where gnulib-tool produces output to stderr and it is
73009         not a fatal error.
73011 2010-01-25  Bruno Haible  <bruno@clisp.org>
73013         Fix test dependencies.
73014         * modules/xstrtol-tests (Depends-on): Add inttypes.
73015         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
73017 2010-01-25  Pádraig Brady  <P@draigBrady.com>
73019         syntax-check: detect incorrect boolean macro values in config.h
73020         * modules/maintainer-makefile (configure.ac): Parameterize the location
73021         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
73022         The logic is from Eric Blake and the location indicated by Jim Meyering.
73023         Note the more natural CONFIG_HEADER name is prohibited by automake
73024         for backwards compatibility reasons.
73025         * top/maint.mk (sc_Wundef_boolean): New rule.
73027 2010-01-25  Jim Meyering  <meyering@redhat.com>
73029         bootstrap: detect MacOS 10.6's shasum, too
73030         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
73031         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
73033 2010-01-23  Jim Meyering  <meyering@redhat.com>
73035         xstrtoll: new module
73036         * modules/xstrtoll: New file.
73037         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
73038         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
73039         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
73040         ./configure fails if you use this module and lack "long long".
73041         * modules/xstrtoll-tests: New module.
73042         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
73043         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
73044         new init.sh-based test framework.
73046 2010-01-24  Bruno Haible  <bruno@clisp.org>
73048         Tests for module 'yn'.
73049         * modules/yn-tests: New file.
73050         * tests/test-yn.c: New file.
73052         Tests for module 'y1'.
73053         * modules/y1-tests: New file.
73054         * tests/test-y1.c: New file.
73056         Tests for module 'y0'.
73057         * modules/y0-tests: New file.
73058         * tests/test-y0.c: New file.
73060         Tests for module 'tanh'.
73061         * modules/tanh-tests: New file.
73062         * tests/test-tanh.c: New file.
73064         Tests for module 'tan'.
73065         * modules/tan-tests: New file.
73066         * tests/test-tan.c: New file.
73068         Tests for module 'sqrt'.
73069         * modules/sqrt-tests: New file.
73070         * tests/test-sqrt.c: New file.
73072         Tests for module 'sinh'.
73073         * modules/sinh-tests: New file.
73074         * tests/test-sinh.c: New file.
73076         Tests for module 'sin'.
73077         * modules/sin-tests: New file.
73078         * tests/test-sin.c: New file.
73080         Tests for module 'rint'.
73081         * modules/rint-tests: New file.
73082         * tests/test-rint.c: New file.
73084         Tests for module 'remainder'.
73085         * modules/remainder-tests: New file.
73086         * tests/test-remainder.c: New file.
73088         Tests for module 'pow'.
73089         * modules/pow-tests: New file.
73090         * tests/test-pow.c: New file.
73092         Tests for module 'nextafter'.
73093         * modules/nextafter-tests: New file.
73094         * tests/test-nextafter.c: New file.
73096         Tests for module 'modf'.
73097         * modules/modf-tests: New file.
73098         * tests/test-modf.c: New file.
73100         Tests for module 'logb'.
73101         * modules/logb-tests: New file.
73102         * tests/test-logb.c: New file.
73104         Tests for module 'log1p'.
73105         * modules/log1p-tests: New file.
73106         * tests/test-log1p.c: New file.
73108         Tests for module 'log10'.
73109         * modules/log10-tests: New file.
73110         * tests/test-log10.c: New file.
73112         Tests for module 'log'.
73113         * modules/log-tests: New file.
73114         * tests/test-log.c: New file.
73116         Tests for module 'lgamma'.
73117         * modules/lgamma-tests: New file.
73118         * tests/test-lgamma.c: New file.
73120         Tests for module 'ldexp'.
73121         * modules/ldexp-tests: New file.
73122         * tests/test-ldexp.c: New file.
73124         Tests for module 'jn'.
73125         * modules/jn-tests: New file.
73126         * tests/test-jn.c: New file.
73128         Tests for module 'j1'.
73129         * modules/j1-tests: New file.
73130         * tests/test-j1.c: New file.
73132         Tests for module 'j0'.
73133         * modules/j0-tests: New file.
73134         * tests/test-j0.c: New file.
73136         Tests for module 'hypot'.
73137         * modules/hypot-tests: New file.
73138         * tests/test-hypot.c: New file.
73140         Tests for module 'fmod'.
73141         * modules/fmod-tests: New file.
73142         * tests/test-fmod.c: New file.
73144         Tests for module 'fabs'.
73145         * modules/fabs-tests: New file.
73146         * tests/test-fabs.c: New file.
73148         Tests for module 'exp'.
73149         * modules/exp-tests: New file.
73150         * tests/test-exp.c: New file.
73152         Tests for module 'erfc'.
73153         * modules/erfc-tests: New file.
73154         * tests/test-erfc.c: New file.
73156         Tests for module 'erf'.
73157         * modules/erf-tests: New file.
73158         * tests/test-erf.c: New file.
73160         Tests for module 'cosh'.
73161         * modules/cosh-tests: New file.
73162         * tests/test-cosh.c: New file.
73164         Tests for module 'cos'.
73165         * modules/cos-tests: New file.
73166         * tests/test-cos.c: New file.
73168         Tests for module 'copysign'.
73169         * modules/copysign-tests: New file.
73170         * tests/test-copysign.c: New file.
73172         Tests for module 'cbrt'.
73173         * modules/cbrt-tests: New file.
73174         * tests/test-cbrt.c: New file.
73176         Tests for module 'atan2'.
73177         * modules/atan2-tests: New file.
73178         * tests/test-atan2.c: New file.
73180         Tests for module 'atan'.
73181         * modules/atan-tests: New file.
73182         * tests/test-atan.c: New file.
73184         Tests for module 'asin'.
73185         * modules/asin-tests: New file.
73186         * tests/test-asin.c: New file.
73188         Tests for module 'acos'.
73189         * modules/acos-tests: New file.
73190         * tests/test-acos.c: New file.
73192 2010-01-24  Bruno Haible  <bruno@clisp.org>
73194         Fix tests for common <math.h> functions.
73195         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
73196         code snippet that references the function pointer, rather than merely
73197         calling the function. Substitute the FUNC_LIBM variable.
73198         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
73199         * modules/acos (configure.ac): Likewise.
73200         * modules/asin (configure.ac): Likewise.
73201         * modules/atan (configure.ac): Likewise.
73202         * modules/atan2 (configure.ac): Likewise.
73203         * modules/cbrt (configure.ac): Likewise.
73204         * modules/copysign (configure.ac): Likewise.
73205         * modules/cos (configure.ac): Likewise.
73206         * modules/cosh (configure.ac): Likewise.
73207         * modules/erf (configure.ac): Likewise.
73208         * modules/erfc (configure.ac): Likewise.
73209         * modules/exp (configure.ac): Likewise.
73210         * modules/fabs (configure.ac): Likewise.
73211         * modules/fmod (configure.ac): Likewise.
73212         * modules/hypot (configure.ac): Likewise.
73213         * modules/j0 (configure.ac): Likewise.
73214         * modules/j1 (configure.ac): Likewise.
73215         * modules/jn (configure.ac): Likewise.
73216         * modules/ldexp (configure.ac): Likewise.
73217         * modules/lgamma (configure.ac): Likewise.
73218         * modules/log (configure.ac): Likewise.
73219         * modules/log10 (configure.ac): Likewise.
73220         * modules/log1p (configure.ac): Likewise.
73221         * modules/logb (configure.ac): Likewise.
73222         * modules/modf (configure.ac): Likewise.
73223         * modules/nextafter (configure.ac): Likewise.
73224         * modules/pow (configure.ac): Likewise.
73225         * modules/remainder (configure.ac): Likewise.
73226         * modules/rint (configure.ac): Likewise.
73227         * modules/sin (configure.ac): Likewise.
73228         * modules/sinh (configure.ac): Likewise.
73229         * modules/tan (configure.ac): Likewise.
73230         * modules/tanh (configure.ac): Likewise.
73231         * modules/y0 (configure.ac): Likewise.
73232         * modules/y1 (configure.ac): Likewise.
73233         * modules/yn (configure.ac): Likewise.
73235 2010-01-24  Bruno Haible  <bruno@clisp.org>
73237         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
73238         * tests/test-acosl.c (x): New variable.
73239         (main): Store argument in x and fetch it from x.
73240         * tests/test-asinl.c (x): New variable.
73241         (main): Store argument in x and fetch it from x.
73242         * tests/test-atanl.c (x): New variable.
73243         (main): Store argument in x and fetch it from x.
73244         * tests/test-cosl.c (x): New variable.
73245         (main): Store argument in x and fetch it from x.
73246         * tests/test-expl.c (x): New variable.
73247         (main): Store argument in x and fetch it from x.
73248         * tests/test-logl.c (x): New variable.
73249         (main): Store argument in x and fetch it from x.
73250         * tests/test-sinl.c (x): New variable.
73251         (main): Store argument in x and fetch it from x.
73252         * tests/test-sqrtl.c (x): New variable.
73253         (main): Store argument in x and fetch it from x.
73254         * tests/test-tanl.c (x): New variable.
73255         (main): Store argument in x and fetch it from x.
73257 2010-01-24  Bruno Haible  <bruno@clisp.org>
73259         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
73260         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
73261         assignments to the initial TESTS_ENVIRONMENT.
73262         * doc/gnulib.texi (Unit test modules): Document it.
73263         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
73264         TESTS_ENVIRONMENT.
73265         * modules/btowc-tests (Makefile.am): Likewise.
73266         * modules/c-stack-tests (Makefile.am): Likewise.
73267         * modules/c-strcase-tests (Makefile.am): Likewise.
73268         * modules/copy-file-tests (Makefile.am): Likewise.
73269         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
73270         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
73271         * modules/mbrtowc-tests (Makefile.am): Likewise.
73272         * modules/mbscasecmp-tests (Makefile.am): Likewise.
73273         * modules/mbscasestr-tests (Makefile.am): Likewise.
73274         * modules/mbschr-tests (Makefile.am): Likewise.
73275         * modules/mbscspn-tests (Makefile.am): Likewise.
73276         * modules/mbsinit-tests (Makefile.am): Likewise.
73277         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
73278         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
73279         * modules/mbspbrk-tests (Makefile.am): Likewise.
73280         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
73281         * modules/mbsrchr-tests (Makefile.am): Likewise.
73282         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
73283         * modules/mbsspn-tests (Makefile.am): Likewise.
73284         * modules/mbsstr-tests (Makefile.am): Likewise.
73285         * modules/nl_langinfo-tests (Makefile.am): Likewise.
73286         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
73287         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
73288         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
73289         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
73290         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
73291         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
73292         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
73293         * modules/wcrtomb-tests (Makefile.am): Likewise.
73294         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
73295         * modules/wcsrtombs-tests (Makefile.am): Likewise.
73296         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
73297         assignments from TESTS_ENVIRONMENT.
73298         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
73299         augmentation.
73300         * modules/argp-version-etc-tests (Makefile.am): Likewise.
73301         * modules/atexit-tests (Makefile.am): Likewise.
73302         * modules/binary-io-tests (Makefile.am): Likewise.
73303         * modules/closein-tests (Makefile.am): Likewise.
73304         * modules/dprintf-posix-tests (Makefile.am): Likewise.
73305         * modules/exclude-tests (Makefile.am): Likewise.
73306         * modules/fflush-tests (Makefile.am): Likewise.
73307         * modules/fpending-tests (Makefile.am): Likewise.
73308         * modules/fprintf-posix-tests (Makefile.am): Likewise.
73309         * modules/freadahead-tests (Makefile.am): Likewise.
73310         * modules/freadptr-tests (Makefile.am): Likewise.
73311         * modules/freadseek-tests (Makefile.am): Likewise.
73312         * modules/fseek-tests (Makefile.am): Likewise.
73313         * modules/fseeko-tests (Makefile.am): Likewise.
73314         * modules/ftell-tests (Makefile.am): Likewise.
73315         * modules/ftello-tests (Makefile.am): Likewise.
73316         * modules/idpriv-drop-tests (Makefile.am): Likewise.
73317         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
73318         * modules/lseek-tests (Makefile.am): Likewise.
73319         * modules/parse-duration-tests (Makefile.am): Likewise.
73320         * modules/perror-tests (Makefile.am): Likewise.
73321         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
73322         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
73323         * modules/pipe-tests (Makefile.am): Likewise.
73324         * modules/pread-tests (Makefile.am): Likewise.
73325         * modules/printf-posix-tests (Makefile.am): Likewise.
73326         * modules/select-tests (Makefile.am): Likewise.
73327         * modules/sigpipe-tests (Makefile.am): Likewise.
73328         * modules/tsearch-tests (Makefile.am): Likewise.
73329         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73330         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73331         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73332         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73333         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73334         * modules/version-etc-tests (Makefile.am): Likewise.
73335         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73336         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73337         * modules/xalloc-die-tests (Makefile.am): Likewise.
73338         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73339         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73340         * modules/xstrtol-tests (Makefile.am): Likewise.
73341         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73342         * modules/yesno-tests (Makefile.am): Likewise.
73343         Suggested by Jim Meyering.
73345 2010-01-24  Bruno Haible  <bruno@clisp.org>
73347         More documentation.
73348         * doc/gnulib.texi (Writing modules): New chapter.
73349         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73350         the new chapter.
73352 2010-01-24  Jim Meyering  <meyering@redhat.com>
73354         maint.mk: do not prepend "./" after filtering
73355         * top/maint.mk (_prepend_srcdir_prefix): New variable
73356         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73357         "./" when $(srcdir) is ".".
73359         define STREQ(a,b) consistently, removing useless parentheses
73360         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73361         since the only risk is that "a" or "b" contains an unparenthesized
73362         comma, but if either did that, STREQ would have 3 or more arguments.
73363         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73364         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73365         * lib/hash-triple.c (STREQ): Likewise.
73366         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73367         * lib/getugroups.c (STREQ): Likewise.
73369 2010-01-23  Jim Meyering  <meyering@redhat.com>
73371         maint.mk: fix syntax-check in a non-srcdir build directory
73372         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73373         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73375 2010-01-22  Jim Meyering  <meyering@redhat.com>
73377         userspec: add unit tests
73378         * tests/test-userspec.c: New file.
73379         * modules/userspec-tests: Likewise.
73381 2010-01-21  Jim Meyering  <meyering@redhat.com>
73383         maint.mk: handle source file names containing "." robustly
73384         * top/maint.mk (_dot_escaped_srcdir): Define.
73385         (VC_LIST): Use it in LHS of sed substitution.
73387 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73389         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73390         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73391         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73392         from a non-srcdir build.
73394 2010-01-20  Eric Blake  <ebb9@byu.net>
73396         warn-on-use: use instead of link-warning
73397         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73398         * modules/unistd (Depends-on, Makefile.am): Likewise.
73399         * modules/arpa_inet (Depends-on): Replace link-warning with
73400         warn-on-use.
73401         (Makefile.am): Update rules accordingly.
73402         * modules/ctype (Depends-on, Makefile.am): Likewise.
73403         * modules/dirent (Depends-on, Makefile.am): Likewise.
73404         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73405         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73406         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73407         * modules/locale (Depends-on, Makefile.am): Likewise.
73408         * modules/math (Depends-on, Makefile.am): Likewise.
73409         * modules/search (Depends-on, Makefile.am): Likewise.
73410         * modules/signal (Depends-on, Makefile.am): Likewise.
73411         * modules/spawn (Depends-on, Makefile.am): Likewise.
73412         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73413         * modules/string (Depends-on, Makefile.am): Likewise.
73414         * modules/strings (Depends-on, Makefile.am): Likewise.
73415         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73416         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73417         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73418         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73419         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73420         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73421         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73422         * modules/wchar (Depends-on, Makefile.am): Likewise.
73423         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73424         should be poisoned.
73425         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73426         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73427         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73428         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73429         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73430         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73431         * m4/math_h.m4 (gl_MATH_H): Likewise.
73432         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73433         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73434         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73435         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73436         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73437         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73438         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73439         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73440         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73442         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73443         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73444         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73445         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73447         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73448         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73449         GL_LINK_WARNING.
73450         * lib/ctype.in.h: Likewise.
73451         * lib/dirent.in.h: Likewise.
73452         * lib/fcntl.in.h: Likewise.
73453         * lib/inttypes.in.h: Likewise.
73454         * lib/langinfo.in.h: Likewise.
73455         * lib/locale.in.h: Likewise.
73456         * lib/math.in.h: Likewise.
73457         * lib/search.in.h: Likewise.
73458         * lib/signal.in.h: Likewise.
73459         * lib/spawn.in.h: Likewise.
73460         * lib/stdio.in.h: Likewise.
73461         * lib/stdlib.in.h: Likewise.
73462         * lib/string.in.h: Likewise.
73463         * lib/strings.in.h: Likewise.
73464         * lib/sys_file.in.h: Likewise.
73465         * lib/sys_ioctl.in.h: Likewise.
73466         * lib/sys_select.in.h: Likewise.
73467         * lib/sys_socket.in.h: Likewise.
73468         * lib/sys_stat.in.h: Likewise.
73469         * lib/sys_times.in.h: Likewise.
73470         * lib/sys_utsname.in.h: Likewise.
73471         * lib/unistd.in.h: Likewise.
73472         * lib/wchar.in.h: Likewise.
73474 2010-01-20  Bruno Haible  <bruno@clisp.org>
73476         Avoid duplicate -lm.
73477         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73478         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73479         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73481         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73482         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73483         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73484         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73485         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73486         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73487         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73488         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73489         Reported by Paolo Bonzini.
73491 2010-01-19  Bruno Haible  <bruno@clisp.org>
73493         langinfo, nl_langinfo: Relicense under LGPLv2+.
73494         * modules/langinfo (License): Change to LGPLv2+.
73495         * modules/nl_langinfo (License): Likewise.
73496         Patch by David Lutterkort <lutter@redhat.com>.
73498 2010-01-19  Bruno Haible  <bruno@clisp.org>
73500         Avoid compilation error with cc on OSF/1 5.1.
73501         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73502         statement, not before.
73503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73505 2010-01-18  Bruno Haible  <bruno@clisp.org>
73507         Avoid a link error due to the __printf__ symbol.
73508         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73509         and 2.6.x.
73510         (__format__, __printf__): Remove definitions.
73511         * lib/argp-fmtstream.h: Likewise.
73512         * lib/argp.h: Likewise.
73513         * lib/error.h: Likewise.
73514         * lib/vasnprintf.h: Likewise.
73515         * lib/xprintf.h: Likewise.
73516         * lib/xvasprintf.h: Likewise.
73517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73519 2010-01-18  Bruno Haible  <bruno@clisp.org>
73521         Tests for module 'tanl'.
73522         * modules/tanl-tests: New file.
73523         * tests/test-tanl.c: New file.
73525         Tests for module 'sqrtl'.
73526         * modules/sqrtl-tests: New file.
73527         * tests/test-sqrtl.c: New file.
73529         Tests for module 'sinl'.
73530         * modules/sinl-tests: New file.
73531         * tests/test-sinl.c: New file.
73533         Tests for module 'logl'.
73534         * modules/logl-tests: New file.
73535         * tests/test-logl.c: New file.
73537         Tests for module 'expl'.
73538         * modules/expl-tests: New file.
73539         * tests/test-expl.c: New file.
73541         Tests for module 'cosl'.
73542         * modules/cosl-tests: New file.
73543         * tests/test-cosl.c: New file.
73545         Tests for module 'atanl'.
73546         * modules/atanl-tests: New file.
73547         * tests/test-atanl.c: New file.
73549         Tests for module 'asinl'.
73550         * modules/asinl-tests: New file.
73551         * tests/test-asinl.c: New file.
73553         Tests for module 'acosl'.
73554         * modules/acosl-tests: New file.
73555         * tests/test-acosl.c: New file.
73557         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73558         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73559         tanl): Use the standard gnulib idiom.
73560         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73561         * lib/sinl.c: Likewise.
73562         * lib/tanl.c: Don't include trigl.c.
73563         (kernel_tanl): Make static.
73564         * lib/sincosl.c: Include trigl.h first.
73565         * lib/trigl.c: Likewise.
73566         * m4/acosl.m4: New file.
73567         * m4/asinl.m4: New file.
73568         * m4/atanl.m4: New file.
73569         * m4/cosl.m4: New file.
73570         * m4/expl.m4: New file.
73571         * m4/logl.m4: New file.
73572         * m4/sinl.m4: New file.
73573         * m4/sqrtl.m4: New file.
73574         * m4/tanl.m4: New file.
73575         * m4/mathl.m4: Remove file.
73576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73577         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73578         Don't initialize GNULIB_MATHL.
73579         * modules/acosl: New file.
73580         * modules/asinl: New file.
73581         * modules/atanl: New file.
73582         * modules/cosl: New file.
73583         * modules/expl: New file.
73584         * modules/logl: New file.
73585         * modules/sinl: New file.
73586         * modules/sqrtl: New file.
73587         * modules/tanl: New file.
73588         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73589         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73590         substitute GNULIB_MATHL.
73591         * modules/mathl: Rewritten.
73592         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73593         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73594         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73595         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73596         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73597         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73598         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73599         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73600         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73602 2010-01-18  Bruno Haible  <bruno@clisp.org>
73604         sqrt: Make gl_FUNC_SQRT requirable.
73605         * m4/sqrt.m4: New file.
73606         * modules/sqrt (Files): Add it.
73607         (configure.ac): Invoke gl_FUNC_SQRT.
73609 2010-01-18  Bruno Haible  <bruno@clisp.org>
73611         New modules for common <math.h> functions.
73612         * m4/mathfunc.m4: New file.
73613         * modules/acos: New file.
73614         * modules/asin: New file.
73615         * modules/atan: New file.
73616         * modules/atan2: New file.
73617         * modules/cbrt: New file.
73618         * modules/copysign: New file.
73619         * modules/cos: New file.
73620         * modules/cosh: New file.
73621         * modules/erf: New file.
73622         * modules/erfc: New file.
73623         * modules/exp: New file.
73624         * modules/fabs: New file.
73625         * modules/fmod: New file.
73626         * modules/hypot: New file.
73627         * modules/j0: New file.
73628         * modules/j1: New file.
73629         * modules/jn: New file.
73630         * modules/ldexp: New file.
73631         * modules/lgamma: New file.
73632         * modules/log: New file.
73633         * modules/log10: New file.
73634         * modules/log1p: New file.
73635         * modules/logb: New file.
73636         * modules/modf: New file.
73637         * modules/nextafter: New file.
73638         * modules/pow: New file.
73639         * modules/remainder: New file.
73640         * modules/rint: New file.
73641         * modules/sin: New file.
73642         * modules/sinh: New file.
73643         * modules/sqrt: New file.
73644         * modules/tan: New file.
73645         * modules/tanh: New file.
73646         * modules/y0: New file.
73647         * modules/y1: New file.
73648         * modules/yn: New file.
73649         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73650         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73651         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73652         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73653         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73654         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73655         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73656         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73657         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73658         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73659         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73660         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73661         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73662         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73663         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73664         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73665         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73666         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73667         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73668         * doc/posix-functions/log.texi: Mention the 'log' module.
73669         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73670         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73671         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73672         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73673         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73674         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73675         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73676         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73677         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73678         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73679         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73680         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73681         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73682         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73683         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73684         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73686 2010-01-18  Jim Meyering  <meyering@redhat.com>
73688         ignore-value: relax license to LGPLv2+
73689         * modules/ignore-value (License): Relax to LGPLv2+.
73691         getdate: don't leak when TZ contains two or more '"'s
73692         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73693         double quote in TZ after the first one.
73695         readtokens: do not leak internal token_lengths buffer
73696         * lib/readtokens.c (readtokens): Free the local, lengths,
73697         when the supplied "token_lengths" parameter is NULL.
73699 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73701         Fix a couple of missing LIBTHREAD link failures on AIX.
73702         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73703         $(LIBTHREAD).
73704         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73706         Link test-poll against INET_PTON_LIB.
73707         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73708         for inet_pton on Solaris 10.
73710 2010-01-17  Bruno Haible  <bruno@clisp.org>
73712         unistdio/*-sprintf: Fix typo in module description.
73713         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73714         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73715         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73716         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73717         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73718         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73719         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73722 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73724         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73725         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73726         variables in shell case patterns, for AIX and HP-UX ksh.
73728         Split large sed scripts, for HP-UX sed.
73729         * modules/stdio: Split sed scripts around 50 sed commands,
73730         to avoid HP-UX limit of 99 commands, in the near future.
73731         * modules/string: Likewise.
73732         * modules/unistd: Likewise.
73734         gnulib-tool: avoid writing in the current directory.
73735         * gnulib-tool (func_emit_lib_Makefile_am)
73736         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73737         not in the current directory, so concurrent gnulib-tool
73738         instances do not interfere.
73740 2010-01-16  Jim Meyering  <meyering@redhat.com>
73742         doc: update users.txt
73743         * users.txt: Add grep.
73744         (diffutils, gzip): Update URLs.
73746 2010-01-12  Bruno Haible  <bruno@clisp.org>
73748         posix_spawn: Avoid test failure on Cygwin.
73749         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73750         characters.
73751         Reported by Simon Josefsson.
73753 2010-01-12  Bruno Haible  <bruno@clisp.org>
73755         * tests/test-cond.c (main): When skipping the test, show the reason.
73757 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73759         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73761 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73763         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73764         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73766 2010-01-12  Eric Blake  <ebb9@byu.net>
73768         build: guarantee AS_VAR_IF
73769         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73770         (gl_AS_VAR_IF): Move...
73771         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73772         Reported by Simon Josefsson.
73774 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73776         * lib/stdio.in.h: Fix typo.
73778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73780         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73781         libgpg-error.
73783 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73785         * tests/test-xalloc-die.sh: Use $EXEEXT.
73787 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73788             Bruno Haible  <bruno@clisp.org>
73790         getlogin, getlogin_r: Avoid test failure.
73791         * tests/test-getlogin.c: Include <stdio.h>.
73792         (main): Skip the test when the function fails because stdin is not a
73793         tty.
73794         * tests/test-getlogin_r.c: Include <stdio.h>.
73795         (main): Skip the test when the function fails because stdin is not a
73796         tty.
73798 2010-01-11  Eric Blake  <ebb9@byu.net>
73800         tests: avoid more large file warnings
73801         * tests/test-fflush.c: Avoid warning about ftell use.
73802         * tests/test-fseek.c: Avoid warning about fseek use.
73804 2010-01-10  Bruno Haible  <bruno@clisp.org>
73806         nproc: Work better on Linux when /proc and /sys are not mounted.
73807         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73808         as lower bound when, on glibc/Linux systems,
73809         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73810         Suggested by Pádraig Brady <P@draigbrady.com>.
73811         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73813         nproc: Refactor.
73814         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73815         extracted from num_processors.
73816         (num_processors): Call it.
73818 2010-01-11  Jim Meyering  <meyering@redhat.com>
73820         utimecmp: avoid new warning from upcoming gcc-4.5.0
73821         * lib/utimecmp.c (BILLION): Define using #define rather than an
73822         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73824 2010-01-11  Eric Blake  <ebb9@byu.net>
73826         math: add portability warnings for classification macros
73827         * modules/math (Depends-on): Add warn-on-use.
73828         (Makefile.am): Provide new substitutions.
73829         * m4/math_h.m4 (gl_MATH_H): Require inline.
73830         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73831         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73832         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73833         implement warnings.
73835         unistd: warn on use of environ without module
73836         * modules/unistd (Depends-on): Add warn-on-use.
73837         (Makefile.am): Provide new substitutions.
73838         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73839         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73841         stdio: warn on suspicious uses
73842         * modules/stdio (Depends-on): Add warn-on-use.
73843         (Makefile.am): Provide new substitutions.
73844         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73845         fseeko.
73846         * lib/stdio.in.h (gets): Always warn on use.
73847         (fseek, ftell): Adjust when warnings are issued, and honor
73848         _GL_NO_LARGE_FILES as a way to silence the warning.
73849         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73850         any warning about large file offsets.
73851         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73852         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73853         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73854         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73855         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73856         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73857         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73858         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73860         warn-on-use: new module
73861         * modules/warn-on-use: New file.
73862         * build-aux/warn-on-use.h: Likewise.
73863         * m4/warn-on-use.m4: Likewise.
73864         * MODULES.html.sh (Support for building): Mention it.
73866 2010-01-10  Bruno Haible  <bruno@clisp.org>
73868         Tests for module 'unistr/u32-strdup'.
73869         * modules/unistr/u32-strdup-tests: New file.
73870         * tests/unistr/test-u32-strdup.c: New file.
73872         Tests for module 'unistr/u16-strdup'.
73873         * modules/unistr/u16-strdup-tests: New file.
73874         * tests/unistr/test-u16-strdup.c: New file.
73876         Tests for module 'unistr/u8-strdup'.
73877         * modules/unistr/u8-strdup-tests: New file.
73878         * tests/unistr/test-u8-strdup.c: New file.
73879         * tests/unistr/test-strdup.h: New file.
73881         Tests for module 'unistr/u32-strncmp'.
73882         * modules/unistr/u32-strncmp-tests: New file.
73883         * tests/unistr/test-u32-strncmp.c: New file.
73885         Tests for module 'unistr/u16-strncmp'.
73886         * modules/unistr/u16-strncmp-tests: New file.
73887         * tests/unistr/test-u16-strncmp.c: New file.
73889         Tests for module 'unistr/u8-strncmp'.
73890         * modules/unistr/u8-strncmp-tests: New file.
73891         * tests/unistr/test-u8-strncmp.c: New file.
73892         * tests/unistr/test-strncmp.h: New file.
73894         Tests for module 'unistr/u32-strcoll'.
73895         * modules/unistr/u32-strcoll-tests: New file.
73896         * tests/unistr/test-u32-strcoll.c: New file.
73898         Tests for module 'unistr/u16-strcoll'.
73899         * modules/unistr/u16-strcoll-tests: New file.
73900         * tests/unistr/test-u16-strcoll.c: New file.
73902         Tests for module 'unistr/u8-strcoll'.
73903         * modules/unistr/u8-strcoll-tests: New file.
73904         * tests/unistr/test-u8-strcoll.c: New file.
73906         Tests for module 'unistr/u32-strcmp'.
73907         * modules/unistr/u32-strcmp-tests: New file.
73908         * tests/unistr/test-u32-strcmp.c: New file.
73909         * tests/unistr/test-u32-strcmp.h: New file.
73911         Tests for module 'unistr/u16-strcmp'.
73912         * modules/unistr/u16-strcmp-tests: New file.
73913         * tests/unistr/test-u16-strcmp.c: New file.
73914         * tests/unistr/test-u16-strcmp.h: New file.
73916         Tests for module 'unistr/u8-strcmp'.
73917         * modules/unistr/u8-strcmp-tests: New file.
73918         * tests/unistr/test-u8-strcmp.c: New file.
73919         * tests/unistr/test-u8-strcmp.h: New file.
73920         * tests/unistr/test-strcmp.h: New file.
73922         Tests for module 'unistr/u32-strncat'.
73923         * modules/unistr/u32-strncat-tests: New file.
73924         * tests/unistr/test-u32-strncat.c: New file.
73926         Tests for module 'unistr/u16-strncat'.
73927         * modules/unistr/u16-strncat-tests: New file.
73928         * tests/unistr/test-u16-strncat.c: New file.
73930         Tests for module 'unistr/u8-strncat'.
73931         * modules/unistr/u8-strncat-tests: New file.
73932         * tests/unistr/test-u8-strncat.c: New file.
73933         * tests/unistr/test-strncat.h: New file.
73935         Tests for module 'unistr/u32-strcat'.
73936         * modules/unistr/u32-strcat-tests: New file.
73937         * tests/unistr/test-u32-strcat.c: New file.
73939         Tests for module 'unistr/u16-strcat'.
73940         * modules/unistr/u16-strcat-tests: New file.
73941         * tests/unistr/test-u16-strcat.c: New file.
73943         Tests for module 'unistr/u8-strcat'.
73944         * modules/unistr/u8-strcat-tests: New file.
73945         * tests/unistr/test-u8-strcat.c: New file.
73946         * tests/unistr/test-strcat.h: New file.
73948         Tests for module 'unistr/u32-stpncpy'.
73949         * modules/unistr/u32-stpncpy-tests: New file.
73950         * tests/unistr/test-u32-stpncpy.c: New file.
73952         Tests for module 'unistr/u16-stpncpy'.
73953         * modules/unistr/u16-stpncpy-tests: New file.
73954         * tests/unistr/test-u16-stpncpy.c: New file.
73956         Tests for module 'unistr/u8-stpncpy'.
73957         * modules/unistr/u8-stpncpy-tests: New file.
73958         * tests/unistr/test-u8-stpncpy.c: New file.
73959         * tests/unistr/test-stpncpy.h: New file.
73961         Tests for module 'unistr/u32-strncpy'.
73962         * modules/unistr/u32-strncpy-tests: New file.
73963         * tests/unistr/test-u32-strncpy.c: New file.
73965         Tests for module 'unistr/u16-strncpy'.
73966         * modules/unistr/u16-strncpy-tests: New file.
73967         * tests/unistr/test-u16-strncpy.c: New file.
73969         Tests for module 'unistr/u8-strncpy'.
73970         * modules/unistr/u8-strncpy-tests: New file.
73971         * tests/unistr/test-u8-strncpy.c: New file.
73972         * tests/unistr/test-strncpy.h: New file.
73974         Tests for module 'unistr/u32-stpcpy'.
73975         * modules/unistr/u32-stpcpy-tests: New file.
73976         * tests/unistr/test-u32-stpcpy.c: New file.
73978         Tests for module 'unistr/u16-stpcpy'.
73979         * modules/unistr/u16-stpcpy-tests: New file.
73980         * tests/unistr/test-u16-stpcpy.c: New file.
73982         Tests for module 'unistr/u8-stpcpy'.
73983         * modules/unistr/u8-stpcpy-tests: New file.
73984         * tests/unistr/test-u8-stpcpy.c: New file.
73985         * tests/unistr/test-stpcpy.h: New file.
73987         Tests for module 'unistr/u32-strcpy'.
73988         * modules/unistr/u32-strcpy-tests: New file.
73989         * tests/unistr/test-u32-strcpy.c: New file.
73991         Tests for module 'unistr/u16-strcpy'.
73992         * modules/unistr/u16-strcpy-tests: New file.
73993         * tests/unistr/test-u16-strcpy.c: New file.
73995         Tests for module 'unistr/u8-strcpy'.
73996         * modules/unistr/u8-strcpy-tests: New file.
73997         * tests/unistr/test-u8-strcpy.c: New file.
73998         * tests/unistr/test-strcpy.h: New file.
74000         Tests for module 'unistr/u32-strnlen'.
74001         * modules/unistr/u32-strnlen-tests: New file.
74002         * tests/unistr/test-u32-strnlen.c: New file.
74004         Tests for module 'unistr/u16-strnlen'.
74005         * modules/unistr/u16-strnlen-tests: New file.
74006         * tests/unistr/test-u16-strnlen.c: New file.
74008         Tests for module 'unistr/u8-strnlen'.
74009         * modules/unistr/u8-strnlen-tests: New file.
74010         * tests/unistr/test-u8-strnlen.c: New file.
74011         * tests/unistr/test-strnlen.h: New file.
74013         Tests for module 'unistr/u32-strlen'.
74014         * modules/unistr/u32-strlen-tests: New file.
74015         * tests/unistr/test-u32-strlen.c: New file.
74017         Tests for module 'unistr/u16-strlen'.
74018         * modules/unistr/u16-strlen-tests: New file.
74019         * tests/unistr/test-u16-strlen.c: New file.
74021         Tests for module 'unistr/u8-strlen'.
74022         * modules/unistr/u8-strlen-tests: New file.
74023         * tests/unistr/test-u8-strlen.c: New file.
74025         Tests for module 'unistr/u32-prev'.
74026         * modules/unistr/u32-prev-tests: New file.
74027         * tests/unistr/test-u32-prev.c: New file.
74029         Tests for module 'unistr/u16-prev'.
74030         * modules/unistr/u16-prev-tests: New file.
74031         * tests/unistr/test-u16-prev.c: New file.
74033         Tests for module 'unistr/u8-prev'.
74034         * modules/unistr/u8-prev-tests: New file.
74035         * tests/unistr/test-u8-prev.c: New file.
74037         Tests for module 'unistr/u32-next'.
74038         * modules/unistr/u32-next-tests: New file.
74039         * tests/unistr/test-u32-next.c: New file.
74041         Tests for module 'unistr/u16-next'.
74042         * modules/unistr/u16-next-tests: New file.
74043         * tests/unistr/test-u16-next.c: New file.
74045         Tests for module 'unistr/u8-next'.
74046         * modules/unistr/u8-next-tests: New file.
74047         * tests/unistr/test-u8-next.c: New file.
74049         Tests for module 'unistr/u32-strmbtouc'.
74050         * modules/unistr/u32-strmbtouc-tests: New file.
74051         * tests/unistr/test-u32-strmbtouc.c: New file.
74053         Tests for module 'unistr/u16-strmbtouc'.
74054         * modules/unistr/u16-strmbtouc-tests: New file.
74055         * tests/unistr/test-u16-strmbtouc.c: New file.
74057         Tests for module 'unistr/u8-strmbtouc'.
74058         * modules/unistr/u8-strmbtouc-tests: New file.
74059         * tests/unistr/test-u8-strmbtouc.c: New file.
74061         Tests for module 'unistr/u32-strmblen'.
74062         * modules/unistr/u32-strmblen-tests: New file.
74063         * tests/unistr/test-u32-strmblen.c: New file.
74065         Tests for module 'unistr/u16-strmblen'.
74066         * modules/unistr/u16-strmblen-tests: New file.
74067         * tests/unistr/test-u16-strmblen.c: New file.
74069         Tests for module 'unistr/u8-strmblen'.
74070         * modules/unistr/u8-strmblen-tests: New file.
74071         * tests/unistr/test-u8-strmblen.c: New file.
74073         Tests for module 'unistr/u32-cpy-alloc'.
74074         * modules/unistr/u32-cpy-alloc-tests: New file.
74075         * tests/unistr/test-u32-cpy-alloc.c: New file.
74077         Tests for module 'unistr/u16-cpy-alloc'.
74078         * modules/unistr/u16-cpy-alloc-tests: New file.
74079         * tests/unistr/test-u16-cpy-alloc.c: New file.
74081         Tests for module 'unistr/u8-cpy-alloc'.
74082         * modules/unistr/u8-cpy-alloc-tests: New file.
74083         * tests/unistr/test-u8-cpy-alloc.c: New file.
74084         * tests/unistr/test-cpy-alloc.h: New file.
74086         Tests for module 'unistr/u32-mbsnlen'.
74087         * modules/unistr/u32-mbsnlen-tests: New file.
74088         * tests/unistr/test-u32-mbsnlen.c: New file.
74090         Tests for module 'unistr/u16-mbsnlen'.
74091         * modules/unistr/u16-mbsnlen-tests: New file.
74092         * tests/unistr/test-u16-mbsnlen.c: New file.
74094         Tests for module 'unistr/u8-mbsnlen'.
74095         * modules/unistr/u8-mbsnlen-tests: New file.
74096         * tests/unistr/test-u8-mbsnlen.c: New file.
74098         Tests for module 'unistr/u32-chr'.
74099         * modules/unistr/u32-chr-tests: New file.
74100         * tests/unistr/test-u32-chr.c: New file.
74102         Tests for module 'unistr/u16-chr'.
74103         * modules/unistr/u16-chr-tests: New file.
74104         * tests/unistr/test-u16-chr.c: New file.
74106         Tests for module 'unistr/u8-chr'.
74107         * modules/unistr/u8-chr-tests: New file.
74108         * tests/unistr/test-u8-chr.c: New file.
74109         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
74111         Tests for module 'unistr/u32-cmp2'.
74112         * modules/unistr/u32-cmp2-tests: New file.
74113         * tests/unistr/test-u32-cmp2.c: New file.
74115         Tests for module 'unistr/u16-cmp2'.
74116         * modules/unistr/u16-cmp2-tests: New file.
74117         * tests/unistr/test-u16-cmp2.c: New file.
74119         Tests for module 'unistr/u8-cmp2'.
74120         * modules/unistr/u8-cmp2-tests: New file.
74121         * tests/unistr/test-u8-cmp2.c: New file.
74122         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
74124         Tests for module 'unistr/u32-cmp'.
74125         * modules/unistr/u32-cmp-tests: New file.
74126         * tests/unistr/test-u32-cmp.c: New file.
74128         Tests for module 'unistr/u16-cmp'.
74129         * modules/unistr/u16-cmp-tests: New file.
74130         * tests/unistr/test-u16-cmp.c: New file.
74132         Tests for module 'unistr/u8-cmp'.
74133         * modules/unistr/u8-cmp-tests: New file.
74134         * tests/unistr/test-u8-cmp.c: New file.
74135         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
74137         Tests for module 'unistr/u32-set'.
74138         * modules/unistr/u32-set-tests: New file.
74139         * tests/unistr/test-u32-set.c: New file.
74141         Tests for module 'unistr/u16-set'.
74142         * modules/unistr/u16-set-tests: New file.
74143         * tests/unistr/test-u16-set.c: New file.
74145         Tests for module 'unistr/u8-set'.
74146         * modules/unistr/u8-set-tests: New file.
74147         * tests/unistr/test-u8-set.c: New file.
74148         * tests/unistr/test-set.h: New file.
74150         Tests for module 'unistr/u32-move'.
74151         * modules/unistr/u32-move-tests: New file.
74152         * tests/unistr/test-u32-move.c: New file.
74154         Tests for module 'unistr/u16-move'.
74155         * modules/unistr/u16-move-tests: New file.
74156         * tests/unistr/test-u16-move.c: New file.
74158         Tests for module 'unistr/u8-move'.
74159         * modules/unistr/u8-move-tests: New file.
74160         * tests/unistr/test-u8-move.c: New file.
74161         * tests/unistr/test-move.h: New file.
74163         Tests for module 'unistr/u32-cpy'.
74164         * modules/unistr/u32-cpy-tests: New file.
74165         * tests/unistr/test-u32-cpy.c: New file.
74167         Tests for module 'unistr/u16-cpy'.
74168         * modules/unistr/u16-cpy-tests: New file.
74169         * tests/unistr/test-u16-cpy.c: New file.
74171         Tests for module 'unistr/u8-cpy'.
74172         * modules/unistr/u8-cpy-tests: New file.
74173         * tests/unistr/test-u8-cpy.c: New file.
74174         * tests/unistr/test-cpy.h: New file.
74176 2010-01-09  Bruno Haible  <bruno@clisp.org>
74178         Tests for module 'unistr/u32-uctomb'.
74179         * modules/unistr/u32-uctomb-tests: New file.
74180         * tests/unistr/test-u32-uctomb.c: New file.
74182         Tests for module 'unistr/u16-uctomb'.
74183         * modules/unistr/u16-uctomb-tests: New file.
74184         * tests/unistr/test-u16-uctomb.c: New file.
74186         Tests for module 'unistr/u8-uctomb'.
74187         * modules/unistr/u8-uctomb-tests: New file.
74188         * tests/unistr/test-u8-uctomb.c: New file.
74190         Tests for module 'unistr/u32-mbtoucr'.
74191         * modules/unistr/u32-mbtoucr-tests: New file.
74192         * tests/unistr/test-u32-mbtoucr.c: New file.
74194         Tests for module 'unistr/u16-mbtoucr'.
74195         * modules/unistr/u16-mbtoucr-tests: New file.
74196         * tests/unistr/test-u16-mbtoucr.c: New file.
74198         Tests for module 'unistr/u8-mbtoucr'.
74199         * modules/unistr/u8-mbtoucr-tests: New file.
74200         * tests/unistr/test-u8-mbtoucr.c: New file.
74202         Tests for module 'unistr/u32-mbtouc'.
74203         * modules/unistr/u32-mbtouc-tests: New file.
74204         * tests/unistr/test-u32-mbtouc.c: New file.
74206         Tests for module 'unistr/u16-mbtouc'.
74207         * modules/unistr/u16-mbtouc-tests: New file.
74208         * tests/unistr/test-u16-mbtouc.c: New file.
74210         Tests for module 'unistr/u8-mbtouc'.
74211         * modules/unistr/u8-mbtouc-tests: New file.
74212         * tests/unistr/test-u8-mbtouc.c: New file.
74214         Tests for module 'unistr/u32-mbtouc-unsafe'.
74215         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
74216         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
74217         * tests/unistr/test-u32-mbtouc.h: New file.
74219         Tests for module 'unistr/u16-mbtouc-unsafe'.
74220         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
74221         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
74222         * tests/unistr/test-u16-mbtouc.h: New file.
74224         Tests for module 'unistr/u8-mbtouc-unsafe'.
74225         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
74226         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
74227         * tests/unistr/test-u8-mbtouc.h: New file.
74229         Tests for module 'unistr/u32-mblen'.
74230         * modules/unistr/u32-mblen-tests: New file.
74231         * tests/unistr/test-u32-mblen.c: New file.
74233         Tests for module 'unistr/u16-mblen'.
74234         * modules/unistr/u16-mblen-tests: New file.
74235         * tests/unistr/test-u16-mblen.c: New file.
74237         Tests for module 'unistr/u8-mblen'.
74238         * modules/unistr/u8-mblen-tests: New file.
74239         * tests/unistr/test-u8-mblen.c: New file.
74241         Tests for module 'unistr/u32-to-u16'.
74242         * modules/unistr/u32-to-u16-tests: New file.
74243         * tests/unistr/test-u32-to-u16.c: New file.
74245         Tests for module 'unistr/u32-to-u8'.
74246         * modules/unistr/u32-to-u8-tests: New file.
74247         * tests/unistr/test-u32-to-u8.c: New file.
74249         Tests for module 'unistr/u16-to-u32'.
74250         * modules/unistr/u16-to-u32-tests: New file.
74251         * tests/unistr/test-u16-to-u32.c: New file.
74253         Tests for module 'unistr/u16-to-u8'.
74254         * modules/unistr/u16-to-u8-tests: New file.
74255         * tests/unistr/test-u16-to-u8.c: New file.
74257         Tests for module 'unistr/u8-to-u32'.
74258         * modules/unistr/u8-to-u32-tests: New file.
74259         * tests/unistr/test-u8-to-u32.c: New file.
74261         Tests for module 'unistr/u8-to-u16'.
74262         * modules/unistr/u8-to-u16-tests: New file.
74263         * tests/unistr/test-u8-to-u16.c: New file.
74265         Tests for module 'unistr/u32-check'.
74266         * modules/unistr/u32-check-tests: New file.
74267         * tests/unistr/test-u32-check.c: New file.
74269         Tests for module 'unistr/u16-check'.
74270         * modules/unistr/u16-check-tests: New file.
74271         * tests/unistr/test-u16-check.c: New file.
74273         Tests for module 'unistr/u8-check'.
74274         * modules/unistr/u8-check-tests: New file.
74275         * tests/unistr/test-u8-check.c: New file.
74277         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
74278         (category_equals): New function.
74279         (main): Add more tests.
74280         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
74282         * tests/unictype/test-bidi_byname.c (main): Add more tests.
74284 2010-01-10  Bruno Haible  <bruno@clisp.org>
74286         unistr/u*-strcoll: Try harder to distinguish different strings.
74287         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
74288         compare s1 and s2 to see if they are different.
74290 2010-01-10  Bruno Haible  <bruno@clisp.org>
74292         unistr/u*-stpncpy: Fix the return value.
74293         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
74294         description of the return value consistent with stpncpy in glibc.
74295         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
74296         written non-NUL unit.
74298 2010-01-10  Bruno Haible  <bruno@clisp.org>
74300         unistr/u*-next: Add missing dependencies.
74301         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
74302         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
74303         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
74305 2010-01-10  Bruno Haible  <bruno@clisp.org>
74307         unistr/u8-mbsnlen: Fix return value for incomplete character.
74308         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
74309         u8_mblen.
74310         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
74311         Remove unistr/u8-mblen.
74312         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
74313         u16_mblen.
74314         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
74315         Remove unistr/u16-mblen.
74317 2010-01-10  Bruno Haible  <bruno@clisp.org>
74319         wchar: Fix compilation error when <wchar.h> is used from coreutils.
74320         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
74321         Reported by Brian Gough <bjg@gnu.org> and
74322         Chris Clayton <chris2553@googlemail.com> via
74323         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
74325 2010-01-09  Bruno Haible  <bruno@clisp.org>
74327         unistr/u16-to-u32: Reject invalid input.
74328         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74329         u16_mbtouc.
74330         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74331         Remove unistr/u16-mbtouc.
74333         unistr/u16-to-u8: Reject invalid input.
74334         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74335         u16_mbtouc.
74336         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74337         Remove unistr/u16-mbtouc.
74339         unistr/u8-to-u32: Reject invalid input.
74340         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74341         u8_mbtouc.
74342         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74343         Remove unistr/u8-mbtouc.
74345         unistr/u8-to-u16: Reject invalid input.
74346         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74347         u8_mbtouc.
74348         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74349         Remove unistr/u8-mbtouc.
74351 2010-01-09  Bruno Haible  <bruno@clisp.org>
74353         Tests for module 'getlogin'.
74354         * modules/getlogin-tests: New file.
74355         * tests/test-getlogin.c: New file.
74357         New module 'getlogin'.
74358         * lib/unistd.in.h (getlogin): New declaration.
74359         * lib/getlogin.c: New file.
74360         * m4/getlogin.m4: New file.
74361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74362         HAVE_GETLOGIN.
74363         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74364         HAVE_GETLOGIN.
74365         * modules/getlogin: New file.
74366         * doc/posix-functions/getlogin.texi: Mention the new module.
74367         Reported by John W. Eaton <jwe@gnu.org>.
74369 2010-01-09  Bruno Haible  <bruno@clisp.org>
74371         getlogin_r: Support for native Windows.
74372         * lib/getlogin_r.c: Include <windows.h>
74373         (getlogin_r): Implement for native Windows.
74374         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74375         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74376         via John W. Eaton <jwe@gnu.org>.
74378 2010-01-09  Bruno Haible  <bruno@clisp.org>
74380         getlogin_r: Small fixes.
74381         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74382         succeeds.
74383         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74384         before testing whether getlogin_r is declared. No need to set
74385         HAVE_DECL_GETLOGIN_R to 1.
74386         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74388 2010-01-09  Bruno Haible  <bruno@clisp.org>
74390         * lib/unistd.in.h (getlogin_r): Add comment.
74392 2010-01-09  Bruno Haible  <bruno@clisp.org>
74394         Tests for module 'getlogin_r'.
74395         * modules/getlogin_r-tests: New file.
74396         * tests/test-getlogin_r.c: New file.
74398 2010-01-09  Jim Meyering  <meyering@redhat.com>
74400         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74401         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74402         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74404 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74406         * lib/dup2.c (rpl_dup2): Improve comment.
74408 2010-01-08  Eric Blake  <ebb9@byu.net>
74410         maint.mk: allow packages to add makefile @@ exceptions
74411         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74412         (sc_makefile_check): Rename...
74413         (sc_makefile_at_at_check): ...to this, and use hook.
74415         dup2: work around mingw bug
74416         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74417         Reported by Simon Josefsson.
74419 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74421         glob: Fix C++ compilation.
74422         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74423         C++.
74425 2010-01-07  Bruno Haible  <bruno@clisp.org>
74427         Fix indentation of wctype.in.h, broken since 2007-01-06.
74428         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74430 2010-01-07  Bruno Haible  <bruno@clisp.org>
74432         mbslen: Avoid collision with system function.
74433         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74434         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74435         * m4/mbslen.m4: New file.
74436         * modules/mbslen (Files): Add it.
74437         (configure.ac): Invoke gl_MBSLEN.
74438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74439         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74441         via Ian Beckwith <ianb@erislabs.net>.
74443 2010-01-07  Bruno Haible  <bruno@clisp.org>
74445         dirent: Document the last fix.
74446         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74448 2010-01-07  Bruno Haible  <bruno@clisp.org>
74450         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74451         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74452         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74453         va_list are defined.
74454         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74455         Reported by Eric Blake.
74457 2010-01-07  Bruno Haible  <bruno@clisp.org>
74459         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74460         * modules/xlist (Depends-on): Add 'list',
74461         * modules/xoset (Depends-on): Add 'oset'.
74462         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74464 2010-01-07  Bruno Haible  <bruno@clisp.org>
74466         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74467         * doc/posix-functions/strncasecmp.texi: Likewise.
74469 2010-01-07  Bruno Haible  <bruno@clisp.org>
74471         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74473 2010-01-07  John W. Eaton  <jwe@octave.org>
74475         wctype: allow C++ use
74476         * lib/wctype.in.h: Add extern "C" block for C++.
74478 2010-01-06  Eric Blake  <ebb9@byu.net>
74480         maint.mk: detect incorrect GFDL usage
74481         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74483 2010-01-06  Jim Meyering  <meyering@redhat.com>
74484         and Eric Blake  <ebb9@byu.net>
74486         maint.mk: ignore multi-line copyright in NEWS
74487         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74489 2010-01-06  Eric Blake  <ebb9@byu.net>
74491         select: add missing dependency
74492         * modules/select-tests (Depends-on): Move sockets dependency...
74493         * modules/select (Depends-on): ...here.
74494         Reported by Ian Beckwith.
74496         doc: regenerate INSTALL
74497         * doc/INSTALL: Reflect recent autoconf update.
74498         * doc/INSTALL.ISO: Likewise.
74499         * doc/INSTALL.UTF-8: Likewise.
74501         pread: fix compilation on glibc
74502         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74503         Reported by Ralf Wildenhues.
74505         dirent: fix test failure
74506         * lib/dirent.in.h (includes): Guarantee ino_t.
74507         Reported by Ralf Wildenhues.
74509 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74511         linkat, renameat: avoid bad free
74512         * lib/at-func2.c (at_func2): Fix typo.
74513         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74515 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74517         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74518         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74519         to avoid failure of symlink test later.
74521 2010-01-06  Eric Blake  <ebb9@byu.net>
74523         stdio, unistd: guarantee ssize_t
74524         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74525         2008 are exposed when needed.
74526         * lib/stdio.in.h (includes): Likewise.
74527         Reported by Ralf Wildenhues.
74529 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74531         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74532         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74533         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74535 2010-01-06  Jim Meyering  <meyering@redhat.com>
74537         readtokens: this module *does* require xalloc.h
74538         It uses only functions that were omitted by the old syntax-check rule.
74539         * lib/readtokens.c: Include "xalloc.h" once again.
74540         * modules/readtokens (Depends-on): Add xalloc.
74541         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74543 2010-01-05  Eric Blake  <ebb9@byu.net>
74545         maint: support 'make announcement' from a VPATH build
74546         * top/maint.mk (announcement): Look for correct NEWS file.
74548 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74550         utimens (fdutimens): ignore a negative FD, per contract
74551         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74552         when we have a valid file descriptor.  Otherwise, using a brand
74553         new glibc (with just-patched futimens that now fails with EBADF)
74554         would cause this function to fail with ENOSYS.
74555         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74556         See also http://bugzilla.redhat.com/552320.
74558 2010-01-05  Eric Blake  <ebb9@byu.net>
74560         strcase: document what it provides
74561         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74562         gnulib module.
74563         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74564         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74566 2010-01-05  Jim Meyering  <meyering@redhat.com>
74568         maint: remove useless inclusions of "xalloc.h"
74569         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74570         * lib/readtokens.c: Likewise.
74571         * lib/same.c: Likewise.
74572         * modules/getloadavg (Depends-on): Remove xalloc.
74573         * modules/readtokens: Likewise.
74574         * modules/same: Likewise.
74576         maint.mk: include 4 more function names in alloca.h-checking regexp
74577         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74578         regexp.  Before, we would give a false-positive (saying alloca.h
74579         is included unnecessarily) when the only uses involved omitted symbols.
74581         xalloc.h: use consistent formatting
74582         * lib/xalloc.h: Move declarations to start in the first column.
74584 2010-01-05  Eric Blake  <ebb9@byu.net>
74586         mkdir: avoid xalloc
74587         * lib/mkdir.c (includes): Drop unused header.
74588         Reported by John W. Eaton.
74590 2010-01-04  Jim Meyering  <meyering@redhat.com>
74592         nl_langinfo: avoid configure-time syntax error
74593         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74594         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74595         the empty string.  Don't let that provoke a shell syntax error.
74597         regcomp, regexec, fnmatch: avoid array bounds read error
74598         * lib/regcomp.c (build_equiv_class): From glibc:
74599         Use only the low 24 bits of a findidx return value as an index
74600         into the weights array.  Patch by Ulrich Drepper:
74601         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74602         * lib/regexec.c (check_node_accept_bytes): Likewise.
74603         * lib/fnmatch_loop.c (FCT): Likewise.
74605         regcomp: skip collseq lookup when there are no rules
74606         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74607         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74609         regcomp: recognize ill-formed { } expressions
74610         * lib/regcomp.c (parse_dup_op): From glibc:
74611         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74613         regcomp: fix typo in comment
74614         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74615         s/satisfy/satisfies/.
74617         regcomp: sync from glibc: remove dead store
74618         * lib/regcomp.c (duplicate_node_closure): Remove useless
74619         search_duplicated_node call and dead store.
74621         regcomp: sync from glibc; always use nl_langinfo
74622         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74623         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74624         * modules/regex (Depends-on): Add nl_langinfo.
74626 2010-01-04  Eric Blake  <ebb9@byu.net>
74628         fdopendir: fix configure test
74629         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74631 2010-01-01  Bruno Haible  <bruno@clisp.org>
74633         wchar: Remove unused configure check.
74634         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74636 2010-01-01  Eric Blake  <ebb9@byu.net>
74638         headers: make check of system header explicit
74639         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74640         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74641         ourselves.
74642         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74644         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74645         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74646         internals.
74647         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74648         missing.
74649         Suggested by Bruno Haible.
74651 2010-01-01  Jim Meyering  <meyering@redhat.com>
74653         ChangeLog: tweak to eliminate unnecessary copyright line
74654         * ChangeLog: Remove a copyright line that was mistakenly updated
74655         by today's update-copyright run.  Reported by Eric Blake.
74657         test-update-copyright: don't let envvar setting cause test failure
74658         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74660 2010-01-01  Bruno Haible  <bruno@clisp.org>
74662         localename: Avoid gcc warning.
74663         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74664         function if it is not used.
74666 2010-01-01  Jim Meyering  <meyering@redhat.com>
74668         update nearly all FSF copyright year lists to include 2010
74669         Use the same procedure as for 2009, outlined in
74670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74672         version-etc: set COPYRIGHT_YEAR to 2010
74673         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74675 2009-12-31  Eric Blake  <ebb9@byu.net>
74677         doc: correct availability of cygwin 1.5.x getopt
74678         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74679         variables.
74680         * doc/posix-functions/opterr.texi (opterr): Likewise.
74681         * doc/posix-functions/optind.texi (optind): Likewise.
74682         * doc/posix-functions/optopt.texi (optopt): Likewise.
74683         * doc/posix-functions/tzname.texi (tzname): Likewise.
74685         openat: update maintainer
74686         * modules/openat (Maintainer): Add myself.
74688         utimens: avoid shadowing warning
74689         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74690         buffers into one, to avoid shadowing, as well as avoiding a
74691         redundant stat.
74692         Reported by Jim Meyering.
74694         test-dup2: avoid compiler warning
74695         * tests/test-dup2.c (is_inheritable): Only define if used.
74697 2010-01-01  Bruno Haible  <bruno@clisp.org>
74699         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74700         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74701         defined, use wctomb instead of wcrtomb.
74703 2010-01-01  Bruno Haible  <bruno@clisp.org>
74705         iconv: Reject native Solaris iconv.
74706         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74707         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74709 2009-12-31  Bruno Haible  <bruno@clisp.org>
74711         * tests/test-signal.c (main): Remove test of 'SIG'.
74713 2009-12-31  Bruno Haible  <bruno@clisp.org>
74715         spawn: Fix incomplete fix.
74716         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74717         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74718         warnings for GNULIB_POSIXCHECK again.
74719         Reported by Eric Blake.
74721 2009-12-31  Bruno Haible  <bruno@clisp.org>
74723         Avoid namespace pollution on glibc systems.
74724         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74725         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74726         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74727         glibc systems.
74729 2009-12-31  Bruno Haible  <bruno@clisp.org>
74731         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74732         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74733         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74734         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74735         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74736         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74737         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74739 2009-12-31  Bruno Haible  <bruno@clisp.org>
74741         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74742         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74743         afterwards.
74745 2009-12-31  Bruno Haible  <bruno@clisp.org>
74747         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74748         SYS_UTSNAME_H.
74750 2009-12-31  Bruno Haible  <bruno@clisp.org>
74752         spawn: Fix misapplied patch.
74753         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74754         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74755         warnings for GNULIB_POSIXCHECK.
74757 2009-12-31  Bruno Haible  <bruno@clisp.org>
74759         times: Update after sys_times changed.
74760         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74761         * modules/times (Files): Add it.
74762         (configure.ac): Invoke gl_FUNC_TIMES.
74764 2009-12-31  Bruno Haible  <bruno@clisp.org>
74766         Use AC_C_INLINE where necessary.
74767         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74770         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74771         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74772         * m4/mbiter.m4 (gl_MBITER): Likewise.
74773         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74774         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74775         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74776         * modules/u64 (configure.ac): Likewise.
74778 2009-12-31  Bruno Haible  <bruno@clisp.org>
74780         Use AC_C_INLINE instead of module 'inline' where possible.
74781         * modules/inline (Description): Clarify purpose.
74782         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74783         * modules/count-one-bits (Depends-on): Remove inline.
74784         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74785         * modules/openat (Depends-on): Remove inline.
74786         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74787         instead of depending on module 'inline'.
74788         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74789         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74790         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74791         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74792         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74793         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74794         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74795         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74796         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74797         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74798         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74799         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74800         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74801         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74802         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74803         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74804         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74805         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74806         Likewise.
74807         * modules/unictype/property-ascii-hex-digit (Depends-on,
74808         configure.ac): Likewise.
74809         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74810         configure.ac): Likewise.
74811         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74812         configure.ac): Likewise.
74813         * modules/unictype/property-bidi-block-separator (Depends-on,
74814         configure.ac): Likewise.
74815         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74816         configure.ac): Likewise.
74817         * modules/unictype/property-bidi-common-separator (Depends-on,
74818         configure.ac): Likewise.
74819         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74820         Likewise.
74821         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74822         configure.ac): Likewise.
74823         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74824         configure.ac): Likewise.
74825         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74826         configure.ac): Likewise.
74827         * modules/unictype/property-bidi-european-digit (Depends-on,
74828         configure.ac): Likewise.
74829         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74830         configure.ac): Likewise.
74831         * modules/unictype/property-bidi-left-to-right (Depends-on,
74832         configure.ac): Likewise.
74833         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74834         configure.ac): Likewise.
74835         * modules/unictype/property-bidi-other-neutral (Depends-on,
74836         configure.ac): Likewise.
74837         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74838         Likewise.
74839         * modules/unictype/property-bidi-segment-separator (Depends-on,
74840         configure.ac): Likewise.
74841         * modules/unictype/property-bidi-whitespace (Depends-on,
74842         configure.ac): Likewise.
74843         * modules/unictype/property-combining (Depends-on, configure.ac):
74844         Likewise.
74845         * modules/unictype/property-composite (Depends-on, configure.ac):
74846         Likewise.
74847         * modules/unictype/property-currency-symbol (Depends-on,
74848         configure.ac): Likewise.
74849         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74850         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74851         Likewise.
74852         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74853         configure.ac): Likewise.
74854         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74855         Likewise.
74856         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74857         Likewise.
74858         * modules/unictype/property-extender (Depends-on, configure.ac):
74859         Likewise.
74860         * modules/unictype/property-format-control (Depends-on, configure.ac):
74861         Likewise.
74862         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74863         Likewise.
74864         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74865         Likewise.
74866         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74867         Likewise.
74868         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74869         Likewise.
74870         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74871         Likewise.
74872         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74873         Likewise.
74874         * modules/unictype/property-id-start (Depends-on, configure.ac):
74875         Likewise.
74876         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74877         Likewise.
74878         * modules/unictype/property-ids-binary-operator (Depends-on,
74879         configure.ac): Likewise.
74880         * modules/unictype/property-ids-trinary-operator (Depends-on,
74881         configure.ac): Likewise.
74882         * modules/unictype/property-ignorable-control (Depends-on,
74883         configure.ac): Likewise.
74884         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74885         Likewise.
74886         * modules/unictype/property-join-control (Depends-on, configure.ac):
74887         Likewise.
74888         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74889         Likewise.
74890         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74891         Likewise.
74892         * modules/unictype/property-logical-order-exception (Depends-on,
74893         configure.ac): Likewise.
74894         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74895         Likewise.
74896         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74897         * modules/unictype/property-non-break (Depends-on, configure.ac):
74898         Likewise.
74899         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74900         Likewise.
74901         * modules/unictype/property-numeric (Depends-on, configure.ac):
74902         Likewise.
74903         * modules/unictype/property-other-alphabetic (Depends-on,
74904         configure.ac): Likewise.
74905         * modules/unictype/property-other-default-ignorable-code-point
74906         (Depends-on, configure.ac): Likewise.
74907         * modules/unictype/property-other-grapheme-extend (Depends-on,
74908         configure.ac): Likewise.
74909         * modules/unictype/property-other-id-continue (Depends-on,
74910         configure.ac): Likewise.
74911         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74912         Likewise.
74913         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74914         Likewise.
74915         * modules/unictype/property-other-math (Depends-on, configure.ac):
74916         Likewise.
74917         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74918         Likewise.
74919         * modules/unictype/property-paired-punctuation (Depends-on,
74920         configure.ac): Likewise.
74921         * modules/unictype/property-paragraph-separator (Depends-on,
74922         configure.ac): Likewise.
74923         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74924         Likewise.
74925         * modules/unictype/property-pattern-white-space (Depends-on,
74926         configure.ac): Likewise.
74927         * modules/unictype/property-private-use (Depends-on, configure.ac):
74928         Likewise.
74929         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74930         Likewise.
74931         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74932         Likewise.
74933         * modules/unictype/property-radical (Depends-on, configure.ac):
74934         Likewise.
74935         * modules/unictype/property-sentence-terminal (Depends-on,
74936         configure.ac): Likewise.
74937         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74938         Likewise.
74939         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74940         * modules/unictype/property-terminal-punctuation (Depends-on,
74941         configure.ac): Likewise.
74942         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74943         Likewise.
74944         * modules/unictype/property-unassigned-code-value (Depends-on,
74945         configure.ac): Likewise.
74946         * modules/unictype/property-unified-ideograph (Depends-on,
74947         configure.ac): Likewise.
74948         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74949         Likewise.
74950         * modules/unictype/property-variation-selector (Depends-on,
74951         configure.ac): Likewise.
74952         * modules/unictype/property-white-space (Depends-on, configure.ac):
74953         Likewise.
74954         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74955         Likewise.
74956         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74957         Likewise.
74958         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74959         Likewise.
74960         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74961         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74962         Likewise.
74964 2009-12-31  Bruno Haible  <bruno@clisp.org>
74966         Remove unnecessary AC_C_INLINE invocation.
74967         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74968         since 2009-08-21.
74970 2009-12-31  Jim Meyering  <meyering@redhat.com>
74972         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74973         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74974         With this change, we can all remove the gpg_key_ID = ... definition
74975         from our respective cfg.mk files.
74977         maint.mk: create announcement template in ~/, not in /tmp
74978         * top/maint.mk (emit_upload_commands): Adjust.
74979         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74980         Remove temporary file, .ci-msg.
74982 2009-12-31  Eric Blake  <ebb9@byu.net>
74984         link-warning: always build headers with link warnings
74985         * modules/arpa_inet (Makefile.am): Always build replacement
74986         header.
74987         * modules/ctype (Makefile.am): Likewise.
74988         * modules/dirent (Makefile.am): Likewise.
74989         * modules/inttypes (Makefile.am): Likewise.
74990         * modules/langinfo (Makefile.am): Likewise.
74991         * modules/locale (Makefile.am): Likewise.
74992         * modules/spawn (Makefile.am): Likewise.
74993         * modules/sys_file (Makefile.am): Likewise.
74994         * modules/sys_ioctl (Makefile.am): Likewise.
74995         * modules/sys_select (Makefile.am): Likewise.
74996         * modules/sys_socket (Makefile.am): Likewise.
74997         * modules/sys_times (Makefile.am): Likewise.
74998         * modules/sys_utsname (Makefile.am): Likewise.
74999         * modules/sys_wait (Makefile.am): Likewise.
75000         * modules/wchar (Makefile.am): Likewise.
75001         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
75002         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
75003         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
75004         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
75005         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
75006         Likewise.
75007         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
75009         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
75010         Likewise.
75011         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
75012         Likewise.
75013         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
75014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
75015         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
75016         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75017         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
75018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75019         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75020         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
75021         (gl_WCHAR_H_DEFAULTS): Likewise.
75023 2009-12-31  Eric Blake  <ebb9@byu.net>
75025         signal, spawn: use link warnings
75026         * lib/signal.in.h (sigset_t): Make unconditional.
75027         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
75028         (sigpending, sigprocmask, sigaction): Add link warnings.
75029         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
75030         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
75031         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
75032         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
75033         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
75034         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
75035         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
75036         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
75037         (posix_spawn_file_actions_destroy)
75038         (posix_spawn_file_actions_addopen)
75039         (posix_spawn_file_actions_addclose)
75040         (posix_spawn_file_actions_adddup2): Likewise.
75041         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
75042         * tests/test-signal.c (main): Enhance test.
75044         spawn: improve wrapper support
75045         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
75046         (gl_SPAWN_H_DEFAULTS): New defaults.
75047         * modules/spawn (Makefile.am): Substitute them.
75048         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
75049         Only declare if missing or broken.
75051         sys_times, sys_utsname: use include_next
75052         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
75053         header.
75054         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
75055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75056         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75057         * modules/sys_times (Depends-on): Add include_next.
75058         (Makefile.am): Substitute additional values.
75059         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
75060         * lib/sys_times.in.h (includes): Include native header, if
75061         available.
75062         * lib/sys_utsname.in.h (includes): Likewise.
75063         * tests/test-sys_times.c (main): Enhance test.
75065         fdutimensat: revert prior patch
75066         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
75067         utimens.h.
75068         Reported by Bruno Haible.
75070 2009-12-30  Eric Blake  <ebb9@byu.net>
75072         sys_wait: drop link-warning dependency
75073         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
75074         link-warning efforts.
75075         * lib/sys_wait.in.h: Likewise.
75077         fdutimensat: remove bogus dependency
75078         * modules/fdutimensat (Depends-on): Drop inline.
75080         unistd: fix typo
75081         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
75083 2009-12-30  Bruno Haible  <bruno@clisp.org>
75085         Fix compilation error with Solaris cc.
75086         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
75087         * lib/unicase/u16-is-invariant.c: Likewise.
75088         * lib/unicase/u32-is-invariant.c: Likewise.
75089         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75091 2009-12-30  Bruno Haible  <bruno@clisp.org>
75093         Fix test crash.
75094         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
75095         locales.
75096         Reported by Simon Josefsson <simon@josefsson.org>.
75098 2009-12-30  Bruno Haible  <bruno@clisp.org>
75100         Fix compilation error on most platforms.
75101         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
75102         Reported by Simon Josefsson <simon@josefsson.org>
75103         and Nelson H. F. Beebe <beebe@math.utah.edu>.
75105 2009-12-30  Eric Blake  <ebb9@byu.net>
75107         futimens, utimensat: work around ntfs-3g bug
75108         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
75109         a ctime bug is present, and expand workaround to cover ntfs-3g.
75110         * lib/utimens.c (fdutimens, lutimens): Likewise.
75111         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
75112         (validate_timespec): Adjust return value.
75113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
75114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75115         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
75117 2009-12-29  Eric Blake  <ebb9@byu.net>
75119         link-warning: make usage consistent
75120         * modules/ctype (Depends-on): Add link-warning.
75121         (Makefile.am): Update rules accordingly.
75122         * modules/langinfo (Depends-on, Makefile.am): Likewise.
75123         * modules/locale (Depends-on, Makefile.am): Likewise.
75124         * modules/sys_file (Makefile.am): Likewise.
75125         * modules/getopt-posix (Makefile.am): Delete unused link warning
75126         efforts.
75127         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
75128         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
75129         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
75130         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
75132         stdio: remove unused variables
75133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
75134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
75135         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
75137         tests: test more substitute headers
75138         * modules/ctype-tests: New file.
75139         * modules/dirent-tests: Likewise.
75140         * modules/spawn-tests: Likewise.
75141         * modules/sys_file-tests: Likewise.
75142         * modules/sys_ioctl-tests: Likewise.
75143         * modules/sys_wait-tests: Likewise.
75144         * tests/test-ctype.c: Likewise.
75145         * tests/test-dirent.c: Likewise.
75146         * tests/test-spawn.c: Likewise.
75147         * tests/test-sys_file.c: Likewise.
75148         * tests/test-sys_ioctl.c: Likewise.
75149         * tests/test-sys_wait.c: Likewise.
75150         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
75151         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
75152         whether or not flock is in use.
75154         tests: remove License section from module
75155         * modules/arpa_inet-tests: Remove unneeded section.
75156         * modules/byteswap-tests: Likewise.
75157         * modules/ceilf-tests: Likewise.
75158         * modules/ceill-tests: Likewise.
75159         * modules/crypto/des-tests: Likewise.
75160         * modules/crypto/gc-arcfour-tests: Likewise.
75161         * modules/crypto/gc-arctwo-tests: Likewise.
75162         * modules/crypto/gc-des-tests: Likewise.
75163         * modules/crypto/gc-hmac-md5-tests: Likewise.
75164         * modules/crypto/gc-hmac-sha1-tests: Likewise.
75165         * modules/crypto/gc-md2-tests: Likewise.
75166         * modules/crypto/gc-md4-tests: Likewise.
75167         * modules/crypto/gc-md5-tests: Likewise.
75168         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
75169         * modules/crypto/gc-rijndael-tests: Likewise.
75170         * modules/crypto/gc-sha1-tests: Likewise.
75171         * modules/crypto/gc-tests: Likewise.
75172         * modules/crypto/md2-tests: Likewise.
75173         * modules/crypto/md4-tests: Likewise.
75174         * modules/fcntl-h-tests: Likewise.
75175         * modules/floorf-tests: Likewise.
75176         * modules/floorl-tests: Likewise.
75177         * modules/frexp-nolibm-tests: Likewise.
75178         * modules/frexp-tests: Likewise.
75179         * modules/frexpl-nolibm-tests: Likewise.
75180         * modules/frexpl-tests: Likewise.
75181         * modules/getaddrinfo-tests: Likewise.
75182         * modules/inttypes-tests: Likewise.
75183         * modules/isfinite-tests: Likewise.
75184         * modules/isinf-tests: Likewise.
75185         * modules/ldexpl-tests: Likewise.
75186         * modules/locale-tests: Likewise.
75187         * modules/math-tests: Likewise.
75188         * modules/netdb-tests: Likewise.
75189         * modules/netinet_in-tests: Likewise.
75190         * modules/printf-frexp-tests: Likewise.
75191         * modules/printf-frexpl-tests: Likewise.
75192         * modules/priv-set-tests: Likewise.
75193         * modules/random_r-tests: Likewise.
75194         * modules/round-tests: Likewise.
75195         * modules/roundf-tests: Likewise.
75196         * modules/roundl-tests: Likewise.
75197         * modules/search-tests: Likewise.
75198         * modules/select-tests: Likewise.
75199         * modules/signal-tests: Likewise.
75200         * modules/stdbool-tests: Likewise.
75201         * modules/stddef-tests: Likewise.
75202         * modules/stdint-tests: Likewise.
75203         * modules/stdio-tests: Likewise.
75204         * modules/stdlib-tests: Likewise.
75205         * modules/string-tests: Likewise.
75206         * modules/strings-tests: Likewise.
75207         * modules/sys_select-tests: Likewise.
75208         * modules/sys_socket-tests: Likewise.
75209         * modules/sys_stat-tests: Likewise.
75210         * modules/sys_time-tests: Likewise.
75211         * modules/sys_utsname-tests: Likewise.
75212         * modules/sysexits-tests: Likewise.
75213         * modules/time-tests: Likewise.
75214         * modules/trunc-tests: Likewise.
75215         * modules/truncf-tests: Likewise.
75216         * modules/truncl-tests: Likewise.
75217         * modules/tsearch-tests: Likewise.
75218         * modules/unistd-tests: Likewise.
75219         * modules/wchar-tests: Likewise.
75220         * modules/wctype-tests: Likewise.
75222         tests: fix license on several tests
75223         * tests/test-des.c: Update to GPLv3+.
75224         * tests/test-flock.c: Likewise.
75225         * tests/test-fsync.c: Likewise.
75226         * tests/test-futimens.h: Likewise.
75227         * tests/test-gc-arcfour.c: Likewise.
75228         * tests/test-gc-arctwo.c: Likewise.
75229         * tests/test-gc-des.c: Likewise.
75230         * tests/test-gc-hmac-md5.c: Likewise.
75231         * tests/test-gc-hmac-sha1.c: Likewise.
75232         * tests/test-gc-md2.c: Likewise.
75233         * tests/test-gc-md4.c: Likewise.
75234         * tests/test-gc-md5.c: Likewise.
75235         * tests/test-gc-pbkdf2-sha1.c: Likewise.
75236         * tests/test-gc-rijndael.c: Likewise.
75237         * tests/test-gc-sha1.c: Likewise.
75238         * tests/test-gc.c: Likewise.
75239         * tests/test-getcwd.c: Likewise.
75240         * tests/test-link.c: Likewise.
75241         * tests/test-link.h: Likewise.
75242         * tests/test-lutimens.h: Likewise.
75243         * tests/test-md2.c: Likewise.
75244         * tests/test-md4.c: Likewise.
75245         * tests/test-mkdir.h: Likewise.
75246         * tests/test-rename.c: Likewise.
75247         * tests/test-rename.h: Likewise.
75248         * tests/test-safe-alloc.c: Likewise.
75249         * tests/test-utimens-common.h: Likewise.
75250         * tests/test-utimens.h: Likewise.
75252         maint: sync license texts
75253         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
75254         * doc/gpl-3.0.texi: Revert copyright year update.
75255         * doc/lgpl-3.0.texi: Likewise.
75257 2009-12-29  Jim Meyering  <meyering@redhat.com>
75259         update nearly all FSF copyright year lists to include 2009
75260         The files named by the following are exempted:
75261             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
75262               test -f "$dst" && { echo "$dst"; continue; }
75263               test -d "$dst" || continue
75264               echo "$dst"/$(basename "$src")
75265             done > exempt
75266             git ls-files tests/unictype >> exempt
75267         In the remaining files, convert to all-interval notation if
75268         - there is already at least one year interval like 2000-2003
75269         - the file is maintained by me
75270         - the file is in lib/uni*/, where that style already prevails
75271         Otherwise, use update-copyright's default.
75273 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75274         and Eric Blake  <ebb9@byu.net>
75276         tests: don't require debug system() to pass
75277         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
75278         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75279         * tests/test-unlink.h (test_unlink_func): Likewise.
75280         * tests/test-fstatat.c (main): ...into callers.
75281         * tests/test-lstat.c (main): Likewise.
75282         * tests/test-rmdir.c (main): Likewise.
75283         * tests/test-unlink.c (main): Likewise.
75284         * tests/test-unlinkat.c (main): Likewise.
75285         * tests/test-areadlink-with-size.c (main): Don't require a
75286         debug-only system call to pass, aiding cross-testing to mingw.
75287         * tests/test-areadlink.c (main): Likewise.
75288         * tests/test-areadlinkat-with-size.c (main): Likewise.
75289         * tests/test-areadlinkat.c (main): Likewise.
75290         * tests/test-canonicalize-lgpl.c (main): Likewise.
75291         * tests/test-canonicalize.c (main): Likewise.
75292         * tests/test-chown.c (main): Likewise.
75293         * tests/test-fchownat.c (main): Likewise.
75294         * tests/test-lchown.c (main): Likewise.
75295         * tests/test-fdutimensat.c (main): Likewise.
75296         * tests/test-futimens.c (main): Likewise.
75297         * tests/test-link.c (main): Likewise.
75298         * tests/test-linkat.c (main): Likewise.
75299         * tests/test-mkdir.c (main): Likewise.
75300         * tests/test-mkdirat.c (main): Likewise.
75301         * tests/test-mkfifo.c (main): Likewise.
75302         * tests/test-mkfifoat.c (main): Likewise.
75303         * tests/test-mknod.c (main): Likewise.
75304         * tests/test-readlink.c (main): Likewise.
75305         * tests/test-remove.c (main): Likewise.
75306         * tests/test-rename.c (main): Likewise.
75307         * tests/test-renameat.c (main): Likewise.
75308         * tests/test-symlink.c (main): Likewise.
75309         * tests/test-symlinkat.c (main): Likewise.
75310         * tests/test-utimens.c (main): Likewise.
75311         * tests/test-utimensat.c (main): Likewise.
75313 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75315         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
75316         on $(UNUSED_PARAMETER_H) to avoid build failure.
75318 2009-12-28  Jim Meyering  <meyering@redhat.com>
75320         update-copyright: you may specify a max. line length other than 72
75321         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75323         maint: use consistent FSF copyright line syntax
75324         * lib/posixtm.c: Add missing comma in FSF copyright line.
75325         * lib/posixtm.h: Likewise.
75326         * lib/getugroups.c: Add missing ", Inc.".
75328         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75329         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75330         FSF copyright line.  Remove trailing blanks.
75332 2009-12-28  Eric Blake  <ebb9@byu.net>
75334         test-dup2: reduce dependencies
75335         * modules/cloexec (Configure.ac): Set witness.
75336         * modules/dup2-tests (Depends-on): Drop cloexec.
75337         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75338         not present.
75339         Suggested by Bruno Haible.
75341 2009-12-26  Bruno Haible  <bruno@clisp.org>
75343         Remove an unneeded dependency.
75344         * modules/fseterr (Depends-on): Remove dup2.
75346 2009-12-26  Eric Blake  <ebb9@byu.net>
75348         tests: use macros.h in more places
75349         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75350         (ASSERT_STREAM): Provide default of stderr.
75351         * tests/test-dirent-safer.c: Include macros.h, using alternate
75352         stream for assertions.
75353         * tests/test-dup-safer.c: Likewise.
75354         * tests/test-freopen-safer.c: Likewise.
75355         * tests/test-getopt.c: Likewise.
75356         * tests/test-openat-safer.c: Likewise.
75357         * tests/test-pipe.c: Likewise.
75358         * tests/test-popen-safer.c: Likewise.
75359         * modules/dirent-safer-tests (Files): Include macros.h.
75360         * modules/unistd-safer-tests (Files): Likewise.
75361         * modules/freopen-safer-tests (Files): Likewise.
75362         * modules/getopt-posix-tests (Files): Likewise.
75363         * modules/openat-safer-tests (Files): Likewise.
75364         * modules/pipe-tests (Files): Likewise.
75366 2009-12-26  Bruno Haible  <bruno@clisp.org>
75368         javacomp-script: Portability fix.
75369         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75370         that it also works on Solaris.
75372 2009-12-26  Bruno Haible  <bruno@clisp.org>
75374         localename: Fix storage allocation of gl_locale_name_thread's result.
75375         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75376         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75377         all platforms that have 'uselocale'.
75378         (gl_locale_name_thread_unsafe): New function, extracted from
75379         gl_locale_name_thread.
75380         (gl_locale_name_thread): Call struniq on all platforms that have
75381         'uselocale'.
75382         * tests/test-localename.c (test_locale_name_thread): Check that the
75383         resulting strings are permanently allocated.
75384         * modules/localename-tests (Depends-on): Add strdup.
75386 2009-12-26  Bruno Haible  <bruno@clisp.org>
75388         * tests/test-localename.c (categories): Fill in the strings.
75390 2009-12-26  Jim Meyering  <meyering@redhat.com>
75392         isdir: complete the removal of m4/isdir.m4
75393         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75395         isdir: clean up, since at least grep still uses it
75396         * lib/isdir.c: Include "isdir.h".
75397         (S_ISDIR): Remove now-unneeded definition.
75398         * modules/isdir (Files): Add lib/isdir.h.
75399         * lib/isdir.h: New file, with declaration.
75400         * m4/isdir.m4: Remove file -- unneeded.
75402 2009-12-25  Bruno Haible  <bruno@clisp.org>
75404         selinux-h: Make generated .h files standalone.
75405         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75406         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75407         * lib/se-selinux.in.h: Likewise.
75408         * modules/selinux-h (Depends-on): Add unused-parameter.
75409         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75410         selinux/selinux.h and selinux/context.h.
75411         Suggested by Eric Blake.
75413 2009-12-25  Bruno Haible  <bruno@clisp.org>
75415         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75416         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75417         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75418         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75419         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75421 2009-12-24  Bruno Haible  <bruno@clisp.org>
75423         openat: Fix warning.
75424         * lib/openat-proc.c: Include <unistd.h>.
75426 2009-12-24  Bruno Haible  <bruno@clisp.org>
75428         New module 'unused-parameter'.
75429         * build-aux/unused-parameter.h: New file, extracted from earlier
75430         gnulib-common.m4.
75431         * modules/unused-parameter: New file.
75432         * lib/unistr.h: Include unused-parameter.h.
75433         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75434         _GL_UNUSED.
75435         * modules/unistr/base (Depends-on): Add unused-parameter.
75437 2009-12-24  Bruno Haible  <bruno@clisp.org>
75439         Add missing dependencies to 'extensions' module.
75440         * m4/extensions.m4: Add comment.
75441         * modules/accept4 (Depends-on): Add extensions.
75442         * modules/dup3 (Depends-on): Likewise.
75443         * modules/fcntl (Depends-on): Likewise.
75444         * modules/futimens (Depends-on): Likewise.
75445         * modules/mknod (Depends-on): Likewise.
75446         * modules/pipe2 (Depends-on): Likewise.
75447         * modules/stat-time (Depends-on): Likewise.
75448         * modules/strcasestr-simple (Depends-on): Likewise.
75449         * modules/strsignal (Depends-on): Likewise.
75450         * modules/utimensat (Depends-on): Likewise.
75451         * modules/localcharset (Depends-on): Likewise. Needed because of
75452         gl_FCNTL_O_FLAGS.
75453         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75454         AC_TYPE_MBSTATE_T.
75455         * modules/wcsnrtombs (Depends-on): Likewise.
75456         * modules/wcsrtombs (Depends-on): Likewise.
75458 2009-12-24  Bruno Haible  <bruno@clisp.org>
75460         binary-io: Avoid gcc warning due to SET_BINARY.
75461         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75462         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75464 2009-12-24  Bruno Haible  <bruno@clisp.org>
75466         Avoid future namespace pollution on glibc systems.
75467         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75468         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75469         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75470         glibc systems.
75472 2009-12-24  Bruno Haible  <bruno@clisp.org>
75474         Refactor common macros used in tests.
75475         * tests/macros.h: New file.
75476         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75477         and/or <stdlib.h>, if appropriate.
75478         (ASSERT, SIZEOF): Remove macros.
75479         * tests/test-areadlink-with-size.c: Likewise.
75480         * tests/test-areadlinkat.c: Likewise.
75481         * tests/test-areadlinkat-with-size.c: Likewise.
75482         * tests/test-argmatch.c: Likewise.
75483         * tests/test-argv-iter.c: Likewise.
75484         * tests/test-array-mergesort.c: Likewise.
75485         * tests/test-array_list.c: Likewise.
75486         * tests/test-array_oset.c: Likewise.
75487         * tests/test-avltree_list.c: Likewise.
75488         * tests/test-avltree_oset.c: Likewise.
75489         * tests/test-avltreehash_list.c: Likewise.
75490         * tests/test-base64.c: Likewise.
75491         * tests/test-binary-io.c: Likewise.
75492         * tests/test-bitrotate.c: Likewise.
75493         * tests/test-btowc.c: Likewise.
75494         * tests/test-byteswap.c: Likewise.
75495         * tests/test-c-ctype.c: Likewise.
75496         * tests/test-c-stack.c: Likewise.
75497         * tests/test-c-strcasecmp.c: Likewise.
75498         * tests/test-c-strcasestr.c: Likewise.
75499         * tests/test-c-strncasecmp.c: Likewise.
75500         * tests/test-c-strstr.c: Likewise.
75501         * tests/test-canonicalize-lgpl.c: Likewise.
75502         * tests/test-canonicalize.c: Likewise.
75503         * tests/test-carray_list.c: Likewise.
75504         * tests/test-ceilf1.c: Likewise.
75505         * tests/test-ceilf2.c: Likewise.
75506         * tests/test-ceill.c: Likewise.
75507         * tests/test-chown.c: Likewise.
75508         * tests/test-cloexec.c: Likewise.
75509         * tests/test-copy-acl.c: Likewise.
75510         * tests/test-copy-file.c: Likewise.
75511         * tests/test-count-one-bits.c: Likewise.
75512         * tests/test-dprintf-posix.c: Likewise.
75513         * tests/test-dup2.c: Likewise.
75514         * tests/test-dup3.c: Likewise.
75515         * tests/test-duplocale.c: Likewise.
75516         * tests/test-fbufmode.c: Likewise.
75517         * tests/test-fchdir.c: Likewise.
75518         * tests/test-fchownat.c: Likewise.
75519         * tests/test-fcntl-safer.c: Likewise.
75520         * tests/test-fcntl.c: Likewise.
75521         * tests/test-fdopendir.c: Likewise.
75522         * tests/test-fdutimensat.c: Likewise.
75523         * tests/test-fflush2.c: Likewise.
75524         * tests/test-file-has-acl.c: Likewise.
75525         * tests/test-filevercmp.c: Likewise.
75526         * tests/test-flock.c: Likewise.
75527         * tests/test-floorf1.c: Likewise.
75528         * tests/test-floorf2.c: Likewise.
75529         * tests/test-floorl.c: Likewise.
75530         * tests/test-fnmatch.c: Likewise.
75531         * tests/test-fopen.h: Likewise.
75532         * tests/test-fpending.c: Likewise.
75533         * tests/test-fprintf-posix.c: Likewise.
75534         * tests/test-fpurge.c: Likewise.
75535         * tests/test-freadable.c: Likewise.
75536         * tests/test-freadahead.c: Likewise.
75537         * tests/test-freading.c: Likewise.
75538         * tests/test-freadptr.c: Likewise.
75539         * tests/test-freadptr2.c: Likewise.
75540         * tests/test-freadseek.c: Likewise.
75541         * tests/test-freopen.c: Likewise.
75542         * tests/test-frexp.c: Likewise.
75543         * tests/test-frexpl.c: Likewise.
75544         * tests/test-fseek.c: Likewise.
75545         * tests/test-fseeko.c: Likewise.
75546         * tests/test-fstatat.c: Likewise.
75547         * tests/test-fstrcmp.c: Likewise.
75548         * tests/test-fsync.c: Likewise.
75549         * tests/test-ftell.c: Likewise.
75550         * tests/test-ftello.c: Likewise.
75551         * tests/test-func.c: Likewise.
75552         * tests/test-futimens.c: Likewise.
75553         * tests/test-fwritable.c: Likewise.
75554         * tests/test-fwriting.c: Likewise.
75555         * tests/test-getcwd.c: Likewise.
75556         * tests/test-getdate.c: Likewise.
75557         * tests/test-getdelim.c: Likewise.
75558         * tests/test-getdtablesize.c: Likewise.
75559         * tests/test-getgroups.c: Likewise.
75560         * tests/test-getline.c: Likewise.
75561         * tests/test-getndelim2.c: Likewise.
75562         * tests/test-glob.c: Likewise.
75563         * tests/test-hash.c: Likewise.
75564         * tests/test-i-ring.c: Likewise.
75565         * tests/test-iconv-utf.c: Likewise.
75566         * tests/test-iconv.c: Likewise.
75567         * tests/test-idpriv-drop.c: Likewise.
75568         * tests/test-idpriv-droptemp.c: Likewise.
75569         * tests/test-inet_ntop.c: Likewise.
75570         * tests/test-inet_pton.c: Likewise.
75571         * tests/test-isblank.c: Likewise.
75572         * tests/test-isfinite.c: Likewise.
75573         * tests/test-isinf.c: Likewise.
75574         * tests/test-isnan.c: Likewise.
75575         * tests/test-isnand.h: Likewise.
75576         * tests/test-isnanf.h: Likewise.
75577         * tests/test-isnanl.h: Likewise.
75578         * tests/test-lchown.c: Likewise.
75579         * tests/test-ldexpl.c: Likewise.
75580         * tests/test-link.c: Likewise.
75581         * tests/test-linkat.c: Likewise.
75582         * tests/test-linked_list.c: Likewise.
75583         * tests/test-linkedhash_list.c: Likewise.
75584         * tests/test-localename.c: Likewise.
75585         * tests/test-lseek.c: Likewise.
75586         * tests/test-lstat.c: Likewise.
75587         * tests/test-mbmemcasecmp.c: Likewise.
75588         * tests/test-mbmemcasecoll.c: Likewise.
75589         * tests/test-mbrtowc.c: Likewise.
75590         * tests/test-mbscasecmp.c: Likewise.
75591         * tests/test-mbscasestr1.c: Likewise.
75592         * tests/test-mbscasestr2.c: Likewise.
75593         * tests/test-mbscasestr3.c: Likewise.
75594         * tests/test-mbscasestr4.c: Likewise.
75595         * tests/test-mbschr.c: Likewise.
75596         * tests/test-mbscspn.c: Likewise.
75597         * tests/test-mbsinit.c: Likewise.
75598         * tests/test-mbsncasecmp.c: Likewise.
75599         * tests/test-mbsnrtowcs.c: Likewise.
75600         * tests/test-mbspbrk.c: Likewise.
75601         * tests/test-mbspcasecmp.c: Likewise.
75602         * tests/test-mbsrchr.c: Likewise.
75603         * tests/test-mbsrtowcs.c: Likewise.
75604         * tests/test-mbsspn.c: Likewise.
75605         * tests/test-mbsstr1.c: Likewise.
75606         * tests/test-mbsstr2.c: Likewise.
75607         * tests/test-mbsstr3.c: Likewise.
75608         * tests/test-memchr.c: Likewise.
75609         * tests/test-memchr2.c: Likewise.
75610         * tests/test-memcmp.c: Likewise.
75611         * tests/test-memmem.c: Likewise.
75612         * tests/test-memrchr.c: Likewise.
75613         * tests/test-mkdir.c: Likewise.
75614         * tests/test-mkdirat.c: Likewise.
75615         * tests/test-mkfifo.c: Likewise.
75616         * tests/test-mkfifoat.c: Likewise.
75617         * tests/test-mknod.c: Likewise.
75618         * tests/test-nanosleep.c: Likewise.
75619         * tests/test-nl_langinfo.c: Likewise.
75620         * tests/test-obstack-printf.c: Likewise.
75621         * tests/test-open.c: Likewise.
75622         * tests/test-openat.c: Likewise.
75623         * tests/test-pipe-filter-gi1.c: Likewise.
75624         * tests/test-pipe-filter-gi2-main.c: Likewise.
75625         * tests/test-pipe-filter-ii1.c: Likewise.
75626         * tests/test-pipe-filter-ii2-main.c: Likewise.
75627         * tests/test-pipe2.c: Likewise.
75628         * tests/test-popen.h: Likewise.
75629         * tests/test-posixtm.c: Likewise.
75630         * tests/test-pread.c: Likewise.
75631         * tests/test-printf-frexp.c: Likewise.
75632         * tests/test-printf-frexpl.c: Likewise.
75633         * tests/test-printf-posix.c: Likewise.
75634         * tests/test-priv-set.c: Likewise.
75635         * tests/test-quotearg.c: Likewise.
75636         * tests/test-random_r.c: Likewise.
75637         * tests/test-rawmemchr.c: Likewise.
75638         * tests/test-rbtree_list.c: Likewise.
75639         * tests/test-rbtree_oset.c: Likewise.
75640         * tests/test-rbtreehash_list.c: Likewise.
75641         * tests/test-readlink.c: Likewise.
75642         * tests/test-remove.c: Likewise.
75643         * tests/test-rename.c: Likewise.
75644         * tests/test-renameat.c: Likewise.
75645         * tests/test-rmdir.c: Likewise.
75646         * tests/test-round1.c: Likewise.
75647         * tests/test-roundf1.c: Likewise.
75648         * tests/test-roundl.c: Likewise.
75649         * tests/test-safe-alloc.c: Likewise.
75650         * tests/test-sameacls.c: Likewise.
75651         * tests/test-set-mode-acl.c: Likewise.
75652         * tests/test-setenv.c: Likewise.
75653         * tests/test-sigaction.c: Likewise.
75654         * tests/test-signbit.c: Likewise.
75655         * tests/test-sleep.c: Likewise.
75656         * tests/test-snprintf-posix.c: Likewise.
75657         * tests/test-snprintf.c: Likewise.
75658         * tests/test-sprintf-posix.c: Likewise.
75659         * tests/test-stat-time.c: Likewise.
75660         * tests/test-stat.c: Likewise.
75661         * tests/test-strcasestr.c: Likewise.
75662         * tests/test-strchrnul.c: Likewise.
75663         * tests/test-strerror.c: Likewise.
75664         * tests/test-striconv.c: Likewise.
75665         * tests/test-striconveh.c: Likewise.
75666         * tests/test-striconveha.c: Likewise.
75667         * tests/test-strsignal.c: Likewise.
75668         * tests/test-strstr.c: Likewise.
75669         * tests/test-strtod.c: Likewise.
75670         * tests/test-strverscmp.c: Likewise.
75671         * tests/test-symlink.c: Likewise.
75672         * tests/test-symlinkat.c: Likewise.
75673         * tests/test-trunc1.c: Likewise.
75674         * tests/test-trunc2.c: Likewise.
75675         * tests/test-truncf1.c: Likewise.
75676         * tests/test-truncf2.c: Likewise.
75677         * tests/test-truncl.c: Likewise.
75678         * tests/test-uname.c: Likewise.
75679         * tests/test-unlink.c: Likewise.
75680         * tests/test-unlinkat.c: Likewise.
75681         * tests/test-unsetenv.c: Likewise.
75682         * tests/test-usleep.c: Likewise.
75683         * tests/test-utimens.c: Likewise.
75684         * tests/test-utimensat.c: Likewise.
75685         * tests/test-vasnprintf-posix.c: Likewise.
75686         * tests/test-vasnprintf-posix2.c: Likewise.
75687         * tests/test-vasnprintf.c: Likewise.
75688         * tests/test-vasprintf-posix.c: Likewise.
75689         * tests/test-vasprintf.c: Likewise.
75690         * tests/test-vdprintf-posix.c: Likewise.
75691         * tests/test-vfprintf-posix.c: Likewise.
75692         * tests/test-vprintf-posix.c: Likewise.
75693         * tests/test-vsnprintf-posix.c: Likewise.
75694         * tests/test-vsnprintf.c: Likewise.
75695         * tests/test-vsprintf-posix.c: Likewise.
75696         * tests/test-wcrtomb.c: Likewise.
75697         * tests/test-wcsnrtombs.c: Likewise.
75698         * tests/test-wcsrtombs.c: Likewise.
75699         * tests/test-wctype.c: Likewise.
75700         * tests/test-wcwidth.c: Likewise.
75701         * tests/test-xfprintf-posix.c: Likewise.
75702         * tests/test-xmemdup0.c: Likewise.
75703         * tests/test-xprintf-posix.c: Likewise.
75704         * tests/test-xvasprintf.c: Likewise.
75705         * tests/unicase/test-locale-language.c: Likewise.
75706         * tests/unicase/test-mapping-part1.h: Likewise.
75707         * tests/unicase/test-predicate-part1.h: Likewise.
75708         * tests/unicase/test-u8-casecmp.c: Likewise.
75709         * tests/unicase/test-u8-casecoll.c: Likewise.
75710         * tests/unicase/test-u8-casefold.c: Likewise.
75711         * tests/unicase/test-u8-is-cased.c: Likewise.
75712         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75713         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75714         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75715         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75716         * tests/unicase/test-u8-tolower.c: Likewise.
75717         * tests/unicase/test-u8-totitle.c: Likewise.
75718         * tests/unicase/test-u8-toupper.c: Likewise.
75719         * tests/unicase/test-u16-casecmp.c: Likewise.
75720         * tests/unicase/test-u16-casecoll.c: Likewise.
75721         * tests/unicase/test-u16-casefold.c: Likewise.
75722         * tests/unicase/test-u16-is-cased.c: Likewise.
75723         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75724         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75725         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75726         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75727         * tests/unicase/test-u16-tolower.c: Likewise.
75728         * tests/unicase/test-u16-totitle.c: Likewise.
75729         * tests/unicase/test-u16-toupper.c: Likewise.
75730         * tests/unicase/test-u32-casecmp.c: Likewise.
75731         * tests/unicase/test-u32-casecoll.c: Likewise.
75732         * tests/unicase/test-u32-casefold.c: Likewise.
75733         * tests/unicase/test-u32-is-cased.c: Likewise.
75734         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75735         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75736         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75737         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75738         * tests/unicase/test-u32-tolower.c: Likewise.
75739         * tests/unicase/test-u32-totitle.c: Likewise.
75740         * tests/unicase/test-u32-toupper.c: Likewise.
75741         * tests/unicase/test-ulc-casecmp.c: Likewise.
75742         * tests/unicase/test-ulc-casecoll.c: Likewise.
75743         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75744         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75745         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75746         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75747         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75748         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75749         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75750         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75751         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75752         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75753         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75754         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75755         * tests/unictype/test-bidi_byname.c: Likewise.
75756         * tests/unictype/test-bidi_name.c: Likewise.
75757         * tests/unictype/test-bidi_of.c: Likewise.
75758         * tests/unictype/test-bidi_test.c: Likewise.
75759         * tests/unictype/test-block_list.c: Likewise.
75760         * tests/unictype/test-block_of.c: Likewise.
75761         * tests/unictype/test-block_test.c: Likewise.
75762         * tests/unictype/test-categ_and.c: Likewise.
75763         * tests/unictype/test-categ_and_not.c: Likewise.
75764         * tests/unictype/test-categ_byname.c: Likewise.
75765         * tests/unictype/test-categ_name.c: Likewise.
75766         * tests/unictype/test-categ_none.c: Likewise.
75767         * tests/unictype/test-categ_of.c: Likewise.
75768         * tests/unictype/test-categ_or.c: Likewise.
75769         * tests/unictype/test-categ_test_withtable.c: Likewise.
75770         * tests/unictype/test-combining.c: Likewise.
75771         * tests/unictype/test-decdigit.c: Likewise.
75772         * tests/unictype/test-digit.c: Likewise.
75773         * tests/unictype/test-mirror.c: Likewise.
75774         * tests/unictype/test-numeric.c: Likewise.
75775         * tests/unictype/test-pr_byname.c: Likewise.
75776         * tests/unictype/test-pr_test.c: Likewise.
75777         * tests/unictype/test-predicate-part1.h: Likewise.
75778         * tests/unictype/test-scripts.c: Likewise.
75779         * tests/unictype/test-sy_c_ident.c: Likewise.
75780         * tests/unictype/test-sy_java_ident.c: Likewise.
75781         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75782         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75783         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75784         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75785         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75786         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75787         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75788         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75789         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75790         * tests/uninorm/test-compat-decomposition.c: Likewise.
75791         * tests/uninorm/test-composition.c: Likewise.
75792         * tests/uninorm/test-decomposing-form.c: Likewise.
75793         * tests/uninorm/test-decomposition.c: Likewise.
75794         * tests/uninorm/test-u8-nfc.c: Likewise.
75795         * tests/uninorm/test-u8-nfd.c: Likewise.
75796         * tests/uninorm/test-u8-nfkc.c: Likewise.
75797         * tests/uninorm/test-u8-nfkd.c: Likewise.
75798         * tests/uninorm/test-u8-normcmp.c: Likewise.
75799         * tests/uninorm/test-u8-normcoll.c: Likewise.
75800         * tests/uninorm/test-u16-nfc.c: Likewise.
75801         * tests/uninorm/test-u16-nfd.c: Likewise.
75802         * tests/uninorm/test-u16-nfkc.c: Likewise.
75803         * tests/uninorm/test-u16-nfkd.c: Likewise.
75804         * tests/uninorm/test-u16-normcmp.c: Likewise.
75805         * tests/uninorm/test-u16-normcoll.c: Likewise.
75806         * tests/uninorm/test-u32-nfc.c: Likewise.
75807         * tests/uninorm/test-u32-nfd.c: Likewise.
75808         * tests/uninorm/test-u32-nfkc.c: Likewise.
75809         * tests/uninorm/test-u32-nfkd.c: Likewise.
75810         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75811         * tests/uninorm/test-u32-normcmp.c: Likewise.
75812         * tests/uninorm/test-u32-normcoll.c: Likewise.
75813         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75814         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75815         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75816         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75817         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75818         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75819         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75820         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75821         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75822         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75823         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75824         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75825         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75826         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75827         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75828         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75829         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75830         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75831         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75832         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75833         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75834         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75835         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75836         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75837         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75838         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75839         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75840         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75841         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75842         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75843         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75844         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75845         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75846         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75847         * tests/uniwidth/test-u8-width.c: Likewise.
75848         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75849         * tests/uniwidth/test-u16-width.c: Likewise.
75850         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75851         * tests/uniwidth/test-u32-width.c: Likewise.
75852         * tests/uniwidth/test-uc_width.c: Likewise.
75853         * tests/uniwidth/test-uc_width2.c: Likewise.
75854         * modules/acl-tests (Files): Add tests/macros.h.
75855         * modules/areadlink-tests (Files): Likewise.
75856         * modules/areadlink-with-size-tests (Files): Likewise.
75857         * modules/areadlinkat-tests (Files): Likewise.
75858         * modules/areadlinkat-with-size-tests (Files): Likewise.
75859         * modules/argmatch-tests (Files): Likewise.
75860         * modules/argv-iter-tests (Files): Likewise.
75861         * modules/array-list-tests (Files): Likewise.
75862         * modules/array-mergesort-tests (Files): Likewise.
75863         * modules/array-oset-tests (Files): Likewise.
75864         * modules/avltree-list-tests (Files): Likewise.
75865         * modules/avltree-oset-tests (Files): Likewise.
75866         * modules/avltreehash-list-tests (Files): Likewise.
75867         * modules/base64-tests (Files): Likewise.
75868         * modules/binary-io-tests (Files): Likewise.
75869         * modules/bitrotate-tests (Files): Likewise.
75870         * modules/btowc-tests (Files): Likewise.
75871         * modules/byteswap-tests (Files): Likewise.
75872         * modules/c-ctype-tests (Files): Likewise.
75873         * modules/c-stack-tests (Files): Likewise.
75874         * modules/c-strcase-tests (Files): Likewise.
75875         * modules/c-strcasestr-tests (Files): Likewise.
75876         * modules/c-strstr-tests (Files): Likewise.
75877         * modules/canonicalize-lgpl-tests (Files): Likewise.
75878         * modules/canonicalize-tests (Files): Likewise.
75879         * modules/carray-list-tests (Files): Likewise.
75880         * modules/ceilf-tests (Files): Likewise.
75881         * modules/ceill-tests (Files): Likewise.
75882         * modules/chown-tests (Files): Likewise.
75883         * modules/cloexec-tests (Files): Likewise.
75884         * modules/copy-file-tests (Files): Likewise.
75885         * modules/count-one-bits-tests (Files): Likewise.
75886         * modules/dprintf-posix-tests (Files): Likewise.
75887         * modules/dup2-tests (Files): Likewise.
75888         * modules/dup3-tests (Files): Likewise.
75889         * modules/duplocale-tests (Files): Likewise.
75890         * modules/fbufmode-tests (Files): Likewise.
75891         * modules/fchdir-tests (Files): Likewise.
75892         * modules/fcntl-safer-tests (Files): Likewise.
75893         * modules/fcntl-tests (Files): Likewise.
75894         * modules/fdopendir-tests (Files): Likewise.
75895         * modules/fdutimensat-tests (Files): Likewise.
75896         * modules/fflush-tests (Files): Likewise.
75897         * modules/filevercmp-tests (Files): Likewise.
75898         * modules/flock-tests (Files): Likewise.
75899         * modules/floorf-tests (Files): Likewise.
75900         * modules/floorl-tests (Files): Likewise.
75901         * modules/fnmatch-tests (Files): Likewise.
75902         * modules/fopen-safer-tests (Files): Likewise.
75903         * modules/fopen-tests (Files): Likewise.
75904         * modules/fpending-tests (Files): Likewise.
75905         * modules/fprintf-posix-tests (Files): Likewise.
75906         * modules/fpurge-tests (Files): Likewise.
75907         * modules/freadable-tests (Files): Likewise.
75908         * modules/freadahead-tests (Files): Likewise.
75909         * modules/freading-tests (Files): Likewise.
75910         * modules/freadptr-tests (Files): Likewise.
75911         * modules/freadseek-tests (Files): Likewise.
75912         * modules/freopen-tests (Files): Likewise.
75913         * modules/frexp-nolibm-tests (Files): Likewise.
75914         * modules/frexp-tests (Files): Likewise.
75915         * modules/frexpl-nolibm-tests (Files): Likewise.
75916         * modules/frexpl-tests (Files): Likewise.
75917         * modules/fseek-tests (Files): Likewise.
75918         * modules/fseeko-tests (Files): Likewise.
75919         * modules/fstrcmp-tests (Files): Likewise.
75920         * modules/fsync-tests (Files): Likewise.
75921         * modules/ftell-tests (Files): Likewise.
75922         * modules/ftello-tests (Files): Likewise.
75923         * modules/func-tests (Files): Likewise.
75924         * modules/futimens-tests (Files): Likewise.
75925         * modules/fwritable-tests (Files): Likewise.
75926         * modules/fwriting-tests (Files): Likewise.
75927         * modules/getcwd-tests (Files): Likewise.
75928         * modules/getdate-tests (Files): Likewise.
75929         * modules/getdelim-tests (Files): Likewise.
75930         * modules/getdtablesize-tests (Files): Likewise.
75931         * modules/getgroups-tests (Files): Likewise.
75932         * modules/getline-tests (Files): Likewise.
75933         * modules/getndelim2-tests (Files): Likewise.
75934         * modules/glob-tests (Files): Likewise.
75935         * modules/hash-tests (Files): Likewise.
75936         * modules/i-ring-tests (Files): Likewise.
75937         * modules/iconv-tests (Files): Likewise.
75938         * modules/iconv_open-utf-tests (Files): Likewise.
75939         * modules/idpriv-drop-tests (Files): Likewise.
75940         * modules/idpriv-droptemp-tests (Files): Likewise.
75941         * modules/inet_ntop-tests (Files): Likewise.
75942         * modules/inet_pton-tests (Files): Likewise.
75943         * modules/isblank-tests (Files): Likewise.
75944         * modules/isfinite-tests (Files): Likewise.
75945         * modules/isinf-tests (Files): Likewise.
75946         * modules/isnan-tests (Files): Likewise.
75947         * modules/isnand-nolibm-tests (Files): Likewise.
75948         * modules/isnand-tests (Files): Likewise.
75949         * modules/isnanf-nolibm-tests (Files): Likewise.
75950         * modules/isnanf-tests (Files): Likewise.
75951         * modules/isnanl-nolibm-tests (Files): Likewise.
75952         * modules/isnanl-tests (Files): Likewise.
75953         * modules/lchown-tests (Files): Likewise.
75954         * modules/ldexpl-tests (Files): Likewise.
75955         * modules/link-tests (Files): Likewise.
75956         * modules/linkat-tests (Files): Likewise.
75957         * modules/linked-list-tests (Files): Likewise.
75958         * modules/linkedhash-list-tests (Files): Likewise.
75959         * modules/localename-tests (Files): Likewise.
75960         * modules/lseek-tests (Files): Likewise.
75961         * modules/lstat-tests (Files): Likewise.
75962         * modules/mbmemcasecmp-tests (Files): Likewise.
75963         * modules/mbmemcasecoll-tests (Files): Likewise.
75964         * modules/mbrtowc-tests (Files): Likewise.
75965         * modules/mbscasecmp-tests (Files): Likewise.
75966         * modules/mbscasestr-tests (Files): Likewise.
75967         * modules/mbschr-tests (Files): Likewise.
75968         * modules/mbscspn-tests (Files): Likewise.
75969         * modules/mbsinit-tests (Files): Likewise.
75970         * modules/mbsncasecmp-tests (Files): Likewise.
75971         * modules/mbsnrtowcs-tests (Files): Likewise.
75972         * modules/mbspbrk-tests (Files): Likewise.
75973         * modules/mbspcasecmp-tests (Files): Likewise.
75974         * modules/mbsrchr-tests (Files): Likewise.
75975         * modules/mbsrtowcs-tests (Files): Likewise.
75976         * modules/mbsspn-tests (Files): Likewise.
75977         * modules/mbsstr-tests (Files): Likewise.
75978         * modules/memchr-tests (Files): Likewise.
75979         * modules/memchr2-tests (Files): Likewise.
75980         * modules/memcmp-tests (Files): Likewise.
75981         * modules/memmem-tests (Files): Likewise.
75982         * modules/memrchr-tests (Files): Likewise.
75983         * modules/mkdir-tests (Files): Likewise.
75984         * modules/mkfifo-tests (Files): Likewise.
75985         * modules/mkfifoat-tests (Files): Likewise.
75986         * modules/mknod-tests (Files): Likewise.
75987         * modules/nanosleep-tests (Files): Likewise.
75988         * modules/nl_langinfo-tests (Files): Likewise.
75989         * modules/obstack-printf-tests (Files): Likewise.
75990         * modules/open-tests (Files): Likewise.
75991         * modules/openat-tests (Files): Likewise.
75992         * modules/pipe-filter-gi-tests (Files): Likewise.
75993         * modules/pipe-filter-ii-tests (Files): Likewise.
75994         * modules/pipe2-tests (Files): Likewise.
75995         * modules/popen-safer-tests (Files): Likewise.
75996         * modules/popen-tests (Files): Likewise.
75997         * modules/posixtm-tests (Files): Likewise.
75998         * modules/pread-tests (Files): Likewise.
75999         * modules/printf-frexp-tests (Files): Likewise.
76000         * modules/printf-frexpl-tests (Files): Likewise.
76001         * modules/printf-posix-tests (Files): Likewise.
76002         * modules/priv-set-tests (Files): Likewise.
76003         * modules/quotearg-tests (Files): Likewise.
76004         * modules/random_r-tests (Files): Likewise.
76005         * modules/rawmemchr-tests (Files): Likewise.
76006         * modules/rbtree-list-tests (Files): Likewise.
76007         * modules/rbtree-oset-tests (Files): Likewise.
76008         * modules/rbtreehash-list-tests (Files): Likewise.
76009         * modules/readlink-tests (Files): Likewise.
76010         * modules/remove-tests (Files): Likewise.
76011         * modules/rename-tests (Files): Likewise.
76012         * modules/renameat-tests (Files): Likewise.
76013         * modules/rmdir-tests (Files): Likewise.
76014         * modules/round-tests (Files): Likewise.
76015         * modules/roundf-tests (Files): Likewise.
76016         * modules/roundl-tests (Files): Likewise.
76017         * modules/safe-alloc-tests (Files): Likewise.
76018         * modules/setenv-tests (Files): Likewise.
76019         * modules/sigaction-tests (Files): Likewise.
76020         * modules/signbit-tests (Files): Likewise.
76021         * modules/sleep-tests (Files): Likewise.
76022         * modules/snprintf-posix-tests (Files): Likewise.
76023         * modules/snprintf-tests (Files): Likewise.
76024         * modules/sprintf-posix-tests (Files): Likewise.
76025         * modules/stat-tests (Files): Likewise.
76026         * modules/stat-time-tests (Files): Likewise.
76027         * modules/strcasestr-tests (Files): Likewise.
76028         * modules/strchrnul-tests (Files): Likewise.
76029         * modules/strerror-tests (Files): Likewise.
76030         * modules/striconv-tests (Files): Likewise.
76031         * modules/striconveh-tests (Files): Likewise.
76032         * modules/striconveha-tests (Files): Likewise.
76033         * modules/strsignal-tests (Files): Likewise.
76034         * modules/strstr-tests (Files): Likewise.
76035         * modules/strtod-tests (Files): Likewise.
76036         * modules/strverscmp-tests (Files): Likewise.
76037         * modules/symlink-tests (Files): Likewise.
76038         * modules/symlinkat-tests (Files): Likewise.
76039         * modules/trunc-tests (Files): Likewise.
76040         * modules/truncf-tests (Files): Likewise.
76041         * modules/truncl-tests (Files): Likewise.
76042         * modules/uname-tests (Files): Likewise.
76043         * modules/unicase/cased-tests (Files): Likewise.
76044         * modules/unicase/ignorable-tests (Files): Likewise.
76045         * modules/unicase/locale-language-tests (Files): Likewise.
76046         * modules/unicase/tolower-tests (Files): Likewise.
76047         * modules/unicase/totitle-tests (Files): Likewise.
76048         * modules/unicase/toupper-tests (Files): Likewise.
76049         * modules/unicase/u8-casecmp-tests (Files): Likewise.
76050         * modules/unicase/u8-casecoll-tests (Files): Likewise.
76051         * modules/unicase/u8-casefold-tests (Files): Likewise.
76052         * modules/unicase/u8-is-cased-tests (Files): Likewise.
76053         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
76054         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
76055         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
76056         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
76057         * modules/unicase/u8-tolower-tests (Files): Likewise.
76058         * modules/unicase/u8-totitle-tests (Files): Likewise.
76059         * modules/unicase/u8-toupper-tests (Files): Likewise.
76060         * modules/unicase/u16-casecmp-tests (Files): Likewise.
76061         * modules/unicase/u16-casecoll-tests (Files): Likewise.
76062         * modules/unicase/u16-casefold-tests (Files): Likewise.
76063         * modules/unicase/u16-is-cased-tests (Files): Likewise.
76064         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
76065         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
76066         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
76067         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
76068         * modules/unicase/u16-tolower-tests (Files): Likewise.
76069         * modules/unicase/u16-totitle-tests (Files): Likewise.
76070         * modules/unicase/u16-toupper-tests (Files): Likewise.
76071         * modules/unicase/u32-casecmp-tests (Files): Likewise.
76072         * modules/unicase/u32-casecoll-tests (Files): Likewise.
76073         * modules/unicase/u32-casefold-tests (Files): Likewise.
76074         * modules/unicase/u32-is-cased-tests (Files): Likewise.
76075         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
76076         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
76077         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
76078         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
76079         * modules/unicase/u32-tolower-tests (Files): Likewise.
76080         * modules/unicase/u32-totitle-tests (Files): Likewise.
76081         * modules/unicase/u32-toupper-tests (Files): Likewise.
76082         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
76083         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
76084         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
76085         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
76086         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
76087         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
76088         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
76089         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
76090         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
76091         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
76092         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
76093         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
76094         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
76095         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
76096         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
76097         * modules/unictype/bidicategory-name-tests (Files): Likewise.
76098         * modules/unictype/bidicategory-of-tests (Files): Likewise.
76099         * modules/unictype/bidicategory-test-tests (Files): Likewise.
76100         * modules/unictype/block-list-tests (Files): Likewise.
76101         * modules/unictype/block-of-tests (Files): Likewise.
76102         * modules/unictype/block-test-tests (Files): Likewise.
76103         * modules/unictype/category-C-tests (Files): Likewise.
76104         * modules/unictype/category-Cc-tests (Files): Likewise.
76105         * modules/unictype/category-Cf-tests (Files): Likewise.
76106         * modules/unictype/category-Cn-tests (Files): Likewise.
76107         * modules/unictype/category-Co-tests (Files): Likewise.
76108         * modules/unictype/category-Cs-tests (Files): Likewise.
76109         * modules/unictype/category-L-tests (Files): Likewise.
76110         * modules/unictype/category-Ll-tests (Files): Likewise.
76111         * modules/unictype/category-Lm-tests (Files): Likewise.
76112         * modules/unictype/category-Lo-tests (Files): Likewise.
76113         * modules/unictype/category-Lt-tests (Files): Likewise.
76114         * modules/unictype/category-Lu-tests (Files): Likewise.
76115         * modules/unictype/category-M-tests (Files): Likewise.
76116         * modules/unictype/category-Mc-tests (Files): Likewise.
76117         * modules/unictype/category-Me-tests (Files): Likewise.
76118         * modules/unictype/category-Mn-tests (Files): Likewise.
76119         * modules/unictype/category-N-tests (Files): Likewise.
76120         * modules/unictype/category-Nd-tests (Files): Likewise.
76121         * modules/unictype/category-Nl-tests (Files): Likewise.
76122         * modules/unictype/category-No-tests (Files): Likewise.
76123         * modules/unictype/category-P-tests (Files): Likewise.
76124         * modules/unictype/category-Pc-tests (Files): Likewise.
76125         * modules/unictype/category-Pd-tests (Files): Likewise.
76126         * modules/unictype/category-Pe-tests (Files): Likewise.
76127         * modules/unictype/category-Pf-tests (Files): Likewise.
76128         * modules/unictype/category-Pi-tests (Files): Likewise.
76129         * modules/unictype/category-Po-tests (Files): Likewise.
76130         * modules/unictype/category-Ps-tests (Files): Likewise.
76131         * modules/unictype/category-S-tests (Files): Likewise.
76132         * modules/unictype/category-Sc-tests (Files): Likewise.
76133         * modules/unictype/category-Sk-tests (Files): Likewise.
76134         * modules/unictype/category-Sm-tests (Files): Likewise.
76135         * modules/unictype/category-So-tests (Files): Likewise.
76136         * modules/unictype/category-Z-tests (Files): Likewise.
76137         * modules/unictype/category-Zl-tests (Files): Likewise.
76138         * modules/unictype/category-Zp-tests (Files): Likewise.
76139         * modules/unictype/category-Zs-tests (Files): Likewise.
76140         * modules/unictype/category-and-not-tests (Files): Likewise.
76141         * modules/unictype/category-and-tests (Files): Likewise.
76142         * modules/unictype/category-byname-tests (Files): Likewise.
76143         * modules/unictype/category-name-tests (Files): Likewise.
76144         * modules/unictype/category-none-tests (Files): Likewise.
76145         * modules/unictype/category-of-tests (Files): Likewise.
76146         * modules/unictype/category-or-tests (Files): Likewise.
76147         * modules/unictype/category-test-withtable-tests (Files): Likewise.
76148         * modules/unictype/combining-class-tests (Files): Likewise.
76149         * modules/unictype/ctype-alnum-tests (Files): Likewise.
76150         * modules/unictype/ctype-alpha-tests (Files): Likewise.
76151         * modules/unictype/ctype-blank-tests (Files): Likewise.
76152         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
76153         * modules/unictype/ctype-digit-tests (Files): Likewise.
76154         * modules/unictype/ctype-graph-tests (Files): Likewise.
76155         * modules/unictype/ctype-lower-tests (Files): Likewise.
76156         * modules/unictype/ctype-print-tests (Files): Likewise.
76157         * modules/unictype/ctype-punct-tests (Files): Likewise.
76158         * modules/unictype/ctype-space-tests (Files): Likewise.
76159         * modules/unictype/ctype-upper-tests (Files): Likewise.
76160         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
76161         * modules/unictype/decimal-digit-tests (Files): Likewise.
76162         * modules/unictype/digit-tests (Files): Likewise.
76163         * modules/unictype/mirror-tests (Files): Likewise.
76164         * modules/unictype/numeric-tests (Files): Likewise.
76165         * modules/unictype/property-alphabetic-tests (Files): Likewise.
76166         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
76167         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
76168         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
76169         Likewise.
76170         * modules/unictype/property-bidi-block-separator-tests (Files):
76171         Likewise.
76172         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
76173         Likewise.
76174         * modules/unictype/property-bidi-common-separator-tests (Files):
76175         Likewise.
76176         * modules/unictype/property-bidi-control-tests (Files): Likewise.
76177         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
76178         Likewise.
76179         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
76180         Likewise.
76181         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
76182         Likewise.
76183         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
76184         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
76185         Likewise.
76186         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
76187         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
76188         Likewise.
76189         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
76190         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
76191         * modules/unictype/property-bidi-segment-separator-tests (Files):
76192         Likewise.
76193         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
76194         * modules/unictype/property-byname-tests (Files): Likewise.
76195         * modules/unictype/property-combining-tests (Files): Likewise.
76196         * modules/unictype/property-composite-tests (Files): Likewise.
76197         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
76198         * modules/unictype/property-dash-tests (Files): Likewise.
76199         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
76200         * modules/unictype/property-default-ignorable-code-point-tests (Files):
76201         Likewise.
76202         * modules/unictype/property-deprecated-tests (Files): Likewise.
76203         * modules/unictype/property-diacritic-tests (Files): Likewise.
76204         * modules/unictype/property-extender-tests (Files): Likewise.
76205         * modules/unictype/property-format-control-tests (Files): Likewise.
76206         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
76207         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
76208         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
76209         * modules/unictype/property-hex-digit-tests (Files): Likewise.
76210         * modules/unictype/property-hyphen-tests (Files): Likewise.
76211         * modules/unictype/property-id-continue-tests (Files): Likewise.
76212         * modules/unictype/property-id-start-tests (Files): Likewise.
76213         * modules/unictype/property-ideographic-tests (Files): Likewise.
76214         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
76215         * modules/unictype/property-ids-trinary-operator-tests (Files):
76216         Likewise.
76217         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
76218         * modules/unictype/property-iso-control-tests (Files): Likewise.
76219         * modules/unictype/property-join-control-tests (Files): Likewise.
76220         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
76221         * modules/unictype/property-line-separator-tests (Files): Likewise.
76222         * modules/unictype/property-logical-order-exception-tests (Files):
76223         Likewise.
76224         * modules/unictype/property-lowercase-tests (Files): Likewise.
76225         * modules/unictype/property-math-tests (Files): Likewise.
76226         * modules/unictype/property-non-break-tests (Files): Likewise.
76227         * modules/unictype/property-not-a-character-tests (Files): Likewise.
76228         * modules/unictype/property-numeric-tests (Files): Likewise.
76229         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
76230         * modules/unictype/property-other-default-ignorable-code-point-tests
76231         (Files): Likewise.
76232         * modules/unictype/property-other-grapheme-extend-tests (Files):
76233         Likewise.
76234         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
76235         * modules/unictype/property-other-id-start-tests (Files): Likewise.
76236         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
76237         * modules/unictype/property-other-math-tests (Files): Likewise.
76238         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
76239         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
76240         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
76241         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
76242         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
76243         * modules/unictype/property-private-use-tests (Files): Likewise.
76244         * modules/unictype/property-punctuation-tests (Files): Likewise.
76245         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
76246         * modules/unictype/property-radical-tests (Files): Likewise.
76247         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
76248         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
76249         * modules/unictype/property-space-tests (Files): Likewise.
76250         * modules/unictype/property-terminal-punctuation-tests (Files):
76251         Likewise.
76252         * modules/unictype/property-test-tests (Files): Likewise.
76253         * modules/unictype/property-titlecase-tests (Files): Likewise.
76254         * modules/unictype/property-unassigned-code-value-tests (Files):
76255         Likewise.
76256         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
76257         * modules/unictype/property-uppercase-tests (Files): Likewise.
76258         * modules/unictype/property-variation-selector-tests (Files): Likewise.
76259         * modules/unictype/property-white-space-tests (Files): Likewise.
76260         * modules/unictype/property-xid-continue-tests (Files): Likewise.
76261         * modules/unictype/property-xid-start-tests (Files): Likewise.
76262         * modules/unictype/property-zero-width-tests (Files): Likewise.
76263         * modules/unictype/scripts-tests (Files): Likewise.
76264         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
76265         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
76266         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
76267         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
76268         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
76269         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
76270         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
76271         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
76272         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
76273         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
76274         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
76275         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
76276         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
76277         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
76278         * modules/uninorm/composition-tests (Files): Likewise.
76279         * modules/uninorm/decomposing-form-tests (Files): Likewise.
76280         * modules/uninorm/decomposition-tests (Files): Likewise.
76281         * modules/uninorm/filter-tests (Files): Likewise.
76282         * modules/uninorm/nfc-tests (Files): Likewise.
76283         * modules/uninorm/nfd-tests (Files): Likewise.
76284         * modules/uninorm/nfkc-tests (Files): Likewise.
76285         * modules/uninorm/nfkd-tests (Files): Likewise.
76286         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
76287         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
76288         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
76289         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
76290         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
76291         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
76292         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
76293         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
76294         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
76295         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
76296         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
76297         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
76298         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
76299         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
76300         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
76301         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
76302         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
76303         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
76304         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
76305         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
76306         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
76307         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
76308         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
76309         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
76310         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
76311         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
76312         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
76313         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
76314         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
76315         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
76316         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
76317         * modules/uniwidth/u8-width-tests (Files): Likewise.
76318         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
76319         * modules/uniwidth/u16-width-tests (Files): Likewise.
76320         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
76321         * modules/uniwidth/u32-width-tests (Files): Likewise.
76322         * modules/uniwidth/width-tests (Files): Likewise.
76323         * modules/unlink-tests (Files): Likewise.
76324         * modules/unsetenv-tests (Files): Likewise.
76325         * modules/usleep-tests (Files): Likewise.
76326         * modules/utimens-tests (Files): Likewise.
76327         * modules/utimensat-tests (Files): Likewise.
76328         * modules/vasnprintf-posix-tests (Files): Likewise.
76329         * modules/vasnprintf-tests (Files): Likewise.
76330         * modules/vasprintf-posix-tests (Files): Likewise.
76331         * modules/vasprintf-tests (Files): Likewise.
76332         * modules/vdprintf-posix-tests (Files): Likewise.
76333         * modules/vfprintf-posix-tests (Files): Likewise.
76334         * modules/vprintf-posix-tests (Files): Likewise.
76335         * modules/vsnprintf-posix-tests (Files): Likewise.
76336         * modules/vsnprintf-tests (Files): Likewise.
76337         * modules/vsprintf-posix-tests (Files): Likewise.
76338         * modules/wcrtomb-tests (Files): Likewise.
76339         * modules/wcsnrtombs-tests (Files): Likewise.
76340         * modules/wcsrtombs-tests (Files): Likewise.
76341         * modules/wctype-tests (Files): Likewise.
76342         * modules/wcwidth-tests (Files): Likewise.
76343         * modules/xmemdup0-tests (Files): Likewise.
76344         * modules/xprintf-posix-tests (Files): Likewise.
76345         * modules/xvasprintf-tests (Files): Likewise.
76347 2009-12-24  Eric Blake  <ebb9@byu.net>
76349         test-nanosleep: fix typo
76350         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76351         patch.
76352         Reported by Bruno Haible.
76354 2009-12-24  Bruno Haible  <bruno@clisp.org>
76356         Reduce namespace pollution on glibc systems.
76357         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76358         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76359         systems.
76360         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76361         <getopt.h> on glibc systems.
76362         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76363         systems.
76364         * lib/fcntl.c: Include <unistd.h> here instead.
76366 2009-12-24  Bruno Haible  <bruno@clisp.org>
76368         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76370 2009-12-24  Eric Blake  <ebb9@byu.net>
76372         tests: add signature checks
76373         * tests/signature.h (SIGNATURE_CHECK): New file.
76374         * modules/atexit-tests (Files): Use it.
76375         * modules/btowc-tests (Files): Likewise.
76376         * modules/canonicalize-lgpl-tests (Files): Likewise.
76377         * modules/ceilf-tests (Files): Likewise.
76378         * modules/ceill-tests (Files): Likewise.
76379         * modules/chown-tests (Files): Likewise.
76380         * modules/dprintf-posix-tests (Files): Likewise.
76381         * modules/dup2-tests (Files): Likewise.
76382         * modules/dup3-tests (Files): Likewise.
76383         * modules/duplocale-tests (Files): Likewise.
76384         * modules/fchdir-tests (Files): Likewise.
76385         * modules/fcntl-tests (Files): Likewise.
76386         * modules/fdopendir-tests (Files): Likewise.
76387         * modules/fflush-tests (Files): Likewise.
76388         * modules/flock-tests (Files): Likewise.
76389         * modules/floorf-tests (Files): Likewise.
76390         * modules/floorl-tests (Files): Likewise.
76391         * modules/fnmatch-tests (Files): Likewise.
76392         * modules/fopen-tests (Files): Likewise.
76393         * modules/fprintf-posix-tests (Files): Likewise.
76394         * modules/freopen-tests (Files): Likewise.
76395         * modules/frexp-nolibm-tests (Files): Likewise.
76396         * modules/frexp-tests (Files): Likewise.
76397         * modules/frexpl-nolibm-tests (Files): Likewise.
76398         * modules/frexpl-tests (Files): Likewise.
76399         * modules/fseek-tests (Files): Likewise.
76400         * modules/fseeko-tests (Files): Likewise.
76401         * modules/fsync-tests (Files): Likewise.
76402         * modules/ftell-tests (Files): Likewise.
76403         * modules/ftello-tests (Files): Likewise.
76404         * modules/futimens-tests (Files): Likewise.
76405         * modules/getaddrinfo-tests (Files): Likewise.
76406         * modules/getcwd-tests (Files): Likewise.
76407         * modules/getdelim-tests (Files): Likewise.
76408         * modules/getdtablesize-tests (Files): Likewise.
76409         * modules/getgroups-tests (Files): Likewise.
76410         * modules/gethostname-tests (Files): Likewise.
76411         * modules/getline-tests (Files): Likewise.
76412         * modules/getopt-posix-tests (Files): Likewise.
76413         * modules/gettimeofday-tests (Files): Likewise.
76414         * modules/glob-tests (Files): Likewise.
76415         * modules/iconv-tests (Files): Likewise.
76416         * modules/inet_ntop-tests (Files): Likewise.
76417         * modules/inet_pton-tests (Files): Likewise.
76418         * modules/isblank-tests (Files): Likewise.
76419         * modules/lchown-tests (Files): Likewise.
76420         * modules/ldexpl-tests (Files): Likewise.
76421         * modules/link-tests (Files): Likewise.
76422         * modules/linkat-tests (Files): Likewise.
76423         * modules/lseek-tests (Files): Likewise.
76424         * modules/lstat-tests (Files): Likewise.
76425         * modules/mbrtowc-tests (Files): Likewise.
76426         * modules/mbsinit-tests (Files): Likewise.
76427         * modules/mbsnrtowcs-tests (Files): Likewise.
76428         * modules/mbsrtowcs-tests (Files): Likewise.
76429         * modules/memchr-tests (Files): Likewise.
76430         * modules/memcmp-tests (Files): Likewise.
76431         * modules/memmem-tests (Files): Likewise.
76432         * modules/memrchr-tests (Files): Likewise.
76433         * modules/mkdir-tests (Files): Likewise.
76434         * modules/mkfifo-tests (Files): Likewise.
76435         * modules/mkfifoat-tests (Files): Likewise.
76436         * modules/mknod-tests (Files): Likewise.
76437         * modules/nanosleep-tests (Files): Likewise.
76438         * modules/nl_langinfo-tests (Files): Likewise.
76439         * modules/obstack-printf-tests (Files): Likewise.
76440         * modules/open-tests (Files): Likewise.
76441         * modules/openat-tests (Files): Likewise.
76442         * modules/perror-tests (Files): Likewise.
76443         * modules/pipe2-tests (Files): Likewise.
76444         * modules/poll-tests (Files): Likewise.
76445         * modules/popen-tests (Files): Likewise.
76446         * modules/posix_spawn-tests (Files): Likewise.
76447         * modules/posix_spawnp-tests (Files): Likewise.
76448         * modules/pread-tests (Files): Likewise.
76449         * modules/printf-posix-tests (Files): Likewise.
76450         * modules/pty-tests (Files): Likewise.
76451         * modules/random_r-tests (Files): Likewise.
76452         * modules/rawmemchr-tests (Files): Likewise.
76453         * modules/readlink-tests (Files): Likewise.
76454         * modules/remove-tests (Files): Likewise.
76455         * modules/rename-tests (Files): Likewise.
76456         * modules/renameat-tests (Files): Likewise.
76457         * modules/rmdir-tests (Files): Likewise.
76458         * modules/round-tests (Files): Likewise.
76459         * modules/roundf-tests (Files): Likewise.
76460         * modules/roundl-tests (Files): Likewise.
76461         * modules/select-tests (Files): Likewise.
76462         * modules/setenv-tests (Files): Likewise.
76463         * modules/sigaction-tests (Files): Likewise.
76464         * modules/sleep-tests (Files): Likewise.
76465         * modules/snprintf-posix-tests (Files): Likewise.
76466         * modules/snprintf-tests (Files): Likewise.
76467         * modules/sprintf-posix-tests (Files): Likewise.
76468         * modules/stat-tests (Files): Likewise.
76469         * modules/strcasestr-tests (Files): Likewise.
76470         * modules/strchrnul-tests (Files): Likewise.
76471         * modules/strerror-tests (Files): Likewise.
76472         * modules/strsignal-tests (Files): Likewise.
76473         * modules/strstr-tests (Files): Likewise.
76474         * modules/strtod-tests (Files): Likewise.
76475         * modules/strverscmp-tests (Files): Likewise.
76476         * modules/symlink-tests (Files): Likewise.
76477         * modules/symlinkat-tests (Files): Likewise.
76478         * modules/times-tests (Files): Likewise.
76479         * modules/trunc-tests (Files): Likewise.
76480         * modules/truncf-tests (Files): Likewise.
76481         * modules/truncl-tests (Files): Likewise.
76482         * modules/tsearch-tests (Files): Likewise.
76483         * modules/uname-tests (Files): Likewise.
76484         * modules/unlink-tests (Files): Likewise.
76485         * modules/unsetenv-tests (Files): Likewise.
76486         * modules/usleep-tests (Files): Likewise.
76487         * modules/utimensat-tests (Files): Likewise.
76488         * modules/vasprintf-tests (Files): Likewise.
76489         * modules/vdprintf-posix-tests (Files): Likewise.
76490         * modules/vfprintf-posix-tests (Files): Likewise.
76491         * modules/vprintf-posix-tests (Files): Likewise.
76492         * modules/vsnprintf-posix-tests (Files): Likewise.
76493         * modules/vsnprintf-tests (Files): Likewise.
76494         * modules/vsprintf-posix-tests (Files): Likewise.
76495         * modules/wcrtomb-tests (Files): Likewise.
76496         * modules/wcsnrtombs-tests (Files): Likewise.
76497         * modules/wcsrtombs-tests (Files): Likewise.
76498         * modules/wcwidth-tests (Files): Likewise.
76499         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76500         * tests/test-isinf.c (isinf): Likewise.
76501         * tests/test-isnan.c (isnan): Likewise.
76502         * tests/test-signbit.c (signbit): Likewise.
76503         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76504         declaration, either as macro or with correct signature.
76505         (select): Ensure function under test is declared with correct
76506         signature in correct header.
76507         * tests/test-atexit.c (atexit): Likewise.
76508         * tests/test-btowc.c (btowc): Likewise.
76509         * tests/test-canonicalize-lgpl.c (realpath)
76510         (canonicalize_file_name): Likewise.
76511         * tests/test-ceilf1.c (ceilf): Likewise.
76512         * tests/test-ceill.c (ceill): Likewise.
76513         * tests/test-chown.c (chown): Likewise.
76514         * tests/test-dprintf-posix.c (dprintf): Likewise.
76515         * tests/test-dup2.c (dup2): Likewise.
76516         * tests/test-dup3.c (dup3): Likewise.
76517         * tests/test-duplocale.c (duplocale): Likewise.
76518         * tests/test-fchdir.c (fchdir): Likewise.
76519         * tests/test-fchownat.c (fchownat): Likewise.
76520         * tests/test-fcntl.c (fcntl): Likewise.
76521         * tests/test-fdopendir.c (fdopendir): Likewise.
76522         * tests/test-fflush.c (fflush): Likewise.
76523         * tests/test-flock.c (flock): Likewise.
76524         * tests/test-floorf1.c (floorf): Likewise.
76525         * tests/test-floorl.c (floorl): Likewise.
76526         * tests/test-fnmatch.c (fnmatch): Likewise.
76527         * tests/test-fopen.c (fopen): Likewise.
76528         * tests/test-fprintf-posix.c (fprintf): Likewise.
76529         * tests/test-freopen.c (freopen): Likewise.
76530         * tests/test-frexp.c (frexp): Likewise.
76531         * tests/test-frexpl.c (frexpl): Likewise.
76532         * tests/test-fseek.c (fseek): Likewise.
76533         * tests/test-fseeko.c (fseeko): Likewise.
76534         * tests/test-fstatat.c (fstatat): Likewise.
76535         * tests/test-fsync.c (fsync): Likewise.
76536         * tests/test-ftell.c (ftell): Likewise.
76537         * tests/test-ftello.c (ftello): Likewise.
76538         * tests/test-futimens.c (futimens): Likewise.
76539         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76540         (gai_strerror): Likewise.
76541         * tests/test-getcwd.c (getcwd): Likewise.
76542         * tests/test-getdelim.c (getdelim): Likewise.
76543         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76544         * tests/test-getgroups.c (getgroups): Likewise.
76545         * tests/test-gethostname.c (gethostname): Likewise.
76546         * tests/test-getline.c (getline): Likewise.
76547         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76548         Likewise.
76549         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76550         * tests/test-glob.c (glob, globfree): Likewise.
76551         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76552         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76553         * tests/test-inet_pton.c (inet_pton): Likewise.
76554         * tests/test-isblank.c (isblank): Likewise.
76555         * tests/test-lchown.c (lchown): Likewise.
76556         * tests/test-ldexpl.c (ldexpl): Likewise.
76557         * tests/test-link.c (link): Likewise.
76558         * tests/test-linkat.c (linkat): Likewise.
76559         * tests/test-lseek.c (lseek): Likewise.
76560         * tests/test-lstat.c (lstat): Likewise.
76561         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76562         * tests/test-mbsinit.c (mbsinit): Likewise.
76563         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76564         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76565         * tests/test-memchr.c (memchr): Likewise.
76566         * tests/test-memcmp.c (memcmp): Likewise.
76567         * tests/test-memmem.c (memmem): Likewise.
76568         * tests/test-memrchr.c (memrchr): Likewise.
76569         * tests/test-mkdir.c (mkdir): Likewise.
76570         * tests/test-mkdirat.c (mkdirat): Likewise.
76571         * tests/test-mkfifo.c (mkfifo): Likewise.
76572         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76573         * tests/test-mknod.c (mknod): Likewise.
76574         * tests/test-nanosleep.c (nanosleep): Likewise.
76575         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76576         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76577         Likewise.
76578         * tests/test-open.c (open): Likewise.
76579         * tests/test-openat.c (openat): Likewise.
76580         * tests/test-perror.c (perror): Likewise.
76581         * tests/test-pipe2.c (pipe2): Likewise.
76582         * tests/test-poll.c (poll): Likewise.
76583         * tests/test-popen.c (popen, pclose): Likewise.
76584         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76585         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76586         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76587         (posix_spawn_file_actions_destroy)
76588         (posix_spawn_file_actions_addclose)
76589         (posix_spawn_file_actions_addopen)
76590         (posix_spawn_file_actions_adddup2): Likewise.
76591         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76592         * tests/test-pread.c (pread): Likewise.
76593         * tests/test-printf-posix.c (printf): Likewise.
76594         * tests/test-pty.c (openpty, forkpty): Likewise.
76595         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76596         (random_r): Likewise.
76597         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76598         * tests/test-readlink.c (readlink): Likewise.
76599         * tests/test-remove.c (remove): Likewise.
76600         * tests/test-rename.c (rename): Likewise.
76601         * tests/test-renameat.c (renameat): Likewise.
76602         * tests/test-rmdir.c (rmdir): Likewise.
76603         * tests/test-round1.c (round): Likewise.
76604         * tests/test-roundf1.c (roundf): Likewise.
76605         * tests/test-roundl.c (roundl): Likewise.
76606         * tests/test-setenv.c (setenv): Likewise.
76607         * tests/test-sigaction.c (sigaction): Likewise.
76608         * tests/test-sleep.c (sleep): Likewise.
76609         * tests/test-snprintf.c (snprintf): Likewise.
76610         * tests/test-sprintf-posix.c (sprintf): Likewise.
76611         * tests/test-stat.c (stat): Likewise.
76612         * tests/test-stpncpy.c (stpncpy): Likewise.
76613         * tests/test-strcasestr.c (strcasestr): Likewise.
76614         * tests/test-strchrnul.c (strchrnul): Likewise.
76615         * tests/test-strerror.c (strerror): Likewise.
76616         * tests/test-strsignal.c (strsignal): Likewise.
76617         * tests/test-strstr.c (strstr): Likewise.
76618         * tests/test-strtod.c (strtod): Likewise.
76619         * tests/test-strverscmp.c (strverscmp): Likewise.
76620         * tests/test-symlink.c (symlink): Likewise.
76621         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76622         * tests/test-times.c (times): Likewise.
76623         * tests/test-trunc1.c (trunc): Likewise.
76624         * tests/test-truncf1.c (truncf): Likewise.
76625         * tests/test-truncl.c (truncl): Likewise.
76626         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76627         Likewise.
76628         * tests/test-uname.c (uname): Likewise.
76629         * tests/test-unlink.c (unlink): Likewise.
76630         * tests/test-unlinkat.c (unlinkat): Likewise.
76631         * tests/test-unsetenv.c (unsetenv): Likewise.
76632         * tests/test-usleep.c (usleep): Likewise.
76633         * tests/test-utimensat.c (utimensat): Likewise.
76634         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76635         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76636         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76637         * tests/test-vprintf-posix.c (vprintf): Likewise.
76638         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76639         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76640         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76641         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76642         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76643         * tests/test-wcwidth.c (wcwidth): Likewise.
76645         build: pull in conditional headers during GNULIB_POSIXCHECK
76646         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76647         definitions from any conditionally-included headers.
76648         * lib/stdlib.in.h (includes): Likewise.
76649         * lib/unistd.in.h (includes): Likewise.
76651 2009-12-24  Bruno Haible  <bruno@clisp.org>
76653         * tests/test-argv-iter.c: Include header file being tested immediately
76654         after config.h.
76655         * tests/test-base64.c: Likewise.
76656         * tests/test-flock.c: Likewise.
76657         * tests/test-fsync.c: Likewise.
76658         * tests/test-getdate.c: Likewise.
76659         * tests/test-getndelim2.c: Likewise.
76660         * tests/test-isfinite.c: Likewise.
76661         * tests/test-isinf.c: Likewise.
76662         * tests/test-strerror.c: Likewise.
76663         * tests/test-strsignal.c: Likewise.
76665 2009-12-23  Eric Blake  <ebb9@byu.net>
76667         unistd: work around cygwin bug
76668         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76669         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76672 2009-12-23  Bruno Haible  <bruno@clisp.org>
76674         localename: More tests.
76675         * tests/test-localename.c (SIZEOF): New macro.
76676         (categories): New variable.
76677         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76678         test_locale_name_default): Add test w.r.t. thread locale.
76679         (test_locale_name_thread): New function.
76680         (main): Invoke it.
76682         localename: Make aware of thread locale.
76683         * lib/localename.h (gl_locale_name_thread): New declaration.
76684         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76685         behaviour with respect to thread locale.
76686         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76687         <langinfo.h>, glthread/lock.h.
76688         (SIZE_BITS): New macro.
76689         (string_hash): New function.
76690         (struct hash_node): New type.
76691         (HASH_TABLE_SIZE): New macro.
76692         (struniq_hash_table, struniq_lock): New variables.
76693         (struniq): New function.
76694         (gl_locale_name_thread): New function.
76695         (gl_locale_name): Invoke it.
76696         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76697         * modules/localename (Depends-on): Add lock.
76698         Reported by Mike Gran <spk121@yahoo.com>.
76700 2009-12-23  Eric Blake  <ebb9@byu.net>
76702         va-args: new module
76703         * modules/va-args: New file.
76704         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76705         * MODULES.html.sh (Core language properties): Mention it.
76707         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76708         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76709         named alias for __attribute__((__unused__)).
76710         * lib/chown.c: Update client.
76711         * lib/fchmodat.c: Likewise.
76712         * lib/fts.c: Likewise.
76713         * lib/getdate.y: Likewise.
76714         * lib/getgroups.c: Likewise.
76715         * lib/getopt.c: Likewise.
76716         * lib/getugroups.c: Likewise.
76717         * lib/mkdir.c: Likewise.
76718         * lib/mkfifo.c: Likewise.
76719         * lib/mkfifoat.c: Likewise.
76720         * lib/mknod.c: Likewise.
76721         * lib/mknodat.c: Likewise.
76722         * lib/readlink.c: Likewise.
76723         * lib/se-context.in.h: Likewise.
76724         * lib/se-selinux.in.h: Likewise.
76725         * lib/sockets.c: Likewise.
76726         * lib/symlink.c: Likewise.
76727         * lib/symlinkat.c: Likewise.
76728         * lib/unicodeio.c: Likewise.
76729         * lib/unistr.h: Likewise.
76730         * tests/test-areadlink.c: Likewise.
76731         * tests/test-areadlinkat.c: Likewise.
76732         * tests/test-filenamecat.c: Likewise.
76733         * tests/test-fseeko.c: Likewise.
76734         * tests/test-ftello.c: Likewise.
76735         * tests/test-getdate.c: Likewise.
76736         * tests/test-getgroups.c: Likewise.
76737         * tests/test-gethostname.c: Likewise.
76738         * tests/test-quotearg.c: Likewise.
76739         * tests/test-version-etc.c: Likewise.
76740         * tests/test-xalloc-die.c: Likewise.
76741         * tests/test-xfprintf-posix.c: Likewise.
76742         * tests/test-xprintf-posix.c: Likewise.
76743         * tests/test-xvasprintf.c: Likewise.
76745         tests: avoid compiler warnings
76746         * tests/test-fcntl.c (main): Delete unused parameters.
76747         * tests/test-freopen-safer.c (main): Likewise.
76748         * tests/test-xalloc-die.c (main): Mark unused parameters.
76749         * tests/test-fseeko.c (main): Likewise.
76750         * tests/test-ftello.c (main): Likewise.
76751         * tests/test-nanosleep.c (main): Avoid declaration warning.
76752         * tests/test-sleep.c (main): Likewise.
76753         * tests/test-unsetenv.c (main): Silence warning about string
76754         literal.
76755         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76757 2009-12-23  Bruno Haible  <bruno@clisp.org>
76759         * tests/test-localename.c (test_locale_name): New function, extracted
76760         from main. Also test mixed situations.
76761         (test_locale_name_posix, test_locale_name_environ,
76762         test_locale_name_default): New functions.
76763         (main): Invoke them all.
76764         * modules/localename-tests (configure.ac): Test for newlocale.
76766 2009-12-23  Bruno Haible  <bruno@clisp.org>
76768         unistd: Ensure getcwd gets declared before being overridden.
76769         * lib/unistd.in.h: Conditionally include <io.h>.
76771 2009-12-22  Bruno Haible  <bruno@clisp.org>
76773         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76774         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76775         (gl_WCHAR_H): Invoke it.
76776         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76777         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76778         Reported by Karl Berry <karl@freefriends.org>.
76780 2009-12-22  Eric Blake  <ebb9@byu.net>
76782         math, unistd: avoid redundant includes
76783         * lib/math.in.h (isnan): No need to re-include <math.h>.
76784         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76786         getsubopt: work around cygwin bug
76787         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76788         avoid conflicting with system getsubopt.
76789         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76790         bug.
76792         getopt: synchronize from glibc
76793         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76794         parameter order.  Adjust all callers.
76795         (_getopt_internal_r, main): Adjust quoting in error messages.
76796         Drop considerations for outdated POSIX 1003.2 error message.
76797         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76798         callers.
76799         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76801         test-getopt: test stderr behavior
76802         * modules/getopt-posix-tests (Depends-on): Add dup2.
76803         * tests/test-getopt.c (ASSERT): Avoid stderr.
76804         (main): Move stderr to a temporary file.
76805         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76806         Instead, add parameter to inform caller if output occurred.
76807         (test_getopt): Adjust all existing tests to expect silence, and
76808         add new tests of leading ":".
76809         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76810         glibc shortcomings with leading "-:" or "+:" in optstring.
76811         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76812         Likewise.
76813         * doc/posix-functions/getopt.texi (getopt): Likewise.
76815         test-getopt: enhance test
76816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76817         supports optind=0.
76818         * tests/test-getopt.c (OPTIND_MIN): Move...
76819         * tests/test-getopt.h (OPTIND_MIN): ...here.
76820         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76821         Require that optind=0 works, since modern BSD supports it in
76822         addition to optreset, and since coreutils expects it.
76823         (test_getopt_long_only): New test.
76824         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76825         glibc shortcomings with 'W;', and enforcement of optind=0.
76826         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76827         Likewise.
76829 2009-12-21  Bruno Haible  <bruno@clisp.org>
76831         localename: Improvements for MacOS X and Cygwin.
76832         * lib/localename.h (gl_locale_name_environ): New declaration.
76833         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76834         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76835         (gl_locale_name_posix): Invoke it.
76836         (gl_locale_name_default): Add comments. Use Windows native API also on
76837         Cygwin.
76839 2009-12-21  Bruno Haible  <bruno@clisp.org>
76841         Update list of Win32 locale ids.
76842         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76843         (LANG_SAMI): Renamed from LANG_SAAMI.
76844         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76845         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76846         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76847         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76848         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76849         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76850         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76851         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76852         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76853         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76854         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76855         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76856         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76857         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76858         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76859         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76860         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76861         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76862         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76863         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76864         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76865         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76866         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76867         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76868         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76869         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76870         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76871         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76872         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76873         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76874         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76875         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76876         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76877         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76878         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76879         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76880         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76881         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76882         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76883         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76884         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76885         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76886         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76887         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76888         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76889         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76890         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76891         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76892         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76893         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76894         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76895         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76896         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76897         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76898         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76899         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76900         Add more languages and countries for Sami, Sorbian. Add more countries
76901         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76902         for Pashto. Change country for Syriac, Tswana.
76904 2009-12-21  Eric Blake  <ebb9@byu.net>
76906         test-utimens: avoid spurious failure
76907         * tests/test-chown.h (nap): Factor...
76908         * tests/nap.h: ...into new file.
76909         * tests/test-lchown.h (nap): Avoid duplication.
76910         * tests/test-utimens-common.h (nap): Use shared implementation,
76911         necessary on file systems with 1-second resolution.
76912         * modules/chown-tests (Files): Include new file.
76913         * modules/fdutimensat-tests (Files): Likewise.
76914         * modules/futimens-tests (Files): Likewise.
76915         * modules/lchown-tests (Files): Likewise.
76916         * modules/openat-tests (Files): Likewise.
76917         * modules/utimens-tests (Files): Likewise.
76918         * modules/utimensat-tests (Files): Likewise.
76920 2009-12-19  Eric Blake  <ebb9@byu.net>
76922         futimens, utimensat: work around Linux bug
76923         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76924         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76925         * lib/utimensat.c (rpl_utimensat): Work around it.
76926         * lib/futimens.c (rpl_futimens): Adjust comment.
76928         utimens: work around Linux ctime bug
76929         * lib/utimens.c (detect_ctime_bug): New helper function.
76930         (update_timespec): Differentiate between workaround needed for
76931         this bug vs. what is needed for systems that lack utimensat.
76932         (fdutimens, lutimens): Work around bug.
76934         utimens: check for ctime update
76935         * tests/test-utimens-common.h (check_ctime): Define.
76936         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76937         * tests/test-futimens.h (test_futimens): Likewise.
76938         * tests/test-lutimens.h (test_lutimens): Likewise.
76939         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76940         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76942 2009-12-19  Bruno Haible  <bruno@clisp.org>
76944         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76945         * tests/test-dprintf-posix2.sh: New file.
76946         * tests/test-dprintf-posix2.c: New file.
76947         * modules/dprintf-posix-tests (Files): Add them.
76948         (configure.ac): Check for getrlimit and setrlimit.
76949         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76951 2009-12-19  Bruno Haible  <bruno@clisp.org>
76953         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76954         * tests/test-fprintf-posix3.sh: New file.
76955         * tests/test-fprintf-posix3.c: New file.
76956         * modules/fprintf-posix-tests (Files): Add them.
76957         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76959 2009-12-19  Eric Blake  <ebb9@byu.net>
76961         dirfd: fix prototype
76962         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76963         * lib/dirfd.c (dirfd): Likewise.
76965         canonicalize: reduce memory usage
76966         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76967         allocation to size.
76968         Reported by Solar Designer <solar@openwall.com>.
76970 2009-12-19  Bruno Haible  <bruno@clisp.org>
76972         New module attribute 'Applicability'.
76973         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76974         * gnulib-tool: New option --extract-applicability.
76975         (func_usage): Document it.
76976         (sed_extract_prog): Recognize it.
76977         (func_get_applicability): New function.
76978         (func_import): Generalize handling of 'link-warning' module.
76979         * modules/link-warning (Applicability): New section.
76980         * modules/arg-nonnull (Applicability): New section.
76981         Repoted by Simon Josefsson <simon@josefsson.org>.
76983 2009-12-19  Bruno Haible  <bruno@clisp.org>
76985         fflush: tweak
76986         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76987         * lib/fseeko.c (rpl_fseeko): Likewise.
76989 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76991         * lib/gl_list.h: Fix typo in comment.
76993 2009-12-16  Eric Blake  <ebb9@byu.net>
76995         fcntl: use to simplify other modules
76996         * modules/cloexec (Depends-on): Add fcntl.
76997         * modules/fchdir (Depends-on): Likewise.
76998         * modules/fd-safer-flag (Depends-on): Likewise.
76999         * modules/unistd-safer (Depends-on): Likewise.
77000         * modules/dup3 (configure.ac): Set module indicator.
77001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
77002         missing.
77003         * lib/fchdir.c (_gl_register_dup): Fix comment.
77004         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
77005         * lib/dup-safer.c (dup_safer): Likewise.
77006         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
77007         * lib/dup3.c (dup3): Likewise.
77008         * tests/test-fchdir.c (main): Enhance test.
77009         Fixes a dup_cloexec bug reported by Ondřej Vašík.
77011         fcntl: port portions of fcntl to mingw
77012         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
77013         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
77014         replacement for mingw.
77015         * modules/fcntl (Description): Update.
77016         (Depends-on): Add dup2.
77017         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
77018         * modules/fcntl-h (Makefile.am): Substitute it.
77019         * lib/fcntl.in.h (fcntl): Update declaration.
77020         (F_DUPFD, F_GETFD): New macros, when needed.
77021         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77022         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
77023         * tests/test-fcntl.c (check_flags, main): Enhance test for items
77024         we now guarantee.
77026         fcntl: work around cygwin bug in F_DUPFD
77027         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
77028         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
77029         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
77030         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
77031         * doc/posix-functions/fcntl.texi (fcntl): Document it.
77033         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
77034         * modules/fcntl (Files): List new files.
77035         (configure.ac): Run a test.
77036         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
77037         * lib/fcntl.c (rpl_fcntl): Likewise.
77038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
77039         (gl_FCNTL_H): Always replace fcntl.h.
77040         * modules/fcntl-h (Makefile.am): Substitute witnesses.
77041         * lib/fcntl.in.h (fcntl): Declare replacement.
77042         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
77043         needed, plus a witness.
77044         * doc/posix-functions/fcntl.texi (fcntl): Document this.
77045         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77046         * tests/test-fcntl.c: New file.
77047         * modules/fcntl-tests: Likewise.
77049         binary-io: avoid potential compilation warning
77050         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
77051         directives.
77053         fflush: avoid compilation error on NetBSD
77054         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
77055         between off_t and fpos_t, since the latter is sometimes a struct.
77056         * lib/fseeko.c (rpl_fseeko): Likewise.
77057         Reported by Alexander Nasonov <alnsn@yandex.ru>.
77059 2009-12-15  Eric Blake  <ebb9@byu.net>
77061         fcntl-h, stdio, sys_ioctl: fix declarations
77062         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
77063         function must not take arguments.
77064         * lib/sys_ioctl.in.h (ioctl): Likewise.
77065         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
77066         (open): Add a link warning.
77068 2009-12-15  Jim Meyering  <meyering@redhat.com>
77070         areadlink, areadlink-with-size: relax license to LGPLv2+
77071         * modules/areadlink (License): Relax to LGPLv2+.
77072         * modules/areadlink-with-size (License): Likewise.
77074 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
77075             Bruno Haible  <bruno@clisp.org>
77077         *printf: Fix memory leak.
77078         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
77079         * lib/vfprintf.c (vfprintf): Likewise.
77080         * lib/dprintf.c (dprintf): Likewise.
77081         * lib/vdprintf.c (vdprintf): Likewise.
77083 2009-12-14  Eric Blake  <ebb9@byu.net>
77085         accept4: adjust module dependencies
77086         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
77088         utimens: one more try at avoiding compiler warning
77089         * lib/utimens.c (lutimens): Lower scope of result.
77091 2009-12-13  Bruno Haible  <bruno@clisp.org>
77093         Move the malloc checking from module 'list' to new module 'xlist'.
77094         * modules/xlist: New file.
77095         * lib/gl_xlist.h: New file.
77096         * lib/gl_xlist.c: New file.
77097         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
77098         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
77099         gl_list_add_last, gl_list_add_before, gl_list_add_after,
77100         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
77101         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
77102         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
77103         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
77104         gl_sortedlist_nx_add): New declarations.
77105         (struct gl_list_implementation): Rename and change methods accordingly.
77106         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
77107         (gl_list_nx_create): Renamed from gl_list_create.
77108         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77109         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77110         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77111         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77112         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77113         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77114         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77115         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77116         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
77117         gl_list_create_empty.
77118         (gl_list_nx_create): Renamed from gl_list_create.
77119         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77120         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77121         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77122         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77123         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77124         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77125         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77126         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77127         * lib/gl_array_list.c: Don't include xalloc.h.
77128         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
77129         NULL upon out-of-memory.
77130         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
77131         out-of-memory.
77132         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
77133         Change return type to 'int'.
77134         (gl_array_nx_set_at): Renamed from gl_array_set_at.
77135         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77136         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
77137         upon out-of-memory.
77138         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
77139         upon out-of-memory.
77140         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
77141         upon out-of-memory.
77142         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
77143         upon out-of-memory.
77144         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
77145         out-of-memory.
77146         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
77147         Update.
77148         (gl_array_list_implementation): Update.
77149         * lib/gl_carray_list.c: Don't include xalloc.h.
77150         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
77151         Return NULL upon out-of-memory.
77152         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
77153         out-of-memory.
77154         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
77155         Change return type to 'int'.
77156         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
77157         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77158         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
77159         upon out-of-memory.
77160         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
77161         upon out-of-memory.
77162         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
77163         out-of-memory.
77164         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
77165         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
77166         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
77167         Update.
77168         (gl_carray_list_implementation): Update.
77169         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
77170         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
77171         gl_linked_create_empty. Return NULL upon out-of-memory.
77172         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
77173         out-of-memory.
77174         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
77175         Change return type to 'int'. Return -1 upon out-of-memory.
77176         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
77177         out-of-memory.
77178         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
77179         upon out-of-memory.
77180         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
77181         upon out-of-memory.
77182         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
77183         NULL upon out-of-memory.
77184         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
77185         upon out-of-memory.
77186         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
77187         out-of-memory.
77188         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
77189         Update.
77190         * lib/gl_linked_list.c: Don't include xalloc.h.
77191         (gl_linked_list_implementation): Update.
77192         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
77193         (add_to_bucket): Change return type to 'int'.
77194         (gl_linkedhash_list_implementation): Update.
77195         * lib/gl_anytree_list1.h (free_subtree): New function.
77196         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
77197         gl_tree_create_empty. Return NULL upon out-of-memory.
77198         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
77199         Change return type to 'int'. Return -1 upon out-of-memory.
77200         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
77201         out-of-memory.
77202         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
77203         (gl_tree_remove_node): New function, moved here from
77204         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
77205         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
77206         Update.
77207         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
77208         malloc, not xmalloc. Return NULL upon out-of-memory.
77209         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77210         out-of-memory.
77211         (gl_tree_remove_node_from_tree): New function, extracted from
77212         gl_tree_remove_node.
77213         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77214         upon out-of-memory.
77215         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77216         out-of-memory.
77217         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77218         upon out-of-memory.
77219         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77220         upon out-of-memory.
77221         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77222         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
77223         not xmalloc. Return NULL upon out-of-memory.
77224         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77225         out-of-memory.
77226         (gl_tree_remove_node_from_tree): New function, extracted from
77227         gl_tree_remove_node.
77228         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77229         upon out-of-memory.
77230         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77231         out-of-memory.
77232         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77233         upon out-of-memory.
77234         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77235         upon out-of-memory.
77236         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77237         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
77238         gl_anytree_list1.h before gl_anyavltree_list2.h.
77239         (gl_avltree_list_implementation): Update.
77240         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
77241         gl_anytree_list1.h before gl_anyavltree_list2.h.
77242         (gl_rbtree_list_implementation): Update.
77243         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
77244         Change return type to 'int'. Return -1 upon out-of-memory. Use
77245         __builtin_expect.
77246         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
77247         (gl_avltreehash_list_implementation): Update.
77248         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
77249         (gl_rbtreehash_list_implementation): Update.
77250         * modules/array-list (Depends-on): Remove xalloc.
77251         * modules/carray-list (Depends-on): Likewise.
77252         * modules/linked-list (Depends-on): Likewise.
77253         * modules/linkedhash-list (Depends-on): Likewise.
77254         * modules/avltree-list (Depends-on): Likewise.
77255         * modules/rbtree-list (Depends-on): Likewise.
77256         * modules/avltreehash-list (Depends-on): Likewise.
77257         * modules/rbtreehash-list (Depends-on): Likewise.
77259         * modules/xsublist: New file.
77260         * lib/gl_xsublist.h: New file.
77261         * lib/gl_xsublist.c: New file.
77262         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
77263         (gl_sublist_nx_create): New declaration.
77264         * lib/gl_sublist.c: Don't include xalloc.h.
77265         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
77266         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
77267         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
77268         Change return type to 'int'. Return -1 upon out-of-memory.
77269         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
77270         upon out-of-memory.
77271         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
77272         NULL upon out-of-memory.
77273         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
77274         upon out-of-memory.
77275         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
77276         NULL upon out-of-memory.
77277         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
77278         NULL upon out-of-memory.
77279         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
77280         upon out-of-memory.
77281         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
77282         (gl_sublist_list_implementation): Update.
77283         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
77284         upon out-of-memory.
77285         * modules/sublist (Depends-on): Remove xalloc.
77287         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
77288         * tests/test-carray_list.c: Likewise.
77289         * tests/test-linked_list.c: Likewise.
77290         * tests/test-linkedhash_list.c: Likewise.
77291         * tests/test-avltree_list.c: Likewise.
77292         * tests/test-rbtree_list.c: Likewise.
77293         * tests/test-avltreehash_list.c: Likewise.
77294         * tests/test-rbtreehash_list.c: Likewise.
77295         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
77296         * modules/carray-list-tests (Makefile.am): Likewise.
77297         * modules/linked-list-tests (Makefile.am): Likewise.
77298         * modules/linkedhash-list-tests (Makefile.am): Likewise.
77299         * modules/avltree-list-tests (Makefile.am): Likewise.
77300         * modules/rbtree-list-tests (Makefile.am): Likewise.
77301         * modules/avltreehash-list-tests (Makefile.am): Likewise.
77302         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
77304         * NEWS: Mention the changes.
77306         * lib/clean-temp.c: Include gl_xlist.h.
77307         * modules/clean-temp (Depends-on): Add xlist.
77309         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
77310         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
77312         * tests/test-array_oset.c: Include gl_xlist.h.
77313         * modules/array-oset-tests (Depends-on): Add xlist.
77315         Reported by José E. Marchesi <jemarch@gnu.org>.
77317 2009-12-13  Bruno Haible  <bruno@clisp.org>
77319         Move the malloc checking from module 'oset' to new module 'xoset'.
77320         * modules/xoset: New file.
77321         * lib/gl_xoset.h: New file.
77322         * lib/gl_xoset.c: New file.
77323         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
77324         declarations.
77325         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
77326         (struct gl_oset_implementation): Rename and change methods accordingly.
77327         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77328         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77329         'int'. Mark as __warn_unused_result__.
77330         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77331         gl_oset_create_empty.
77332         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77333         'int'.
77334         * lib/gl_array_oset.c: Don't include xalloc.h.
77335         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77336         malloc, not xmalloc.
77337         (grow): Change return type to 'int'. Don't call xalloc_die.
77338         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77339         to 'int'.
77340         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77341         'int'.
77342         (gl_array_oset_implementation): Update.
77343         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77344         gl_tree_create_empty.
77345         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77346         'int'.
77347         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77348         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77349         xmalloc.
77350         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77351         not xmalloc.
77352         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77353         xmalloc.
77354         (gl_avltree_oset_implementation): Update.
77355         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77356         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77357         xmalloc.
77358         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77359         not xmalloc.
77360         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77361         xmalloc.
77362         (gl_rbtree_oset_implementation): Update.
77363         * modules/array-oset (Depends-on): Remove xalloc.
77364         * modules/avltree-oset (Depends-on): Likewise.
77365         * modules/rbtree-oset (Depends-on): Likewise.
77366         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77367         * tests/test-avltree_oset.c: Likewise.
77368         * tests/test-rbtree_oset.c: Likewise.
77369         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77370         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77371         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77372         * NEWS: Mention the change.
77374 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77376         maint.mk: allow a project to override release-prep commands
77377         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77378         commands into a new rule.
77379         (release-prep): New rule.
77380         (release-prep-hook): New overridable variable.
77382 2009-12-13  Bruno Haible  <bruno@clisp.org>
77384         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77386 2009-12-13  Jim Meyering  <meyering@redhat.com>
77388         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77389         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77391 2009-12-12  Bruno Haible  <bruno@clisp.org>
77393         duplocale: Tweak.
77394         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77396 2009-12-12  Karl Berry  <karl@gnu.org>
77398         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77400 2009-12-12  Bruno Haible  <bruno@clisp.org>
77402         * m4/po.m4: Undo incorrect untabification.
77404 2009-12-12  Bruno Haible  <bruno@clisp.org>
77406         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77407         * modules/c-strtod (Depends-on): Add locale.
77408         * modules/c-strtold (Depends-on): Likewise.
77410 2009-12-12  Bruno Haible  <bruno@clisp.org>
77412         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77414 2009-12-11  Eric Blake  <ebb9@byu.net>
77416         setenv: relax requirement in light of POSIX ruling
77417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77418         not NULL.
77419         * tests/test-setenv.c (main): Relax test.
77420         * tests/test-unsetenv.c (main): Likewise.
77421         * doc/posix-functions/setenv.texi (setenv): Document this.
77422         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77424 2009-12-11  Bruno Haible  <bruno@clisp.org>
77426         New module 'fd-safer-flag'.
77427         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77428         * lib/dup-safer.c (dup_safer_flag): Remove function.
77429         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77430         * lib/fd-safer.c (fd_safer_flag): Remove function.
77431         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77432         * modules/cloexec (configure.ac): Drop indicator macro.
77433         * modules/fd-safer-flag: New file.
77434         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77435         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77436         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77438 2009-12-11  Bruno Haible  <bruno@clisp.org>
77440         Tests for module 'nl_langinfo'.
77441         * modules/nl_langinfo-tests: New file.
77442         * tests/test-nl_langinfo.sh: New file.
77443         * tests/test-nl_langinfo.c: New file.
77445         New module 'nl_langinfo'.
77446         * lib/nl_langinfo.c: New file.
77447         * m4/nl_langinfo.m4: New file.
77448         * modules/nl_langinfo: New file.
77449         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77451 2009-12-11  Bruno Haible  <bruno@clisp.org>
77453         Tests for module 'langinfo'.
77454         * modules/langinfo-tests: New file.
77455         * tests/test-langinfo.c: New file.
77457         New module 'langinfo'.
77458         * lib/langinfo.in.h: New file.
77459         * m4/langinfo_h.m4: New file.
77460         * modules/langinfo: New file.
77461         * doc/posix-headers/langinfo.texi: Mention the new module.
77463 2009-12-11  Bruno Haible  <bruno@clisp.org>
77465         * lib/config.charset: Untabify.
77467 2009-12-11  Bruno Haible  <bruno@clisp.org>
77469         * modules/unistd-safer (configure.ac): Drop indicator macro.
77471 2009-12-11  Bruno Haible  <bruno@clisp.org>
77473         Move pipe2-safer code to its own file.
77474         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77475         * lib/pipe-safer.c (pipe2_safer): Remove function.
77476         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77477         (Makefile.am): Add it to lib_SOURCES.
77479 2009-12-10  Bruno Haible  <bruno@clisp.org>
77481         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77483 2009-12-10  Bruno Haible  <bruno@clisp.org>
77485         Declare which arguments expect non-NULL values, for GCC and clang.
77486         * build-aux/arg-nonnull.h: New file.
77487         * modules/arg-nonnull: New file.
77488         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77489         (inet_ntop, inet_pton): Use it.
77490         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77491         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77492         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77493         (open, openat): Use it.
77494         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77495         (fnmatch): Use it.
77496         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77497         (getopt, getopt_long, getopt_long_only): Use it.
77498         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77499         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77500         Use it.
77501         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77502         (iconv_open): Use it.
77503         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77504         (strtoimax, strtoumax): Use it.
77505         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77506         (duplocale): Use it.
77507         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77508         (frexp, frexpl): Use it.
77509         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77510         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77511         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77512         (tsearch, tfind, tdelete, twalk): Use it.
77513         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77514         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77515         sigpending): Use it.
77516         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77517         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77518         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77519         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77520         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77521         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77522         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77523         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77524         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77525         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77526         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77527         Use it.
77528         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77529         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77530         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77531         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77532         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77533         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77534         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77535         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77536         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77537         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77538         strtoull, unsetenv): Use it.
77539         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77540         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77541         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77542         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77543         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77544         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77545         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77546         (strcasecmp, strncasecmp): Use it.
77547         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77548         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77549         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77550         rpl_setsockopt): Use it.
77551         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77552         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77553         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77554         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77555         (gettimeofday): Use it.
77556         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77557         (times): Use it.
77558         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77559         (uname): Use it.
77560         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77561         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77562         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77563         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77564         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77565         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77566         unlinkat, write): Use it.
77567         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77568         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77569         * lib/argv-iter.h: Include arg-nonnull.h.
77570         (_ATTRIBUTE_NONNULL_): Remove macro.
77571         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77572         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77573         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77574         optimization.
77575         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77576         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77577         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77578         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77579         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77580         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77581         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77582         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77583         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77584         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77585         * modules/dirent (Depends-on): Add arg-nonnull.
77586         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77587         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77588         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77589         * modules/fnmatch (Depends-on): Add arg-nonnull.
77590         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77591         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77592         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77593         * modules/glob (Depends-on): Add arg-nonnull.
77594         (Makefile.am): Insert arg-nonnull.h into glob.h.
77595         * modules/iconv_open (Depends-on): Add arg-nonnull.
77596         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77597         * modules/inttypes (Depends-on): Add arg-nonnull.
77598         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77599         * modules/locale (Depends-on): Add arg-nonnull.
77600         (Makefile.am): Insert arg-nonnull.h into locale.h.
77601         * modules/math (Depends-on): Add arg-nonnull.
77602         (Makefile.am): Insert arg-nonnull.h into math.h.
77603         * modules/netdb (Depends-on): Add arg-nonnull.
77604         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77605         * modules/search (Depends-on): Add arg-nonnull.
77606         (Makefile.am): Insert arg-nonnull.h into search.h.
77607         * modules/signal (Depends-on): Add arg-nonnull.
77608         (Makefile.am): Insert arg-nonnull.h into signal.h.
77609         * modules/spawn (Depends-on): Add arg-nonnull.
77610         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77611         * modules/stdio (Depends-on): Add arg-nonnull.
77612         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77613         * modules/stdlib (Depends-on): Add arg-nonnull.
77614         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77615         * modules/string (Depends-on): Add arg-nonnull.
77616         (Makefile.am): Insert arg-nonnull.h into string.h.
77617         * modules/strings (Depends-on): Add arg-nonnull.
77618         (Makefile.am): Insert arg-nonnull.h into strings.h.
77619         * modules/sys_socket (Depends-on): Add arg-nonnull.
77620         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77621         * modules/sys_stat (Depends-on): Add arg-nonnull.
77622         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77623         * modules/sys_time (Depends-on): Add arg-nonnull.
77624         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77625         * modules/sys_times (Depends-on): Add arg-nonnull.
77626         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77627         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77628         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77629         * modules/time (Depends-on): Add arg-nonnull.
77630         (Makefile.am): Insert arg-nonnull.h into time.h.
77631         * modules/unistd (Depends-on): Add arg-nonnull.
77632         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77633         * modules/wchar (Depends-on): Add arg-nonnull.
77634         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77635         * modules/argv-iter (Depends-on): Add arg-nonnull.
77636         * tests/test-canonicalize.c (null_ptr): New function.
77637         (main): Use it.
77638         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77639         (main): Use it.
77640         * tests/test-memmem.c (null_ptr): New function.
77641         (main): Use it.
77642         Reported by Jim Meyering.
77644 2009-12-10  Bruno Haible  <bruno@clisp.org>
77646         Use spaces for indentation, not tabs.
77647         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77648         * m4/*.m4: Untabify.
77649         * build-aux/*.h: Untabify.
77650         * tests/**/*.[hc]: Untabify.
77651         * README: New section "Indent with spaces, not TABs", based on
77652         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77653         * NEWS: Mention the change.
77655 2009-12-10  Bruno Haible  <bruno@clisp.org>
77657         pty test: Fix link error.
77658         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77659         test_pty_LDADD.
77661 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77663         * modules/pty: New file.
77664         * modules/pty-tests: New file.
77665         * m4/pty.m4: New file.
77666         * tests/test-pty.c: New file.
77667         * doc/glibc-headers/pty.texi: Modified.
77668         * doc/glibc-functions/forkpty.texi: Modified.
77669         * doc/glibc-functions/openpty.texi: Modified.
77671 2009-12-10  Bruno Haible  <bruno@clisp.org>
77673         Avoid syntax error in C++ mode.
77674         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77676 2009-12-10  Bruno Haible  <bruno@clisp.org>
77678         Use sed with option -e.
77679         * gnulib-tool (func_version, func_emit_copyright_notice,
77680         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77681         option -e to sed.
77682         * modules/link-warning (Makefile.am): Likewise.
77684 2009-12-10  Jim Meyering  <meyering@redhat.com>
77686         mgetgroups: do not write bytes beyond end of malloc'd buffer
77687         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77688         username, we call getgroups with a one-element-shorter buffer,
77689         but still told it the length was original, max_n_groups.
77691 2009-12-09  Eric Blake  <ebb9@byu.net>
77693         cloexec: relax license
77694         * modules/cloexec (Maintainer): Add myself.
77695         (License): Use LGPL, not GPL.
77697         link-warning: optimize generation
77698         * modules/link-warning (Makefile.am): Reduce process usage.
77700 2009-12-09  Bruno Haible  <bruno@clisp.org>
77702         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77703         workaround was added on 2009-11-17.
77705 2009-12-09  Jim Meyering  <meyering@redhat.com>
77706             Bruno Haible  <bruno@clisp.org>
77708         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77709         * modules/link-warning (Makefile.am): Make the comment-removing sed
77710         command more robust in the face of bootstrap-prepended comment lines.
77712 2009-12-09  Bruno Haible  <bruno@clisp.org>
77714         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77715         most one group.
77717 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77718             Bruno Haible  <bruno@clisp.org>
77720         * build-aux/link-warning.h: Add copyright notice.
77721         * modules/link-warning (Makefile.am): Generate link-warning.h from
77722         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77723         * NEWS: Mention change in link-warning module.
77724         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77725         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77726         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77727         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77728         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77729         * modules/math (Makefile.am): Add dependency to math.h.
77730         * modules/search (Makefile.am): Add dependency to search.h.
77731         * modules/signal (Makefile.am): Add dependency to signal.h.
77732         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77733         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77734         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77735         * modules/string (Makefile.am): Add dependency to string.h.
77736         * modules/strings (Makefile.am): Add dependency to strings.h.
77737         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77738         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77739         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77740         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77741         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77742         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77743         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77744         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77745         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77747 2009-12-09  Bruno Haible  <bruno@clisp.org>
77749         fchdir: Optimize away rpl_fstat when possible.
77750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77751         REPLACE_OPEN_DIRECTORY.
77752         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77754 2009-12-09  Bruno Haible  <bruno@clisp.org>
77756         * lib/fchdir.c: Update comment.
77758 2009-12-09  Bruno Haible  <bruno@clisp.org>
77760         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77762 2009-12-08  Eric Blake  <ebb9@byu.net>
77764         fchdir: avoid memory leak on re-registration.
77765         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77767 2009-12-08  Jim Meyering  <meyering@redhat.com>
77769         init.sh: avoid Solaris 10 /bin/sh portability problem
77770         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77771         sourced script:
77772           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77773           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77774           bar
77775         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77776         and two tests used that idiom.
77777         * tests/init.sh: Update suggested usage comments.
77778         (path_prepend_): New function, to be used in place
77779         of the --src-path=DIR option.
77780         (setup_): Move PATH-prepending code into path_prepend_.
77781         * tests/test-pread.sh: Adapt to new usage.
77782         * tests/test-xalloc-die.sh: Likewise.
77784 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77786         * doc/gnulib.texi (Glibc pty.h): Add.
77787         * doc/glibc-functions/forkpty.texi: Add.
77788         * doc/glibc-functions/openpty.texi: Add.
77789         Suggested by Bruno Haible.
77791 2009-12-08  Eric Blake  <ebb9@byu.net>
77793         fchdir: fix logic bugs
77794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77795         * tests/test-fchdir.c (main): Enhance test.
77796         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77797         is in use.
77799         dup2: fix logic bugs
77800         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77801         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77802         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77803         exists.
77804         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77806 2009-12-07  Eric Blake  <ebb9@byu.net>
77808         unlink: fix m4 detection
77809         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77811         unistd-safer: add unit test
77812         * modules/unistd-safer-tests: New file.
77813         * tests/test-dup-safer.c: Likewise.
77814         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77815         * tests/test-dup2.c (setmode): Likewise.
77816         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77818         cloexec: preserve text vs. binary across dup_cloexec
77819         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77820         mode.
77821         * modules/dup2-tests (Depends-on): Add binary-io.
77822         * modules/cloexec-tests (Depends-on): Likewise.
77823         * tests/test-dup2.c (setmode, is_mode): New helpers.
77824         (main): Add tests that translation mode is preserved.
77825         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77826         Reported by Bruno Haible.
77828         mgetgroups: reduce duplicate listings
77829         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77830         resulting array.
77831         * tests/test-chown.h (test_chown): Simplify client.
77832         * tests/test-lchown.h (test_lchown): Likewise.
77834 2009-12-06  Bruno Haible  <bruno@clisp.org>
77836         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77837         value.
77839 2009-12-06  Bruno Haible  <bruno@clisp.org>
77841         * lib/progname.c: Include stdio.h, stdlib.h.
77842         (set_program_name): Reject a NULL argument.
77844 2009-12-05  Eric Blake  <ebb9@byu.net>
77846         pipe2-safer: new module
77847         * modules/pipe2-safer: New file.
77848         * lib/unistd-safer.h (pipe2_safer): New prototype.
77849         * lib/unistd--.h (pipe2): New wrapper.
77850         * lib/pipe-safer.c (pipe2_safer): New function.
77851         * modules/pipe (Depends-on): Add pipe2-safer.
77852         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77854         stdlib-safer: preserve cloexec flag for mkostemp[s]
77855         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77856         fd_safer_flag.
77858         unistd-safer: allow preservation of cloexec status via flag
77859         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77860         prototypes.
77861         * lib/dup-safer.c (dup_safer_flag): New function.
77862         * lib/fd-safer.c (fd_safer_flag): Likewise.
77863         * modules/cloexec (configure.ac): Set witness.
77865         test-dup2: enhance test
77866         * modules/dup2-tests (Depends-on): Add cloexec.
77867         * tests/test-dup2.c (main): Enhance test.
77869         cloexec: add dup_cloexec
77870         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77871         header and comments.
77872         * lib/cloexec.c (set_cloexec_flag): Add comments.
77873         (dup_cloexec): New function, with mingw implementation borrowed
77874         from...
77875         * lib/w32spawn.h (dup_noinherit): ...here.
77876         * modules/execute (Depends-on): Add cloexec.
77877         * modules/pipe (Depends-on): Likewise.
77878         * modules/cloexec (Depends-on): Add dup2.
77879         * modules/cloexec-tests (Files): New file.
77880         * tests/test-cloexec.c: Likewise.
77882         test-xalloc-die: fix test for mingw
77883         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77884         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77885         directory and .exe suffix off argv[0] output.
77887         test-fseeko: fix test for mingw
77888         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77889         than undefining fseek, so test will pass on mingw.
77891 2009-12-05  Bruno Haible  <bruno@clisp.org>
77893         * lib/progname.h (set_program_name): Clarify specification.
77894         * lib/progname.c (set_program_name): Likewise.
77895         Reported by Jim Meyering.
77897 2009-12-05  Jim Meyering  <meyering@redhat.com>
77899         maint.mk: backslash-escape parens in default regexp
77900         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77901         backslash-escape the literal parentheses.
77903         maint.mk: news-date-check: use grep -E
77904         * top/maint.mk (today): Define a Make variable, not a...
77905         (news-date-check): ...shell variable.
77906         (news-date-regexp): Use the Make variable.
77907         Use grep's -E option.  Change the failing diagnostic to mention
77908         the variable, $(news-date-regexp).
77910 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77912         maintainer-makefile: allow customization of NEWS entry format
77913         * top/maint.mk (news-date-regexp): New overridable variable.
77914         (news-date-check): Use it.
77916 2009-12-04  Eric Blake  <ebb9@byu.net>
77918         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77919         * lib/mgetgroups.h (xgetgroups): New prototype.
77920         * lib/mgetgroups.c (xgetgroups): New wrapper.
77921         (mgetgroups): Handle ENOSYS.
77922         * modules/mgetgroups (Depends-on): Add realloc.
77923         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77925         mgetgroups: avoid argument promotion issues with -1
77926         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77927         for invalid gid_t.
77928         * tests/test-chown.h (getegid, test_chown): Likewise.
77929         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77931 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77933         exclude: Fix header file problems.
77934         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77936 2009-12-01  Jim Meyering  <meyering@redhat.com>
77938         fts: fts_open: do not let an empty string cause immediate failure
77939         This is required in support of GNU rm, for which the command
77940         "rm A '' B" must process and remove both A and B, in spite of
77941         the empty string argument.
77942         * lib/fts.c (fts_open): Do not let the presence of an empty string
77943         cause fts_open to fail immediately.  Most fts-using tools must be
77944         able to process all arguments, in order, and can be expected to
77945         diagnose such arguments themselves.
77947 2009-11-30  Eric Blake  <ebb9@byu.net>
77949         utimens: fix compilation error
77950         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77951         Declare variable at right scope.
77953 2009-11-29  Jim Meyering  <meyering@redhat.com>
77955         bootstrap: handle perl-5.11's changed --version output
77956         * build-aux/bootstrap (get_version): Handle perl separately,
77957         since perl-5.11's --version output is different.
77959 2009-11-28  Jim Meyering  <meyering@redhat.com>
77961         userspec: depend on the inttostr module, too
77962         * modules/userspec (Depends-on): Add inttostr.
77964         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77965         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77966         number of MAXUID when it evaluates to (uid_t) -1.
77967         Likewise for group ID.  Reported by Matt McCutchen in
77968         <http://savannah.gnu.org/bugs/?28113>
77970         userspec: reformat to use spaces, not TABs
77971         * lib/userspec.c: Expand TABs to spaces.
77972         Add Emacs' "indent-tabs-mode: nil" hint.
77974 2009-11-27  Eric Blake  <ebb9@byu.net>
77976         getopt-gnu: flush out another BSD bug
77977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77978         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77979         flush out BSD bug.
77980         * tests/test-getopt.h (test_getopt): End lists with NULL.
77981         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77982         (test_getopt_long_posix): Enhance test.
77983         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77984         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77985         getopt-gnu.
77986         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77987         Likewise.
77989 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77991         * modules/idpriv-droptemp-tests (Notice): Fix text.
77993 2009-11-27  Jim Meyering  <meyering@redhat.com>
77995         test-xalloc-die: avoid spurious failure due to libtool argv difference
77996         In a libtool-enabled project, this test would fail due to a difference
77997         in the emitted program name, e.g.,
77998         -test-xalloc-die: memory exhausted
77999         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
78000         Use program to avoid that.
78001         * modules/xalloc-die-tests (Depends-on): Add progname.
78002         * tests/test-xalloc-die.c: Include progname.h".
78003         (program_name): Remove decl.
78004         (main): Call set_program_name.
78005         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
78007 2009-11-26  Richard Jones  <rjones@redhat.com>
78009         w32sock: leave win32 error in place.
78010         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
78012 2009-11-26  Eric Blake  <ebb9@byu.net>
78014         init.sh: suggest to use skip_ and fail_ functions in comments
78015         * tests/init.sh: Add a sentence.
78017 2009-11-25  Bruno Haible  <bruno@clisp.org>
78019         init.sh: add documentation in comments
78020         * tests/init.sh: Add some developer and user documentation.
78022 2009-11-26  Jim Meyering  <meyering@redhat.com>
78024         init.sh: accommodate even those who specify bogus srcdir manually
78025         * tests/init.sh: Normally, srcdir is guaranteed by automake and
78026         configure-time tests to be sanitized, so that there is no need to
78027         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
78028         (with no double quotes) suffices.  However, since tests may be
78029         invoked manually, and since you may explicitly set srcdir to the
78030         name of a directory containing spaces, do quote its uses here.
78031         * tests/test-pread.sh: Likewise.
78032         Suggested by Bruno Haible.
78034         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
78035         * tests/test-pread.sh: Write no data into the pipe, because
78036         test-pread actually reads none.  This avoids a diagnostic,
78037         "bash: echo: write error: Broken pipe", that arises in the unusual
78038         event something is ignoring SIGPIPE, and might be interpreted
78039         as some sort of failure.  Reported by Bruno Haible.
78041 2009-11-25  Jim Meyering  <meyering@redhat.com>
78043         test-pread: cover failure with ESPIPE and EINVAL
78044         * tests/test-pread.c (main): Test for failure, too.
78045         * tests/test-pread.sh: Invoke with stdin on a pipe.
78046         Suggested by Eric Blake.
78048         pread: improvement and fix
78049         * modules/pread (Depends-on): Depend on lseek, for portability to
78050         e.g., mingw.  Suggested by Eric Blake.
78051         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
78053         unistd.in.h: correct declaration of pread
78054         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
78055         Reported by Richard W.M. Jones.
78057         test-pread.sh: distribute the test script
78058         * modules/pread-tests (Files): Include test-pread.sh.
78060         test-pread.sh: clean up
78061         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
78062         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
78063         That is unnecessary, since it's always ".".
78064         Suggestion from Eric Blake.
78066         test-pread.sh: make executable
78067         * tests/test-pread.sh: Set executable bit.
78068         Reported by Eric Blake.
78070         correct typo in test-pread.sh
78071         * tests/test-pread.sh: Add #! line.
78073         test pread
78074         * tests/test-pread.c: New file.
78075         * tests/test-pread.sh: Likewise.
78076         * modules/pread-tests: Likewise.
78078         pread: new module
78079         * modules/pread: New file.
78080         * lib/unistd.in.h (pread): Define/declare.
78081         * lib/pread.c (pread): New file.
78082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
78083         * modules/unistd (Makefile.am): Substitute witnesses.
78084         * doc/posix-functions/pread.texi (pread): Update.
78085         * MODULES.html.sh: Add pread.
78087 2009-11-25  Jim Meyering  <meyering@redhat.com>
78089         tests/init.sh: new file to be used via most *.sh tests
78090         * tests/init.sh: New file.
78092 2009-11-25  Eric Blake  <ebb9@byu.net>
78094         utimens: work around older Linux failure with symlinks
78095         * lib/utimens.c (lutimensat_works_really): New variable.
78096         (fdutimens, lutimens): Use it to manage kernels that support
78097         nanosecond times on files, but not on symlinks.
78098         Reported by Ondřej Vašík.
78100         utimes: fix configure grammar
78101         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
78103 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
78105         regex: Fix fastmap for multibyte character ranges.
78106         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
78107         characters when a multibyte character range is included.
78109 2009-11-22  Andy Wingo  <wingo@pobox.com>
78111         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
78112         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
78114 2009-11-24  Bruno Haible  <bruno@clisp.org>
78116         doc: Most *_l functions exist in MacOS X 10.5.
78117         * doc/posix-functions/duplocale.texi: Update platforms list.
78118         * doc/posix-functions/freelocale.texi: Likewise.
78119         * doc/posix-functions/newlocale.texi: Likewise.
78120         * doc/posix-functions/uselocale.texi: Likewise.
78121         * doc/posix-functions/isalnum_l.texi: Likewise.
78122         * doc/posix-functions/isalpha_l.texi: Likewise.
78123         * doc/posix-functions/isblank_l.texi: Likewise.
78124         * doc/posix-functions/iscntrl_l.texi: Likewise.
78125         * doc/posix-functions/isdigit_l.texi: Likewise.
78126         * doc/posix-functions/isgraph_l.texi: Likewise.
78127         * doc/posix-functions/islower_l.texi: Likewise.
78128         * doc/posix-functions/isprint_l.texi: Likewise.
78129         * doc/posix-functions/ispunct_l.texi: Likewise.
78130         * doc/posix-functions/isspace_l.texi: Likewise.
78131         * doc/posix-functions/isupper_l.texi: Likewise.
78132         * doc/posix-functions/iswalnum_l.texi: Likewise.
78133         * doc/posix-functions/iswalpha_l.texi: Likewise.
78134         * doc/posix-functions/iswblank_l.texi: Likewise.
78135         * doc/posix-functions/iswcntrl_l.texi: Likewise.
78136         * doc/posix-functions/iswctype_l.texi: Likewise.
78137         * doc/posix-functions/iswdigit_l.texi: Likewise.
78138         * doc/posix-functions/iswgraph_l.texi: Likewise.
78139         * doc/posix-functions/iswlower_l.texi: Likewise.
78140         * doc/posix-functions/iswprint_l.texi: Likewise.
78141         * doc/posix-functions/iswpunct_l.texi: Likewise.
78142         * doc/posix-functions/iswspace_l.texi: Likewise.
78143         * doc/posix-functions/iswupper_l.texi: Likewise.
78144         * doc/posix-functions/iswxdigit_l.texi: Likewise.
78145         * doc/posix-functions/isxdigit_l.texi: Likewise.
78146         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
78147         * doc/posix-functions/strcasecmp_l.texi: Likewise.
78148         * doc/posix-functions/strcoll_l.texi: Likewise.
78149         * doc/posix-functions/strfmon_l.texi: Likewise.
78150         * doc/posix-functions/strftime_l.texi: Likewise.
78151         * doc/posix-functions/strncasecmp_l.texi: Likewise.
78152         * doc/posix-functions/strxfrm_l.texi: Likewise.
78153         * doc/posix-functions/tolower_l.texi: Likewise.
78154         * doc/posix-functions/toupper_l.texi: Likewise.
78155         * doc/posix-functions/towctrans_l.texi: Likewise.
78156         * doc/posix-functions/towlower_l.texi: Likewise.
78157         * doc/posix-functions/towupper_l.texi: Likewise.
78158         * doc/posix-functions/wcscoll_l.texi: Likewise.
78159         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
78160         * doc/posix-functions/wctrans_l.texi: Likewise.
78161         * doc/posix-functions/wctype_l.texi: Likewise.
78162         * doc/glibc-functions/strptime_l.texi: Likewise.
78163         * doc/glibc-functions/strtod_l.texi: Likewise.
78164         * doc/glibc-functions/strtof_l.texi: Likewise.
78165         * doc/glibc-functions/strtol_l.texi: Likewise.
78166         * doc/glibc-functions/strtold_l.texi: Likewise.
78167         * doc/glibc-functions/strtoll_l.texi: Likewise.
78168         * doc/glibc-functions/strtoul_l.texi: Likewise.
78169         * doc/glibc-functions/strtoull_l.texi: Likewise.
78170         * doc/glibc-functions/wcsftime_l.texi: Likewise.
78171         * doc/glibc-functions/wcstod_l.texi: Likewise.
78172         * doc/glibc-functions/wcstof_l.texi: Likewise.
78173         * doc/glibc-functions/wcstol_l.texi: Likewise.
78174         * doc/glibc-functions/wcstold_l.texi: Likewise.
78175         * doc/glibc-functions/wcstoll_l.texi: Likewise.
78176         * doc/glibc-functions/wcstoul_l.texi: Likewise.
78177         * doc/glibc-functions/wcstoull_l.texi: Likewise.
78179 2009-11-24  Bruno Haible  <bruno@clisp.org>
78181         duplocale: Fix logic bug.
78182         * lib/duplocale.c: Don't include <langinfo.h>.
78183         (_NL_LOCALE_NAME): Remove macro.
78184         (rpl_duplocale): Use setlocale instead of nl_langinfo.
78185         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
78187 2009-11-23  Jim Meyering  <meyering@redhat.com>
78189         test-update-copyright: don't hard-code /usr/bin/perl
78190         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
78191         perl to print the current year.  Gilles Espinasse reported that
78192         the replaced use of perl was hard-coded as /usr/bin/perl.
78194 2009-11-23  Bruno Haible  <bruno@clisp.org>
78196         duplocale: Add support for glibc 2.3.x.
78197         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
78199 2009-11-22  Bruno Haible  <bruno@clisp.org>
78201         vasnprintf: Tiny optimization.
78202         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
78203         MacOS X.
78205 2009-11-22  Bruno Haible  <bruno@clisp.org>
78207         Tests for module 'duplocale'.
78208         * modules/duplocale-tests: New file.
78209         * tests/test-duplocale.c: New file.
78211         New module 'duplocale'.
78212         * m4/duplocale.m4: New file.
78213         * lib/locale.in.h (duplocale): New declaration.
78214         * lib/duplocale.c: New file.
78215         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
78216         gl_LOCALE_H_DEFAULTS): New macros.
78217         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
78218         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
78219         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
78220         REPLACE_DUPLOCALE.
78221         * modules/duplocale: New file.
78222         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
78224 2009-11-22  Bruno Haible  <bruno@clisp.org>
78226         * modules/locale-tests (configure.ac): Test for newlocale function.
78227         * tests/test-locale.c: When the system has extended locale functions,
78228         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
78230         locale: Make locale_t available when possible.
78231         * lib/locale.in.h: Include <xlocale.h> when it exists.
78232         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
78233         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
78234         * modules/locale (Depends-on): Add extensions.
78235         (Makefile.am): Also substitute HAVE_XLOCALE_H.
78236         * doc/posix-headers/locale.texi: Document the problem with locale_t.
78238 2009-11-22  Bruno Haible  <bruno@clisp.org>
78240         Add comments.
78241         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
78242         invocation.
78243         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78244         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
78245         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78247 2009-11-22  Bruno Haible  <bruno@clisp.org>
78249         error: account for the possibility of freopen (stdout).
78250         * lib/error.c: Include <unistd.h>.
78251         (flush_stdout): New function, extracted from error and error_at_line.
78252         Determine stdout's fd dynamically.
78253         (error, error_at_line): Invoke flush_stdout.
78254         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
78255         * modules/error (Depends-on): Add unistd.
78257 2009-11-22  Bruno Haible  <bruno@clisp.org>
78259         diffseq: Add comment.
78260         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
78262 2009-11-22  Jim Meyering  <meyering@redhat.com>
78264         c-stack: avoid defining an unused static function
78265         * lib/c-stack.c (find_stack_direction): Do not define this function
78266         when it will not be used.
78268         diffseq: avoid spurious gcc warnings
78269         * lib/diffseq.h (IF_LINT2): Define.
78270         (compareseq): Use it to initialize two members of "part".
78271         This avoids two used-uninitialized warnings.
78273 2009-11-21  Jim Meyering  <meyering@redhat.com>
78275         c-stack: avoid "ignoring return value of `write'" warning
78276         * lib/c-stack.c: Include "ignore-value.h".
78277         (die): Explicitly ignore each write return value.
78278         * modules/c-stack (Depends-on): Add ignore-value.
78280 2009-11-21  Bruno Haible  <bruno@clisp.org>
78282         diffseq: reduce scope of variable 'best'.
78283         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
78284         variable, earlier used for two different purposes.
78286 2009-11-21  Jim Meyering  <meyering@redhat.com>
78288         diffseq: remove useless assignment to "best"
78289         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
78290         assignment.  At that point "best" is already guaranteed to be zero.
78292 2009-11-20  Eric Blake  <ebb9@byu.net>
78294         build: mention ftp redirector in release announcements
78295         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
78296         values that used to come from cfg.mk; mention FTP redirect URL.
78297         * build-aux/announce-gen: Mention the mirror list.
78298         Suggested by Karl Berry.
78300         nanosleep: improve port to mingw
78301         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
78302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
78303         LIB_NANOSLEEP, but only when needed.
78304         * modules/select (Link): Document LIBSOCKET.
78305         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
78306         enough.
78308         nanosleep: work around cygwin bug
78309         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
78310         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
78311         bug.
78312         (getnow): Delete, not needed.
78313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
78314         LIB_CLOCK_GETTIME.
78315         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
78316         clock-time, gettime.
78317         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
78318         bug.
78319         * modules/nanosleep-tests: New test.
78320         * tests/test-nanosleep.c: New file.
78322         sleep: work around cygwin bug
78323         * lib/sleep.c (rpl_sleep): Work around the bug.
78324         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
78325         (gl_PREREQ_SLEEP): Delete unused macro.
78326         * modules/sleep (Depends-on): Add verify.
78327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78328         * modules/unistd (Makefile.am): Substitute witness.
78329         * lib/unistd.in.h (sleep): Update prototype.
78330         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78331         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78332         * modules/sleep-tests (Depends-on): Check for alarm.
78334 2009-11-20  Jim Meyering  <meyering@redhat.com>
78336         maint.mk: improve sc_prohibit_magic_number_exit
78337         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78338         so it does not match uses like System.exit(1).
78339         Add comments showing how to correct all offenders.
78341 2009-11-19  Eric Blake  <ebb9@byu.net>
78343         xalloc-die-tests: add missing library
78344         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78346         test-xvasprintf: silence compiler warnings
78347         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78348         empty string from gcc.
78350 2009-11-19  Jim Meyering  <meyering@redhat.com>
78352         xfreopen: new module, from coreutils
78353         * modules/xfreopen: New module.
78354         * lib/xfreopen.c: New file.
78355         * lib/xfreopen.h: New file.
78356         * MODULES.html.sh (File stream based Input/Output"): Add it.
78358 2009-11-19  Eric Blake  <ebb9@byu.net>
78360         manywarnings: depend on warnings
78361         * modules/manywarnings (Depends-on): Add warnings.
78363         build: avoid compiler warnings
78364         * lib/select.c (rpl_select): Delete unused variable.
78365         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78367 2009-11-18  Eric Blake  <ebb9@byu.net>
78369         tests: avoid false negative with --with-packager
78370         * tests/test-version-etc.sh: Discard packager information.
78371         * tests/test-argp-version-etc-1.sh: Likewise.
78372         Reported by Mike Frysinger.
78374         utimens: fix regression on Solaris
78375         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78376         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78377         can only change fd timestamps via futimesat.  Instead, use an
78378         additional witness macro to avoid BSD bug.
78379         Reported by Jim Meyering.
78381 2009-11-17  Eric Blake  <ebb9@byu.net>
78383         usleep: use it to simplify tests
78384         * modules/stat-time-tests (Depends-on): Add usleep.
78385         (configure.ac): Drop usleep check.
78386         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78387         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78388         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78389         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78390         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78391         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78392         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78393         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78394         Likewise.
78395         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78396         * tests/test-lchown.h (nap): Likewise.
78397         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78398         * tests/test-stat-time.c (nap): Likewise.
78399         * tests/test-utimens-common.h (nap): Update comments.
78401         usleep: new module
78402         * modules/usleep: New file.
78403         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78404         * lib/usleep.c (usleep): Likewise.
78405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78406         * modules/unistd (Makefile.am): Substitute witnesses.
78407         * lib/unistd.in.h (usleep): Add declaration.
78408         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78409         * MODULES.html.sh (Date and time): Likewise.
78410         * modules/usleep-tests (Depends-on): New test.
78411         * tests/test-usleep.c: New file.
78413         chown: work around OpenBSD bug
78414         * lib/chown.c (rpl_chown): Work around the bug.
78415         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78416         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78417         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78418         * modules/chown (Depends-on): Add stdbool.
78419         * modules/lchown (Depends-on): Likewise.
78420         * doc/posix-functions/chown.texi (chown): Document the bug.
78421         * doc/posix-functions/lchown.texi (lchown): Likewise.
78422         * tests/test-lchown.h (test_chown): Relax test.
78424         mkstemp: avoid conflict with C++ keyword template
78425         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78426         * lib/mkostemp.c (mkostemp): Likewise.
78427         * lib/mkostemps.c (mkostemps): Likewise.
78428         * lib/mkstemp.c (mkstemp): Likewise.
78429         * lib/mkstemps.c (mkstemps): Likewise.
78431         xalloc-die-tests: optimize
78432         * tests/test-xalloc-die.sh: Reduce number of processes.
78434 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78436         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78437         patch from ludo@gnu.org (Ludovic Courtès).
78439 2009-11-17  Jim Meyering  <meyering@redhat.com>
78441         version-etc: use proper license string
78442         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78443         * modules/version-etc-fsf: Likewise.
78445 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78447         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78448         printed to stdout.  Deal with EOL differences.
78450 2009-11-17  Eric Blake  <ebb9@byu.net>
78452         unsetenv: work around Solaris bug
78453         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78454         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78455         Reported by Jim Meyering.
78457         vasnprintf: avoid compiler warnings
78458         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78459         variables.
78460         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78462 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78464         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78465         settings since xalloc-die is no longer the self test,
78466         xalloc-die.sh is.
78468 2009-11-17  Jim Meyering  <meyering@redhat.com>
78470         test-xalloc-die.sh: make the code agree with the commit log
78471         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78472         at the end, just in case you happen to have a test-xalloc-die
78473         program in some other PATH directory.
78475         test-xalloc-die.sh: fix a portability bug
78476         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78477         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78478         Otherwise, argv[0] (as often seen in diagnostics) would be too
78479         system-dependent, sometimes with, and sometimes without the leading "./".
78481         version-etc-fsf: relax license to LGPLv3+
78482         * modules/version-etc-fsf (License): Relax license.
78484 2009-11-16  Eric Blake  <ebb9@byu.net>
78486         xalloc-die-tests: avoid printing null pointer
78487         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78488         shell script.
78489         * tests/test-xalloc-die.c (program_name): Declare.
78490         * tests/test-xalloc-die.sh (tmpfiles): New file.
78492         setenv, unsetenv: work around various bugs
78493         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78494         (setenv) [HAVE_SETENV]: Work around bugs.
78495         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78496         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78497         for bugs.
78498         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78499         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78501         * modules/stdlib (Makefile.am): Update substitutions.
78502         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78503         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78504         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78505         * modules/setenv-tests: New test.
78506         * modules/unsetenv-tests: Likewise.
78507         * tests/test-setenv.c: New file.
78508         * tests/test-unsetenv.c: Likewise.
78510 2009-11-16  Jim Meyering  <meyering@redhat.com>
78512         version-etc: relax license to LGPLv3+
78513         * modules/version-etc (License): Relax license.
78515         better AC_REQUIRE expanded-before-required-warning avoidance
78516         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78517         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78518         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78519         which is no longer needed.
78521 2009-11-16  Eric Blake  <ebb9@byu.net>
78523         test-freading: clean up temporary file
78524         * tests/test-freading.c (main): Remove file on success, and use
78525         ASSERT more liberally.
78526         Reported by Jim Meyering.
78528 2009-11-16  Jim Meyering  <meyering@redhat.com>
78530         avoid new AC_REQUIRE expanded-before-required warnings
78531         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78532         merely using it.
78533         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78534         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78536 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78538         * tests/test-xalloc-die.c: New file.
78539         * modules/xalloc-die-tests: New file.
78540         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78541         XFAIL_TESTS so it can be appended by modules.
78543 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78545         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78546         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78548 2009-11-14  Eric Blake  <ebb9@byu.net>
78550         fnmatch: avoid compiler warning
78551         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78552         to silence compiler warning about mismatch signedness in ?:.
78553         Reported by Robert Millan.
78555         intprops: add double-inclusion guard
78556         * lib/intprops.h: Allow idempotent includes.
78557         Suggested by Bruce Korb.
78559         openat: detect Solaris fchownat bug
78560         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78561         penalizing glibc chownat when only lchownat is broken.
78562         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78563         trailing slash bugs.
78564         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78565         * modules/openat-tests (Files): Include more files.
78566         (Depends-on): Add mgetgroups, sleep, stat-time.
78567         (configure.ac): Add additional checks.
78568         (Makefile.am): Build new test.
78569         * tests/test-fchownat.c: New file.
78571         lchown: detect Solaris and FreeBSD bug
78572         * lib/lchown.c (rpl_lchown): Work around bug.
78573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78575         * modules/unistd (Makefile.am): Populate it.
78576         * lib/unistd.in.h (lchown): Update declaration.
78577         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78578         * modules/lchown-tests: New file.
78579         * tests/test-lchown.h (test_lchown): Likewise.
78580         * tests/test-lchown.c (main): Likewise.
78582         chown: detect Solaris and FreeBSD bug
78583         * lib/chown.c (rpl_chown): Work around bug.
78584         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78585         (gl_PREREQ_CHOWN): Delete.
78586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78587         * modules/unistd (Makefile.am): Populate it.
78588         * lib/unistd.in.h (chown): Update declaration.
78589         * lib/lchown.c (chown): Update client.
78590         * modules/lchown (Depends-on): Add lstat.
78591         * doc/posix-functions/chown.texi (chown): Document the bug.
78592         * doc/posix-functions/getgroups.texi (getgroups): Document
78593         getgroups pitfall.
78594         * modules/chown-tests: New file.
78595         * tests/test-chown.h (test_chown): Likewise.
78596         * tests/test-chown.c (main): Likewise.
78598 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78600         gnulib-tool: correctly detect absence of m4 directories
78601         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78603 2009-11-14  Jim Meyering  <meyering@redhat.com>
78605         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78606         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78608 2009-11-14  John W. Eaton  <jwe@gnu.org>
78610         strftime.h: wrap function declaration in extern "C" block
78611         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78613 2009-11-13  Eric Blake  <ebb9@byu.net>
78615         getgroups: avoid compiler warning
78616         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78618         getgroups: work around FreeBSD bug
78619         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78620         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78621         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78622         * tests/test-getgroups.c (main): Fix buffer overrun.
78624         getgroups: avoid compilation failure
78625         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78626         * modules/getgroups (Depends-on): Add stdint.
78628 2009-11-13  Jim Meyering  <meyering@redhat.com>
78630         test-getgroups: avoid compilation failure
78631         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78633 2009-11-13  Eric Blake  <ebb9@byu.net>
78635         mgetgroups: new module, taken from coreutils
78636         * modules/mgetgroups: New file.
78637         * lib/mgetgroups.h: Likewise.
78638         * lib/mgetgroups.c (mgetgroups): Likewise.
78639         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78640         * MODULES.html.sh (Users and groups): Mention it.
78642         getgroups: don't expose GETGROUPS_T to user
78643         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78644         an element at a time if GETGROUPS_T is wrong size.
78645         * lib/getugroups.h (getugroups): Change signature.
78646         * lib/unistd.in.h (getgroups): Likewise.
78647         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78648         signature needs fixing.
78649         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78650         AC_TYPE_GETGROUPS.
78651         * modules/group-member (Depends-on): Add getgroups.
78652         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78653         (group_member): Rely on getgroups replacement.
78654         * lib/getugroups.c (getugroups): Use gid_t.
78655         * tests/test-getgroups.c (main): Likewise.
78656         * NEWS: Mention the signature change.
78657         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78658         problem with signature.
78659         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78660         GETGROUPS_T is still useful for setgroups.
78662         getgroups, getugroups: provide stubs for mingw
78663         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78664         * lib/getugroups.c (getugroups): Likewise.
78665         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78666         function.  Modernize replacement scheme.
78667         (gl_PREREQ_GETGROUPS): Delete.
78668         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78669         * modules/getgroups (configure.ac): Declare witness.
78670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78671         * modules/unistd (Depends-on): Substitute witness.
78672         * lib/unistd.in.h (getgroups): Declare replacement.
78674         getgroups: avoid calling exit
78675         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78676         drop xalloc.
78677         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78678         dependencies.
78679         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78680         exiting, in the rare case of malloc failure.
78682         getgroups: fix logic error
78683         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78684         has more than 20 groups.
78685         * modules/getgroups-tests: New test.
78686         * tests/test-getgroups.c: New file.
78688 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78690         * tests/test-base64.c: Improve.
78692 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78694         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78695         Blake <ebb9@byu.net>.
78697 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78699         * tests/test-xvasprintf.c: Add %s%s related checks.
78701 2009-11-12  Eric Blake  <ebb9@byu.net>
78703         version-etc: match standards.texi style
78704         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78705         and use <> only for URLs.
78707 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78709         fts: do not fail on a submount during traversal
78710         * lib/fts.c (fts_build): Read the stat info again after opening
78711         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78712         Original report at http://bugzilla.redhat.com/501848.
78714 2009-11-12  Jim Meyering  <meyering@redhat.com>
78716         bootstrap: sync from coreutils
78717         * build-aux/bootstrap (bootstrap_epilogue): New function.
78718         Use git_modules_config in one more place.  This make bootstrap's
78719         --gnulib-srcdir option more useful for testing.
78721         bootstrap: generalize autoheader check
78722         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78723         AC_CONFIG_HEADERS.
78725 2009-11-11  Eric Blake  <ebb9@byu.net>
78727         mkfifoat: use new modules for Solaris and BSD bugs
78728         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78729         * lib/mkfifoat.c (mknodat): Split...
78730         * lib/mknodat.c (mknodat): ...into new file.
78731         * modules/mkfifoat (Files): Ship new file.
78732         (Depends-on): Add mkfifo, mknod.
78733         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78734         (Depends-on): Add symlink.
78735         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78736         redundant with test_mkfifo.h.
78737         (do_mkfifoat, do_mknodat): New helpers.
78739         mknod: new module
78740         * modules/mknod: New file.
78741         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78742         * lib/mknod.c (mknod): Likewise.
78743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78744         defaults.
78745         * modules/sys_stat (Makefile.am): Substitute them.
78746         * lib/sys_stat.in.h (mknod): Declare replacement.
78747         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78748         Document it.
78749         * doc/posix-functions/mknod.texi (mknod): Likewise.
78750         * modules/mknod-tests: New test.
78751         * tests/test-mknod.c: Likewise.
78753         mkfifo: new module
78754         * modules/mkfifo: New file.
78755         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78756         * lib/mkfifo.c (mkfifo): Likewise.
78757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78758         defaults.
78759         * modules/sys_stat (Makefile.am): Substitute them.
78760         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78761         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78762         Document it.
78763         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78764         * modules/mkfifo-tests: New test.
78765         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78766         from test-mkfifoat.c.
78767         * tests/test-mkfifo.c: New file.
78769         readlink: detect FreeBSD bug
78770         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78771         slash on symlink.
78772         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78773         * tests/test-readlink.h (test_readlink): Enhance test.
78775         symlink: detect FreeBSD bug
78776         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78777         slash on symlink.
78778         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78779         * tests/test-symlink.h (test_symlink): Enhance test.
78781 2009-11-10  Eric Blake  <ebb9@byu.net>
78783         link: detect FreeBSD bug
78784         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78785         symlink.
78786         * doc/posix-functions/link.texi (link): Document the bug.
78787         * tests/test-link.h (test_link): Enhance test.
78788         * tests/test-linkat.c (main): Update caller.
78790         unlink, remove: detect FreeBSD bug
78791         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78792         slash on symlink.
78793         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78794         * doc/posix-functions/remove.texi (remove): Likewise.
78795         * tests/test-unlink.h (test_unlink): Enhance test.
78796         * tests/test-remove.c (main): Likewise.
78798 2009-11-09  Eric Blake  <ebb9@byu.net>
78800         rename: detect FreeBSD bug
78801         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78802         slash on symlink.
78803         * modules/renameat-tests (Depends-on): Add filenamecat.
78804         * tests/test-rename.h (test_rename): Allow one more errno.
78805         * tests/test-renameat.c (main): Likewise.
78806         * doc/posix-functions/rename.texi (rename): Document the bug.
78808         open: detect FreeBSD bug
78809         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78810         symlink.
78811         * doc/posix-functions/open.texi (open): Document the bug.
78812         * doc/posix-functions/utimes.texi (utimes): Likewise.
78813         * tests/test-open.h (test_open): Add parameters, and test symlink
78814         handling.
78815         * tests/test-open.c (main): Adjust caller.
78816         * tests/test-fcntl-safer.c (main): Likewise.
78817         * modules/open-tests (Depends-on): Add stdbool, symlink.
78818         * modules/fcntl-safer-tests (Depends-on): Likewise.
78819         * tests/test-openat.c (main): Add test-open tests.
78821         stat: detect FreeBSD bug
78822         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78823         symlink.
78824         * doc/posix-functions/stat.texi (stat): Document the bug.
78825         * tests/test-stat.h (test_stat_func): Add argument.
78826         * tests/test-stat.c (main): Adjust caller.
78827         * tests/test-fstatat.c (main): Likewise.
78828         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78829         Reported by Jim Meyering.
78831 2009-11-09  James Youngman  <jay@gnu.org>
78833         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78834         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78836 2009-11-08  Jim Meyering  <meyering@redhat.com>
78838         utimens: remove invalid futimesat call
78839         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78840         It used the file descriptor of the target file as the DIR_FD
78841         parameter and NULL as the file name.  That caused failure with
78842         errno == EFAULT on FreeBSD-8.0-rc2
78844 2009-11-07  Eric Blake  <ebb9@byu.net>
78846         fflush, freadseek: use fseeko, not fseek
78847         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78848         (clear_ungetc_buffer): Avoid potential problems on large files.
78849         * lib/freadseek.c (freadseek): Likewise.
78850         * modules/freadseek (Depends-on): Add fseeko.
78851         * modules/fseek (configure.ac): Set a witness.
78852         * tests/test-fflush.c (main): Use fseeko.
78853         * tests/test-fpurge.c (fseek): Disable link warning.
78854         * tests/test-freadable.c (fseek): Likewise.
78855         * tests/test-freading.c (fseek): Likewise.
78856         * tests/test-fseeko.c (fseek): Likewise.
78857         * tests/test-ftell.c (fseek): Likewise.
78858         * tests/test-ftello.c (fseek): Likewise.
78859         * tests/test-fwritable.c (fseek): Likewise.
78860         * tests/test-fwriting.c (fseek): Likewise.
78862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78864         * modules/memchr (Depends-on): Drop getpagesize dependency.
78866 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78868         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78869         Reported by Ludovic Courtès.
78870         * build-aux/pmccabe2html: Improve example usage.
78871         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78873 2009-11-06  Jim Meyering  <meyering@redhat.com>
78875         do-release-commit-and-tag: New module.
78876         Automate the release-commit and tag process.
78877         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78878         * modules/do-release-commit-and-tag: New file.
78879         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78881 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78883         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78884         because test-select.c uses inet_pton.
78886 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78888         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78889         GETADDRINFO_LIB.  Bump serial number.
78890         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78891         Suggested by Eric Blake <ebb9@byu.net>.
78893 2009-11-05  Eric Blake  <ebb9@byu.net>
78895         strtod: detect darwin bug
78896         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78897         Reported by Leo Davis.
78899         freopen-safer: new module
78900         * modules/freopen-safer: New module.
78901         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78902         * lib/freopen-safer.c (freopen_safer): New file.
78903         * lib/stdio-safer.h (freopen_safer): New declaration.
78904         * lib/stdio--.h (freopen): New override.
78905         * MODULES.html.sh (File stream based Input/Output): Mention it.
78906         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78907         freopen-safer module.
78908         * doc/posix-functions/stderr.texi (stderr): Likewise.
78909         * doc/posix-functions/stdin.texi (stdin): Likewise.
78910         * doc/posix-functions/stdout.texi (stdout): Likewise.
78911         * modules/freopen-safer-tests: New test.
78912         * tests/test-reopen-safer.c: New file.
78914 2009-11-05  Jim Meyering  <meyering@redhat.com>
78916         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78917         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78919 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78921         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78923 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78925         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78927 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78929         Fix link error.
78930         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78931         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78933 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78935         * tests/test-func.c: Also test value of __func__.
78937 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78939         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78940         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78942 2009-11-05  Bruno Haible  <bruno@clisp.org>
78944         Fix link error.
78945         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78946         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78947         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78949 2009-11-05  Bruno Haible  <bruno@clisp.org>
78951         Tests for module 'inet_pton'.
78952         * modules/inet_pton-tests: New file.
78953         * tests/test-inet_pton.c: New file.
78955 2009-11-05  Bruno Haible  <bruno@clisp.org>
78957         Tests for module 'inet_ntop'.
78958         * modules/inet_ntop-tests: New file.
78959         * tests/test-inet_ntop.c: New file.
78961 2009-11-04  Eric Blake  <ebb9@byu.net>
78963         stdlib-safer: wrap all mkstemp variants
78964         * modules/mkostemp (configure.ac): Set witness.
78965         * modules/mkostemps (configure.ac): Likewise.
78966         * modules/mkstemps (configure.ac): Likewise.
78967         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78968         (mkstemps_safer): Wrap more functions.
78969         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78970         wrapping.
78971         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78972         (mkstemps_safer): Implement the wrappers.
78974         mkstemps, mkostemps: new modules
78975         * modules/mkostemps: New module.
78976         * modules/mkstemps: Likewise.
78977         * lib/mkostemps.c (mkostemps): New file.
78978         * lib/mkstemps.c (mkstemps): Likewise.
78979         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78980         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78982         * modules/stdlib (Makefile.am): Substitute them.
78983         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78984         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78985         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78986         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78987         * MODULES.html.sh (File system functions): Mention them.
78989         tempname: resync from glibc
78990         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78991         same values for __GT_FILE as glibc.  Abort even when assertions
78992         are disabled.
78993         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78994         match its value otherwise.  Allow idempotent inclusion.
78995         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78996         * lib/mkostemp.c (mkostemp): Likewise.
78997         * lib/mkstemp.c (mkstemp): Likewise.
78998         * lib/tmpfile.c (tmpfile): Likewise.
78999         * NEWS: Document this.
79001         utimens: fix use of futimens on older Linux
79002         * lib/utimens.c (fdutimens): Use updated, rather than original,
79003         timespec to avoid bug in older Linux kernel.
79004         Reported by Simon Josefsson.
79006 2009-11-04  Bruno Haible  <bruno@clisp.org>
79008         Make num_processors more flexible and consistent.
79009         * lib/nproc.h (enum nproc_query): New type.
79010         (num_processors): Add a 'query' argument.
79011         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
79012         (num_processors): Add a 'query' argument. Test the value of the
79013         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
79014         mingw, count the number of CPUs available for the current process.
79015         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
79016         Check for sched_getaffinity and sched_getaffinity_np.
79017         * modules/nproc (Depends-on): Add c-ctype, extensions.
79018         * NEWS: Mention the change.
79020 2009-11-03  Bruno Haible  <bruno@clisp.org>
79022         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
79024 2009-11-03  Jim Meyering  <meyering@redhat.com>
79026         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
79027         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
79028         if it is defined.
79030 2009-11-02  Eric Blake  <ebb9@byu.net>
79032         mktime, timegm: share common declaration
79033         * lib/mktime-internal.h: New file.
79034         * lib/mktime.c: Use it rather than open-coding a declaration.
79035         * lib/timegm.c: Likewise.
79036         * modules/mktime (Files): Ship it.
79037         * modules/timegm (Files): Likewise.
79038         Suggested by Bruno Haible.
79040         test-update-copyright: update test to match script changes
79041         * tests/test-update-copyright.sh: Avoid hard-coding perl
79042         location.  Don't update *.bak created by earlier runs.
79044 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79045             Simon Josefsson  <simon@josefsson.org>
79046             Bruno Haible  <bruno@clisp.org>
79048         Fix link error on Solaris 8.
79049         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
79050         also in libnsl. Define also INET_PTON_LIB.
79051         * modules/inet_pton (Link): New section.
79053 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79054             Bruno Haible  <bruno@clisp.org>
79056         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
79057         * modules/inet_ntop (Link): New section.
79058         Reported by Boyan Kasarov <bkasarov@gmail.com>.
79060 2009-11-02  Eric Blake  <ebb9@byu.net>
79062         maint: avoid compiler warnings in m4 macros
79063         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
79064         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
79066 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79068         * m4/pmccabe2html.m4: Remove file.
79069         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
79070         function.  Change maintainer.
79071         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
79072         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
79073         Courtès).
79075 2009-10-31  Eric Blake  <ebb9@byu.net>
79077         fseeko: fix m4 regression
79078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
79079         regression from 2009-10-27.
79080         Reported by Ralf Wildenhues.
79082 2009-10-31  Jim Meyering  <meyering@redhat.com>
79084         inttostr: aesthetics and improved (compile-time) safety
79085         Define inttype_is_signed rather than inttype_is_unsigned,
79086         since the sole use is via "#if inttype_is_signed".
79087         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
79088         inttype_is_unsigned.
79089         * lib/offtostr.c (inttype_is_signed): Likewise.
79090         * lib/uinttostr.c (inttype_is_signed): Likewise.
79091         * lib/umaxtostr.c (inttype_is_signed): Likewise.
79092         * lib/inttostr.c (inttostr): Use verify to cross-check the
79093         inttype_is_signed value and the signedness of the actual type.
79094         * modules/inttostr (Depends-on): Add verify.
79096 2009-10-30  Eric Blake  <ebb9@byu.net>
79098         build: avoid compiler warnings
79099         * lib/fchmodat.c (lchmod): Mark unused variables.
79100         * lib/getopt.c (_getopt_initialize): Likewise.
79101         * lib/mktime.c (__mktime_internal): Provide prototype.
79102         * lib/inttostr.c (inttostr): Avoid compiler warning even with
79103         older gcc that do not understand #pragma GCC diagnostic.
79104         * lib/uinttostr.c (inttype_is_unsigned): Define.
79105         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
79107 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
79109         stat: fix compilation on AIX
79110         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
79111         only see struct stat64.
79113 2009-10-30  Eric Blake  <ebb9@byu.net>
79115         exclude: make more robust
79116         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
79117         rather than masking a coding bug.
79118         Suggested by Bruno Haible.
79120 2009-10-30  Jim Meyering  <meyering@redhat.com>
79122         perl scripts: remove #!/usr/bin/perl in favor of more portable...
79123         Rather than putting #!/usr/bin/perl on the first line,
79124         start with a variant of what's recommended by "man perlrun" that
79125         invokes the first "perl" program from your shell's search path.
79126         * build-aux/gitlog-to-changelog: Replace #!... as above.
79127         Add a "Local Variables" perl mode setting.
79128         Prompted by a patch from Ludovic Courtès.
79129         Improved by Eric Blake.
79130         * build-aux/useless-if-before-free: Likewise.
79131         * build-aux/announce-gen: Likewise.
79132         * build-aux/update-copyright: Likewise.
79134 2009-10-29  Eric Blake  <ebb9@byu.net>
79136         filenamecat-lgpl: adjust clients
79137         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
79138         filenamecat.
79139         * modules/renameat (Depends-on): Likewise.
79141         filenamecat: split into filenamecat-lgpl
79142         * modules/filenamecat-lgpl: New module.
79143         * modules/filenamecat (Files): Move library-safe files into
79144         filenamecat-lgpl.
79145         (Depends-on): Add filenamecat-lgpl.
79146         (configure.ac): Declare witness.
79147         * lib/filenamecat.h (file_name_concat): Only declare when using
79148         GPL module.
79149         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
79150         Move...
79151         * lib/filenamecat-lgpl.c: ...into new file.
79152         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
79153         (gl_FILE_NAME_CONCAT): Use it.
79154         * MODULES.html.sh (File system functions): Mention new module.
79156         argp: avoid memory leak
79157         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
79158         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
79159         base_name, since the latter malloc()s and can call exit().
79160         Leak introduced 2006-07-03.
79162         dirname-lgpl: adjust clients that don't need full dirname
79163         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
79164         * modules/filenamecat (Depends-on): Likewise.
79165         * modules/linkat (Depends-on): Likewise.
79166         * modules/mkancesdirs (Depends-on): Likewise.
79167         * modules/mkdir (Depends-on): Likewise.
79168         * modules/openat (Depends-on): Likewise.
79169         * modules/savewd (Depends-on): Likewise.
79170         * modules/rename (Depends-on): Likewise.
79171         (License): Relax license.
79172         * modules/mkdir-tests (Depends-on): Drop progname.
79173         (Makefile.am): Delete unneeded LDADD.
79174         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
79176         dirname: split into dirname-lgpl
79177         * modules/dirname-lgpl: New module.
79178         * modules/dirname (Files): Move library-safe files into
79179         dirname-lgpl.
79180         (Depends-on): Add dirname-lgpl.
79181         (configure.ac): Declare witness.
79182         * modules/double-slash-root (License): Relax license.
79183         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
79184         module.
79185         * lib/dirname.c (dir_len, mdir_name): Move...
79186         * lib/dirname-lgpl.c: ...into new file.
79187         * lib/basename.c (last_component, base_len): Move...
79188         * lib/basename-lgpl.c: ...into new file.
79189         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
79190         (gl_DIRNAME): Use it.
79191         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
79192         Mention new module.
79193         * modules/dirname-tests (Depends-on): Add progname.
79194         * tests/test-dirname.c (program_name): Delete.
79196         mkdir: make safe for libraries
79197         * modules/mkdir (Depends-on): Drop xalloc.
79198         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
79199         exit.
79201         tests: avoid some compiler warnings
79202         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
79203         literals.
79204         * tests/test-memchr.c (main): Avoid type mismatch.
79205         * tests/test-arpa_inet.c (main): Avoid unused parameters.
79206         * tests/test-base64.c (main): Likewise.
79207         * tests/test-getdelim.c (main): Likewise.
79208         * tests/test-gethostname.c (main): Likewise.
79209         * tests/test-getline.c (main): Likewise.
79210         * tests/test-netinet_in.c (main): Likewise.
79211         * tests/test-select.c (open_server_socket, main): Likewise.
79212         * tests/test-select-stdin.c (main): Likewise.
79213         * tests/test-sockets.c (main): Likewise.
79214         * tests/test-strsignal.c (main): Likewise.
79215         * tests/test-sys_select.c (main): Likewise.
79216         * tests/test-sys_socket.c (main): Likewise.
79217         * tests/test-u64.c (main): Likewise.
79218         * tests/test-xfprintf-posix.c (main): Likewise.
79219         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
79221         sockets: avoid compiler warning
79222         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
79224         maint: detect usage(1) and other suspicious exits
79225         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
79227 2009-10-29  Jim Meyering  <meyering@redhat.com>
79229         timespec: long-to-int truncation could make timespec_cmp malfunction
79230         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
79231         a multiple of 2^32 nanoseconds as no difference.
79233 2009-10-28  Jim Meyering  <meyering@redhat.com>
79235         fprintftime: wrap macro code argument in "do {...} while(0)"
79236         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
79237         cpy macro must be a statement that can be followed by a semicolon.
79238         Now that the else clause contains a comment and is hence longer
79239         than one line, I require curly braces.  That in turn requires
79240         that we wrap this code block in the standard do...while(0).
79242         fprintftime: remove stray semicolon from previous change
79243         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
79245         fprintftime: avoid a warning about ignored fwrite return value
79246         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
79247         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
79248         that is unsafe.
79249         * modules/fprintftime (Depends-on): Add ignore-value.
79251         exclude: avoid an unwarranted warning
79252         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
79254 2009-10-27  Eric Blake  <ebb9@byu.net>
79256         fseek: avoid compilation failure when fflush is replaced
79257         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
79258         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
79259         module is in use.
79260         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
79261         module is not in use; since REPLACE_FSEEK worked otherwise.
79262         (GNULIB_FTELLO): Likewise for ftell.
79263         Reported by Ian Beckwith and others.
79265 2009-10-27  Bruno Haible  <bruno@clisp.org>
79267         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
79268         Reported by Jim Meyering.
79270 2009-10-27  Jim Meyering  <jim@meyering.net>
79271             Bruno Haible  <bruno@clisp.org>
79273         Avoid warning despite dropping the return value of fwrite.
79274         * lib/unicodeio.c: Include ignore-value.h.
79275         (fwrite_success_callback): Explicitly ignore fwrite's return value.
79276         * modules/unicodeio (Depends-on): Add ignore-value.
79278 2009-10-26  Eric Blake  <ebb9@byu.net>
79280         areadlinkat: fix fallback path
79281         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
79282         pointer and zero.
79284 2009-10-22  Pádraig Brady  <P@draigBrady.com>
79286         Use a better IO block size for modern systems
79287         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
79288         * lib/md2.c: Likewise.
79289         * lib/md4.c: Likewise.
79290         * lib/md5.c: Likewise.
79291         * lib/sha1.c: Likewise.
79292         * lib/sha256.c: Likewise.
79293         * lib/sha512.c: Likewise.
79295 2009-10-22  Eric Blake  <ebb9@byu.net>
79297         tests: avoid several compiler warnings
79298         * tests/test-getcwd.c (main): Avoid buffer underflow.
79299         * tests/test-getdate.c (main): String literals are not safe with
79300         putenv, so use setenv.  Declare unused argument.
79301         * modules/getdate-tests (Depends-on): Add setenv.
79302         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
79303         problems with string literals in char *.
79304         * tests/test-hash.c (main): Avoid shadowing declaration.
79305         (insert_new): Treat string literals as char const *.
79306         * tests/test-getopt.h (test_getopt): Likewise.
79307         (getopt_loop): Alter types to minimize casting elsewhere.
79308         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
79309         (test_getopt_long_posix): Likewise.
79310         (do_getopt_long): Add wrapper to minimize casting.
79311         * tests/test-atexit.c (clear_temp_file): Use void.
79312         * tests/test-areadlink-with-size.c (main): Declare unused
79313         arguments.
79314         * tests/test-areadlink.c (main): Likewise.
79315         * tests/test-areadlinkat-with-size.c (main): Likewise.
79316         * tests/test-areadlinkat.c (main): Likewise.
79317         * tests/test-canonicalize-lgpl.c (main): Likewise.
79318         * tests/test-canonicalize.c (main): Likewise.
79319         * tests/test-dirent-safer.c (main): Likewise.
79320         * tests/test-dirname.c (main): Likewise.
79321         * tests/test-dup2.c (main): Likewise.
79322         * tests/test-fchdir.c (main): Likewise.
79323         * tests/test-fcntl-h.c (main): Likewise.
79324         * tests/test-fcntl-safer.c (main): Likewise.
79325         * tests/test-fdopendir.c (main): Likewise.
79326         * tests/test-fdutimensat.c (main): Likewise.
79327         * tests/test-fflush.c (main): Likewise.
79328         * tests/test-filenamecat.c (main): Likewise.
79329         * tests/test-filevercmp.c (main): Likewise.
79330         * tests/test-fopen-safer.c (main): Likewise.
79331         * tests/test-fopen.c (main): Likewise.
79332         * tests/test-fpending.c (main): Likewise.
79333         * tests/test-fpurge.c (main): Likewise.
79334         * tests/test-freading.c (main): Likewise.
79335         * tests/test-fstatat.c (main): Likewise.
79336         * tests/test-fsync.c (main): Likewise.
79337         * tests/test-futimens.c (main): Likewise.
79338         * tests/test-getndelim2.c (main): Likewise.
79339         * tests/test-gettimeofday.c (main): Likewise.
79340         * tests/test-getopt.c (main): Likewise.
79341         * tests/test-i-ring.c (main): Likewise.
79342         * tests/test-inttypes.c (main): Likewise.
79343         * tests/test-link.c (main): Likewise.
79344         * tests/test-lstat.c (main): Likewise.
79345         * tests/test-math.c (main): Likewise.
79346         * tests/test-md5.c (main): Likewise.
79347         * tests/test-memchr2.c (main): Likewise.
79348         * tests/test-memrchr.c (main): Likewise.
79349         * tests/test-mkdir.c (main): Likewise.
79350         * tests/test-mkdirat.c (main): Likewise.
79351         * tests/test-mkfifoat.c (main): Likewise.
79352         * tests/test-open.c (main): Likewise.
79353         * tests/test-openat-safer.c (main): Likewise.
79354         * tests/test-openat.c (main): Likewise.
79355         * tests/test-quotearg.c (main): Likewise.
79356         * tests/test-rawmemchr.c (main): Likewise.
79357         * tests/test-readlink.c (main): Likewise.
79358         * tests/test-remove.c (main): Likewise.
79359         * tests/test-rename.c (main): Likewise.
79360         * tests/test-renameat.c (main): Likewise.
79361         * tests/test-rmdir.c (main): Likewise.
79362         * tests/test-sha1.c (main): Likewise.
79363         * tests/test-signal.c (main): Likewise.
79364         * tests/test-sigaction.c (main): Likewise.
79365         * tests/test-stat.c (main): Likewise.
79366         * tests/test-stat-time.c (main): Likewise.
79367         * tests/test-stddef.c (main): Likewise.
79368         * tests/test-stdint.c (main): Likewise.
79369         * tests/test-stdio.c (main): Likewise.
79370         * tests/test-stdlib.c (main): Likewise.
79371         * tests/test-strchrnul.c (main): Likewise.
79372         * tests/test-strerror.c (main): Likewise.
79373         * tests/test-string.c (main): Likewise.
79374         * tests/test-strtod.c (main): Likewise.
79375         * tests/test-strverscmp.c (main): Likewise.
79376         * tests/test-symlink.c (main): Likewise.
79377         * tests/test-symlinkat.c (main): Likewise.
79378         * tests/test-sys_stat.c (main): Likewise.
79379         * tests/test-sys_time.c (main): Likewise.
79380         * tests/test-time.c (main): Likewise.
79381         * tests/test-unistd.c (main): Likewise.
79382         * tests/test-unlink.c (main): Likewise.
79383         * tests/test-unlinkat.c (main): Likewise.
79384         * tests/test-utimens.c (main): Likewise.
79385         * tests/test-utimensat.c (main): Likewise.
79386         * tests/test-version-etc.c (main): Likewise.
79387         * tests/test-wchar.c (main): Likewise.
79388         * tests/test-wctype.c (main): Likewise.
79389         * tests/test-xprintf-posix.c (main): Likewise.
79390         * tests/test-posixtm.c (main): Likewise.
79391         (STREQ): Delete unused macro.
79392         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79393         shadowed variables.
79394         * tests/test-memchr.c (main): Likewise.
79396 2009-10-21  Eric Blake  <ebb9@byu.net>
79398         areadlinkat: avoid failure on older glibc
79399         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79400         rather than mis-comparing 0 against FUNC_RESULT of char*.
79402 2009-10-21  Bruno Haible  <bruno@clisp.org>
79404         * modules/stpncpy (License): Relicense under LGPLv2+.
79405         Reported by David Lutterkort <lutter@redhat.com>.
79407 2009-10-20  Eric Blake  <ebb9@byu.net>
79409         utimensat: work around Solaris 9 bug
79410         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79411         has trailing slash bugs.
79412         * tests/test-lutimens.h (test_lutimens): Enhance test.
79413         * tests/test-utimens.h (test_utimens): Likewise.
79414         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79415         * doc/posix-functions/utimes.texi (utimes): Likewise.
79416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79417         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79418         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79419         * doc/posix-functions/futimens.texi (futimens): Likewise.
79421         fdutimensat: new module
79422         * modules/fdutimensat: New file.
79423         * lib/fdutimensat.c (fdutimensat): Likewise.
79424         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79425         * MODULES.html.sh (File system functions): Mention module.
79426         * modules/fdutimensat-tests: New test.
79427         * tests/test-fdutimensat.c: Likewise.
79429         doc: regenerate INSTALL
79430         * doc/INSTALL: Reflect recent autoconf update.
79431         * doc/INSTALL.ISO: Likewise.
79432         * doc/INSTALL.UTF-8: Likewise.
79434 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79436         acl: warn if ACL support is not detected
79437         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79439 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79441         * lib/nproc.h: Add extern "C" block for C++.
79443 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79444             Bruno Haible  <bruno@clisp.org>
79446         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79447         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79448         * doc/posix-functions/isalpha.texi: Likewise.
79449         * doc/posix-functions/isblank.texi: Likewise.
79450         * doc/posix-functions/iscntrl.texi: Likewise.
79451         * doc/posix-functions/isdigit.texi: Likewise.
79452         * doc/posix-functions/isgraph.texi: Likewise.
79453         * doc/posix-functions/islower.texi: Likewise.
79454         * doc/posix-functions/isprint.texi: Likewise.
79455         * doc/posix-functions/ispunct.texi: Likewise.
79456         * doc/posix-functions/isspace.texi: Likewise.
79457         * doc/posix-functions/isupper.texi: Likewise.
79458         * doc/posix-functions/isxdigit.texi: Likewise.
79460 2009-10-18  Bruno Haible  <bruno@clisp.org>
79462         Tests for module 'isblank'.
79463         * modules/isblank-tests: New file.
79464         * tests/test-isblank.c: New file.
79466         New module 'isblank'.
79467         * lib/isblank.c: New file.
79468         * m4/isblank.m4: New file.
79469         * modules/isblank: New file.
79470         * doc/posix-functions/isblank.texi: Mention the new module.
79472 2009-10-18  Bruno Haible  <bruno@clisp.org>
79474         New module 'ctype'.
79475         * lib/ctype.in.h: New file.
79476         * m4/ctype.m4: New file.
79477         * modules/ctype: New file.
79478         * doc/posix-headers/ctype.texi: Mention the new module.
79480 2009-10-18  Jim Meyering  <meyering@redhat.com>
79482         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79483         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79484         right after its initialization, rather than farther down.
79485         Keeping these in close proximity makes it easier to ensure
79486         that each such variable is initialized.  E.g.,
79488             LIB_CLOCK_GETTIME=
79489             AC_SUBST([LIB_CLOCK_GETTIME])
79491         This change also increments these serial numbers.
79492         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79493         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79496 2009-10-18  Bruno Haible  <bruno@clisp.org>
79498         Don't let environment variables perturb build.
79499         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79500         (gl_PREREQ_GETHRXTIME): ... not here.
79502 2009-10-18  Bruno Haible  <bruno@clisp.org>
79504         Avoid symlink attack in localcharset module.
79505         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79506         (O_NOFOLLOW): Define fallback.
79507         (get_charset_aliases): Don't open the file if it is a symbolic link.
79508         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79509         gl_FCNTL_H.
79510         (gl_FCNTL_H): Require it.
79511         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79512         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79513         Reported by Fergal Glynn <fglynn@veracode.com>.
79515 2009-10-18  Bruno Haible  <bruno@clisp.org>
79517         Implement nproc for mingw.
79518         * lib/nproc.c: Include <windows.h>
79519         (num_processors): On native Windows platforms, try GetSystemInfo.
79521 2009-10-18  Bruno Haible  <bruno@clisp.org>
79523         Implement nproc for IRIX.
79524         * lib/nproc.c: Include <sys/sysmp.h>.
79525         (num_processors): On IRIX systems, try sysmp.
79526         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79528 2009-10-18  Bruno Haible  <bruno@clisp.org>
79530         Implement nproc for HP-UX.
79531         * lib/nproc.c: Include <sys/pstat.h>
79532         (num_processors): On HP-UX systems, try pstat_getdynamic.
79533         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79534         pstat_getdynamic.
79536 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79537             Bruno Haible  <bruno@clisp.org>
79539         Implement nproc for NetBSD, OpenBSD.
79540         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79541         (ARRAY_SIZE): New macro.
79542         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79543         * m4/nproc.m4: New file.
79544         * modules/nproc (Files): Add m4/nproc.m4.
79545         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79546         (Makefile.am): Instead, augment lib_SOURCES.
79548 2009-10-18  Bruno Haible  <bruno@clisp.org>
79550         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79551         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79552         sys/param.h.
79554 2009-10-16  Eric Blake  <ebb9@byu.net>
79556         utimensat: new module
79557         * modules/utimensat: New file.
79558         * lib/utimensat.c (utimensat): Likewise.
79559         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79560         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79561         so we can work around Linux bugs.
79562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79563         * modules/sys_stat (Makefile.am): Substitute them.
79564         * lib/sys_stat.in.h (utimensat): Declare it.
79565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79566         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79567         * modules/utimensat-tests: New test.
79568         * tests/test-utimensat.c: Likewise.
79570         utimens: let lutimens work on non-symlinks
79571         * lib/utimens.c (lutimens): Fall back to utimens rather than
79572         failing with ENOSYS, when file is not a symlink.
79573         (utimens): Reduce redirection.
79574         * tests/test-lutimens.h (test_lutimens): Update test to cover
79575         non-symlinks.
79576         * tests/test-utimens.h (test_utimens): Update test to cover
79577         symlinks.
79578         * tests/test-utimens.c (main): Update caller.
79580         utimens: cache whether utimensat syscall works
79581         * lib/utimens.c (utimensat_works_really): New cache variable.
79582         (fdutimens, lutimens): Use it to avoid failing syscall.
79584         test-stat-time, test-utimens: improve portability
79585         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79586         ext4 on alpha, and for cygwin.
79587         * tests/test-utimens-common.h: New file.
79588         (nap): Factor delays into single function.
79589         * tests/test-lutimens.h (test_lutimens): Use new header.
79590         * tests/test-futimens.h (test_futimens): Likewise.
79591         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79592         timestamps to occur from same machine, as was done previously for
79593         test_utimens.
79594         * modules/utimens-tests (Files): Ship new file.
79595         * modules/futimens-tests (Files): Likewise.
79596         Reported in part by Jim Meyering.
79598         sys_stat: sort replacement declarations
79599         * lib/sys_stat.in.h: Sort declarations.
79600         * lib/futimens.c (futimens): Fix typo.
79602 2009-10-15  Jim Meyering  <meyering@redhat.com>
79604         don't let environment settings perturb build
79605         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79606         could cause a configure-time and/or build-time malfunction.
79607         Typically, a configure-time function-in-library test is performed
79608         via code like this:
79610           LIB_VAR=
79611           AC_SUBST([LIB_VAR])
79612           prefix_saved_LIBS=$LIBS
79613             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79614                        [test "$ac_cv_search_FUNC" = "none required" ||
79615                         LIB_VAR=$ac_cv_search_FUNC])
79616           LIBS=$prefix_saved_LIBS
79618         However, in each of the files affected by this change, the LIB_VAR=
79619         initialization was omitted.  Thus, when set in the environment, its
79620         value would propagate into generated Makefiles when FUNC is not found
79621         in LIB_NAME.
79622         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79623         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79626 2009-10-14  Eric Blake  <ebb9@byu.net>
79628         fchdir: avoid infinite recursion in mingw
79629         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79630         recursing.
79632         test-stat-time: port to mingw
79633         * tests/test-stat-time.c (force_unlink): Return a value.
79634         (test_ctime) [W32]: Fix compilation error.
79635         (nap): Don't call usleep with too large an argument.  Use
79636         force_unlink.
79637         * doc/pastposix-functions/usleep.texi (usleep): Document the
79638         portability issue.
79640 2009-10-13  Jim Meyering  <meyering@redhat.com>
79642         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79643         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79644         * modules/pipe-filter-ii: Likewise.
79645         * modules/sys_socket-tests: Likewise.
79646         * modules/tsearch-tests: Likewise.
79647         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79648         (check): Depend on it.
79650 2009-10-12  Eric Blake  <ebb9@byu.net>
79652         utimens-tests: port to NFS file systems
79653         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79654         comparisons to avoid spurious failures from timestamp drift
79655         between NFS machines.
79657 2009-10-12  Eric Blake  <ebb9@byu.net>
79659         stat-time-tests: minor cleanups
79660         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79661         * tests/test-stat-time.c (nap): Separate assignment from call.
79662         Suggested by Paolo Bonzini and Bruno Haible.
79664         sys_stat: guarantee struct timespec
79665         * lib/sys_stat.in.h (includes): Always include <time.h>
79666         * modules/sys_stat (Depends-on): Add time.
79667         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79668         mode_t permission values.
79669         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79670         get at subsecond timestamps.
79672 2009-10-10  Eric Blake  <ebb9@byu.net>
79674         futimens: new module
79675         * modules/futimens: New file.
79676         * lib/futimens.c (futimens): Likewise.
79677         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79678         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79679         we can work around Linux bugs.
79680         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79681         * modules/sys_stat (Makefile.am): Substitute them.
79682         * lib/sys_stat.in.h (futimens): Declare it.
79683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79684         * doc/posix-functions/futimens.texi (futimens): Likewise.
79685         * modules/futimens-tests: New test.
79686         * tests/test-futimens.c: Likewise.
79688         utimens: introduce fdutimens
79689         * lib/utimens.h (fdutimens): New prototype.
79690         * lib/utimens.c (gl_futimens): Move guts...
79691         (fdutimens): ...to new interface.
79692         * tests/test-utimens.c (do_fdutimens): Use it.
79694         utimens: add UTIME_NOW and UTIME_OMIT support
79695         * lib/utimens.c (validate_timespec, update_timespec): New helper
79696         functions.
79697         (gl_futimens, lutimens): Use them.
79698         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79699         stdbool, sys_stat.
79700         (Link): Mention resulting library dependency.
79701         * modules/utimecmp (Link): Likewise.
79702         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79703         (Makefile.am): Pick up library dependency.
79704         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79705         definition.
79706         * tests/test-sys_stat.c: Test the definitions.
79707         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79708         * NEWS: Document library dependency.
79710         utimecmp: support symlink timestamps
79711         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79712         hashing when possible.  Use pathconf when available.
79713         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79714         * modules/utimecmp (Depends-on): Add lstat.
79716         utimens: add lutimens interface
79717         * lib/utimens.c (lutimens): New function.
79718         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79719         * lib/utimens.h (lutimens): Declare new interface.
79720         * tests/test-utimens.c (main): Enhance test.
79721         * tests/test-lutimens.h (test_lutimens): New file.
79722         * modules/utimens-tests (Files): Distribute it.
79723         (Depends-on): Add symlink.
79724         (configure.ac): Check for usleep.
79726         utimens: validate futimens usage
79727         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79728         fewer syscalls on failure later on.  Avoid compiler warning on
79729         mingw.
79730         * modules/utimens (Depends-on): Add dup2.
79732         utimens: add test
79733         * modules/utimens-tests: New test.
79734         * tests/test-utimens.h: New file.
79735         * tests/test-futimens.h: Likewise.
79736         * tests/test-utimens.c: Likewise.
79738         doc: mention timestamp portability issues
79739         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79740         instead.
79741         * doc/posix-functions/utime.texi (utime): Likewise.
79742         * doc/posix-functions/utimes.texi (utimes): Likewise.
79743         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79744         instead.
79745         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79746         module.
79747         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79748         Mention weakness with symlink timestamps.
79749         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79750         to utimensat/futimens instead.
79751         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79753         test-dup2: enhance test
79754         * tests/test-dup2.c (main): Also check AT_FDCWD.
79756         test-stat-time: avoid more spurious failures
79757         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79758         xfs; and avoid race if the two timestamps cross quantization edge.
79760         relocatable: prefer 'file system' over 'filesystem'
79761         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79762         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79763         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79764         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79765         * lib/relocatable.c (compute_curr_prefix): Likewise.
79767 2009-10-10  Jim Meyering  <meyering@redhat.com>
79769         stat-time-tests: check for the usleep function
79770         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79772 2009-10-10  Bruno Haible  <bruno@clisp.org>
79774         * modules/xnanosleep: Put the Link section after the Include section.
79776 2009-10-09  Eric Blake  <ebb9@byu.net>
79778         dup2: work around FreeBSD 6.1 bug
79779         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79780         * doc/posix-functions/dup2.texi (dup2): Document it.
79781         Reported by Nelson H. F. Beebe and Jim Meyering.
79783         test-stat-time: port to buggy NFS clients
79784         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79785         (test_ctime): Also skip test if mtime and ctime are skewed.
79787         maint: prefer 'file system' over 'filesystem'
79788         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79789         * doc/posix-functions/lstat.texi (lstat): Likewise.
79790         * lib/file-has-acl.c (file_has_acl): Likewise.
79791         * lib/fwriteerror.c [TEST]: Likewise.
79792         * tests/test-areadlink.h (test_areadlink): Likewise.
79793         * tests/test-areadlinkat-with-size.c (main): Likewise.
79794         * tests/test-areadlinkat.c (main): Likewise.
79795         * tests/test-canonicalize-lgpl.c (main): Likewise.
79796         * tests/test-canonicalize.c (main): Likewise.
79797         * tests/test-fstatat.c (main): Likewise.
79798         * tests/test-linkat.c (main): Likewise.
79799         * tests/test-lstat.h (test_lstat_func): Likewise.
79800         * tests/test-mkdir.h (test_mkdir): Likewise.
79801         * tests/test-readlink.h (test_readlink): Likewise.
79802         * tests/test-remove.c (main): Likewise.
79803         * tests/test-rename.h (test_rename): Likewise.
79804         * tests/test-renameat.c (main): Likewise.
79805         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79806         * tests/test-symlink.h (test_symlink): Likewise.
79807         * tests/test-symlinkat.c (main): Likewise.
79808         * tests/test-unlink.h (test_unlink_func): Likewise.
79809         * tests/test-unlinkat.c (main): Likewise.
79811         maint: make realtime library usage explicit
79812         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79813         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79814         * modules/settime (Link): Likewise.
79815         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79817         test-stat-time: speed up execution
79818         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79819         warning on mingw.
79820         (nap): New helper function.
79821         (prepare_test): Use it to reduce sleep time.
79822         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79823         execution.
79824         * modules/stat-time-tests (configure.ac): Check for usleep.
79826 2009-10-09  Jim Meyering  <meyering@redhat.com>
79828         selinux-h: always use getfilecon wrappers
79829         * lib/getfilecon.c: New file.
79830         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79831         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79832         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79833         (fgetfilecon): Provide a stub.
79834         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79835         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79836         file unconditionally.
79837         When <selinux/selinux.h> is found, arrange to use wrappers.
79838         * modules/selinux-h (Files): Add getfilecon.c.
79839         (Makefile.am): Substitute include-next-related bits
79840         into the now-always-generated selinux/selinux.h file.
79841         * doc/glibc-functions/lgetfilecon.texi: New file.
79842         * doc/glibc-functions/fgetfilecon.texi: New file.
79843         * doc/glibc-functions/getfilecon.texi: New file.
79844         * doc/glibc-functions/getfilecon-desc.texi: New file.
79845         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79846         which to pull in the new files.
79847         * MODULES.html.sh (Misc): Add selinux-h.
79849 2009-10-08  Jim Meyering  <meyering@redhat.com>
79851         unistd: fix comment typo
79852         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79854 2009-10-08  Eric Blake  <ebb9@byu.net>
79856         areadlink: use SIZE_MAX consistently
79857         * modules/areadlink (Depends-on): Add stdint.
79858         * modules/areadlink-with-size (Depends-on): Likewise.
79859         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79860         gives NULL; drop sys/types, since unistd gives size_t; and add
79861         stdint for SIZE_MAX.
79862         (SIZE_MAX): Rely on headers.
79863         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79864         and add stdint.
79865         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79866         (SIZE_MAX): Likewise.
79867         (INITIAL_BUF_SIZE): Turn into enum.
79868         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79870 2009-10-08  Jim Meyering  <meyering@redhat.com>
79872         areadlinkat: avoid compilation failure
79873         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79874         Fix typo in comment.
79876 2009-10-07  Eric Blake  <ebb9@byu.net>
79878         areadlinkat-with-size: new module
79879         * modules/areadlinkat-with-size: New module.
79880         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79881         * lib/areadlink.h (areadlinkat): Declare it.
79882         * MODULES.html.sh (File system functions): Mention it.
79883         * modules/areadlinkat-with-size-tests: New test.
79884         * tests/test-areadlinkat-with-size.c: New file.
79886         xreadlinkat: new module
79887         * modules/xreadlinkat: New module.
79888         * lib/xreadlinkat.c (xreadlinkat): New file.
79889         * lib/xreadlink.h (xreadlinkat): Declare it.
79890         * MODULES.html.sh (File system functions): Mention it.
79892         areadlinkat: new module
79893         * lib/at-func.c (FUNC_FAIL): New define.
79894         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79895         * modules/areadlinkat: New module.
79896         * lib/linkat.c (areadlinkat): Move...
79897         * lib/areadlinkat.c (areadlinkat): ...to new file.
79898         * lib/areadlink.h (areadlinkat): Declare it.
79899         * modules/linkat (Depends-on): Add areadlinkat.
79900         * MODULES.html.sh (File system functions): Mention it.
79901         * modules/areadlinkat-tests: New test.
79902         * tests/test-areadlinkat.c: New file.
79904         areadlink, areadlink-with-size: add tests
79905         * modules/areadlink-tests: New test.
79906         * modules/areadlink-with-size-tests: Likewise.
79907         * tests/test-areadlink.h: New file.
79908         * tests/test-areadlink.c: Likewise.
79909         * tests/test-areadlink-with-size.c: Likewise.
79911         maint: minor cleanups
79912         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79913         _UNUSED_PARAMETER_ instead.
79914         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79915         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79916         * modules/linkat-tests (Files): Distribute test-link.h.
79918         openat, utimens: whitespace cleanup
79919         * lib/openat.c: Prefer space throughout, rather than mix of 8
79920         spaces vs. tabs.
79921         * lib/at-func.c: Likewise.
79922         * lib/utimens.c: Likewise.
79924         openat: avoid using wrong fd
79925         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79926         working directory chooses same fd.
79927         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79929         mkdir, mkdirat: fix cygwin 1.5.x bug
79930         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79931         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79932         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79933         bug.
79934         (gl_PREREQ_MKDIR): Delete unused macro.
79935         * modules/mkdir (Files): Track file rename.
79936         (configure.ac): Update macro name.
79937         * modules/openat (Depends-on): Add mkdir.
79938         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79940         mkdir, mkdirat: add tests
79941         * modules/mkdir-tests: New test.
79942         * tests/test-mkdir.h: New file.
79943         * tests/test-mkdir.c: Likewise.
79944         * tests/test-mkdirat.c: Likewise.
79945         * modules/openat-tests (Files): Add new files.
79946         (Makefile.am): Run new test.
79948 2009-10-06  Eric Blake  <ebb9@byu.net>
79950         doc: tweak *at function documentation
79951         * doc/posix-functions/faccessat.texi (faccessat): Mention
79952         known issue with replacement.
79953         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79954         * doc/posix-functions/linkat.texi (linkat): Likewise.
79955         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79956         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79957         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79958         * doc/posix-functions/renameat.texi (renameat): Likewise.
79959         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79961         openat: fix GNU/Hurd bug in unlinkat
79962         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79963         broken.
79964         * doc/posix-functions/unlink.texi (unlink): Document this.
79965         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79967         fdopendir: fix GNU/Hurd bug
79968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79969         allowing non-directory fds.
79970         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79971         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79972         * modules/dirent (Makefile.am): Substitute it.
79973         * lib/dirent.in.h (fdopendir): Declare replacement.
79974         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79975         * tests/test-fdopendir.c (main): Test something other than
79976         /dev/null, since on Hurd that behaves like a directory.
79978         test-symlink: port to GNU/Hurd
79979         * tests/test-symlink.h (test_symlink): Relax expected errno.
79981         doc: tweak more cygwin information
79982         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79983         now compatible with glibc.
79984         * doc/posix-functions/getopt.texi (getopt): Likewise.
79986         getopt-gnu: add another test
79987         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79988         guarantee behavior relied on by m4.
79989         * tests/test-getopt.c (main): Use it.
79990         * modules/getopt-posix-tests (Depends-on): Add setenv.
79991         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79993         getopt: fix compilation on darwin
79994         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79995         include.
79996         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79997         Reported by Ludovic Courtès.
79999 2009-10-06  Bruno Haible  <bruno@clisp.org>
80001         * modules/size_max (Description): Discourage its use.
80002         Reported by Simon Josefsson.
80004 2009-10-06  Jim Meyering  <meyering@redhat.com>
80006         linkat: avoid compilation failure
80007         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
80009 2009-10-05  Eric Blake  <ebb9@byu.net>
80011         linkat: support Linux 2.6.17
80012         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
80013         linkat on Linux, but allow cache variable override.
80014         * lib/linkat.c (rpl_linkat): Define override.
80015         * modules/linkat (Depends-on): Add symlinkat.
80016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
80017         * modules/unistd (Makefile.am): Substitute it.
80018         * lib/unistd.in.h (linkat): Declare replacement.
80019         Reported by Pádraig Brady.
80021         quotearg: port test to systems with C.UTF-8 locale
80022         * tests/test-quotearg.c (struct result_strings): Add another
80023         member, differentiating between C.ASCII and C.UTF-8 handling.
80024         (compare_strings): Add parameter.
80025         (main): Adjust all callers.
80027         getopt: avoid clash with FreeBSD _getopt_internal
80028         * lib/getopt.in.h (_getopt_internal): Override the name.
80029         * lib/getopt_int.h (includes): Pick up any overrides.
80030         Reported by Reuben Thomas.
80032         hash: allow C89 compilation
80033         * lib/hash.c (check_tuning): Move declaration before statement.
80034         Reported by Reuben Thomas.
80036 2009-10-05  Karl Berry  <karl@gnu.org>
80038         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
80040 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
80041             Bruno Haible  <bruno@clisp.org>
80043         * lib/uname.c (uname): Use a table-driven algorithm to compute
80044         Windows NT versions.
80046 2009-10-04  Bruno Haible  <bruno@clisp.org>
80048         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
80049         program_invocation_short_name.
80050         * modules/progname (configure.ac): Test for presence of
80051         program_invocation_short_name.
80052         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
80054 2009-10-04  Bruno Haible  <bruno@clisp.org>
80056         * lib/progname.c (set_program_name): Fix comment.
80057         Reported by Jim Meyering.
80059 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80060             Bruno Haible  <bruno@clisp.org>
80062         * lib/uname.c: Include <string.h>.
80063         (uname): Do only one call to GetVersionEx in the common case.
80065 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80066             Bruno Haible  <bruno@clisp.org>
80068         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
80069         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
80070         (uname): Add support for Windows CE and various non-x86 CPU types.
80072 2009-10-03  Bruno Haible  <bruno@clisp.org>
80074         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
80075         invocation to tests/configure.ac.
80076         Reported by Ian Beckwith <ianb@erislabs.net>.
80078 2009-10-02  Eric Blake  <ebb9@byu.net>
80080         fchdir: avoid compiler warning
80081         * lib/fchdir.c (canonicalize_file_name)
80082         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
80084         test-open: support mingw errno values
80085         * tests/test-open.h (test_open): Relax test.
80086         * tests/test-fopen.h (test_fopen): Likewise.
80087         * tests/test-openat-safer.c (main): Likewise.
80089         open: fix opening directory on mingw
80090         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
80092         test-open: on GNU/Hurd, /dev/null is a directory
80093         * tests/test-fopen.h (main): Rename...
80094         (test_fopen): ...to this.  Use a guaranteed non-directory when
80095         confirming open behavior on trailing slash.
80096         * tests/test-openat-safer.c (main): Likewise.
80097         * tests/test-open.h (main): Likewise....
80098         (test_open): ...to this.
80099         * tests/test-fopen.c (main): Adjust caller.
80100         * tests/test-fopen-safer.c (main): Likewise.
80101         * tests/test-open.c (main): Likewise.
80102         * tests/test-fcntl-safer.c (main): Likewise.
80103         Reported by Samuel Thibault.
80105         rename, fchdir: don't ignore chdir failure
80106         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
80107         * lib/rename.c (rpl_rename) [W32]: Likewise.
80108         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
80109         an empty destination directory if source cannot be renamed,
80110         although there is still possibility for failure.
80111         * doc/posix-functions/rename.texi (rename): Document the race.
80112         Reported by Jim Meyering.
80114         maint: cleanup whitespace in recent commits
80115         * lib/rename.c (rpl_rename): Remove tabs.
80116         * tests/test-link.h (test_link): Likewise.
80117         * lib/fchdir.c (get_name): Likewise.
80118         Reported by Jim Meyering.
80120 2009-10-02  Ben Pfaff  <blp@gnu.org>
80122         relocatable-prog-wrapper: Add missing dependency on
80123         double-slash-root.
80124         * modules/relocatable-prog-wrapper: Add dependency.
80125         Reported by Ian Beckwith <ianb@erislabs.net>.
80127 2009-10-02  Eric Blake  <ebb9@byu.net>
80129         renameat: fix Solaris bugs
80130         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
80131         needed fixing.
80132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
80133         * modules/stdio (Makefile.am): Substitute it.
80134         * lib/stdio.in.h (renameat): Declare replacement.
80135         * lib/renameat.c (rpl_renameat): Implement fix.
80137         renameat: new module
80138         * modules/renameat: New file.
80139         * lib/renameat.c (renameat): Likewise.
80140         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
80141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80142         * modules/stdio (Makefile.am): Substitute them.
80143         * lib/stdio.in.h (renameat): Declare it.
80144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80145         * doc/posix-functions/renameat.texi (renameat): Likewise.
80146         * modules/renameat-tests: New test.
80147         * tests/test-renameat.c: Likewise.
80149         rename: fix mingw bugs
80150         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
80151         directory overwrite bugs.
80153         rename: fix another cygwin 1.5 bug
80154         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
80155         checks.
80156         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
80157         unnecessary cygwin workarounds.  Also work around bug with moving
80158         full directory onto an empty one.
80159         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
80161         rename-dest-slash: merge into rename module
80162         * modules/rename-dest-slash (Status): Mark obsolete.
80163         (Depends-on): Add rename.
80164         (Files): Let rename do it all.
80165         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
80166         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
80167         * m4/rename-dest-slash.m4: ...so this file can be deleted.
80168         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
80169         * lib/rename.c (rpl_rename): Update comments.
80171         rename: fix cygwin 1.5.x bugs
80172         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
80173         * lib/rename.c (rpl_rename): Work around them.
80174         * modules/rename (Depends-on): Add same-inode.
80176         rename: fix Solaris 10 bug
80177         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80178         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
80179         was the only bug.
80181         rename: fix Solaris 9 bug
80182         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
80183         on non-directory.  Avoid calling exit.
80184         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
80185         strdup.
80186         * modules/rename-tests (Depends-on): Drop lstat.
80187         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80188         (gl_PREREQ_RENAME): Delete unused macro.
80190         rename-dest-slash: fix NetBSD bug
80191         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
80192         links.
80193         * modules/rename-dest-slash (Depends-on): Add same-inode.
80195         rename-tests: new test, exposes several platform bugs
80196         * modules/rename-tests: New file.
80197         * tests/test-rename.h: Likewise.
80198         * tests/test-rename.c: Likewise.
80199         * doc/posix-functions/rename.texi (rename): Improve documentation,
80200         including bugs that will eventually be fixed in gnulib.
80202 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
80204         * lib/uname.c: Include <stdlib.h>
80205         (uname): Assume version info is available.
80207 2009-10-02  Jim Meyering  <meyering@redhat.com>
80209         gnu-web-doc-update: correct --help output
80210         * build-aux/gnu-web-doc-update: Make --help output relevant.
80212         gnu-web-doc-update: add standard options
80213         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
80215         gnu-web-doc-update: New module.
80216         Use this script to automatically update the on-line web documentation
80217         for your GNU project at http://www.gnu.org/software/$pkg/manual/
80218         * modules/gnu-web-doc-update: New file, from coreutils.
80219         * build-aux/gnu-web-doc-update: New script.
80221 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
80223         link: LoadLibrary is not needed.
80224         * lib/link.c: Use GetModuleHandle.
80226 2009-10-01  Eric Blake  <ebb9@byu.net>
80228         getopt: bump serial number
80229         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
80230         change.
80232         tests: tighten link, rmdir, and remove tests
80233         * tests/test-link.h (includes): No need to use <config.h> here.
80234         Clean up if directory hard link was created, otherwise test for
80235         trailing '.'.
80236         * tests/test-linkat.c (main): Simplify.
80237         * tests/test-remove.c (main): Enhance test for trailing '.'.
80238         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80240 2009-10-01  Jim Meyering  <meyering@redhat.com>
80242         maint.mk: requiring "make major" was annoying, for a "minor" release.
80243         What is intended is "stable", to contrast with alpha and beta,
80244         so require "make stable", not "make major".
80245         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
80246         (get_tool_versions): Likewise.
80247         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
80249 2009-09-30  Ben Pfaff  <blp@gnu.org>
80251         Fix broken build of replacement for Windows tmpfile().
80252         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
80253         flags argument added along with the 'mkostemp' module.
80255 2009-09-28  Bruno Haible  <bruno@clisp.org>
80257         Avoid identifier clash with POSIX function 'remove' defined as a macro.
80258         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
80259         to 'remove_elt'.
80260         (gl_list_remove): Update.
80261         * lib/gl_list.c (gl_list_remove): Update.
80262         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
80263         to 'remove_elt'.
80264         (gl_oset_remove): Update.
80265         * lib/gl_list.c (gl_oset_remove): Update.
80266         Reported by Eric Blake.
80268 2009-09-28  Eric Blake  <ebb9@byu.net>
80270         doc: mention yet more cygwin 1.7 status
80271         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
80272         cygwin.
80273         * doc/glibc-functions/execvpe.texi (execvpe): New file.
80274         * doc/gnulib.texi (Glibc unistd.h): Mention it.
80276         argp: fix test failure
80277         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
80278         that are not upper-case.  Pass correct range to tolower.
80280 2009-09-27  Jim Meyering  <meyering@redhat.com>
80282         test-yesno: work around sparc-dash here-document infelicity
80283         Without this change, the literal \177 byte in a here document
80284         would make dash 0.5.5.1-3 access uninitialized memory.
80285         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
80286         Instead, use a marker, "@", and filter through tr to create the desired
80287         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
80289 2009-09-27  Bruno Haible  <bruno@clisp.org>
80291         Disable untested support for new flavours of ACLs on AIX.
80292         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
80293         progress.
80294         * lib/set-mode-acl.c (qset_acl): Likewise.
80296 2008-12-07  Bruno Haible  <bruno@clisp.org>
80298         Add support for new flavours of ACLs on AIX. (Untested.)
80299         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
80300         (file_has_acl): Add support for newer AIX.
80301         * lib/set-mode-acl.c (qset_acl): Likewise.
80302         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
80303         Rainer Tammer <tammer@tammer.net>.
80305 2009-09-26  Eric Blake  <ebb9@byu.net>
80307         argp: fix compilation of getopt
80308         * lib/getopt.in.h (includes): Use different guard than glibc.
80309         Reported by Sergey Poznyakoff.
80311         doc: mention more cygwin 1.7 status
80312         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
80313         bug.
80314         * doc/posix-functions/execl.texi (execl): Likewise.
80315         * doc/posix-functions/execle.texi (execle): Likewise.
80316         * doc/posix-functions/execlp.texi (execlp): Likewise.
80317         * doc/posix-functions/execv.texi (execv): Likewise.
80318         * doc/posix-functions/execve.texi (execve): Likewise.
80319         * doc/posix-functions/execvp.texi (execvp): Likewise.
80320         * doc/glibc-functions/canonicalize_file_name.texi
80321         (canonicalize_file_name): Cygwin 1.7 now provides this.
80322         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
80323         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
80324         on AT_SYMLINK_NOFOLLOW.
80326 2009-09-24  Eric Blake  <ebb9@byu.net>
80328         test-linkat: make test more robust
80329         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80331         getopt: fix inclusion guards for cygwin
80332         * modules/getopt-posix (Depends-on): Add include-next.
80333         (Makefile.am): Substitute more items in replacement header.
80334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80335         <getopt.h>.
80336         * lib/getopt.in.h (includes): Use split inclusion guard, and
80337         prefer <getopt.h> over include <unistd.h> when one is present.
80338         (option): Also override name of 'struct option'.
80340         same-inode: revert prior change; it is not yet ready
80341         * NEWS: Undo mention of this change.
80342         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80343         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80344         * lib/cycle-check.c (cycle_check): Likewise.
80345         * lib/same.c (same_name): Likewise.
80346         * lib/at-func2.c (at_func2): Likewise.
80348 2009-09-23  Eric Blake  <ebb9@byu.net>
80350         linkat: new module
80351         * modules/linkat: New file.
80352         * lib/at-func2.c (at_func2): Likewise.
80353         * lib/linkat.c (linkat): Likewise.
80354         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80355         * lib/openat-priv.h (at_func2): Add declaration.
80356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80357         * modules/unistd (Makefile.am): Substitute them.
80358         * lib/unistd.in.h (linkat): Declare it.
80359         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80360         * doc/posix-functions/linkat.texi (linkat): Likewise.
80361         * doc/posix-functions/link.texi (link): Tweak wording.
80362         * tests/test-link.c (main): Move guts...
80363         * tests/test-link.h (test_link): ...into new file.
80364         * modules/linkat-tests: New test.
80365         * tests/test-linkat.c: Likewise.
80366         * modules/link-tests (Files): Ship new file.
80367         (Depends-on): Add stdbool.
80369         dirname: add library-safe mdir_name
80370         * lib/dirname.h (mdir_name): New prototype.
80371         * lib/dirname.c (dir_name): Move guts...
80372         (mdir_name): ...to new function that avoids xalloc_die.
80374         fchdir: another mingw fix
80375         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80376         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80377         on mingw (where it has not yet been ported), and make it optional
80378         elsewhere.
80379         (_gl_register_fd): Use it.
80381         same-inode: make SAME_INODE tri-state, to port to mingw
80382         * NEWS: Mention this change.
80383         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80384         st_ino always being 0.
80385         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80386         * lib/cycle-check.c (cycle_check): Likewise.
80387         * lib/same.c (same_name): Likewise.
80389         lstat: avoid mingw compilation error
80390         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80391         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80392         lstat ourselves.
80393         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80394         was adequate.
80395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80396         the checks for lstat.
80397         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80399         link: fix test failure on Solaris 9
80400         * lib/link.c (rpl_link): Don't assume link will catch bogus
80401         trailing slash on source.
80403         test-symlinkat: enhance test
80404         * tests/test-readlink.c (main): Move guts...
80405         * tests/test-readlink.h (test_readlink): ...into new file.
80406         * tests/test-symlink.c (main): Move guts...
80407         * tests/test-symlink.h (test_symlink): ...into new file.
80408         * tests/test-symlinkat.c (main): Use new files for further
80409         coverage.
80410         (do_symlink, do_readlink): New helper functions.
80411         * modules/symlink-tests (Files): Ship new file.
80412         (Depends-on): Add stdbool.
80413         * modules/readlink-tests (Files): Ship new file.
80414         (Depends-on): Add stdbool.
80415         * modules/symlinkat-tests (Files): Use new files.
80417 2009-09-23  Eric Blake  <ebb9@byu.net>
80419         readlink: document portability issue with symlink length
80420         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80421         systems have bogus st_size on symlinks, and mention the
80422         areadlink-with-size module.
80423         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80424         * doc/posix-functions/readlink.texi (readlink): Mention the
80425         areadlink module, and ERANGE failure.
80426         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80427         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80429         readlink: fix Solaris 9 bug with trailing slash
80430         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80431         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80432         * doc/posix-functions/readlink.texi (readlink): Document this.
80433         * modules/readlink-tests: New test.
80434         * tests/test-readlink.c: Likewise.
80436         readlink: fix cygwin 1.5.x bug with return type
80437         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80438         * lib/unistd.in.h (readlink): Use ssize_t.
80439         * lib/readlink.c (readlink): Likewise.
80440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80441         * modules/unistd (Makefile.am): Substitute it.
80442         * lib/unistd.in.h (readlink): Declare replacement.
80443         * doc/posix-functions/readlink.texi (readlink): Document this.
80445         symlink: use throughout gnulib
80446         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80447         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80448         symlink is not used.
80449         * modules/symlinkat (Depends-on): Add symlink.
80450         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80451         * modules/canonicalize-tests (Depends-on): Likewise.
80452         * modules/lstat-tests (Depends-on): Likewise.
80453         * modules/openat-tests (Depends-on): Likewise.
80454         * modules/remove-tests (Depends-on): Likewise.
80455         * modules/rmdir-tests (Depends-on): Likewise.
80456         * modules/unlink-tests (Depends-on): Likewise.
80457         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80458         * tests/test-canonicalize.c (symlink): Likewise.
80459         * tests/test-fstatat.c (symlink): Likewise.
80460         * tests/test-lstat.c (symlink): Likewise.
80461         * tests/test-remove.c (symlink): Likewise.
80462         * tests/test-rmdir.c (symlink): Likewise.
80463         * tests/test-unlink.c (symlink): Likewise.
80464         * tests/test-unlinkat.c (symlink): Likewise.
80466         symlink: new module, for Solaris 9 bug
80467         * modules/symlink: New file.
80468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80469         * lib/symlink.c: Likewise.
80470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80471         * modules/unistd (Makefile.am): Substitute them.
80472         * lib/unistd.in.h (symlink): Declare replacement.
80473         * MODULES.html.sh (File system functions): Mention it.
80474         * doc/posix-functions/symlink.texi (symlink): Likewise.
80475         * modules/symlink-tests: New test.
80476         * tests/test-symlink.c: Likewise.
80478 2009-09-23  Bruno Haible  <bruno@clisp.org>
80480         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80481         when needed.
80482         Test case: gnulib-tool --import --with-tests atexit inttypes.
80483         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80485 2009-09-23  Bruno Haible  <bruno@clisp.org>
80487         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80488         subcommand, not in a subshell.
80490 2009-09-22  Eric Blake  <ebb9@byu.net>
80492         unistd: sort replacement declarations
80493         * lib/unistd.in.h: Sort declarations.
80495         open, openat: minor optimization
80496         * lib/open.c (open): If open succeeded, len is non-zero.
80497         * lib/openat.c (rpl_openat): Likewise.
80499         link-follow: ensure correct result
80500         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80501         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80502         distinguish between possible failures.
80504 2009-09-21  Eric Blake  <ebb9@byu.net>
80506         fts: avoid compiler warning
80507         * lib/fts.c (dirent_inode_sort_may_be_useful)
80508         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80510 2009-09-19  Bruno Haible  <bruno@clisp.org>
80512         * lib/progreloc.c (canonicalize_file_name): New declaration.
80514 2009-09-19  Eric Blake  <ebb9@byu.net>
80516         link: fix quoting
80517         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80519         openat: fix openat bugs on Solaris 9
80520         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80521         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80522         * modules/openat (Depends-on): Add open.
80523         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80524         * modules/fcntl-h (Makefile.am): Substitute it.
80525         * lib/fcntl.in.h (openat): Declare replacement.
80526         * doc/posix-functions/openat.texi (openat): Document this.
80528         openat: move fstatat and unlinkat into correct files
80529         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80530         compiled.
80531         * lib/openat.c (fstatat, unlinkat): Move...
80532         * lib/fstatat.c (fstatat): ...into correct files.
80533         * lib/unlinkat.c (unlinkat): Likewise.
80535         openat: fix unlinkat bugs on Solaris 9
80536         * lib/unlinkat.c (unlinkat): New file.
80537         * modules/openat (Depends-on): Add unlink.
80538         (Files): Distribute it.
80539         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80540         trailing slash behavior is broken.
80541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80542         * modules/unistd (Makefile.am): Substitute it.
80543         * lib/unistd.in.h (unlinkat): Declare replacement.
80544         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80546         openat: fix fstatat bugs on Solaris 9
80547         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80548         stat.
80549         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80551         test-unlinkat: enhance test, to expose Solaris 9 bug
80552         * tests/test-unlink.c (main): Factor guts...
80553         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80554         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80555         * tests/test-rmdir.c (main): Adjust caller.
80556         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80557         (unlinker): New helper function.
80558         (rmdirat): Enhance check.
80559         * modules/rmdir-tests (Depends-on): Add stdbool.
80560         * modules/unlink-tests (Depends-on): Likewise.
80561         (Files): Add test-unlink.h.
80562         * modules/openat-tests (Files): Likewise.
80563         (Depends-on): Add unlinkdir.
80565         test-fstatat: new test, to expose Solaris 9 bugs
80566         * tests/test-stat.c (main): Factor guts...
80567         * tests/test-stat.h (test_stat_func): ...into new file.
80568         * tests/test-lstat.c (main): Factor guts...
80569         * tests/test-lstat.h (test_lstat_func): ...into new file.
80570         * tests/test-fstatat.c: New file.
80571         * modules/stat-tests (Files): Add test-stat.h.
80572         * modules/lstat-tests (Files): Add test-lstat.h.
80573         (Depends-on): Add stdbool.
80574         * modules/openat-tests (Depends-on): Add pathmax.
80575         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80576         (Makefile.am): Run new test.
80578         remove: new module, for mingw and Solaris 9 bugs
80579         * modules/remove: New file.
80580         * lib/remove.c: Likewise.
80581         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80583         * modules/stdio (Makefile.am): Use them.
80584         * lib/stdio.in.h (remove): Declare replacement.
80585         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80586         * doc/posix-functions/remove.texi (remove): Likewise.
80587         * modules/remove-tests: New test.
80588         * tests/test-remove.c: Likewise.
80590         unlink: new module, for Solaris 9 bug
80591         * modules/unlink: New file.
80592         * lib/unlink.c: Likewise.
80593         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80595         * modules/unistd (Makefile.am): Use them.
80596         * lib/unistd.in.h (stat): Declare replacement.
80597         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80598         * doc/posix-functions/unlink.texi (unlink): Likewise.
80599         * modules/unlink-tests: New test.
80600         * tests/test-unlink.c: Likewise.
80602         lstat: fix Solaris 9 bug
80603         * lib/lstat.c (lstat): Also check for trailing slash on
80604         non-symlink, non-directories.  Use stat module to simplify logic.
80605         * doc/posix-functions/lstat.texi (lstat): Document it.
80606         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80607         (configure.ac): Check for symlink.
80608         * tests/test-lstat.c (main): Add more tests.
80610         stat: add as dependency to other modules
80611         * modules/chown (Depends-on): Add stat.
80612         * modules/euidaccess (Depends-on): Likewise.
80613         * modules/fchdir (Depends-on): Likewise.
80614         * modules/isdir (Depends-on): Likewise.
80615         * modules/link (Depends-on): Likewise.
80616         * modules/lstat (Depends-on): Likewise.
80617         * modules/mkdir-p (Depends-on): Likewise.
80618         * modules/modechange (Depends-on): Likewise.
80619         * modules/open (Depends-on): Likewise.
80620         * modules/readlink (Depends-on): Likewise.
80621         * modules/same (Depends-on): Likewise.
80623         stat: fix Solaris 9 bug
80624         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80625         slash.
80626         * lib/stat.c (rpl_stat): Work around it.
80627         * doc/posix-functions/stat.texi (stat): Update documentation.
80629         stat: new module, for mingw bug
80630         * modules/stat: New file.
80631         * lib/stat.c: Likewise.
80632         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80633         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80634         * modules/sys_stat (Makefile.am): Use them.
80635         * lib/sys_stat.in.h (stat): Declare replacement.
80636         * lib/openat.c (fstatat): Deal with lstat and stat being function
80637         macros.
80638         * modules/openat (Depends-on): Add inline.
80639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80640         * doc/posix-functions/stat.texi (stat): Likewise.
80641         * modules/stat-tests: New test.
80642         * tests/test-stat.c: Likewise.
80644 2009-09-19  Jim Meyering  <meyering@redhat.com>
80646         syntax-check: detect unnecessary inclusion of canonicalize.h
80647         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80649 2009-09-19  Eric Blake  <ebb9@byu.net>
80651         canonicalize-lgpl: adjust clients to use correct header
80652         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80653         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80654         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80655         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80656         * lib/progreloc.c (includes): Likewise.
80658 2009-09-19  Jim Meyering  <meyering@redhat.com>
80660         test-posixtm.c: correct a comment
80661         * tests/test-posixtm.c: Correct first-line comment.
80662         Spotted by Eric Blake.
80664 2009-09-16  Jim Meyering  <meyering@redhat.com>
80666         posixtm-tests: make T const-correct; add a test case
80667         * tests/test-posixtm.c (T): Declare const.
80668         Add a test for -(2^31+1).
80669         Remove useless can-succeed-only-in-2002 test.
80671         posixtm-tests: adjust the sole failing test
80672         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80673         expected output matches what mktime now produces.  Cross-checked via
80674         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80676         posixtm: move #ifdef'd tests into a new module
80677         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80678         * tests/test-posixtm.c: ... this new file.
80679         * modules/posixtm-tests: New module.
80681 2009-09-19  Eric Blake  <ebb9@byu.net>
80683         openat: simplify use of at-func.c
80684         * lib/at-func.c (includes): Include prerequisites here, to
80685         simplify requirements on client files.
80686         * lib/openat-priv.h: Add double-inclusion guard.
80687         * lib/faccessat.c (includes): Simplify.
80688         * lib/fchmodat.c (includes): Likewise.
80689         * lib/fchownat.c (includes): Likewise.
80690         * lib/mkdirat.c (includes): Likewise.
80691         * lib/mkfifoat.c (includes): Likewise.
80692         * lib/symlinkat.c (includes): Likewise.
80694         openat: allow return of fd 0
80695         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80696         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80697         unistd-safer.
80698         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80699         <fcntl.h>; this module does not leak fds.
80700         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80701         must be allowed to return 0, leaving openat_safer to add the
80702         safety.
80703         (openat_permissive): Avoid writing to just-opened fd 2 if
80704         restoring the current directory fails.
80705         * lib/openat-die.c (openat_restore_fail): Add comment.
80706         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80707         (save_cwd): Guarantee safe fd, but without use of open_safer.
80708         * tests/test-openat.c: New test.
80709         * modules/openat-tests (Files, Makefile.am): Distribute and build
80710         new file.
80712         relocatable-prog-wrapper: fix build
80713         * modules/relocatable-prog-wrapper (Files): Update name of
80714         canonicalize m4 file, broken on 2009-09-17.
80715         Reported by emad hajjar <aleppos@hotmail.com>.
80717 2009-09-19  Bruno Haible  <bruno@clisp.org>
80719         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80720         * lib/safe-alloc.c: Likewise.
80721         Reported by Ian Beckwith <ianb@erislabs.net>.
80723 2009-09-18  Bruno Haible  <bruno@clisp.org>
80725         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80726         Reported by <erobles@sensacd.com.mx>.
80728 2009-09-17  Eric Blake  <ebb9@byu.net>
80730         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80731         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80732         slashes when checking if last component is missing.
80733         * tests/test-canonicalize.c (main): Test this.
80735         canonicalize, canonicalize-lgpl: honor // if distinct from /
80736         * modules/canonicalize (Files): Add double-slash-root.m4.
80737         * modules/canonicalize-lgpl (Files): Likewise.
80738         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80739         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80740         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80741         fallback definition.
80742         (canonicalize_filename_mode): Use it to protect //.
80743         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80744         (__realpath): Likewise.
80745         * tests/test-canonicalize.c (main): Test this.
80746         * tests/test-canonicalize-lgpl.c (main): Likewise.
80747         * modules/canonicalize-tests (Depends-on): Add same-inode.
80748         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80750         canonicalize-lgpl: fix glibc bug with trailing slash
80751         * m4/canonicalize-lgpl.m4: Move contents...
80752         * m4/canonicalize.m4: ...here.
80753         (gl_CANONICALIZE_LGPL): Factor realpath check...
80754         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80755         glibc 2.3.5 bug, fixed 2005-04-27.
80756         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80757         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80758         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80759         * modules/canonicalize-lgpl (Files): Manage file rename.
80760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80761         * modules/stdlib (Makefile.am): Substitute witness.
80762         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80763         is needed.
80764         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80765         replacement is required.
80766         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80767         * doc/glibc-functions/canonicalize_file_name.texi
80768         (canonicalize_file_name): Document this.
80769         * doc/posix-functions/realpath.texi (realpath): Likewise.
80771         canonicalize-lgpl: reject non-directory with trailing slash
80772         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80773         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80774         catches failures in glibc 2.3.5.
80775         * tests/test-canonicalize.c (main): Likewise.
80777         canonicalize-lgpl: use native realpath if it works
80778         * lib/canonicalize-lgpl.c (realpath): Guard with
80779         FUNC_REALPATH_WORKS.
80780         * lib/stdlib.in.h (realpath): Make declaration optional based on
80781         HAVE_REALPATH.
80782         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80783         native realpath works.
80784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80785         * modules/stdlib (Makefile.am): Substitute witness.
80787         canonicalize, canonicalize-lgpl: use <stdlib.h>
80788         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80789         (Include): Mention <stdlib.h>.
80790         (configure.ac): Mention functions we provide.
80791         * modules/canonicalize (configure.ac): Likewise.
80792         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80793         realpath if canonicalize_file_name is missing.
80794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80795         * modules/stdlib (Makefile.am): Substitute witnesses.
80796         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80797         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80798         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80799         * NEWS: Document this.
80800         * doc/glibc-functions/canonicalize_file_name.texi
80801         (canonicalize_file_name): Likewise.
80802         * doc/posix-functions/realpath.texi (realpath): Likewise.
80803         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80805         test-canonicalize: consolidate into single C program
80806         * tests/test-canonicalize.sh: Delete; move setup into...
80807         * tests/test-canonicalize.c (main): ...the program, making it
80808         easier to run in debugger.  Add some tests.
80809         * modules/canonicalize-tests (Files): Remove unused file.
80810         (Depends-on): Add progname.
80811         (configure.ac, Makefile.am): Simplify.
80813         test-canonicalize-lgpl: consolidate into single C program
80814         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80815         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80816         easier to run in debugger.  Add some tests.
80817         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80818         (configure.ac, Makefile.am): Simplify.
80820         canonicalize: avoid resolvepath
80821         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80822         unnecessary checks.
80823         * lib/canonicalize.c (includes): Simplify.
80824         (canonicalize_file_name): Drop resolvepath implementation.
80825         * modules/canonicalize (Depends-on): Drop filenamecat.
80827         canonicalize: don't lose errno
80828         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80829         over calls to free.
80831         canonicalize: simplify errno handling
80832         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80833         assignment.
80835         canonicalize, canonicalize-lgpl: update module dependencies
80836         * modules/canonicalize (Depends-on): Add extensions, lstat,
80837         pathmax, stdlib.
80838         (Files): Drop pathmax.h.
80839         (configure.ac): Adjust macro name.
80840         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80841         lstat, stdlib, sys_stat.
80842         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80843         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80844         extensions.
80845         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80846         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80847         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80848         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80849         declaration, if available.
80850         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80851         we can rely on the readlink module.
80852         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80853         (includes): Use <unistd.h> unconditionally.
80855 2009-09-17  Eric Blake  <ebb9@byu.net>
80857         maint: make Include sections of modules consistent
80858         * modules/alloca: Use only header name; no need to list #include.
80859         * modules/alloca-opt: Likewise.
80860         * modules/arpa_inet: Likewise.
80861         * modules/canon-host: Likewise.
80862         * modules/configmake: Likewise.
80863         * modules/dirent: Likewise.
80864         * modules/eealloc: Likewise.
80865         * modules/environ: Likewise.
80866         * modules/fchdir: Likewise.
80867         * modules/fcntl: Likewise.
80868         * modules/fcntl-h: Likewise.
80869         * modules/gethrxtime: Likewise.
80870         * modules/gettime: Likewise.
80871         * modules/ignore-value: Likewise.
80872         * modules/inet_ntop: Likewise.
80873         * modules/inet_pton: Likewise.
80874         * modules/inttypes: Likewise.
80875         * modules/isnand-nolibm: Likewise.
80876         * modules/isnanf-nolibm: Likewise.
80877         * modules/mbchar: Likewise.
80878         * modules/mbfile: Likewise.
80879         * modules/mbiter: Likewise.
80880         * modules/mbuiter: Likewise.
80881         * modules/netdb: Likewise.
80882         * modules/netinet_in: Likewise.
80883         * modules/nproc: Likewise.
80884         * modules/pagealign_alloc: Likewise.
80885         * modules/poll: Likewise.
80886         * modules/printf-frexp: Likewise.
80887         * modules/pthread: Likewise.
80888         * modules/putenv: Likewise.
80889         * modules/random_r: Likewise.
80890         * modules/relocatable-prog: Likewise.
80891         * modules/search: Likewise.
80892         * modules/select: Likewise.
80893         * modules/selinux-h: Likewise.
80894         * modules/settime: Likewise.
80895         * modules/signal: Likewise.
80896         * modules/size_max: Likewise.
80897         * modules/socklen: Likewise.
80898         * modules/ssize_t: Likewise.
80899         * modules/stdarg: Likewise.
80900         * modules/stdbool: Likewise.
80901         * modules/stddef: Likewise.
80902         * modules/stdint: Likewise.
80903         * modules/stdio: Likewise.
80904         * modules/stdlib: Likewise.
80905         * modules/string: Likewise.
80906         * modules/strings: Likewise.
80907         * modules/sys_file: Likewise.
80908         * modules/sys_ioctl: Likewise.
80909         * modules/sys_select: Likewise.
80910         * modules/sys_socket: Likewise.
80911         * modules/sys_stat: Likewise.
80912         * modules/sys_time: Likewise.
80913         * modules/sys_times: Likewise.
80914         * modules/sys_utsname: Likewise.
80915         * modules/sys_wait: Likewise.
80916         * modules/sysexits: Likewise.
80917         * modules/time: Likewise.
80918         * modules/times: Likewise.
80919         * modules/tmpfile: Likewise.
80920         * modules/trim: Likewise.
80921         * modules/unistd: Likewise.
80922         * modules/wchar: Likewise.
80923         * modules/wctype: Likewise.
80925 2009-09-17  Bruno Haible  <bruno@clisp.org>
80927         Make getdate.y compile on QNX and NetBSD 5 / i386.
80928         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80929         TIME_T_FITS_IN_LONG_INT.
80930         * lib/getdate.y (long_time_t): New type.
80931         (relative_time): Change type of 'seconds' field to long_time_t.
80932         (get_date): Update types of local variables. Check against overflow
80933         during conversion from long_time_t to time_t.
80934         Reported by Matt Kraai <kraai@ftbfs.org>
80935         and Hasso Tepper <hasso@netbsd.org>.
80937 2009-09-17  Bruno Haible  <bruno@clisp.org>
80939         * modules/COPYING: Update copyright years.
80940         * modules/README: Likeiwse.
80941         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80942         Reported by Ian Beckwith <ianb@erislabs.net>.
80944 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80946         * users.txt: Update references for gnuit package.
80948 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80950         * m4/getdelim.m4: Fix typo in copyright line.
80952 2009-09-17  Bruno Haible  <bruno@clisp.org>
80954         * lib/atoll.c: Use the standard header with GPL copyright.
80955         * lib/argz.in.h: Likewise.
80956         * lib/glob.c: Likewise.
80957         * lib/glob-libc.h: Likewise.
80958         * lib/random_r.c: Likewise.
80959         * lib/siglist.h: Likewise.
80960         * lib/strsignal.c: Likewise.
80961         Reported by Ian Beckwith <ianb@erislabs.net>.
80963 2009-09-17  Eric Blake  <ebb9@byu.net>
80965         rmdir: ensure correct dependency order
80966         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80968 2009-09-17  Bruno Haible  <bruno@clisp.org>
80970         Disable assertion that fails on NetBSD 5 / i386.
80971         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80972         Reported by Sam Steingold <sds@gnu.org>
80973         and Hasso Tepper <hasso@netbsd.org>.
80975 2009-09-16  Eric Blake  <ebb9@byu.net>
80977         unlinkdir: port to mingw
80978         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80979         on which no one can unlink a directory.
80981         stdlib: sort witness names
80982         * modules/stdlib (Makefile.am): Sort replacements.
80983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80984         * lib/stdlib.in.h: Likewise.
80986         parse-duration-tests: avoid link failure
80987         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80988         LIBINTL.
80989         Reported by Tom G. Christensen.
80991         openat-tests: ensure unlinkat behaves like rmdir
80992         * tests/test-rmdir.c (main): Factor guts...
80993         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80994         * modules/rmdir-tests (Files): Ship new file.
80995         * modules/openat-tests: New test.
80996         * tests/test-unlinkat.c: Likewise.
80998         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80999         * modules/rmdir-errno (Status, Notice): Now obsolete.
81001         rmdir: work around cygwin 1.5.x and mingw bugs
81002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
81003         * lib/rmdir.c (rmdir): Work around it.
81004         * modules/rmdir (Status, Notice): No longer obsolete.
81005         (Files): Add dos.m4.
81006         (Depends-on): Add unistd.
81007         (configure.ac): Set witnesses.
81008         (License): Relax to LGPLv2+.
81009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
81010         * modules/unistd (Makefile.am): Substitute witnesses.
81011         * lib/unistd.in.h (rmdir): Declare replacement.
81012         * doc/posix-functions/rmdir.texi (rmdir): Document this.
81013         * modules/rmdir-tests: New tests.
81014         * tests/test-rmdir.c: Likewise.
81016 2009-09-15  Eric Blake  <ebb9@byu.net>
81018         fchdir: improve use of replacement functions
81019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
81020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
81021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
81022         REPLACE_CLOSEDIR.
81023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
81024         * modules/sys_stat (Makefile.am): Substitute correct witness.
81025         * modules/dirent (Makefile.am): Likewise.
81026         * modules/unistd (Makefile.am): Likewise.
81027         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
81028         * lib/unistd.in.h (dup): Likewise.
81029         * lib/sys_stat.in.h (fstat): Likewise.
81031         maint: ignore gnulib-tool temp files
81032         * .gitignore: Ignore files created during gnulib-tool --test.
81034 2009-09-13  Jim Meyering  <meyering@redhat.com>
81036         posixtm: don't reject a time that specify "60" as the number of seconds
81037         * lib/posixtm.c (posixtime): The code to reject invalid dates
81038         would also reject a time specified with the .60 suffix.
81039         But POSIX allows that, in order to accommodate leap seconds.
81040         So don't reject it.
81041         (main): Adjust tests accordingly.
81042         * modules/posixtm (Depends-on): Add stpcpy.
81044 2009-09-11  Jim Meyering  <meyering@redhat.com>
81046         announce-gen: include [$release_type] in emitted Subject:
81047         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
81048         e.g., [stable] in the emitted Subject: line.
81050 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81052         Remove obsolete macros from several modules.
81053         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
81054         obsolete Autoconf macros with their modern counterparts.
81055         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
81056         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
81057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
81058         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
81059         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
81060         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
81062         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
81063         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
81064         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
81065         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
81066         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
81067         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
81068         * m4/sockets.m4 (gl_SOCKETS): Likewise.
81069         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
81070         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
81071         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81072         * m4/time_r.m4 (gl_TIME_R): Likewise.
81073         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
81074         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
81075         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81077         Fix copyright header in build-aux scripts.
81078         * build-aux/git-version-gen: Fix copyright header to match GPLv3
81079         recommendation.
81080         * build-aux/ncftpput-ftp: Likewise.
81081         * build-aux/update-copyright: Likewise.
81083 2009-09-09  Eric Blake  <ebb9@byu.net>
81085         test-link: allow Linux choice of errno
81086         * tests/test-link.c (main): Relax test for alternate error.
81088         strndup: fix improper m4 caching
81089         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
81090         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
81091         (gl_PREREQ_STRNDUP): Delete.
81092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
81093         * modules/string (Makefile.am): Substitute it.
81094         * lib/string.in.h (strndup): Modernize prototype.
81096         getcwd: port to mingw
81097         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
81098         different from the POSIX assumptions made throughout the getcwd
81099         module; fortunately, the mingw getcwd does not need replacement.
81100         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
81101         * modules/getcwd-tests: New test.
81102         * tests/test-getcwd.c: Likewise.
81104         link: fix platform bugs
81105         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
81106         * lib/link.c (link): Work around them.  Fix related mingw bug.
81107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
81108         * modules/unistd (Makefile.am): Substitute it.
81109         * lib/unistd.in.h (link): Declare replacement.
81110         * doc/posix-functions/link.texi (link): Document this.
81111         * modules/link (Depends-on): Add strdup-posix, sys_stat.
81113         test-link: consolidate into single C program, test more cases
81114         * tests/test-link.sh: Delete.
81115         * tests/test-link.c: Test more error conditions.  Exposes bugs on
81116         at least Cygwin and Solaris.
81117         * modules/link-tests (Files): Remove unused file.
81118         (Depends-on): Add errno, sys_stat.
81119         (Makefile.am): Simplify.
81121 2009-09-08  Bruno Haible  <bruno@clisp.org>
81123         Work around towlower, towupper bug on mingw.
81124         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
81125         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
81126         * doc/posix-functions/towlower.texi: Mention the mingw bug.
81127         * doc/posix-functions/towupper.texi: Likewise.
81128         Reported by Eric Blake.
81130 2009-09-08  Jim Meyering  <meyering@redhat.com>
81132         build: don't try to run autoheader if we don't use it
81133         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
81134         is not used in configure.ac.
81136 2009-09-08  Eric Blake  <ebb9@byu.net>
81138         euidaccess: fix compilation error
81139         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
81141         rawmemchr: relax license
81142         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
81143         okay.
81144         Reported by Jim Meyering.
81146         mkfifoat: new module
81147         * modules/mkfifoat: New file.
81148         * lib/mkfifoat.c: Likewise.
81149         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
81150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
81151         * modules/sys_stat (Makefile.am): Use them.
81152         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
81153         * MODULES.html.sh (File system functions): Mention module.
81154         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
81155         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
81156         * modules/mkfifoat-tests: New test.
81157         * tests/test-mkfifoat.c: Likewise.
81159         strchrnul: relax license
81160         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
81161         okay.
81162         Reported by Jim Meyering.
81164 2009-09-08  Eric Blake  <ebb9@byu.net>
81166         fstatat: fix compilation on Solaris
81167         * lib/fstatat.c (includes): Add fcntl.h.
81168         Reported by Pádraig Brady.
81170 2009-09-07  Eric Blake  <ebb9@byu.net>
81172         rename: modernize replacement
81173         * modules/rename (Depends-on): Add stdio.
81174         (configure.ac): Declare witness.
81175         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
81176         stdio take care of replacement.
81177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81178         * modules/stdio (Makefile.am): Substitute them.
81179         * lib/stdio.in.h (rename): Declare replacement.
81180         * lib/rename.c (includes): Allow cross-compilation to non-windows
81181         machines.
81182         * doc/posix-functions/rename.texi (rename): Improve
81183         documentation.
81185         stdio: sort witness names
81186         * modules/stdio (Makefile.am): Sort replacements.
81187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81188         * lib/stdio.in.h: Likewise.
81190         getcwd: minor cleanups
81191         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
81192         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
81194         openat: provide more convenience names
81195         * modules/faccessat (configure.ac): Add C witness.
81196         * lib/unistd.in.h (readlinkat): Fix typo.
81197         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
81198         convenience wrappers.
81199         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
81200         wrappers in syntax checks.
81202 2009-09-06  Eric Blake  <ebb9@byu.net>
81204         doc: fix comments in recent patches
81205         * lib/faccessat.c: Mention correct function.
81206         * lib/fchmodat.c: Likewise.
81207         * lib/fchownat.c: Likewise.
81208         * lib/symlinkat.c: Likewise.
81209         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81210         constants.
81212         faccessat, symlinkat: continue cleanup of previous patch
81213         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
81214         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81215         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
81216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
81217         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
81218         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
81219         set.
81221 2009-09-06  Bruno Haible  <bruno@clisp.org>
81223         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
81224         (fstatat): Declare if GNULIB_FSTATAT is set.
81225         (mkdirat): Declare if GNULIB_MKDIRAT is set.
81226         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
81227         (unlinkat): Declare if GNULIB_UNLINKAT is set.
81228         * modules/fcntl-h (Files): Remove m4/openat.m4.
81229         * modules/sys_stat (Files): Remove m4/openat.m4.
81230         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
81231         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
81232         * modules/unistd (Files): Remove m4/openat.m4.
81233         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
81234         GNULIB_OPENAT.
81235         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
81236         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
81237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
81238         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
81239         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
81240         gl_OPENAT_DEFAULTS.
81241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
81242         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
81243         Don't require gl_OPENAT_DEFAULTS.
81244         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
81245         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
81246         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
81247         (gl_OPENAT_DEFAULTS): Remove macro.
81249 2009-09-06  Bruno Haible  <bruno@clisp.org>
81251         * modules/openat (configure.ac): Remove unneeded witness.
81253 2009-09-06  Bruno Haible  <bruno@clisp.org>
81255         Set errno to ENOSYS when a function is entirely unsupported.
81256         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
81257         EOPNOTSUPP.
81258         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81259         * modules/chown (Depends-on): Remove errno.
81261 2009-09-06  Bruno Haible  <bruno@clisp.org>
81263         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
81265 2009-09-06  Bruno Haible  <bruno@clisp.org>
81267         * lib/sys_stat.in.h: Fix preprocessor command indentation.
81269 2009-09-06  Ben Pfaff  <blp@gnu.org>
81270             Bruno Haible  <bruno@clisp.org>
81272         Work around a glibc bug in strtok_r.
81273         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
81274         Undefine if UNDEFINE_STRTOK_R is set.
81275         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
81276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81277         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
81278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
81279         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
81280         UNDEFINE_STRTOK_R.
81281         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
81283 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
81285         exclude: minor fix
81286         * lib/exclude.c: Include wctype.h
81288 2009-09-06  Akim Demaille  <demaille@gostai.com>
81290         bootstrap: improve error message
81291         * build-aux/bootstrap (find_tool): Upon failure, report the list
81292         of candidates.
81293         Honor the initial value of the envvar.
81295 2009-09-05  Eric Blake  <ebb9@byu.net>
81297         symlinkat: new module
81298         * modules/symlinkat: New file.
81299         * lib/symlinkat.c: Likewise.
81300         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
81301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
81302         * modules/unistd (Makefile.am): Use them.
81303         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
81304         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
81305         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
81306         * MODULES.html.sh (File system functions): Mention module.
81307         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
81308         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
81309         * modules/symlinkat-tests: New test.
81310         * tests/test-symlinkat.c: Likewise.
81312         test-openat-safer: add more checks
81313         * tests/test-openat-safer.c (main): Check more code paths.
81315 2009-09-05  Jim Meyering  <meyering@redhat.com>
81317         syntax-check: detect unnecessary inclusion of openat.h
81318         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
81320 2009-09-05  Bruno Haible  <bruno@clisp.org>
81322         Support towlower, towupper.
81323         * doc/posix-functions/towlower.texi: Mention module wctype.
81324         * doc/posix-functions/towupper.texi: Likewise.
81325         * lib/wctype.in.h (towlower, towupper): New functions.
81326         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81327         (ASSERT): New macro.
81328         (e): New variable.
81329         (main): Test also towlower, towupper. Test WEOF argument.
81330         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81332 2009-09-05  Bruno Haible  <bruno@clisp.org>
81334         Fix conversion behaviour when the input is invalid.
81335         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81336         mark occurring in first pass of indirect conversion.
81337         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81338         input.
81339         Found by clang's static analyzer.
81341 2009-09-05  Bruno Haible  <bruno@clisp.org>
81343         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81344         where direct conversion is possible.
81346 2009-09-04  Eric Blake  <ebb9@byu.net>
81348         openat: fail with ENOENT on empty name
81349         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81350         buffer.
81352         link-follow: fix logic bug in prior patch
81353         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81354         reversed sense of yes and no in prior patch.  Avoid confusing
81355         compilation failure with desired semantics.
81357         link-follow: accommodate mingw and cross-compilation
81358         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81359         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81360         cross-compilation results to -1, to make linkat easier to
81361         implement when cross-compiling.  Trivially support mingw.
81362         * modules/link-follow (configure.ac): Call new name.
81363         * NEWS: Mention this.
81365 2009-09-03  Eric Blake  <ebb9@byu.net>
81367         faccessat: compile replacement
81368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81369         needed.
81371         fts: fix compilation error
81372         * lib/fts.c (includes): Re-add "openat.h", for
81373         openat_needs_fchdir.
81375         faccessat: new module
81376         * modules/faccessat: New file.
81377         * lib/faccessat.c: Likewise.
81378         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81380         * modules/unistd (Makefile.am): Use it.
81381         * lib/unistd.in.h (faccessat): Declare it.
81382         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81383         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81384         * MODULES.html.sh (File system functions): Mention it.
81385         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81386         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81388         euidaccess: prefer POSIX over non-standard implementation
81389         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81390         * lib/euidaccess.c (euidaccess): Use it if available.
81392         openat: make template easier to use
81393         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81394         AT_FUNC_F2 to be undefined.
81395         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81396         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81397         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81398         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81399         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81400         Likewise.
81401         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81402         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81403         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81404         Likewise.
81406         openat: declare in POSIX headers
81407         * NEWS: Mention this.
81408         * modules/openat (configure.ac): Declare witnesses.
81409         (Depends-on): Add fcntl-h, sys_stat, unistd.
81410         (Include): Mention correct headers.
81411         * modules/fcntl-h (Depends-on): Add link-warning.
81412         (Files): Add openat.m4.
81413         (Makefile.am): Substitute witnesses.
81414         * modules/sys_stat (Files, Makefile.am): Likewise.
81415         * modules/unistd (Files, Makefile.am): Likewise.
81416         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81417         (gl_OPENAT_DEFAULTS): New macro.
81418         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81421         (SYS_STAT_H): Remove unused variable.
81422         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81423         * lib/fcntl--.h (includes): Remove unneeded header.
81424         * lib/openat-safer.c (includes): Likewise.
81425         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81426         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81427         appropriate headers.
81428         (__OPENAT_PREFIX): Delete.
81429         * lib/fcntl.in.h (openat): Provide declaration.
81430         (AT_FDCWD): Fix Solaris bug.
81431         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81432         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81433         * lib/fchmodat.c (includes):  Adjust to find declaration.
81434         * lib/fchownat.c (includes): Likewise.
81435         * lib/mkdirat.c (includes): Likewise.
81436         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81437         still visible.
81439 2009-09-02  Eric Blake  <ebb9@byu.net>
81441         errno: use consistently
81442         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81443         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81444         * lib/canonicalize.c (ELOOP): Likewise.
81445         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81446         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81447         * lib/lchown.c (EOPNOTSUPP): Likewise.
81448         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81449         * lib/savewd.c (ESTALE): Likewise.
81450         * lib/settime.c (ENOSYS): Likewise.
81451         * lib/utimens.c (ENOSYS): Likewise.
81452         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81453         * lib/chdir-safer.c (ELOOP): Likewise.
81454         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81455         * modules/c-stack (Depends-on): Add errno.
81456         * modules/canonicalize (Depends-on): Likewise.
81457         * modules/chdir-safer (Depends-on): Likewise.
81458         * modules/fdopendir (Depends-on): Likewise.
81459         * modules/inet_ntop (Depends-on): Likewise.
81460         * modules/inet_pton (Depends-on): Likewise.
81461         * modules/lchown (Depends-on): Likewise.
81462         * modules/openat (Depends-on): Likewise.
81463         * modules/savewd (Depends-on): Likewise.
81464         * modules/settime (Depends-on): Likewise.
81465         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81467         fts: avoid leaking fds
81468         * modules/fts (Depends-on): Add cloexec.
81469         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81470         flag.
81472         fts: make directory fds more robust
81473         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81474         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81476         backupfile, chdir-long, fts, savedir: make safer
81477         * lib/backupfile.c (includes): Use "dirent--.h", since
81478         numbered_backup can write to stderr during readdir.
81479         * lib/savedir.c (includes): Likewise.
81480         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81481         emulation can write to stderr on failure.
81482         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81483         * lib/getcwd.c: Document why opendir_safer is unused.
81484         * lib/glob.c: Likewise.
81485         * lib/scandir.c: Likewise.
81486         * lib/openat-proc.c: Likewise, for open_safer.
81487         * modules/backupfile (Depends-on): Add dirent-safer.
81488         * modules/savedir (Depends-on): Likewise.
81489         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81490         * modules/chdir-long (Depends-on): Add openat-safer.
81492         openat-safer: new module
81493         * modules/openat-safer: New file.
81494         * lib/openat-safer.c: Likewise.
81495         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81496         * lib/fcntl-safer.h (openat_safer): Declare.
81497         * lib/fcntl--.h (openat): Override.
81498         * MODULES.html.sh (File descriptor based I/O): Mention it.
81499         * lib/openat.h: Add double-inclusion guards.
81500         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81501         "fcntl--.h", so we can implement openat.
81502         * modules/openat-safer-tests: New test.
81503         * tests/test-openat-safer.c: New file.
81505         dirent-safer: new module
81506         * modules/dirent-safer: New file.
81507         * lib/dirent--.h: Likewise.
81508         * lib/dirent-safer.h: Likewise.
81509         * lib/opendir-safer.c: Likewise.
81510         * m4/dirent-safer.m4: Likewise.
81511         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81512         * modules/dirent-safer-tests: New test.
81513         * tests/test-dirent-safer.c: New file.
81514         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81516         fdopendir: optimize on mingw
81517         * lib/unistd.in.h (_gl_directory_name): New prototype.
81518         * lib/fchdir.c (_gl_directory_name): Implement it.
81519         (fchdir): Use it to simplify implementation.
81520         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81521         fchdir, when available, to avoid calling [f]chdir().
81523         fdopendir: split into its own module
81524         * lib/openat.c (fdopendir): Move...
81525         * lib/fdopendir.c: ...into new file.
81526         * modules/fdopendir: New module.
81527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81528         * modules/openat (Depends-on): Add fdopendir.
81529         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81530         fdopendir here.
81531         * modules/savedir (Depends-on): Only need fdopendir, not full
81532         openat.
81533         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81534         * lib/openat.h (fdopendir): Drop prototype.
81535         * lib/dirent.in.h (fdopendir): Provide prototype.
81536         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81537         * modules/dirent (Makefile.am): Substitute them.
81538         * MODULES.html.sh (File system functions): Mention it.
81539         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81540         * modules/fdopendir-tests: New file.
81541         * tests/test-fdopendir.c: Likewise.
81543         fchdir: use more consistent macro convention
81544         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81545         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81546         REPLACE_FCHDIR, rather than relying on config.h macros.
81547         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81548         inside a single make-time REPLACE_FCHDIR block, rather than using
81549         the config.h FCHDIR_REPLACEMENT.
81550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81551         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81552         Manage fstat replacement.
81553         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81554         REPLACE_FCHDIR.
81555         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81556         (Makefile.am): Substitute REPLACE_FCHDIR.
81557         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81558         FCHDIR_REPLACEMENT.
81559         * lib/dup-safer.c (dup_safer): Likewise.
81560         * lib/dup2.c (rpl_dup2): Likewise.
81561         * lib/dup3.c (rpl_dup3): Likewise.
81562         * lib/open.c (rpl_open): Likewise.
81564         fchdir: simplify error handling, and support dup3
81565         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81566         stdbool, malloc-posix, realloc-posix.
81567         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81568         (ensure_dirs_slot): Return false on allocation failure.
81569         (rpl_dup2): Delete.
81570         (_gl_register_dup): New function.
81571         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81572         (_gl_register_fd): Close fd on allocation failure.
81573         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81574         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81575         prototype.
81576         (rpl_dup2_fchdir): Delete prototype.
81577         * lib/open.c (open): Update caller.
81578         * lib/dup2.c (dup2): Track fchdir metadata.
81579         * lib/dup3.c (dup3): Likewise.
81580         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81583 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81585         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81586         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81587         don't pass arguments to AC_OUTPUT.
81589 2009-09-02  Bruno Haible  <bruno@clisp.org>
81591         * modules/mkdtemp (License): Relicense under LGPLv2+.
81592         Reported by Paolo Bonzini.
81594 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81596         Replace uses of obsolete autoconf macros in Jim's modules.
81597         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81598         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81599         can evoke a warning from autoconf when run with -Wobsolete
81600         enabled.  They were declared obsolete for good reasons (see
81601         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81602         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81603         should not continue using the deprecated macros.
81604         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81605         obsolete Autoconf macros with modern counterparts.
81606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81607         * m4/dos.m4 (gl_AC_DOS): Likewise.
81608         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81610         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81611         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81612         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81613         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81614         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81615         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81616         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81617         Likewise.
81618         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81619         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81620         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81621         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81622         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81623         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81625 2009-09-01  Eric Blake  <ebb9@byu.net>
81627         fchdir: fix off-by-one bug in previous patch
81628         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81629         (_gl_unregister_fd): Delete useless if.
81631 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81633         maint.mk: sort the list of syntax-check rules
81634         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81635         easier to get a sense of progress when the rules are run sequentially
81636         and take a long time.
81638 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81640         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81641         * modules/netinet_in: Likewise.
81642         * modules/sys_file: Likewise.
81643         * modules/sys_ioctl: Likewise.
81644         * modules/sys_select: Likewise.
81645         * modules/sys_socket: Likewise.
81646         * modules/sys_stat: Likewise.
81647         * modules/sys_time: Likewise.
81648         * modules/sys_times: Likewise.
81649         * modules/sys_utsname: Likewise.
81650         * modules/sys_wait: Likewise.
81652 2009-09-01  Jim Meyering  <meyering@redhat.com>
81654         fts: help ensure that return values are not ignored
81655         * lib/fts_.h (__GNUC_PREREQ): Define.
81656         (__attribute_warn_unused_result__): Define.
81657         (fts_children, fts_close, fts_open, fts_read): Declare with
81658         __attribute_warn_unused_result__.
81660         fts: fts_close now fails also when closing a dir file descriptor fails
81661         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81662         and propagate to caller, along with errno.
81664         announce-gen: correct formatting in --help output
81665         * build-aux/announce-gen (usage): Move the one-line description in
81666         --help output "up", to where it belongs, just after Usage:.
81668 2009-08-31  Eric Blake  <ebb9@byu.net>
81670         fchdir: port to mingw
81671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81672         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81673         opened, then use a substitute.
81674         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81675         replacement.
81676         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81677         (_gl_register_fd): No need to check stat if open already filters
81678         all directories.
81679         (fchdir): Fix error condition to match POSIX.
81680         * modules/fchdir (Depends-on): Add sys_stat.
81681         * doc/posix-functions/open.texi (open): Document the limitation.
81682         * modules/fchdir-tests: New file.
81683         * tests/test-fchdir.c: Likewise.
81685         canonicalize: allow cross-testing from cygwin to mingw
81686         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81687         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81688         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81689         Likewise.
81690         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81691         target does not support symlinks.
81692         * tests/test-canonicalize-lgpl.sh: Likewise.
81694         chown: avoid compilation warning on mingw
81695         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81696         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81697         mingw.
81698         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81699         * modules/chown (Depends-on): Add errno.
81701 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81703         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81704         command.
81706 2009-08-31  Jim Meyering  <meyering@redhat.com>
81708         canonicalize: remove useless initialization
81709         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81710         initialization of local, "end".
81712 2009-08-30  Bruno Haible  <bruno@clisp.org>
81714         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81715         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81716         ENOSYS.
81718 2009-08-30  Bruno Haible  <bruno@clisp.org>
81720         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81721         /usr/xpg4/bin/tr when it exists.
81722         * tests/test-pipe-filter-gi1.sh: Likewise.
81724 2009-08-30  Bruno Haible  <bruno@clisp.org>
81726         Work around deficient /usr/bin/id program on Solaris.
81727         * tests/test-file-has-acl.sh (ID): New variable.
81728         * tests/test-set-mode-acl.sh (ID): Likewise.
81729         * tests/test-copy-acl.sh (ID): Likewise.
81730         * tests/test-copy-file.sh (ID): Likewise.
81732 2009-08-30  Bruno Haible  <bruno@clisp.org>
81734         New module 'xstriconveh'.
81735         * lib/xstriconveh.h: New file.
81736         * lib/xstriconveh.c: New file.
81737         * modules/xstriconveh: New file.
81739 2009-08-30  Bruno Haible  <bruno@clisp.org>
81741         Make it easier to use mem_cd_iconveh.
81742         * lib/striconveh.h (iconveh_t): New type.
81743         (iconveh_open, iconveh_close): New declarations.
81744         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81745         with a single 'const iconveh_t *' argument.
81746         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81747         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81748         with a single 'const iconveh_t *' argument.
81749         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81750         * tests/test-striconveh.c (main): Update.
81751         * NEWS: Mention the change.
81753 2009-08-30  Bruno Haible  <bruno@clisp.org>
81755         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81756         problem.
81758 2009-08-30  Bruno Haible  <bruno@clisp.org>
81760         Work around iconv_open problem on Solaris.
81761         * lib/iconv_open-solaris.gperf: New file.
81762         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81763         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81764         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81765         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81766         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81767         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81769 2009-08-29  Jim Meyering  <meyering@redhat.com>
81771         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81772         * top/maint.mk (cvs-check): Remove target; it was just an alias
81773         to the better-named vc-diff-check.
81774         (maintainer-distcheck): Remove rule.  It was used only from
81775         the (alpha/beta/major) target, and all of its commands but one
81776         were coreutils-specific.
81777         (vc-dist): Remove rule.
81778         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81779         Run vc-diff-check, not vc-dist.
81780         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81782 2009-08-27  Bruno Haible  <bruno@clisp.org>
81784         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81785         of 0.
81787 2009-08-27  Bruno Haible  <bruno@clisp.org>
81789         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81790         compilers.
81791         * doc/func.texi: Document the SunPRO C bug.
81793 2009-08-27  Bruno Haible  <bruno@clisp.org>
81795         Fix link error on Solaris.
81796         * tests/test-parse-duration.c (xstrdup): Remove function.
81798 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81800         ignore-value: handle pointer types, too
81801         * lib/ignore-value.h (__attribute__): Remove definition.
81802         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81803         of a more concise and more-often effective "(void) i" statement.
81804         (ignore_ptr): New function to suppress warnings from functions that
81805         return pointers, and to make it explicit that one function doesn't
81806         handle all cases.
81808 2009-08-25  Bruno Haible  <bruno@clisp.org>
81810         dup2: work around a Linux bug.
81811         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81812         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81813         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81814         Reported by Simon Josefsson.
81816 2009-08-25  Jim Meyering  <meyering@redhat.com>
81818         libguestfs uses gnulib
81819         * users.txt: Add libguestfs.
81821 2009-08-24  Eric Blake  <ebb9@byu.net>
81823         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81824         * lib/pipe2.c (includes): Add binary-io.h.
81825         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81827 2009-08-24  Bruno Haible  <bruno@clisp.org>
81829         Tolerate declared but missing accept4 syscall.
81830         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81831         available.
81832         * lib/sys_socket.in.h (accept4): If the function is already present,
81833         override it.
81834         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81835         * modules/accept4 (Makefile.am): Compile accept4.c always.
81836         Reported by Paolo Bonzini and Eric Blake.
81838 2009-08-23  Bruno Haible  <bruno@clisp.org>
81840         New module 'accept4'.
81841         * lib/sys_socket.in.h (accept4): New declaration.
81842         * lib/accept4.c: New file.
81843         * m4/accept4.m4: New file.
81844         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81845         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81846         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81847         HAVE_ACCEPT4.
81848         * modules/accept4: New file.
81849         * doc/glibc-functions/accept4.texi: Mention the new module.
81851 2009-08-24  Jim Meyering  <meyering@redhat.com>
81853         progname: also set global program_invocation_name, when possible
81854         Before this change, a libtool-enabled program that calls glibc's
81855         error function would report the program name as
81856         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81857         * modules/progname (configure.ac): Check for a declaration of
81858         program_invocation_name.
81859         * lib/progname.c:  Include <errno.h>.
81860         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81861         Set program_invocation_name.
81863 2009-08-23  Bruno Haible  <bruno@clisp.org>
81865         * lib/dup3.c: Include <string.h>.
81867 2009-08-23  Bruno Haible  <bruno@clisp.org>
81869         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81870         * lib/pipe2.c (pipe2): Likewise.
81871         Suggested by Eric Blake.
81873 2009-08-23  Bruno Haible  <bruno@clisp.org>
81875         Tolerate declared but missing dup3 syscall.
81876         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81877         * lib/unistd.in.h (dup3): If the function is already present,
81878         override it.
81879         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81880         * modules/dup3 (Makefile.am): Compile dup3.c always.
81881         Reported by Paolo Bonzini.
81883 2009-08-23  Bruno Haible  <bruno@clisp.org>
81885         Tolerate declared but missing pipe2 syscall.
81886         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81887         available.
81888         * lib/unistd.in.h (pipe2): If the function is already present,
81889         override it.
81890         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81891         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81892         Reported by Paolo Bonzini.
81894 2009-08-23  Bruno Haible  <bruno@clisp.org>
81896         * lib/pipe2.c (pipe2): Move #ifs inside function.
81898 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81900         quotearg: document limitations of quote_these_too
81901         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81902         those limitations are created.
81903         * lib/quotearg.h (set_char_quoting): Document that digits and
81904         letters that are special after backslash are not permitted.
81905         (quotearg_char): Cross-reference set_char_quoting documentation.
81907 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81909         quotearg: implement custom_quoting_style
81910         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81911         right_quote fields.
81912         (set_custom_quoting): New public function.
81913         (quotearg_buffer_restyled): Add left_quote and right_quote
81914         arguments, handle them very much like locale quoting, and update
81915         all uses.
81916         (quotearg_n_custom): New public function.
81917         (quotearg_n_custom_mem): New public function.
81918         (quotearg_custom): New public function.
81919         (quotearg_custom_mem): New public function.
81920         * lib/quotearg.h: Prototype and document new public functions.
81921         (enum quoting_style): For escape_quoting_style and
81922         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81923         ignored even though they're otherwise like c_quoting_style.
81924         Add custom_quoting_style member and document with comparison to
81925         clocale_quoting_style.
81926         * tests/test-quotearg.c (custom_quotes): New array.
81927         (custom_results): New array.
81928         (main): Extend to test custom quoting.
81930 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81932         quotearg: fix right quote escaping when it's in quote_these_too
81933         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81934         quote, be sure to prepend only one backslash.
81935         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81936         (main): Test it.
81938 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81940         quotearg-tests: test escaping of embedded locale quotes
81941         * tests/test-quotearg.c (struct result_strings): Add member for
81942         new input.
81943         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81944         (inputs): Add new input.
81945         (results_g): Add expected results.
81946         (flag_results): Likewise.
81947         (locale_results): Likewise.
81948         (compare_strings): Check those.
81950 2009-08-23  Bruno Haible  <bruno@clisp.org>
81952         Tests for module 'dup3'.
81953         * modules/dup3-tests: New file.
81954         * tests/test-dup3.c: New file.
81956         New module 'dup3'.
81957         * lib/unistd.in.h (dup3): New declaration.
81958         * lib/dup3.c: New file.
81959         * m4/dup3.m4: New file.
81960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81961         HAVE_DUP3.
81962         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81963         * modules/dup3: New file.
81964         * doc/glibc-functions/dup3.texi: Mention the new module.
81966 2009-08-23  Bruno Haible  <bruno@clisp.org>
81968         Tweak the dup2 test.
81969         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81970         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81971         the test file is still empty. Fix argument order of lseek.
81973 2009-08-23  Bruno Haible  <bruno@clisp.org>
81975         Avoid test link errors when the modules getopt-gnu, gettext are used.
81976         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81979 2009-08-23  Bruno Haible  <bruno@clisp.org>
81981         Fix getdtablesize() on mingw.
81982         * lib/getdtablesize.c (getdtablesize): Implement differently.
81983         * lib/unistd.in.h (getdtablesize): Improve comment.
81985 2009-08-23  Bruno Haible  <bruno@clisp.org>
81987         New module 'mkostemp'.
81988         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81989         * lib/stdlib.in.h (mksotemp): New declaration.
81990         * lib/mkostemp.c: New file, from glibc with modifications.
81991         * lib/tempname.h (GT_FILE): Remove outdated comment.
81992         (gen_tempname): Add flags argument.
81993         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81994         (__GT_FILE): Map to 1.
81995         (small_open, large_open): Remove macros.
81996         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81997         * lib/mkstemp.c (mkstemp): Update.
81998         * lib/mkdtemp.c (mkdtemp): Likewise.
81999         * m4/mkostemp.m4: New file.
82000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
82001         HAVE_MKOSTEMP.
82002         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
82003         HAVE_MKOSTEMP.
82004         * modules/mkostemp: New file, based on modules/mkstemp.
82005         * doc/glibc-functions/mkostemp.texi: Mention the new module.
82006         * NEWS: Mention the change.
82008 2009-08-23  Bruno Haible  <bruno@clisp.org>
82010         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
82011         Reported by Eric Blake.
82013 2009-08-23  Bruno Haible  <bruno@clisp.org>
82015         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
82016         Reported by Eric Blake.
82018 2009-08-23  Bruno Haible  <bruno@clisp.org>
82020         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
82021         * modules/pipe2 (Depends-on): Likewise.
82023 2009-08-23  Eric Blake  <ebb9@byu.net>
82025         fcntl-h: add O_TTY_INIT support
82026         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
82027         * tests/test-fcntl-h.c (o): Test it.
82028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82030         fcntl-h: rename from fcntl, in preparation for fcntl(2)
82031         * modules/fcntl: Move <fcntl.h> header replacement...
82032         * modules/fcntl-h: ...to new name, so as not to collide with
82033         like-named function.
82034         * tests/test-fcntl.c: Rename...
82035         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
82036         * modules/fcntl-tests: Rename...
82037         * modules/fcntl-h-tests: ...to this.  Update test file name.
82038         * modules/chdir-long (Depends-on): Update clients.
82039         * modules/chdir-safer (Depends-on): Likewise.
82040         * modules/fcntl-safer (Depends-on): Likewise.
82041         * modules/fts (Depends-on): Likewise.
82042         * modules/mkancesdirs (Depends-on): Likewise.
82043         * modules/mkdir-p (Depends-on): Likewise.
82044         * modules/open (Depends-on): Likewise.
82045         * modules/savewd (Depends-on): Likewise.
82046         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
82047         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82049 2009-08-22  Bruno Haible  <bruno@clisp.org>
82051         * modules/binary-io (License): Relicense under LGPL.
82052         * modules/pipe2 (License): Likewise.
82054 2009-08-22  Bruno Haible  <bruno@clisp.org>
82056         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
82057         return value.
82058         * lib/pipe-filter-gi.c (filter_init): Likewise.
82059         Reported by Eric Blake.
82061 2009-08-22  Bruno Haible  <bruno@clisp.org>
82063         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
82064         * modules/pipe (Depends-on): Add pipe2.
82066 2009-08-22  Bruno Haible  <bruno@clisp.org>
82068         Tests for module 'pipe2'.
82069         * modules/pipe2-tests: New file.
82070         * tests/test-pipe2.c: New file.
82072         New module 'pipe2'.
82073         * lib/unistd.in.h (pipe2): New declaration.
82074         * lib/pipe2.c: New file.
82075         * m4/pipe2.m4: New file.
82076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
82077         HAVE_PIPE2.
82078         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
82079         * modules/pipe2: New file.
82080         * doc/glibc-functions/pipe2.texi: Mention the new module.
82082 2009-08-22  Bruno Haible  <bruno@clisp.org>
82084         Reference some new glibc functions.
82085         * doc/glibc-functions/accept4.texi: New file.
82086         * doc/glibc-functions/dup3.texi: New file.
82087         * doc/glibc-functions/mkostemp.texi: New file.
82088         * doc/glibc-functions/pipe2.texi: New file.
82089         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
82090         (Glibc sys/socket.h): Refer to accept4.
82091         (Glibc unistd.h): Refer to dup3, pipe2.
82092         Reported by Eric Blake.
82094 2009-08-22  Jim Meyering  <meyering@redhat.com>
82095             Bruno Haible  <bruno@clisp.org>
82097         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
82098         This makes it so packages using automake-1.11's silent-rules option
82099         can print e.g., a single "GEN    configmake.h" line, rather than
82100         the 30+ statements that perform the job.  If you want to see the
82101         actual commands, you can still run "make V=1".
82102         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
82103         so that make output is abbreviated when those variables are defined
82104         appropriately.
82105         * modules/argz: Likewise.
82106         * modules/arpa_inet: Likewise.
82107         * modules/byteswap: Likewise.
82108         * modules/configmake: Likewise.
82109         * modules/dirent: Likewise.
82110         * modules/errno: Likewise.
82111         * modules/fcntl: Likewise.
82112         * modules/float: Likewise.
82113         * modules/fnmatch: Likewise.
82114         * modules/getopt-posix: Likewise.
82115         * modules/glob: Likewise.
82116         * modules/iconv_open: Likewise.
82117         * modules/inttypes: Likewise.
82118         * modules/localcharset: Likewise.
82119         * modules/locale: Likewise.
82120         * modules/math: Likewise.
82121         * modules/netdb: Likewise.
82122         * modules/netinet_in: Likewise.
82123         * modules/poll: Likewise.
82124         * modules/posix_spawnp-tests: Likewise.
82125         * modules/sched: Likewise.
82126         * modules/search: Likewise.
82127         * modules/selinux-h: Likewise.
82128         * modules/signal: Likewise.
82129         * modules/spawn: Likewise.
82130         * modules/stdarg: Likewise.
82131         * modules/stdbool: Likewise.
82132         * modules/stddef: Likewise.
82133         * modules/stdint: Likewise.
82134         * modules/stdio: Likewise.
82135         * modules/stdlib: Likewise.
82136         * modules/string: Likewise.
82137         * modules/strings: Likewise.
82138         * modules/sys_file: Likewise.
82139         * modules/sys_ioctl: Likewise.
82140         * modules/sys_select: Likewise.
82141         * modules/sys_socket: Likewise.
82142         * modules/sys_stat: Likewise.
82143         * modules/sys_time: Likewise.
82144         * modules/sys_times: Likewise.
82145         * modules/sys_utsname: Likewise.
82146         * modules/sys_wait: Likewise.
82147         * modules/sysexits: Likewise.
82148         * modules/time: Likewise.
82149         * modules/unistd: Likewise.
82150         * modules/wchar: Likewise.
82151         * modules/wctype: Likewise.
82153 2009-08-22  Jim Meyering  <meyering@redhat.com>
82155         announce-gen: detect write failure
82156         * build-aux/announce-gen: Add Coda at end.
82157         Remove equivalent-but-more-verbose block at top.
82159 2009-08-19  Akim Demaille  <demaille@gostai.com>
82161         bootstrap: --help to stdout.
82162         * bootstrap (usage): Don't send --help to stderr.
82163         Use a here doc instead of a long string.
82165 2009-08-21  Eric Blake  <ebb9@byu.net>
82167         test-popen-safer: split from test-popen
82168         * tests/test-popen.c (main): Move...
82169         * tests/test-popen.h: ...into new file.
82170         * tests/test-popen-safer2.c: New file.
82171         * modules/popen-tests (Files): Add test-popen.h.
82172         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
82173         Suggested by Bruno Haible.
82175         test-fcntl-safer: split from test-open
82176         * tests/test-open.c (main): Move...
82177         * tests/test-open.h: ...into new file.
82178         * tests/test-fcntl-safer.c: New file.
82179         * modules/open-tests (Files): Add test-open.h.
82180         * modules/fcntl-safer-tests: New file.
82181         Suggested by Bruno Haible.
82183         test-fopen-safer: split from test-fopen
82184         * tests/test-fopen.c (main): Move...
82185         * tests/test-fopen.h: ...into new file.
82186         * tests/test-fopen-safer.c: New file.
82187         * modules/fopen-tests (Files): Add test-fopen.h.
82188         * modules/fopen-safer-tests: New file.
82189         Suggested by Bruno Haible.
82191 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82193         popen-safer: test O_CLOEXEC at run-time.
82194         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
82196 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82198         fcntl: move more flags to the header
82199         * lib/cloexec.c: Do not define FD_CLOEXEC here.
82200         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
82201         * lib/fcntl.in.h: Do both things here.
82203 2009-08-21  Jim Meyering  <meyering@redhat.com>
82205         consistently remove $@-t before redirecting to it
82206         * modules/argz: Remove $@-t and $@ before redirecting to the former.
82207         * modules/alloca-opt: Likewise.
82208         * modules/byteswap: Likewise.
82209         * modules/fnmatch: Likewise.
82210         * modules/getopt-posix: Likewise.
82211         * modules/glob: Likewise.
82212         * modules/poll: Likewise.
82213         * modules/posix_spawnp-tests: Likewise.
82214         * modules/sys_socket: Likewise.
82215         * modules/sysexits: Likewise.
82217 2009-08-21  Eric Blake  <ebb9@byu.net>
82219         popen: simplify access to original popen
82220         * lib/popen.c (rpl_popen): No need to worry about popen being a
82221         macro.
82222         Reported by Bruno Haible.
82224 2009-08-20  Eric Blake  <ebb9@byu.net>
82226         build: avoid some compiler warnings
82227         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
82228         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
82229         type.
82230         (new_exclude_segment, excluded_file_pattern_p)
82231         (excluded_file_name_p): Reduce scope.
82232         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
82233         old-style declaration.
82235 2009-08-20  Simon Josefsson  <simon@josefsson.org>
82237         * tests/test-exclude1.sh: Handle Windows EOL.
82238         * tests/test-exclude2.sh: Likewise.
82239         * tests/test-exclude3.sh: Likewise.
82240         * tests/test-exclude4.sh: Likewise.
82241         * tests/test-exclude5.sh: Likewise.
82242         * tests/test-exclude6.sh: Likewise.
82243         * tests/test-exclude7.sh: Likewise.
82245 2009-08-19  Akim Demaille  <demaille@gostai.com>
82247         bootstrap: find sha1sum when named gsha1sum.
82248         * bootstrap (find_tool): New.
82249         ($SHA1SUM): New.
82250         Use it.
82252 2009-08-20  Jim Meyering  <meyering@redhat.com>
82254         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
82255         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
82256         expression that converts "." in a file name to "\." in the resulting
82257         regexp.  Start with a dummy statement, so that prior shell variable
82258         definitions are expanded portably.  Reported by Simon Josefsson.
82260 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
82262         Fix polling for writeability of a screen buffer.
82263         * lib/poll.c: Distinguish input and screen buffers for the
82264         Win32 implementation.
82265         * lib/select.c: Likewise.
82267 2009-08-19  Eric Blake  <ebb9@byu.net>
82269         popen-safer: prevent popen from clobbering std descriptors
82270         * modules/popen-safer: New file.
82271         * lib/popen-safer.c: Likewise.
82272         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
82273         * lib/stdio--.h (popen): Provide override.
82274         * lib/stdio-safer.h (popen_safer): Provide declaration.
82275         * tests/test-popen.c (includes): Partially test this.
82276         * modules/popen-safer-tests: New file, for more tests.
82277         * tests/test-popen-safer.c: Likewise.
82278         * MODULES.html.sh (file stream based Input/Output): Mention it.
82280         tests: test some of the *-safer modules
82281         * modules/fopen-safer (Depends-on): Add fopen.
82282         * modules/fcntl-safer (Depends-on): Add fcntl.
82283         * modules/stdlib-safer (Depends-on): Add stdlib.
82284         (configure.ac): Set indicator.
82285         * modules/unistd-safer (configure.ac): Likewise.
82286         * modules/tmpfile-safer (configure.ac): Likewise.
82287         (Depends-on): Add tmpfile.
82288         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
82289         active.
82290         * tests/test-fopen.c (includes): Test safer versions when they are
82291         in use.
82292         * tests/test-open.c (includes): Likewise.
82294         popen: fix cygwin 1.5 bug when stdin closed
82295         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
82296         * modules/popen: New file.
82297         * modules/popen-tests: Likewise.
82298         * tests/test-popen.c: Likewise.
82299         * m4/popen.m4: Likewise.
82300         * lib/popen.c: Likewise.
82301         * lib/stdio.in.h (popen): New declaration.
82302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
82303         * modules/stdio (Makefile.am): Likewise.
82304         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
82306 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
82308         maint.mk: give full control over update-copyright exclusions
82309         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
82310         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
82311         (update-copyright): Don't force inclusion of top-level
82312         ChangeLog.  Don't force exclusion of all COPYING files, but make
82313         them the default exclusion instead.
82315 2009-08-16  Bruno Haible  <bruno@clisp.org>
82317         Fix test failures on Solaris 10.
82318         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
82319         tests when Solaris iconv() is used.
82320         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82321         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82322         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82323         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82324         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82326 2009-08-16  Bruno Haible  <bruno@clisp.org>
82328         Fix test failures on Solaris 10.
82329         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82330         'tr' program and pass it as first argument.
82331         * tests/test-pipe-filter-gi1.sh: Likewise.
82332         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82333         program as first argument.
82334         * tests/test-pipe-filter-gi1.c (main): Likewise.
82336 2009-08-16  Eric Blake  <ebb9@byu.net>
82338         fpurge: fix previous commits
82339         * modules/fpurge (Makefile.am): Make replacement conditional,
82340         partially reverting 2007-04-29 change; missed in previous
82341         attempt.
82342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82343         is missing.
82345 2009-08-16  Bruno Haible  <bruno@clisp.org>
82347         Clarify fpurge's effect on the file position.
82348         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82349         * tests/test-fpurge.c (main): Make a second pass for checking the file
82350         position.
82352 2009-08-16  Bruno Haible  <bruno@clisp.org>
82354         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82355         declaration of fpurge is missing.
82356         * tests/test-fpurge.c (main): Check that the file has not more contents
82357         than expected. Close the file before removing it.
82359 2009-08-15  Eric Blake  <ebb9@byu.net>
82361         fpurge: don't wrap working cygwin implementation
82362         * lib/fpurge.c (fpurge): Fix comment typo.
82363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82364         1.7 to avoid replacement.
82365         * tests/test-fpurge.c (main): Enhance test.
82367 2009-08-15  Eric Blake  <ebb9@byu.net>
82368         and Jim Meyering  <meyering@redhat.com>
82370         test-update-copyright: skip if perl is insufficient
82371         * tests/test-update-copyright.sh: Failure to run maintainer tool
82372         should not cause testsuite failure on cygwin 1.5.
82374 2009-08-14  Eric Blake  <ebb9@byu.net>
82376         doc: mention more functions added in cygwin 1.7.0
82377         * doc/posix-headers/limits.texi (limits.h): Update for recent
82378         cygwin additions.
82379         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82380         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82381         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82382         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82383         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82385 2009-08-14  Eric Blake  <ebb9@byu.net>
82387         maint.mk: simplify update-copyright rule
82388         * top/maint.mk (update-copyright-local): Delete, and document how
82389         to do it in cfg.mk instead.
82390         (update-copyright-exclude-regexp): Delete, and document how to do
82391         it in .x-update-copyright instead.
82392         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82393         exclude ChangeLog.
82395 2009-08-14  Bruno Haible  <bruno@clisp.org>
82397         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82399 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82401         maint.mk: support update-copyright-env
82402         * top/maint.mk (update-copyright-env): Define place-holder.
82403         (update-copyright): Expand $(update-copyright-env) before
82404         invoking update-copyright.
82406 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82408         update-copyright: implement forced reformatting
82409         * build-aux/update-copyright: Implement and document
82410         UPDATE_COPYRIGHT_FORCE.
82411         * tests/test-update-copyright.sh: Test it.
82413 2009-08-14  Eric Blake  <ebb9@byu.net>
82414         and Bruno Haible  <bruno@clisp.org>
82416         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82417         * tests/test-locale.c: Revert previous patch related to NULL.
82418         * tests/test-stdio.c: Likewise.
82419         * tests/test-stdlib.c: Likewise.
82420         * tests/test-string.c: Likewise.
82421         * tests/test-unistd.c: Likewise.
82422         * modules/time-tests (Depends-on): Add verify.
82423         * modules/wchar-tests (Depends-on): Likewise.
82424         * tests/test-time.c: Test for NULL compliance.
82425         * tests/test-wchar.c: Likewise.
82426         * modules/locale (Depends-on): Add stddef.
82427         * modules/stdio (Depends-on): Likewise.
82428         * modules/stdlib (Depends-on): Likewise.
82429         * modules/string (Depends-on): Likewise.
82430         * modules/time (Depends-on): Likewise.
82431         * modules/unistd (Depends-on): Likewise.
82432         * modules/wchar (Depends-on): Likewise.
82433         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82434         * lib/stdlib.in.h (includes): Likewise.
82435         * lib/string.in.h (includes): Likewise.
82436         * lib/time.in.h (includes): Likewise.
82437         * lib/unistd.in.h (includes): Likewise.
82438         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82439         replaced.
82440         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82441         * m4/stddef_h.m4: New file.
82442         * modules/stddef: Likewise.
82443         * lib/stddef.in.h: Likewise.
82444         * modules/stddef-tests: Likewise.
82445         * tests/test-stddef.c: Likewise.
82446         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82447         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82448         * doc/posix-headers/locale.texi (locale.h): Likewise.
82449         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82450         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82451         * doc/posix-headers/string.texi (string.h): Likewise.
82452         * doc/posix-headers/time.texi (time.h): Likewise.
82453         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82454         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82456 2009-08-14  Eric Blake  <ebb9@byu.net>
82458         doc: improve git diff of texinfo files
82459         * .gitattributes: Add rule for *.texi files, with hint on how to
82460         use it.
82461         Copied from m4, and based on a report by Bruno Haible.
82463 2009-08-14  Bruno Haible  <bruno@clisp.org>
82465         Disable multithread support by default on Cygwin 1.5.x for real.
82466         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82468 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82470         update-copyright: much ado about intervals
82471         * build-aux/update-copyright: Implement and document
82472         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82473         of copyright year intervals.
82474         Also, document UPDATE_COPYRIGHT_YEAR.
82475         * tests/test-update-copyright.sh: Test it.
82477         update-copyright: convert 2-digit to 4-digit years
82478         * build-aux/update-copyright: Implement and document.
82479         * tests/test-update-copyright.sh: Update.
82481 2009-08-14  Jim Meyering  <meyering@redhat.com>
82483         test-exclude: avoid coreutils "make check" failure
82484         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82485         just as in test-argmatch.c.
82487 2009-08-13  Eric Blake  <ebb9@byu.net>
82489         test-dup2: fix bad assumption
82490         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82491         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82493         test-version-etc: fix CRLF portability issue
82494         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82495         recognize \r.
82496         * tests/test-argp-version-etc-1.sh: Likewise.
82498         getopt: update client modules
82499         * modules/argp (Depends-on): Use getopt-gnu.
82500         * modules/git-merge-changelog (Depends-on): Likewise.
82501         * modules/long-options (Depends-on): Likewise.
82502         * modules/xstrtol (Depends-on): Likewise.
82504 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82506         * tests/test-version-etc.sh: Don't fail on different
82507         project/version.  Don't fail on CRLF differences.  Rewrite to use
82508         multiple -e instead of multiple sed forks, suggested by Eric Blake
82509         <ebb9@byu.net>.
82510         * tests/test-argp-version-etc-1.sh: Likewise.
82512 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82514         * tests/test-version-etc.sh: Don't fail on different
82515         project/version.
82517 2009-08-12  Bruno Haible  <bruno@clisp.org>
82519         Tests for modules 'getopt-posix', 'getopt-gnu'.
82520         * modules/getopt-posix-tests: New file.
82521         * tests/test-getopt.c: New file.
82522         * tests/test-getopt.h: New file.
82523         * tests/test-getopt_long.h: New file.
82525         New modules 'getopt-posix', 'getopt-gnu'.
82526         * modules/getopt-gnu: New file, renamed from modules/getopt.
82527         * modules/getopt-posix: New file.
82528         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82529         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82530         (gl_GETOPT): Remove macro.
82531         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82532         Disable the test against BSD systems that declare optreset. Test
82533         against mingw bug. Test against lack of support of optional arguments
82534         on many platforms.
82535         * doc/glibc-headers/getopt.texi: Update module name and list of
82536         relevant platforms.
82537         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82538         'getopt-gnu' and more portability problems.
82539         * NEWS: Mention the changes.
82541 2009-08-12  Bruno Haible  <bruno@clisp.org>
82543         Ensure that optarg etc. get declared by <unistd.h>.
82544         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82545         AC_USE_SYSTEM_EXTENSIONS.
82546         * modules/getopt (Depends-on): Add 'extensions'.
82548 2009-08-12  Bruno Haible  <bruno@clisp.org>
82550         Avoid test link errors.
82551         * modules/pipe-filter-ii-tests (Makefile.am): Define
82552         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82553         * modules/pipe-filter-gi-tests (Makefile.am): Define
82554         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82555         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82557 2009-08-12  Bruno Haible  <bruno@clisp.org>
82559         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82560         gl_GETOPT_SUBSTITUTE before.
82561         (gl_GETOPT): Use it.
82562         * m4/argp.m4 (gl_ARGP): Update.
82563         Reported by Sergey Poznyakoff.
82565         * m4/getopt.m4: Reorder macros.
82566         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82567         (gl_GETOPT_SUBSTITUTE): Remove macro.
82569 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82571         Minor improvement in gitlog-to-changelog
82573         * build-aux/gitlog-to-changelog: New option `--format' makes
82574         output format string configurable.
82576 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82578         Optimize exclude: use hash tables for non-wildcard patterns.
82580         * lib/exclude.c: Include hash.h and mbuiter.h
82581         (struct exclude_pattern, exclude_segment): New data types.
82582         (struct exclude): Rewrite.
82583         (fnmatch_pattern_has_wildcards): New function.
82584         (new_exclude_segment, free_exclude_segment): New functions.
82585         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82586         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82587         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82588         * modules/exclude: Depend on hash and mbuiter.
82590         * modules/exclude-tests: New file.
82591         * tests/test-exclude.c: New file.
82592         * tests/test-exclude1.sh: New file.
82593         * tests/test-exclude2.sh: New file.
82594         * tests/test-exclude3.sh: New file.
82595         * tests/test-exclude4.sh: New file.
82596         * tests/test-exclude5.sh: New file.
82597         * tests/test-exclude6.sh: New file.
82598         * tests/test-exclude7.sh: New file.
82600 2009-08-12  Bruno Haible  <bruno@clisp.org>
82602         Ensure that getopt() gets declared by <unistd.h>.
82603         * lib/unistd.in.h: Conditionally include getopt.h.
82604         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82605         Set GNULIB_UNISTD_H_GETOPT.
82606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82607         GNULIB_UNISTD_H_GETOPT.
82608         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82610 2009-08-12  Bruno Haible  <bruno@clisp.org>
82612         Clarify logic.
82613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82614         gl_replace_getopt instead of GETOPT_H.
82616 2009-08-12  Bruno Haible  <bruno@clisp.org>
82618         * m4/getopt.m4: Add comments.
82620 2009-08-12  Bruno Haible  <bruno@clisp.org>
82622         Disable multithread support by default on Cygwin 1.5.x.
82623         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82624         set gl_use_threads=no if not specified otherwise.
82626 2009-08-11  Bruno Haible  <bruno@clisp.org>
82628         Avoid compilation error on NetBSD 5.0.
82629         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82630         * tests/test-stdio.c: Likewise.
82631         * tests/test-stdlib.c: Likewise.
82632         * tests/test-string.c: Likewise.
82633         * tests/test-unistd.c: Likewise.
82634         Reported by Greg Troxel <gdt@ir.bbn.com>
82635         at <https://savannah.gnu.org/support/?106973>.
82637 2009-08-11  Bruno Haible  <bruno@clisp.org>
82639         * modules/dup2-tests (Depends-on): Remove close.
82641         Undo 2009-07-19 commit.
82642         * modules/acl-tests (Depends-on): Remove close.
82643         * modules/binary-io-tests (Depends-on): Likewise.
82644         * modules/closein-tests (Depends-on): Likewise.
82645         * modules/flock-tests (Depends-on): Likewise.
82646         * modules/fsync-tests (Depends-on): Likewise.
82647         * modules/lseek-tests (Depends-on): Likewise.
82648         * modules/pipe-tests (Depends-on): Likewise.
82649         * modules/posix_spawn-tests (Depends-on): Likewise.
82650         * modules/posix_spawnp-tests (Depends-on): Likewise.
82651         * modules/stat-time-tests (Depends-on): Likewise.
82652         * modules/yesno-tests (Depends-on): Likewise.
82654 2009-08-10  Bruno Haible  <bruno@clisp.org>
82656         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82658 2009-08-10  Bruno Haible  <bruno@clisp.org>
82660         Fix a gcc warning.
82661         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82663 2009-08-10  Bruno Haible  <bruno@clisp.org>
82665         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82666         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82667         not only the first time.
82668         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82669         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82670         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82671         is 1, not only the first time.
82673 2009-08-10  Bruno Haible  <bruno@clisp.org>
82675         Make it possible to use module 'gethostname' without module 'close'.
82676         * lib/unistd.in.h (close): Evoke a link error only if
82677         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82679         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82680         * modules/unistd (Makefile.am): Substitute
82681         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82682         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82683         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82684         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82685         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82686         * modules/sys_ioctl (Makefile.am): Substitute
82687         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82688         * modules/socket (configure.ac): On native Windows, set
82689         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82690         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82691         Reported by Sam Steingold <sds@gnu.org>.
82693 2009-08-10  Bruno Haible  <bruno@clisp.org>
82695         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82696         * modules/ioctl (configure.ac): Likewise.
82698 2009-08-10  Bruno Haible  <bruno@clisp.org>
82700         Avoid collision between gnulib wrapper and libintl wrapper.
82701         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82702         already defined in intl/printf.c.
82703         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82704         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82706 2009-08-09  Bruno Haible  <bruno@clisp.org>
82708         Make <sys/select.h> really self-contained, also on Solaris 10.
82709         * lib/sys_select.in.h: Include <string.h>.
82710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82711         Solaris 10 problem.
82712         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82713         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82714         Reported by Jim Meyering.
82716 2009-08-09  Bruno Haible  <bruno@clisp.org>
82718         Avoid warnings from 'aclocal' that are due to a use of macro name
82719         AM_XGETTEXT_OPTION that is not defined in automake.
82720         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82721         automake.
82722         * modules/error (configure.ac): Likewise.
82723         * modules/propername (configure.ac): Likewise.
82724         * modules/vasprintf (configure.ac): Likewise.
82725         * modules/verror (configure.ac): Likewise.
82726         * modules/xprintf (configure.ac): Likewise.
82727         * modules/xvasprintf (configure.ac): Likewise.
82729 2009-08-08  Bruno Haible  <bruno@clisp.org>
82731         Avoid compilation error in C++ mode.
82732         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82733         Reported by Sam Steingold <sds@gnu.org>.
82735 2009-08-08  Bruno Haible  <bruno@clisp.org>
82737         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82738         for the various Unix platforms.
82739         * doc/posix-headers/limits.texi: Update platforms list regarding
82740         HOST_NAME_MAX.
82741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82743 2009-08-07  Jim Meyering  <meyering@redhat.com>
82745         selinux-at: fix typo in a comment
82746         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82747         Spotted by Paolo Bonzini.
82749         selinux-at: remove redundant m4 code, add documentation
82750         * modules/selinux-at (configure.ac): Remove redundant code.
82751         LIB_SELINUX is already set via the dependent module, selinux-h.
82752         (Include): Add quotes around selinux-at.h.
82753         * lib/selinux-at.h: Add documentation.
82754         Reported by Bruno Haible in
82755         http://marc.info/?l=gnulib-bug&m=124958988300749
82757 2009-08-07  Bruno Haible  <bruno@clisp.org>
82759         Avoid link error on MacOS X 10.3 and 10.4.
82760         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82761         on non-ELF systems.
82762         * lib/argp-pv.c (argp_program_version): Likewise.
82763         Reported by Simon Josefsson.
82765 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82767         * tests/test-version-etc.sh: Use $EXEEXT.
82769 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82771         update-copyright: update documentation to point to maint.mk
82772         * build-aux/update-copyright: Here.
82774 2009-08-06  Jim Meyering  <meyering@redhat.com>
82776         maint.mk: support update-copyright-local
82777         * top/maint.mk (update-copyright-local): Define place-holder.
82778         (update-copyright): Depend on $(update-copyright-local).
82780 2009-08-06  Jim Meyering  <meyering@redhat.com>
82782         selinux-at: new module
82783         Initially written for coreutils, this module will soon be
82784         used by findutils, too.
82785         * MODULES.html.sh [Misc]: Add selinux-at.
82786         * lib/selinux-at.h: New file, from coreutils.
82787         * lib/selinux-at.c: Likewise.
82788         * modules/selinux-at: Likewise.
82789         (License): Change from LGPL to GPL, since it depends
82790         on the GPL'd openat module.
82792         doc: update README
82793         * README: Remove references to cogito.
82794         Remove cvs-repo-updating instructions from 2007.
82795         Don't imply that CVS is better if you have limited disk space.
82797 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82799         update-copyright: support C-style comments
82800         * build-aux/update-copyright: Implement and document.
82801         * tests/test-update-copyright.sh: Test.
82803 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82805         update-copyright: support omitted "(C)"
82806         * build-aux/update-copyright: Implement and document.  Also,
82807         allow variable whitespace before "(C)".
82808         * tests/test-update-copyright.sh: Test.
82810 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82812         update-copyright: don't trip on non-FSF copyright statements
82813         * build-aux/update-copyright: Fix so that the first correctly
82814         formatted FSF copyright statement is recognized no matter what
82815         appears before it.  Update documentation.
82816         * tests/test-update-copyright.sh: Test that.
82818 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82820         update-copyright: clean up code a little
82821         * build-aux/update-copyright: Append "_re" to the name of any
82822         variable holding a regular expression.
82823         Replace "old" and "new" with "stmt" in variable names.
82824         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82825         handled correctly.
82826         Format code more consistently.
82828 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82830         update-copyright-tests: improve portability
82831         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82832         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82834 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82836         update-copyright: support @copyright{} and &copy;
82837         * build-aux/update-copyright: Implement and document.
82838         * tests/test-update-copyright.sh: Test.
82840 2009-08-04  Jim Meyering  <meyering@redhat.com>
82842         update-copyright-tests: correctly test EOL=\r\n handling
82843         * tests/test-update-copyright.sh: Put \r at the end of some lines
82844         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82846         maint.mk: make update-copyright exclusion list more configurable
82847         * top/maint.mk (update-copyright): Default to excluding COPYING,
82848         but allow an override, in case someone does want to update that file.
82850         maint.mk: don't update copyright date in COPYING
82851         * top/maint.mk (update-copyright): Exclude COPYING.
82853         maint.mk: add a copyright-updating rule
82854         * top/maint.mk (update-copyright): New rule.
82855         Derived from coreutils/Makefile.am.
82857         update-copyright: rename some variables
82858         * build-aux/update-copyright: Rename a few variables for clarity.
82859         Tweak syntax.  List Joel E. Denny as coauthor.
82861 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82863         update-copyright: fix bug for 2-digit last year and add tests
82864         * build-aux/update-copyright: Fix bug.
82865         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82866         specified.
82867         * modules/update-copyright-tests: New
82868         * tests/test-update-copyright.sh: New.
82870 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82872         update-copyright: handle leading tabs in line prefix
82873         * build-aux/update-copyright: Count leading tabs as 8 spaces
82874         when computing margin.  This helps with the formatting of
82875         ChangeLogs, for example.
82876         Fix documentation a little.
82878 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82880         update-copyright: support EOL=\r\n
82881         * build-aux/update-copyright: Implement that.
82883 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82885         update-copyright: automatically format copyright statements
82886         * build-aux/update-copyright: Implement that.
82887         Also, be a little more predictable and safer by always failing
82888         when the full copyright format is not perfectly recognized as an
82889         unbroken whole.  Discussed at
82890         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82891         Rewrite documentation.
82893 2009-08-03  Bruno Haible  <bruno@clisp.org>
82895         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82897 2009-08-02  Bruno Haible  <bruno@clisp.org>
82899         Tests for module 'uname'.
82900         * modules/uname-tests: New file.
82901         * tests/test-uname.c: New file.
82903         New module 'uname'.
82904         * lib/uname.c: New file.
82905         * m4/uname.m4: New file.
82906         * modules/uname: New file.
82907         * doc/posix-functions/uname.texi: Mention the new module.
82909 2009-08-02  Bruno Haible  <bruno@clisp.org>
82911         Tests for module 'sys_utsname'.
82912         * modules/sys_utsname-tests: New file.
82913         * tests/test-sys_utsname.c: New file.
82915         New module 'sys_utsname'.
82916         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82917         * m4/sys_utsname_h.m4: New file.
82918         * modules/sys_utsname: New file.
82919         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82921 2009-08-02  Bruno Haible  <bruno@clisp.org>
82923         Implicitly initialize the sockets library.
82924         * lib/gethostname.c: Include sockets.h.
82925         (rpl_gethostname): Invoke gl_sockets_startup.
82926         * lib/socket.c: Include sockets.h.
82927         (rpl_socket): Invoke gl_sockets_startup.
82928         * modules/gethostname (Depends-on): Add sockets.
82929         * modules/socket (Depends-on): Likewise.
82930         * tests/test-poll.c: Don't include sockets.h.
82931         (main): Don't invoke gl_sockets_startup.
82932         * tests/test-select.c: Don't include sockets.h.
82933         (main): Don't invoke gl_sockets_startup.
82935 2009-08-02  Bruno Haible  <bruno@clisp.org>
82937         Allow multiple calls to gl_sockets_startup.
82938         * lib/sockets.c (initialized_sockets_version): New variable.
82939         (gl_sockets_startup): Do nothing if already called for this or a higher
82940         version.
82941         (gl_sockets_cleanup): Reset initialized_sockets_version.
82943 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82945         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82946         different project/version.
82948 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82949             Bruno Haible  <bruno@clisp.org>
82951         Tests for module 'pipe-filter-gi'.
82952         * modules/pipe-filter-gi-tests: New file.
82953         * tests/test-pipe-filter-gi1.sh: New file.
82954         * tests/test-pipe-filter-gi1.c: New file.
82955         * tests/test-pipe-filter-gi2.sh: New file.
82956         * tests/test-pipe-filter-gi2-main.c: New file.
82957         * tests/test-pipe-filter-gi2-child.c: New file.
82959         New module 'pipe-filter-gi'.
82960         * lib/pipe-filter-gi.c: New file.
82961         * modules/pipe-filter-gi: New file.
82963 2009-08-02  Bruno Haible  <bruno@clisp.org>
82964             Paolo Bonzini  <bonzini@gnu.org>
82966         Tests for module 'pipe-filter-ii'.
82967         * modules/pipe-filter-ii-tests: New file.
82968         * tests/test-pipe-filter-ii1.sh: New file.
82969         * tests/test-pipe-filter-ii1.c: New file.
82970         * tests/test-pipe-filter-ii2.sh: New file.
82971         * tests/test-pipe-filter-ii2-main.c: New file.
82972         * tests/test-pipe-filter-ii2-child.c: New file.
82974         New module 'pipe-filter-ii'.
82975         * lib/pipe-filter.h: New file.
82976         * lib/pipe-filter-ii.c: New file.
82977         * lib/pipe-filter-aux.h: New file.
82978         * modules/pipe-filter-ii: New file.
82980 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82982         * lib/gc-libgcrypt.c: Change copyright to FSF.
82983         * lib/gc-gnulib.c: Likewise.
82985 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82987         * lib/gethostname.c: Include limits.h.
82989 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82990             Bruno Haible  <bruno@clisp.org>
82992         Ensure HOST_NAME_MAX as part of the gethostname module.
82993         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82994         define also HOST_NAME_MAX.
82995         * tests/test-gethostname.c: Include <limits.h>.
82996         (main): Check also HOST_NAME_MAX.
82997         * doc/posix-headers/limits.texi: Document the mingw problem.
82999 2009-08-02  Bruno Haible  <bruno@clisp.org>
83001         * lib/gethostname.c (gethostname): Fix handling of large len argument.
83002         Add comments.
83004 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83006         * lib/gethostname.c: Add Windows wrapper.
83007         * m4/gethostname.m4: Look for gethostname in -lws2_32.
83008         * modules/gethostname: Depend on sys_socket & errno, for also
83009         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
83010         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
83012 2009-07-31  Jim Meyering  <meyering@redhat.com>
83014         getloadavg: fix symbol name in comment
83015         * lib/getloadavg.c: Correct a typo I introduced when adding
83016         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
83017         Matt Kraai spotted the problem.
83019 2009-07-29  Matt Kraai  <mkraai@beckman.com>
83021         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
83022         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
83023         code also if ! defined N_NAME_POINTER.
83024         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
83025         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
83026         but the n_name member is a 12-byte array.
83028 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
83030         update-copyright: generalize comment handling
83031         * build-aux/update-copyright: Handle copyright statements
83032         within more comment styles.
83033         Document usage.
83034         Report any file with an external copyright holder or parse failure.
83036 2009-07-29  Jim Meyering  <meyering@redhat.com>
83038         mktime: correct setting of REPLACE_MKTIME
83039         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
83041         update-copyright: new module
83042         * modules/update-copyright: New file.
83043         * build-aux/update-copyright: New file.
83044         * MODULES.html.sh (maint+release support): Add update-copyright.
83046 2009-07-27  Bruno Haible  <bruno@clisp.org>
83048         Fix compilation error when <ctime> is used and mktime is replaced.
83049         * lib/time.in.h (mktime): New declaration.
83050         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
83051         REPLACE_MKTIME instead of defining mktime in config.h.
83052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
83053         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
83054         Reported by Ross McFarland <rwmcfa1@neces.com>.
83056 2009-07-27  Bruno Haible  <bruno@clisp.org>
83058         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
83059         Reported by Matt Kraai <mkraai@beckman.com>.
83061 2009-07-25  Jim Meyering  <meyering@redhat.com>
83063         maint.mk: avoid warnings about missing files
83064         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
83065         diagnostic when .prev-version does not exist.
83066         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
83067         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
83068         nonexistent cfg.mk.
83069         Suggestions from Simon Josefsson.
83071 2009-07-25  Bruno Haible  <bruno@clisp.org>
83073         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
83074         defined as macros. Needed on QNX 6.4.1.
83075         Reported by Matt Kraai <mkraai@beckman.com>.
83077 2009-07-23  Jim Meyering  <meyering@redhat.com>
83079         maint.mk: invoke "make dist" with a working value of XZ_OPT
83080         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
83082 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
83084         Make fseeko.c compile on QNX.
83085         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
83087 2009-07-22  Peter Simons  <simons@cryp.to>
83089         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
83090         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
83091         * lib/md4.h: Likewise.
83092         * lib/md5.h: Likewise.
83093         * lib/sha1.h: Likewise.
83094         * lib/sha256.h: Likewise.
83095         * lib/sha512.h: Likewise.
83097         tests-sha1: don't assign literal string to 'char *' variable
83098         * tests/test-sha1.c (main): Declare locals with "const" to match
83099         attributes of the right hand side.
83101 2009-07-21  Eric Blake  <ebb9@byu.net>
83103         dup2: fix more mingw problems
83104         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
83105         fd to itself.
83106         * doc/posix-functions/dup2.texi (dup2): Document the bug.
83107         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
83108         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
83109         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
83110         care of mingw bugs.
83112 2009-07-21  Jim Meyering  <meyering@redhat.com>
83114         vc-list-files: avoid failure when /bin/sh is dash
83115         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
83116         On some Debian based systems, /bin/sh is a symlink to dash, and running
83117         this command would omit the "/" following each 'tests' prefix:
83118           dash -x build-aux/vc-list-files -C . tests
83119         That is because bash and dash work differently:
83120           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
83121           bash ok
83122           dash odd
83124 2009-07-21  Eric Blake  <ebb9@byu.net>
83126         dup2-tests: test previous patch
83127         * modules/dup2-tests: New file.
83128         * tests/test-dup2.c: Likewise.
83129         * tests/test-open.c (main): Avoid unspecified behavior.
83130         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
83131         test.
83133         dup2: work around mingw and cygwin 1.5 bug
83134         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
83135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
83136         * modules/unistd (Makefile.am): Substitute it.
83137         * lib/unistd.in.h (dup2): Declare the replacement.
83138         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
83139         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
83140         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
83141         * modules/execute (Depends-on): Add dup2.
83142         * modules/fseterr (Depends-on): Likewise.
83143         * modules/pipe (Depends-on): Likewise.
83144         * modules/posix_spawn-internal (Depends-on): Likewise.
83146 2009-07-21  Bruno Haible  <bruno@clisp.org>
83148         * modules/.gitattributes: New file.
83150 2009-07-20  Bruno Haible  <bruno@clisp.org>
83152         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
83153         (main): Use it.
83155 2009-07-20  Eric Blake  <ebb9@byu.net>
83157         test-pipe: make a bit more robust.
83158         * tests/test-pipe.c (myerr): Allow error messages regardless of
83159         what we do to stderr.
83160         (test_pipe): Rearrange to avoid deadlock.
83161         (child_main): Try a larger read, to ensure we avoided deadlock.
83162         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
83163         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
83164         if misused.
83166 2009-07-19  Jim Meyering  <meyering@redhat.com>
83168         fts: avoid false-positive cycle-detection
83169         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
83170         for each new command line argument.
83172 2009-07-19  Bruno Haible  <bruno@clisp.org>
83174         Fix build error on mingw with the modules sys_select and unistd.
83175         * modules/acl-tests (Depends-on): Add close.
83176         * modules/binary-io-tests (Depends-on): Likewise.
83177         * modules/closein-tests (Depends-on): Likewise.
83178         * modules/flock-tests (Depends-on): Likewise.
83179         * modules/fsync-tests (Depends-on): Likewise.
83180         * modules/lseek-tests (Depends-on): Likewise.
83181         * modules/pipe-tests (Depends-on): Likewise.
83182         * modules/posix_spawn-tests (Depends-on): Likewise.
83183         * modules/posix_spawnp-tests (Depends-on): Likewise.
83184         * modules/stat-time-tests (Depends-on): Likewise.
83185         * modules/yesno-tests (Depends-on): Likewise.
83187 2009-07-19  Bruno Haible  <bruno@clisp.org>
83189         Unify conditionals.
83190         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
83191         macros, not at the compiler macros.
83192         * lib/pipe.c: Likewise.
83193         * lib/execute.c: Likewise.
83194         * lib/spawni.c: Likewise.
83196 2009-07-19  Bruno Haible  <bruno@clisp.org>
83198         Fix handling of closed stdin/stdout/stderr on mingw.
83199         * lib/w32spawn.h: Include unistd.h.
83200         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
83201         file descriptor with O_NOINHERIT flag.
83202         (fd_safer_noinherit): New function, based on fd-safer.c.
83203         (dup_safer_noinherit): New function, based on dup-safer.c.
83204         (undup_safer_noinherit): New function.
83205         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
83206         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
83207         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
83208         instead of fd_safer.
83209         * tests/test-pipe.c: Include <windows.h>.
83210         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
83211         result.
83213         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
83214         from main.
83215         (test_pipe): Pass an extra argument for disambiguation.
83216         (main): Invoke parent_main or child_main.
83218         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
83219         consistently.
83221 2009-07-18  Eric Blake  <ebb9@byu.net>
83223         test-pipe: fix mingw build
83224         * tests/test-pipe.c (main): Avoid fcntl on mingw.
83226 2009-07-18  Bruno Haible  <bruno@clisp.org>
83228         * modules/pipe-tests (Makefile.am): Fix typo.
83230 2009-07-18  Eric Blake  <ebb9@byu.net>
83232         error: fix mingw build
83233         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
83234         Reported by Bruno Haible.
83236         error: avoid undefined use of stdout
83237         * lib/error.c (error, error_at_line): Check that fd 1 is open
83238         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
83239         is handling faults and the close_stdout module wants to report the
83240         detection of closed stdout as an error.
83242 2009-07-17  Eric Blake  <ebb9@byu.net>
83244         pipe: be robust in face of closed fds
83245         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
83246         should cause child to misbehave.
83247         * modules/pipe-tests: New module.
83248         * tests/test-pipe.c: New file.
83249         * tests/test-pipe.sh: New file.
83250         Reported by Akim Demaille.
83252 2009-07-14  Bruno Haible  <bruno@clisp.org>
83254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
83255         Reported by anonymous kc.
83257 2009-07-07  Jim Meyering  <meyering@redhat.com>
83259         maint.mk: don't look for translatable strings in *.m4 or *.mk
83260         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
83261         when searching for translatable strings.
83263 2009-07-05  Jim Meyering  <meyering@redhat.com>
83265         remove superfluous parentheses in STREQ definition
83266         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
83267         * lib/getugroups.c (STREQ): Likewise.
83268         * lib/fnmatch.c (STREQ): Likewise.
83269         Spotted by Bruno Haible.
83271 2009-07-04  Jim Meyering  <meyering@redhat.com>
83273         argv-iter: new module
83274         * MODULES.html.sh: Add argv-iter.
83275         * lib/argv-iter.c, lib/argv-iter.h: New files.
83276         * modules/argv-iter: New file.
83277         * modules/argv-iter-tests: New file.
83278         * tests/test-argv-iter.c: Test it.
83280 2009-07-04  Bruno Haible  <bruno@clisp.org>
83282         Fix assertion.
83283         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
83284         contains more exact copies of a given entry than file2, leave the extra
83285         copies unpaired rather than aborting.
83286         Reported by Eric Blake.
83288 2009-07-02  Bruno Haible  <bruno@clisp.org>
83290         Speedup git-merge-changelog for git cherry-pick.
83291         * lib/git-merge-changelog.c (struct entries_mapping): New type.
83292         (entries_mapping_get): New function, extracted from compute_mapping.
83293         (entries_mapping_reverse_get): New function.
83294         (compute_mapping): Add a 'full' argument. Return the result in a
83295         'struct entries_mapping'.
83296         (main): Update. Access the mappings through entries_mapping_get.
83297         Reported by Eric Blake.
83299 2009-07-02  Bruno Haible  <bruno@clisp.org>
83301         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
83302         best_i.
83304 2009-07-02  Bruno Haible  <bruno@clisp.org>
83306         Speed up approximate search for matching ChangeLog entries.
83307         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
83308         argument. Call fstrcmp_bounded instead of fstrcmp.
83309         (compute_mapping, try_split_merged_entry, main): Update callers.
83311 2009-07-02  Bruno Haible  <bruno@clisp.org>
83313         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
83315 2009-06-30  Bruno Haible  <bruno@clisp.org>
83317         Reduce the number of uc_is_cased calls.
83318         * lib/unicase.h (casing_suffix_context_t): Add
83319         'first_char_except_ignorable' field.
83320         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
83321         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
83322         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
83323         Update initializer.
83324         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
83325         case-ignorable characters.
83326         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83327         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83328         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83329         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83330         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83332 2009-06-30  Bruno Haible  <bruno@clisp.org>
83334         Tests for module 'unicase/ignorable'.
83335         * modules/unicase/ignorable-tests: New file.
83336         * tests/unicase/test-ignorable.c: New file, generated by
83337         gen-uni-tables.
83339         Tests for module 'unicase/cased'.
83340         * modules/unicase/cased-tests: New file.
83341         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83342         * tests/unicase/test-predicate-part1.h: New file, derived from
83343         tests/unictype/test-predicate-part1.h.
83344         * tests/unicase/test-predicate-part2.h: New file, same as
83345         tests/unictype/test-predicate-part2.h.
83347         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83348         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83349         (output_casing_properties): New function.
83350         (main): Call it.
83351         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83352         * lib/unicase/cased.c: Include unictype/bitmap.h.
83353         (uc_is_cased): Define through a bitmap lookup.
83354         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83355         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83356         (uc_is_case_ignorable): Define through a bitmap lookup.
83357         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83358         lib/unictype/bitmap.h.
83359         (Depends-on): Add inline. Clean up.
83360         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83361         lib/unictype/bitmap.h.
83362         (Depends-on): Add inline. Clean up.
83363         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83364         recognition.
83365         * tests/unicase/test-u16-tolower.c (main): Likewise.
83366         * tests/unicase/test-u32-tolower.c (main): Likewise.
83368 2009-06-30  Bruno Haible  <bruno@clisp.org>
83370         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83371         * lib/unicase/u16-casemap.c: Likewise.
83372         * lib/unicase/u32-casemap.c: Likewise.
83374 2009-06-29  Bruno Haible  <bruno@clisp.org>
83376         Define u32_casefold as a wrapper around u32_ct_casefold.
83377         * lib/unicase/u32-casefold.c: Update.
83378         * modules/unicase/u32-casefold (Depends-on): Add
83379         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83380         unicase/empty-suffix-context. Clean up.
83382         Define u16_casefold as a wrapper around u16_ct_casefold.
83383         * lib/unicase/u16-casefold.c: Update.
83384         * modules/unicase/u16-casefold (Depends-on): Add
83385         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83386         unicase/empty-suffix-context. Clean up.
83388         Define u8_casefold as a wrapper around u8_ct_casefold.
83389         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83390         * lib/unicase/u8-casefold.c: Update.
83391         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83392         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83394         Define u32_totitle as a wrapper around u32_ct_totitle.
83395         * lib/unicase/u32-totitle.c: Update.
83396         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83397         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83399         Define u16_totitle as a wrapper around u16_ct_totitle.
83400         * lib/unicase/u16-totitle.c: Update.
83401         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83402         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83404         Define u8_totitle as a wrapper around u8_ct_totitle.
83405         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83406         functions.
83407         (FUNC): Delegate to U_CT_TOTITLE.
83408         * lib/unicase/u8-totitle.c: Update.
83409         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83410         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83412         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83413         invocation.
83414         * modules/unicase/u32-tolower (Depends-on): Add
83415         unicase/empty-prefix-context, unicase/empty-suffix-context.
83417         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83418         invocation.
83419         * modules/unicase/u16-tolower (Depends-on): Add
83420         unicase/empty-prefix-context, unicase/empty-suffix-context.
83422         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83423         * modules/unicase/u8-tolower (Depends-on): Add
83424         unicase/empty-prefix-context, unicase/empty-suffix-context.
83426         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83427         invocation.
83428         * modules/unicase/u32-toupper (Depends-on): Add
83429         unicase/empty-prefix-context, unicase/empty-suffix-context.
83431         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83432         invocation.
83433         * modules/unicase/u16-toupper (Depends-on): Add
83434         unicase/empty-prefix-context, unicase/empty-suffix-context.
83436         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83437         * modules/unicase/u8-toupper (Depends-on): Add
83438         unicase/empty-prefix-context, unicase/empty-suffix-context.
83440         New module 'unicase/u32-ct-casefold'.
83441         * lib/unicase/u32-ct-casefold.c: New file.
83442         * modules/unicase/u32-ct-casefold: New file.
83444         New module 'unicase/u16-ct-casefold'.
83445         * lib/unicase/u16-ct-casefold.c: New file.
83446         * modules/unicase/u16-ct-casefold: New file.
83448         New module 'unicase/u8-ct-casefold'.
83449         * lib/unicase/u8-ct-casefold.c: New file.
83450         * lib/unicase/u-ct-casefold.h: New file, derived from
83451         lib/unicase/u-casefold.h.
83452         * modules/unicase/u8-ct-casefold: New file.
83454         New module 'unicase/u32-ct-totitle'.
83455         * lib/unicase/u32-ct-totitle.c: New file.
83456         * modules/unicase/u32-ct-totitle: New file.
83458         New module 'unicase/u16-ct-totitle'.
83459         * lib/unicase/u16-ct-totitle.c: New file.
83460         * modules/unicase/u16-ct-totitle: New file.
83462         New module 'unicase/u8-ct-totitle'.
83463         * lib/unicase/u8-ct-totitle.c: New file.
83464         * lib/unicase/u-ct-totitle.h: New file, derived from
83465         lib/unicase/u-totitle.h.
83466         * modules/unicase/u8-ct-totitle: New file.
83468         New module 'unicase/u32-ct-tolower'.
83469         * lib/unicase/u32-ct-tolower.c: New file.
83470         * modules/unicase/u32-ct-tolower: New file.
83472         New module 'unicase/u16-ct-tolower'.
83473         * lib/unicase/u16-ct-tolower.c: New file.
83474         * modules/unicase/u16-ct-tolower: New file.
83476         New module 'unicase/u8-ct-tolower'.
83477         * lib/unicase/u8-ct-tolower.c: New file.
83478         * modules/unicase/u8-ct-tolower: New file.
83480         New module 'unicase/u32-ct-toupper'.
83481         * lib/unicase/u32-ct-toupper.c: New file.
83482         * modules/unicase/u32-ct-toupper: New file.
83484         New module 'unicase/u16-ct-toupper'.
83485         * lib/unicase/u16-ct-toupper.c: New file.
83486         * modules/unicase/u16-ct-toupper: New file.
83488         New module 'unicase/u8-ct-toupper'.
83489         * lib/unicase/u8-ct-toupper.c: New file.
83490         * modules/unicase/u8-ct-toupper: New file.
83492         Add context arguments to u*_casemap functions.
83493         * lib/unicase/unicasemap.h: Include unicase.h.
83494         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83495         suffix_context arguments.
83496         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83497         functions.
83498         (FUNC): Add prefix_context and suffix_context arguments. Use
83499         uc_is_cased and uc_is_case_ignorable.
83500         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83501         * lib/unicase/u16-casemap.c: Likewise.
83502         * lib/unicase/u32-casemap.c: Likewise.
83503         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83504         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83505         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83506         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83507         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83508         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83510         New module 'unicase/u32-suffix-context'.
83511         * lib/unicase/u32-suffix-context.c: New file.
83512         * modules/unicase/u32-suffix-context: New file.
83514         New module 'unicase/u16-suffix-context'.
83515         * lib/unicase/u16-suffix-context.c: New file.
83516         * modules/unicase/u16-suffix-context: New file.
83518         New module 'unicase/u8-suffix-context'.
83519         * lib/unicase/u8-suffix-context.c: New file.
83520         * lib/unicase/u-suffix-context.h: New file.
83521         * modules/unicase/u8-suffix-context: New file.
83523         New module 'unicase/empty-suffix-context'.
83524         * lib/unicase/empty-suffix-context.c: New file.
83525         * modules/unicase/empty-suffix-context: New file.
83527         New module 'unicase/u32-prefix-context'.
83528         * lib/unicase/u32-prefix-context.c: New file.
83529         * modules/unicase/u32-prefix-context: New file.
83531         New module 'unicase/u16-prefix-context'.
83532         * lib/unicase/u16-prefix-context.c: New file.
83533         * modules/unicase/u16-prefix-context: New file.
83535         New module 'unicase/u8-prefix-context'.
83536         * lib/unicase/u8-prefix-context.c: New file.
83537         * lib/unicase/u-prefix-context.h: New file.
83538         * lib/unicase/context.h: New file.
83539         * modules/unicase/u8-prefix-context: New file.
83541         New module 'unicase/empty-prefix-context'.
83542         * lib/unicase/empty-prefix-context.c: New file.
83543         * modules/unicase/empty-prefix-context: New file.
83545         New module 'unicase/ignorable'.
83546         * lib/unicase/ignorable.c: New file.
83547         * modules/unicase/ignorable: New file.
83549         New module 'unicase/cased'.
83550         * lib/unicase/caseprop.h: New file.
83551         * lib/unicase/cased.c: New file.
83552         * modules/unicase/cased: New file.
83554         New functions for case mapping of substrings.
83555         * lib/unicase.h (casing_prefix_context_t): New type.
83556         (unicase_empty_prefix_context): New variable.
83557         (u8_casing_prefix_context, u16_casing_prefix_context,
83558         u32_casing_prefix_context, u8_casing_prefixes_context,
83559         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83560         declarations.
83561         (casing_suffix_context_t): New type.
83562         (unicase_empty_suffix_context): New variable.
83563         (u8_casing_suffix_context, u16_casing_suffix_context,
83564         u32_casing_suffix_context, u8_casing_suffixes_context,
83565         u16_casing_suffixes_context, u32_casing_suffixes_context,
83566         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83567         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83568         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83569         declarations.
83571 2009-06-28  Jim Meyering  <meyering@redhat.com>
83573         boostrap: indent only with spaces
83574         * build-aux/bootstrap: Indent only with spaces, never TABs.
83576         bootstrap: split long lines
83577         * build-aux/bootstrap: Keep line length < 80.
83579         bootstrap: sync from coreutils
83580         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83581         just as autoreconf does.  Verify a list of prerequisite
83582         package-name,version-number pairs if defined in bootstrap.conf.
83583         Refer to README-prereq, if prerequisites are not satisfied.
83585 2009-06-27  Eric Blake  <ebb9@byu.net>
83587         tests: add test for bogus NULL definition
83588         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83589         * tests/test-stdlib.c: Likewise.
83590         * tests/test-string.c: Likewise.
83591         * tests/test-locale.c: Likewise.
83592         * tests/test-unistd.c: Likewise.
83593         * modules/stdio-tests (Depends-on): Add verify.
83594         * modules/stdlib-tests (Depends-on): Likewise.
83595         * modules/string-tests (Depends-on): Likewise.
83596         * modules/locale-tests (Depends-on): Likewise.
83597         * modules/unistd-tests (Depends-on): Likewise.
83599 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83601         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83602         self-explaining comment.
83603         * m4/selinux-selinux-h: Update serial.
83604         (gl_LIBSELINUX): New macro, adding a warning for missing development
83605         packages to code extracted from...
83606         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83607         Add warning for missing development packages here, too.
83609 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83611         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83613 2009-06-25  Eric Blake  <ebb9@byu.net>
83615         version-etc: fix regression
83616         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83617         gcc.
83618         (version_etc): Use it, to catch bugs with trailing NULL.
83619         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83620         (version_etc_va): Fix logic bug.
83621         * modules/version-etc-tests: Add test.
83622         * tests/test-version-etc.c: New file.
83623         * tests/test-version-etc.sh: Likewise.
83625 2009-06-25  Sam Steingold  <sds@gnu.org>
83627         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83628         mbtowc declaration.
83630 2009-06-25  Eric Blake  <ebb9@byu.net>
83632         fpurge: migrate into <stdio.h>
83633         * lib/fpurge.h: Delete...
83634         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83635         * lib/fpurge.c (fpurge): Change declaring header.
83636         * modules/fpurge (Files): Drop deleted file.
83637         (Depends-on): Add stdio.
83638         (configure.ac): Set witness.
83639         * modules/stdio (Makefile.am): Support fpurge macros.
83640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83641         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83642         * lib/fflush.c: Update client.
83643         * tests/test-fpurge.c: Likewise.
83644         * NEWS: Mention the change.
83646 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83648         * lib/argp-version-etc.c (program_authors): Add const
83649         qualifier.
83650         * lib/version-etc.c: Fix typos in the comments.
83651         * modules/argp-version-etc: Depends on version-etc.
83653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83655         argp-version-etc: new module.
83657         * lib/argp-version-etc.c: New file.
83658         * lib/argp-version-etc.h: New file.
83659         * modules/argp-version-etc: New file.
83660         * modules/argp-version-etc-tests: New file.
83661         * tests/test-argp-version-etc.c: New test.
83662         * tests/test-argp-version-etc-1.sh: New test.
83664 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83666         Provide additional interfaces and documentation for version-etc
83667         module.
83669         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83670         interfaces.
83671         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83672         prototypes.
83674 2009-06-24  Bruno Haible  <bruno@clisp.org>
83676         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83677         HAVE_LIB${NAME} macro.
83678         Reported by Sam Steingold <sds@gnu.org>.
83680 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83682         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83683         needed.
83685 2009-06-21  Bruno Haible  <bruno@clisp.org>
83687         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83688         work.
83689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83690         together with LIB${NAME}, LTLIB${NAME}.
83691         Reported by Sam Steingold <sds@gnu.org>.
83693 2009-06-20  Jim Meyering  <meyering@redhat.com>
83695         tests: make sc_require_test_exit_idiom more generic
83696         * top/maint.mk (Exit_witness_file): New overridable variable.
83697         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83698         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83700 2009-06-19  Jim Meyering  <meyering@redhat.com>
83702         hash: reverse order of src/dst parameters in an internal interface
83703         * lib/hash.c (transfer_entries): Reverse order of parameters to
83704         put DST before SRC.  Adjust callers.
83706         tests: test-hash: avoid wholesale duplication
83707         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83708         Instead, use a loop and add a single conditional.
83710         tests: test-hash: allow seed selection via a command line argument
83711         * tests/test-hash.c (get_seed): New function.
83712         (main): Use it.
83714 2009-06-19  Eric Blake  <ebb9@byu.net>
83716         hash: avoid memory leak on allocation failure
83717         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83718         failure.  Factor repeated algorithm...
83719         (transfer_entries): ...into new helper routine.
83720         (hash_delete): React to hash_rehash return value.
83722         hash: reduce memory pressure in hash_rehash no-op case
83723         * lib/hash.c (next_prime): Avoid overflow.
83724         (hash_initialize): Factor bucket size computation...
83725         (compute_bucket_size): ...into new helper function.
83726         (hash_rehash): Use new function and open coding to reduce memory
83727         pressure, and avoid a memory leak in USE_OBSTACK code.
83728         Reported by Jim Meyering.
83730 2009-06-18  Eric Blake  <ebb9@byu.net>
83732         hash: make rotation more obvious
83733         * modules/hash (Depends-on): Add bitrotate and stdint.
83734         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83735         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83736         (SIZE_MAX): Rely on headers for definition.
83737         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83738         (raw_hasher): Use rotr_sz.
83739         Suggested by Jim Meyering.
83741         hash: fix memory leak in last patch
83742         * lib/hash.c (hash_rehash): Avoid memory leak.
83744         hash: avoid no-op rehashing
83745         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83747         hash: provide default callback functions
83748         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83749         (hash_initialize): Use them as defaults.
83750         * tests/test-hash.c (main): Test this.
83752         hash: minor optimization
83753         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83754         when possible.
83755         (hash_initialize): Document this promise.
83756         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83757         * tests/test-hash.c (hash_compare_strings): Test this.
83759 2009-06-18  Bruno Haible  <bruno@clisp.org>
83761         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83762         going to be replaced anyway.
83764 2009-06-18  Bruno Haible  <bruno@clisp.org>
83766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83767         in one place.
83768         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83769         be replaced anyway.
83771 2009-06-18  Eric Blake  <ebb9@byu.net>
83773         hash: check for resize before insertion
83774         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83775         threshold before insertion, so that a pathological hash_rehash
83776         that fills every bucket can still trigger another rehash.
83778 2009-06-18  Jim Meyering  <meyering@redhat.com>
83780         hash-tests: add a loop around the small tests
83781         * tests/test-hash.c (main): Repeat small tests with selected
83782         small initial table sizes.
83784 2009-06-17  Eric Blake  <ebb9@byu.net>
83786         hash: minor cleanups
83787         * lib/hash.h (hash_entry): Make opaque, by moving...
83788         * lib/hash.c (hash_entry): ...here.
83789         (hash_insert): Clarify restrictions on what can be inserted.
83790         (hash_get_next): Clarify when it is safe to remove an element
83791         during traversal.
83792         (check_tuning): Skip verification when tuning is known safe.
83793         (hash_initialize): Clarify restrictions on tuning.
83795 2009-06-17  Jim Meyering  <jim@meyering.net>
83796         and Eric Blake  <ebb9@byu.net>
83798         hash-tests: new module
83799         * modules/hash-tests: New file.
83800         * tests/test-hash.c: New file.
83802 2009-06-17  Eric Blake  <ebb9@byu.net>
83804         strstr-simple: document new module
83805         * MODULES.html.sh: Document new module.
83807         strstr, strcasestr: replace on platforms with broken memchr
83808         * modules/strstr: Split into...
83809         * modules/strstr-simple: ...new module that does not care about
83810         performance, but does care about glibc bug.
83811         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83812         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83813         if platform memchr is broken, per Debian bug 521737.
83814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83815         memchr.
83816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83817         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83818         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83819         * modules/mountlist (Depends-on): Add strstr-simple.
83820         * modules/gen-uni-tables (Depends-on): Likewise.
83821         * modules/argz (Depends-on): Add strstr.
83823 2009-06-17  Bruno Haible  <bruno@clisp.org>
83825         * modules/posix_spawn-internal (Depends-on): Add errno.
83827 2009-06-17  Bruno Haible  <bruno@clisp.org>
83829         Define missing ESTALE on Interix 3.5.
83830         * lib/errno.in.h (ESTALE): Assign a value if missing.
83831         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83832         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83833         missing.
83834         * doc/posix-headers/errno.texi: Mention the Interix bug.
83835         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83837 2009-06-15  Eric Blake  <ebb9@byu.net>
83839         memchr, memchr2: add valgrind exception
83840         * lib/memchr.valgrind: New file.
83841         * lib/memchr2.valgrind: New file.
83842         * modules/memchr (Files): Distribute valgrind file.
83843         * modules/memchr2 (Files): Likewise.
83845         docs: memchr is no longer obsolete
83846         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83847         * lib/string.in.h (memchr): Simplify logic.
83849 2009-06-14  Jim Meyering  <meyering@redhat.com>
83851         link-follow: fix the "checking..." message to not mention trailing slash
83852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83853         never considered trailing slashes.
83855 2009-06-14  Bruno Haible  <bruno@clisp.org>
83857         * m4/memchr.m4: Mention also the bug on IA-64.
83858         * doc/posix-functions/memchr.texi: Likewise.
83860 2009-06-12  Eric Blake  <ebb9@byu.net>
83862         memchr: detect broken x86_64 and alpha implementations
83863         * modules/memchr-tests (Depends-on): Move mmap detection...
83864         * modules/memchr (Depends-on): ...here.
83865         (configure.ac): Set indicator.
83866         * lib/string.in.h (memchr): Declare replacement.
83867         * modules/string (Makefile.am): Trigger replacement.
83868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83870         bugs.
83871         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83872         * modules/getpagesize (License): Relax license.
83874 2009-06-11  Bruno Haible  <bruno@clisp.org>
83876         * lib/idpriv.h: Add more references.
83878 2009-06-08  Bruno Haible  <bruno@clisp.org>
83880         Tests for module 'idpriv-droptemp'.
83881         * modules/idpriv-droptemp-tests: New file.
83882         * tests/test-idpriv-droptemp.sh: New file.
83883         * tests/test-idpriv-droptemp.su.sh: New file.
83884         * tests/test-idpriv-droptemp.c: New file.
83886         New module 'idpriv-droptemp'.
83887         * lib/idpriv-droptemp.c: New file.
83888         * modules/idpriv-droptemp: New file.
83890 2009-06-08  Bruno Haible  <bruno@clisp.org>
83892         Tests for module 'idpriv-drop'.
83893         * modules/idpriv-drop-tests: New file.
83894         * tests/test-idpriv-drop.sh: New file.
83895         * tests/test-idpriv-drop.su.sh: New file.
83896         * tests/test-idpriv-drop.c: New file.
83898         New module 'idpriv-drop'.
83899         * lib/idpriv.h: New file.
83900         * lib-idpriv-drop.c: New file.
83901         * m4/idpriv.m4: New file.
83902         * modules/idpriv-drop: New file.
83904 2009-06-08  Bruno Haible  <bruno@clisp.org>
83906         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83907         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83908         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83909         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83910         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83911         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83912         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83914 2009-06-08  Eric Blake  <ebb9@byu.net>
83916         test-strstr: use memory fence, when possible
83917         * tests/test-strstr.c (main): Use memory fence, in order to be
83918         more likely to trigger Debian bug 521737.
83919         * modules/strstr-tests (Files): Pull in additional files.
83921         memchr: no longer obsolete, for wider field testing
83922         * modules/memchr (Status, Notice): Delete, this module is no
83923         longer obsolete.
83924         * modules/vasnprintf (Depends-on): Add memchr.
83926 2009-06-07  Jim Meyering  <meyering@redhat.com>
83928         hash: declare some functions with the warn_unused_result attribute
83929         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83931 2009-06-07  Bruno Haible  <bruno@clisp.org>
83933         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83934         Reported by Eric Blake.
83936 2009-06-06  Eric Blake  <ebb9@byu.net>
83938         test-alignof: fix typo with long double
83939         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83940         compiler error.
83942 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83944         Escape non-texinfo { and }s.
83945         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83946         markup error.
83948 2009-06-04  Jim Meyering  <meyering@redhat.com>
83950         gitlog-to-changelog: don't infloop on an empty commit log
83951         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83952         Reported by Boris Petersen <transacid@centerim.org>.
83954 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83956         version-etc: extend for packagers
83957         Add three new configure options, intended for packagers:
83958           --with-packager="packager name"
83959           --with-packager-version="packager-specific version"
83960           --with-packager-bug-reports="packager bug reporting"
83961         An example with coreutils:
83962           $ ./configure \
83963             --with-packager=Gentoo \
83964             --with-packager-bug-report=http://bugs.gentoo.org/ \
83965             --with-packager-version="patchset 1.6"
83966           $ ./src/ls --version | head -n2
83967           ls (GNU coreutils) 7.1-dirty
83968           Packaged by Gentoo (patchset 1.6)
83969         Note that the bug reporting info via --help doesn't show up because
83970         coreutils uses its own custom emit_bug_reporting_address() implementation
83971         in src/system.h.  If it didn't, it'd look like:
83972           $ ./src/ls --help | tail -n4
83973           Report bugs to <bug-coreutils@gnu.org>.
83974           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83975           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83976           General help using GNU software: <http://www.gnu.org/gethelp/>.
83977         * lib/version-etc.c: Print new information, if provided.
83978         * m4/version-etc.m4: New file.
83979         * modules/version-etc (Files): Add m4/version-etc.m4.
83980         (configure.ac): Add gl_VERSION_ETC.
83982 2009-05-31  Bruno Haible  <bruno@clisp.org>
83984         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83985         and 'int64_t'.
83986         * modules/alignof-tests (Dependencies): Add stdint.
83987         Reported by Eric Blake.
83989 2009-05-31  Bruno Haible  <bruno@clisp.org>
83991         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83992         restriction due to compiler bugs.
83993         Reported by Eric Blake.
83995 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83996             Bruno Haible  <bruno@clisp.org>
83998         Fix test-alignof failure.
83999         * lib/alignof.h (alignof_slot): New macro.
84000         (alignof_type): New macro, with the same semantics as the previous
84001         'alignof'.
84002         (alignof): Alias to alignof_slot.
84003         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
84004         check that the results are usable as constant expressions.
84006 2009-05-31  Bruno Haible  <bruno@clisp.org>
84008         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
84009         * tests/test-memchr.c (main): Check that memchr does not read past the
84010         first occurrence of the byte.
84011         * tests/test-strstr.c (main): Update comment.
84012         Suggested by Eric Blake.
84014 2009-05-30  Bruno Haible  <bruno@clisp.org>
84016         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
84017         detail how to use dumpbin.
84018         Reported by David Byron <dbyron@dbyron.com>.
84020 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84022         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
84024 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84026         * m4/manywarnings.m4: Add GCC 4.4 warnings.
84028 2009-05-28  Bruno Haible  <bruno@clisp.org>
84030         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
84031         build-aux/ files.
84033 2009-05-28  Simon Josefsson  <simon@josefsson.org>
84035         * gnulib-tool (func_import): Transform license on build-aux/ files too.
84037 2009-05-27  Simon Josefsson  <simon@josefsson.org>
84039         * gnulib-tool (sed_transform_main_lib_file)
84040         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
84041         regexps.
84043 2009-05-26  Simon Josefsson  <simon@josefsson.org>
84045         * tests/test-strstr.c: Add another self-test.
84046         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
84047         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
84049 2009-05-23  Bruno Haible  <bruno@clisp.org>
84051         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
84052         change.
84054 2009-05-21  Bruno Haible  <bruno@clisp.org>
84056         Simplify use of mode_t varargs.
84057         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
84058         uses 'mode_t' or 'int'.
84059         * lib/openat.c (openat): Likewise.
84060         * lib/open-safer.c (open_safer): Likewise.
84061         * m4/mode_t.m4: New file.
84062         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
84063         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
84064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
84065         * modules/open (Files): Add m4/mode_t.m4.
84066         * modules/openat (Files): Likewise.
84067         * modules/fcntl-safer (Files): Likewise.
84068         Suggested by Eric Blake.
84070 2009-05-21  Pádraig Brady  <P@draigbrady.com>
84072         * doc/glibc-functions/fallocate.texi: New file.
84073         * doc/gnulib.texi: Include it.
84075 2009-05-21  Eric Blake  <ebb9@byu.net>
84076             Bruno Haible  <bruno@clisp.org>
84078         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
84079         invocations.
84080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84082 2009-05-21  Eric Blake  <ebb9@byu.net>
84083             Bruno Haible  <bruno@clisp.org>
84085         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
84086         include_next. Fix of 2008-11-20 commit.
84087         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
84088         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
84089         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
84090         NEXT_MATH_H.
84091         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
84092         instead of NEXT_MATH_H.
84094 2009-05-21  Bruno Haible  <bruno@clisp.org>
84096         Avoid redefinition warnings for SIZE_MAX.
84097         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
84098         Reported by Simon Josefsson.
84100 2009-05-21  Bruno Haible  <bruno@clisp.org>
84102         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
84103         AC_CACHE_VAL.
84105 2009-05-20  Bruno Haible  <bruno@clisp.org>
84107         Make zeroptr.h work on mingw.
84108         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
84109         mprotect.
84110         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
84111         * modules/memchr2-tests (configure.ac): Likewise.
84112         * modules/memcmp-tests (configure.ac): Likewise.
84113         * modules/memmem-tests (configure.ac): Likewise.
84114         * modules/memrchr-tests (configure.ac): Likewise.
84115         Reported by Simon Josefsson.
84117 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84119         * tests/test-glob.c: Include string.h for strcmp prototype.
84121 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84123         * modules/getdelim (Depends-on): Add explicit stdint, although it
84124         was implicitly already pulled in via realloc-posix.
84125         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
84127 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84129         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
84130         G. Christensen" <tgc@jupiterrise.com>.
84131         * m4/sys_socket_h.m4: Check for sa_family_t.
84132         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
84133         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
84134         * tests/test-sys_socket.c: Check that sa_family_t works.
84136 2009-05-18  Eric Blake  <ebb9@byu.net>
84138         maint.mk: allow gnulib_dir in VPATH build
84139         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
84141 2009-05-15  Jim Meyering  <meyering@redhat.com>
84143         maint.mk: Give gnulib_dir a default definition.
84144         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
84145         Thus, most packages no longer need to specify this variable in cfg.mk
84147 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
84149         rename.m4: fix typos that would make non-mingw cross-configure fail
84150         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
84152 2009-05-13  Eric Blake  <ebb9@byu.net>
84154         mmap-anon: avoid out-of-order autoconf expansion
84155         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
84156         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
84157         * modules/memchr-tests (Depends-on): Add extensions.
84158         * modules/memchr2-tests (Depends-on): Add extensions.
84159         * modules/memcmp-tests (Depends-on): Add extensions.
84160         * modules/memmem-tests (Depends-on): Add extensions.
84161         * modules/memrchr-tests (Depends-on): Add extensions.
84163 2009-05-13  Bruno Haible  <bruno@clisp.org>
84165         Make some tests ISO C 99 compliant.
84166         * tests/zerosize-ptr.h: New file.
84167         * tests/test-memchr.c: Include zerosize-ptr.h.
84168         (main): Use a zero-size object pointer instead of NULL.
84169         * tests/test-memchr2.c: Include zerosize-ptr.h.
84170         (main): Use a zero-size object pointer instead of NULL.
84171         * tests/test-memcmp.c: Include zerosize-ptr.h.
84172         (main): Use a zero-size object pointer instead of NULL.
84173         * tests/test-memmem.c: Include zerosize-ptr.h.
84174         (main): Use a zero-size object pointer instead of NULL.
84175         * tests/test-memrchr.c: Include zerosize-ptr.h.
84176         (main): Use a zero-size object pointer instead of NULL.
84177         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
84178         m4/mmap-anon.m4.
84179         (Depends-on): Add getpagesize.
84180         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84181         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
84182         m4/mmap-anon.m4.
84183         (Depends-on): Add getpagesize.
84184         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84185         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
84186         m4/mmap-anon.m4.
84187         (Depends-on): Add getpagesize.
84188         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84189         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
84190         m4/mmap-anon.m4.
84191         (Depends-on): Add getpagesize.
84192         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84193         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
84194         m4/mmap-anon.m4.
84195         (Depends-on): Add getpagesize.
84196         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84198 2009-05-12  Bruno Haible  <bruno@clisp.org>
84200         Tests for module 'alignof'.
84201         * modules/alignof-tests: New file.
84202         * tests/test-alignof.c: New file.
84204 2009-05-12  Bruno Haible  <bruno@clisp.org>
84206         Fix alignof macro.
84207         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
84208         vendor compilers that are always correct.
84210 2009-05-12  Bruno Haible  <bruno@clisp.org>
84212         Make the MAP_ANONYMOUS detection work on HP-UX 11.
84213         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
84214         not whether its fully works.
84216 2009-05-12  Bruno Haible  <bruno@clisp.org>
84218         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
84220 2009-05-12  Jim Meyering  <meyering@redhat.com>
84222         * top/maint.mk: Adjust backslash alignment.
84224 2009-05-11  Simon Josefsson  <simon@josefsson.org>
84226         * top/maint.mk: Make $(srcdir)/build-aux configurable.
84228 2009-05-11  Eric Blake  <ebb9@byu.net>
84230         argp: avoid undefined behavior
84231         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
84232         macros.
84234 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84236         * tests/test-vc-list-files-git.sh: Do git config of user.email and
84237         user.name to prevent git commit from complaining.
84239 2009-05-10  Bruno Haible  <bruno@clisp.org>
84241         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
84242         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
84243         it rewrites every file name only once.
84244         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
84246 2009-05-08  Bruno Haible  <bruno@clisp.org>
84248         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
84249         instead of 'max'.
84251 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84253         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
84254         sockaddr_storage test.
84256 2009-05-07  Simon Josefsson  <simon@josefsson.org>
84258         * modules/sys_socket (Makefile.am): Substitute
84259         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
84260         * m4/sys_socket_h.m4: Check for sockaddr_storage.
84261         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
84262         * tests/test-sys_socket.c: Check sockaddr_storage.
84264 2009-05-08  Bruno Haible  <bruno@clisp.org>
84266         New module 'alignof'.
84267         * lib/alignof.h: New file.
84268         * modules/alignof: New file.
84270 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84271             Bruno Haible  <bruno@clisp.org>
84273         Fix test-file-has-acl on FreeBSD.
84274         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
84275         mask is implicitly added.
84276         * tests/test-file-has-acl.c: Include <signal.h>.
84277         (main): Terminate the test after 5 seconds.
84278         * modules/acl-tests (configure.ac): Check for alarm function.
84280 2009-05-04  Bruno Haible  <bruno@clisp.org>
84282         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
84283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
84284         * modules/errno (configure.ac): Drop AC_REQUIRE.
84285         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
84286         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
84288 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84290         * modules/glob-tests: New module.
84291         * tests/test-glob.c: Add.
84293 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84295         * modules/fnmatch-tests: New module.
84296         * tests/test-fnmatch.c: Add.
84298 2009-05-04  Eric Blake  <ebb9@byu.net>
84300         maint: make the new no-submodule-changes rule VPATH-safe
84301         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
84303 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84304             Bruno Haible  <bruno@clisp.org>
84306         acl: Fix infinite loop on FreeBSD.
84307         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
84308         of return value from acl_get_entry.
84309         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
84310         Likewise.
84312 2009-05-03  Bruno Haible  <bruno@clisp.org>
84314         * lib/acl-internal.h (acl_entries): Clarify return value.
84315         * lib/acl_entries.c (acl_entries): Likewise.
84317 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84319         Bug fix in acl module.
84320         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
84322 2009-05-03  Bruno Haible  <bruno@clisp.org>
84324         Create gperf-generated file in the source dir, not in the build dir.
84325         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
84326         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84327         * modules/unicase/locale-language (unicase/locale-languages.h):
84328         Likewise.
84329         * modules/unicase/special-casing (unicase/special-casing-table.h):
84330         Likewise.
84331         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84332         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84333         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84334         Reported by Ralf Wildenhues.
84336 2009-05-03  Bruno Haible  <bruno@clisp.org>
84338         * modules/fnmatch (Description, configure.ac): Taken from
84339         fnmatch-posix.
84340         * modules/fnmatch-posix: Turn into a symbolic reference to the
84341         'fnmatch' module, and deprecate.
84342         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84344 2009-05-03  Bruno Haible  <bruno@clisp.org>
84346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84347         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84348         Reported by Ralf Wildenhues.
84350 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84352         * m4/fnmatch.m4: Fix fnmatch re-define.
84354 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84356         priv-set: new module and tests; adapt write-any-file
84357         * lib/priv-set.c: New file.
84358         * lib/priv-set.h: New file.
84359         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84360         * lib/write-any-file.c: Simplify by using priv-set module.
84361         * m4/priv-set.m4: New file.
84362         * modules/priv-set: New file.
84363         * modules/unlinkdir: Add dependency on priv-set module.
84364         * modules/write-any-file: Likewise.
84366         Tests for module 'priv-set'.
84367         * modules/priv-set-tests: New file.
84368         * tests/test-priv-set.c: New file.
84370 2009-05-03  Jim Meyering  <meyering@redhat.com>
84371             Bruno Haible  <bruno@clisp.org>
84373         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84374         use the converted UTF-8 variant of the name instead.
84376 2009-05-03  Jim Meyering  <meyering@redhat.com>
84378         tests: tighten some getdate tests
84379         * tests/test-getdate.c (main): Tighten tests: require equality,
84380         not just greater than.  Set TZ envvar to UTC0.
84382 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84384         getdate: correctly interpret "next monday" when run on a Monday
84385         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84386         that e.g., "next tues" (when run on a tuesday) results in a date
84387         that is one week in the future, and not today's date.
84388         I.e., add a week when the wday is the same as the current one.
84389         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84390         and earlier by Martin Bernreuther and Jan Minář.
84391         * tests/test-getdate.c (main): Check that "next DAY" is always in
84392         the future and that "last DAY" is always in the past.
84394 2009-05-02  Jim Meyering  <meyering@redhat.com>
84396         build: ensure that a release build fails when a submodule is unclean
84397         * top/maint.mk (no-submodule-changes): New rule.
84398         (alpha beta major): Depend on it.
84400 2009-05-02  Bruno Haible  <bruno@clisp.org>
84402         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84403         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84404         shell variable gl_fnmatch_required to detect which variant is
84405         requested.
84406         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84407         gl_FUNC_FNMATCH_POSIX.
84408         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84409         exclude fnmatch-posix.
84411 2009-05-02  Bruno Haible  <bruno@clisp.org>
84413         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84414         * modules/mbsrtowcs (License): Change to LGPLv2+.
84415         * modules/strnlen1 (License): Likewise.
84416         Reported by Simon Josefsson.
84418 2009-05-02  Bruno Haible  <bruno@clisp.org>
84420         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84421         "cross".
84422         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84423         gnulib-tool was called with option --source-base=lib.
84425 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84427         Use automake *-local hooks without commands, for extensibility.
84428         * modules/localcharset (Makefile.am): Rename install-exec-local
84429         rule to install-exec-localcharset, and make it a prerequisite of
84430         install-exec-local.  Likewise, rename the uninstall-local rule to
84431         uninstall-localcharset, and make it a prerequisite of the former.
84433 2009-05-01  Bruno Haible  <bruno@clisp.org>
84435         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84436         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84437         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84439         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84440         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84441         m4/locale-zh.m4, m4/codeset.m4.
84443         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84444         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84445         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84446         m4/locale-zh.m4.
84448         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84449         REPLACE_WCRTOMB if mbstate_t must be replaced.
84450         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84451         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84453 2009-05-01  Bruno Haible  <bruno@clisp.org>
84455         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84456         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84457         dngettext, dcngettext, textdomain, bindtextdomain,
84458         bind_textdomain_codeset): Undefine before redefining.
84460 2009-04-30  Bruno Haible  <bruno@clisp.org>
84462         Fix bug introduced on 2009-04-25.
84463         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84464         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84465         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84466         is defined.
84467         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84468         is defined.
84469         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84470         is defined.
84471         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84473 2009-04-28  Bruno Haible  <bruno@clisp.org>
84475         Comment tweaks.
84476         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84477         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84478         * lib/unicase.h (u*_casexfrm): Likewise.
84479         Reported by Paolo Bonzini.
84481 2009-04-28  Bruno Haible  <bruno@clisp.org>
84483         Fix a compilation error.
84484         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84485         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84486         Reported by Jim Meyering.
84488 2009-04-27  Bruno Haible  <bruno@clisp.org>
84490         New module 'libunistring'.
84491         * modules/libunistring: New file.
84492         * m4/libunistring.m4: New file.
84493         * MODULES.html.sh (Unicode string functions): Add it.
84495 2009-04-27  Eric Blake  <ebb9@byu.net>
84497         maint.mk: allow package-specific header to provide <config.h>
84498         * top/maint.mk (sc_require_config_h): New variable.
84499         (sc_require_config_h, sc_require_config_h_first): Use it.
84501 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84503         * top/maint.mk (sc_avoid_if_before_free): Except
84504         useless-if-before-free script.
84506 2009-04-27  Eric Blake  <ebb9@byu.net>
84508         maintainer-makefile: depend on all required helper scripts
84509         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84510         useless-if-before-free.
84511         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84512         version, rather than assuming gnulib checkout is available.
84513         Reported by Simen Josefsson.
84515 2009-04-26  Bruno Haible  <bruno@clisp.org>
84517         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84518         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84519         "../" or "..".
84521 2009-04-26  Bruno Haible  <bruno@clisp.org>
84523         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84524         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84525         AC_LIB_HAVE_LINKFLAGS.
84527 2009-04-26  Bruno Haible  <bruno@clisp.org>
84529         Simplify calling convention of u*_conv_from_encoding.
84530         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84531         u32_conv_from_encoding): Expect a resultbuf argument and return the
84532         result directly as a pointer.
84533         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84534         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84535         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84536         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84537         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84538         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84539         Update.
84540         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84541         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84542         * lib/vasnprintf.c (VASNPRINTF): Update.
84543         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84544         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84545         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84546         * NEWS: Mention the change.
84548 2009-04-26  Bruno Haible  <bruno@clisp.org>
84550         Simplify calling convention of u*_conv_to_encoding.
84551         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84552         u32_conv_to_encoding): Expect a resultbuf argument and return the
84553         result directly as a pointer.
84554         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84555         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84556         freeing scaled_offsets if mem_iconveha failed.
84557         * lib/unicase/u-casexfrm.h (FUNC): Update.
84558         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84559         * lib/vasnprintf.c (VASNPRINTF): Update.
84560         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84561         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84562         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84563         * NEWS: Mention the change.
84565 2009-04-26  Bruno Haible  <bruno@clisp.org>
84567         Avoid test failures on AIX and OSF/1.
84568         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84569         malloc(0).
84570         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84571         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84572         Likewise.
84573         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84574         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84575         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84576         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84577         * doc/posix-functions/malloc.texi: Document the portability problem
84578         related to malloc(0).
84580 2009-04-26  Bruno Haible  <bruno@clisp.org>
84582         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84583         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84584         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84586 2009-04-25  Bruno Haible  <bruno@clisp.org>
84588         Avoid link error when creating a namespace clean library.
84589         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84590         as macro with arguments if already defined as an alias.
84591         * lib/signbitf.c (gl_signbitf): Don't undefine.
84592         * lib/signbitd.c (gl_signbitd): Don't undefine.
84593         * lib/signbitl.c (gl_signbitl): Don't undefine.
84595 2009-04-25  Jim Meyering  <meyering@redhat.com>
84597         vc-list-files: fix another quoting bug
84598         * build-aux/vc-list-files: Avoid sed backslash expansion
84599         of pathological directory names.
84601 2009-04-25  Eric Blake  <ebb9@byu.net>
84603         vc-list-files: fix shell quoting error
84604         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84605         timestamp.
84607 2009-04-25  Jim Meyering  <meyering@redhat.com>
84609         vc-list-files: restore lost functionality with subdir argument
84610         * build-aux/vc-list-files: When given a non-"." sub-directory
84611         argument, substitute the $dir/ prefix back onto each resulting name.
84612         Otherwise, coreutils' root_tests check would fail.
84614 2009-04-24  Eric Blake  <ebb9@byu.net>
84616         vc-list-files: ignore git symlinks
84617         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84618         than ls-files, to ignore git symlinks.
84620         maint.mk: import improvements from m4
84621         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84622         (move_if_change): Delete unused macro.
84623         (news-date-check, vc-diff-check): Support VPATH builds.
84624         (announcement): Likewise.  Split --bootstrap-tools list...
84625         (boostrap-tools): ...into separate list, which can be overridden
84626         in cfg.mk.
84627         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84628         requiring dependency on useless-if-before-free module.
84629         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84630         Support VPATH builds.
84632 2009-04-24  Jim Meyering  <meyering@redhat.com>
84634         maint.mk: remove coreutils-specific rules and variables
84635         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84636         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84637         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84639         maint.mk: remove obsolete rule
84640         * top/maint.mk (rel-check): Remove rule.
84641         (WGET, WGETFLAGS): Remove now-unused variables.
84643 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84645         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84646         consistency.
84648         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84649         '$(PATH_SEPARATOR)' instead of ':'.
84651 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84653         * lib/getopt1.c (main): Use 'const' for static array.
84655 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84657         * top/maint.mk: Sync with coreutils.
84658         * NEWS: Explain incompatibilities.
84660 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84661             Bruno Haible  <bruno@clisp.org>
84663         Fix cross-compilation results.
84664         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84665         statement, as third argument of AC_TRY_RUN.
84666         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84667         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84668         Likewise.
84669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84670         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84671         Likewise.
84672         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84673         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84674         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84676 2009-04-20  Bruno Haible  <bruno@clisp.org>
84678         Avoid test failure on mingw.
84679         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84681 2009-04-20  Bruno Haible  <bruno@clisp.org>
84683         Avoid compilation error on mingw.
84684         * modules/localename-tests (Depends-on): Add locale.
84686 2009-04-19  Bruno Haible  <bruno@clisp.org>
84688         Support for building a shared library on Windows platforms.
84689         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84690         (main): Test the presence of UNINORM_NFC here.
84691         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84692         (main): Test the presence of UNINORM_NFD here.
84693         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84694         (main): Test the presence of UNINORM_NFKC here.
84695         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84696         (main): Test the presence of UNINORM_NFKD here.
84698 2009-04-19  Bruno Haible  <bruno@clisp.org>
84700         Avoid a compiler warning.
84701         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84702         Change type of variable 'sequence'.
84704 2009-04-19  Bruno Haible  <bruno@clisp.org>
84706         * modules/configmake (Makefile.am): When the contents of configmake.h
84707         does not change, arrange to preserve its modification time.
84709 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84711         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84712         gettext domain.
84714 2009-04-16  Jim Meyering  <meyering@redhat.com>
84716         useless-if-before-free: improve conversion code
84717         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84718         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84720 2009-04-14  Bruno Haible  <bruno@clisp.org>
84722         * modules/fcntl (Depends-on): Add extensions.
84723         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84725 2009-04-12  Ben Pfaff  <blp@gnu.org>
84727         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84728         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84730 2009-03-20  Ben Pfaff  <blp@gnu.org>
84732         Make rename replace existing destinations on Windows.
84733         * m4/rename.m4: Add test for Mingw.
84734         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84735         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84736         * doc/posix-functions/rename.texi: Document.
84738 2009-04-10  Bruno Haible  <bruno@clisp.org>
84740         New include file "iconveh.h".
84741         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84742         * lib/striconveh.h: Include it.
84743         (enum iconv_ilseq_handler): Remove definition.
84744         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84745         striconveh.h.
84746         * lib/striconveha.c: Include striconveh.h.
84747         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84748         * modules/striconveh (Files): Add lib/iconveh.h.
84749         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84750         lib/striconveh.h.
84752 2009-04-10  Bruno Haible  <bruno@clisp.org>
84754         * lib/uniconv.h: Update comment.
84756 2009-04-10  Bruno Haible  <bruno@clisp.org>
84758         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84759         always.
84760         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84761         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84762         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84763         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84764         "unistring-notinline.h", so that the function gets defined always.
84765         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84766         * lib/unistr/u8-uctomb.c: Likewise.
84767         * lib/unistr/u16-mbtouc.c: Likewise.
84768         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84769         * lib/unistr/u16-uctomb.c: Likewise.
84770         * lib/unistr/u32-mbtouc.c: Likewise.
84771         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84772         * lib/unistr/u32-uctomb.c: Likewise.
84774 2009-04-10  Bruno Haible  <bruno@clisp.org>
84776         Mark 'utime' obsolete.
84777         * modules/utime (Status, Notice): New sections.
84778         Suggested by Jim Meyering.
84780         Fix cross-compile guess for utime test.
84781         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84782         autoconf.
84783         * doc/posix-functions/utime.texi: Give more precisions.
84784         Reported by Jan <ipif@ymail.com>.
84786 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84788         filevercmp: correct today's change
84789         * lib/filevercmp.c: Also handle coreutils' test inputs.
84790         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84792         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84793         for reporting it.
84794         * lib/filevercmp.c: Special handle for "", "." and "..".
84795         * tests/test-filevercmp.c: Enlarge the set suite.
84797 2009-04-07  Jim Meyering  <meyering@redhat.com>
84799         useless-if-before-free: show how to remove braced useless free, too
84800         * build-aux/useless-if-before-free: still only in a comment, though.
84802 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84804         maint.mk: import changes to syntax-check macros from coreutils
84805         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84806         Use them in the relevant macros.
84808 2009-04-06  Bruno Haible  <bruno@clisp.org>
84810         Fix unportable use of bit-fields.
84811         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84812         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84813         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84815 2009-04-06  Bruno Haible  <bruno@clisp.org>
84817         Avoid test failures on AIX and OSF/1.
84818         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84819         that malloc(0) = NULL.
84820         * tests/unicase/test-u8-tolower.c (check): Likewise.
84821         * tests/unicase/test-u8-totitle.c (check): Likewise.
84822         * tests/unicase/test-u8-toupper.c (check): Likewise.
84823         * tests/unicase/test-u16-casefold.c (check): Likewise.
84824         * tests/unicase/test-u16-tolower.c (check): Likewise.
84825         * tests/unicase/test-u16-totitle.c (check): Likewise.
84826         * tests/unicase/test-u16-toupper.c (check): Likewise.
84827         * tests/unicase/test-u32-casefold.c (check): Likewise.
84828         * tests/unicase/test-u32-tolower.c (check): Likewise.
84829         * tests/unicase/test-u32-totitle.c (check): Likewise.
84830         * tests/unicase/test-u32-toupper.c (check): Likewise.
84831         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84832         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84833         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84834         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84835         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84836         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84837         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84838         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84839         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84840         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84841         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84842         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84844 2009-04-05  Bruno Haible  <bruno@clisp.org>
84846         Work around an autoconf limitation.
84847         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84848         comment line if it would be longer than 3 KB.
84850 2009-04-05  Bruno Haible  <bruno@clisp.org>
84852         Avoid test failure with libiconv-1.13.
84853         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84854         of the expected test results.
84856 2009-04-05  Bruno Haible  <bruno@clisp.org>
84858         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84859         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84860         that it should be installed.
84862 2009-04-05  Bruno Haible  <bruno@clisp.org>
84864         * gnulib-tool: New option --copy-file.
84865         (func_usage): Document it.
84866         (func_dest_tmpfilename): Moved out of func_import.
84867         (func_add_file, func_update_file): New functions, extracted from
84868         func_import.
84869         (func_import): Update.
84871 2009-04-05  Karl Berry  <karl@gnu.org>
84873         * README: prominently mention gnulib-tool.
84874         Rearrange sections so getting the code is near the top.
84876 2009-04-05  Bruno Haible  <bruno@clisp.org>
84878         * lib/unicase.h: Mention u*_cmp2.
84879         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84880         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84881         * lib/unicase/ulc-casecmp.c: Likewise.
84882         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84883         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84884         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84885         unistr/u8-cmp.
84886         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84887         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84888         unistr/u16-cmp.
84889         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84890         unistr/u32-cmp.
84892         * lib/uninorm.h: Mention u*_cmp2.
84893         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84894         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84895         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84896         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84897         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84898         unistr/u8-cmp.
84899         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84900         unistr/u16-cmp.
84901         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84902         unistr/u32-cmp.
84904         New module 'unistr/u32-cmp2'.
84905         * lib/unistr/u32-cmp2.c: New file.
84906         * modules/unistr/u32-cmp2: New file.
84908         New module 'unistr/u16-cmp2'.
84909         * lib/unistr/u16-cmp2.c: New file.
84910         * modules/unistr/u16-cmp2: New file.
84912         New module 'unistr/u8-cmp2'.
84913         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84914         * lib/unistr/u8-cmp2.c: New file.
84915         * lib/unistr/u-cmp2.h: New file.
84916         * modules/unistr/u8-cmp2: New file.
84918 2009-04-05  Bruno Haible  <bruno@clisp.org>
84920         * lib/unictype.h (uc_property_is_valid): New macro.
84921         * tests/unictype/test-pr_byname.c (main): Use it.
84923         * lib/unistr.h: Doc fixes.
84924         * lib/uniconv.h: Doc fixes.
84925         * lib/unictype.h: Doc fixes.
84927 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84929         Port coreutils 7.2 to Solaris 8.
84931         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84932         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84933         for Solaris 8.  This is a bit of a hack, as it means it's the
84934         caller's responsibility to add -lnsl if needed, but most likely it
84935         won't be needed since only getaddrinfo uses this and getaddrinfo
84936         isn't needed on Solaris 8.
84938         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84939         problem to Solaris 8 encountered with coreutils 7.2, which
84940         resulted in a message "fnmatch.c:292: warning: passing argument 4
84941         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84942         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84944 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84946         * m4/ld-version-script.m4: Add FIXME comment.
84948 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84950         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84951         SOVERSION variable.
84953 2009-04-02  Bruno Haible  <bruno@clisp.org>
84955         * Makefile (info, html, dvi, pdf): Combine the rules.
84956         Suggested by Jim Meyering.
84958 2009-04-01  Bruno Haible  <bruno@clisp.org>
84960         * Makefile (info, html, dvi, pdf): New targets.
84961         Reported by Reuben Thomas <rrt@sc3d.org>.
84963 2009-04-01  Bruno Haible  <bruno@clisp.org>
84965         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84966         can be put into PATH.
84967         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84969 2009-04-01  Bruno Haible  <bruno@clisp.org>
84971         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84973 2009-04-01  Bruno Haible  <bruno@clisp.org>
84975         Rename module 'visibility'.
84976         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84977         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84978         * doc/gnulib.texi: Update.
84979         * MODULES.html.sh (Misc): Update.
84980         * NEWS: Mention the change.
84982 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84984         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84985         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84986         Eric Blake <ebb9@byu.net> for review.
84987         * MODULES.html.sh: Add lib-msvc-compat.
84988         * doc/gnulib.texi: Link to new section.
84989         * m4/ld-output-def.m4: New file.
84990         * doc/ld-output-def.texi: New file.
84992 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84994         Rename ld-version-script to lib-symbol-versions.  Suggested by
84995         Bruno Haible <bruno@clisp.org>.
84996         * modules/ld-version-script: Renamed to lib-symbol-versions.
84997         * doc/ld-version-script.texi: Fix module name.
84998         * MODULES.html.sh: Add lib-symbol-versions.
85000 2009-03-31  Simon Josefsson  <simon@josefsson.org>
85002         * modules/u64-tests: New file.
85003         * tests/test-u64.c: New file.
85005 2009-03-04  Simon Josefsson  <simon@josefsson.org>
85007         * MODULES.html.sh: Mention u64.
85008         * modules/u64: New module.
85009         * modules/crypto/sha512: Depend on u64 module instead of providing
85010         u64.h.
85012 2009-03-27  Eric Blake  <ebb9@byu.net>
85014         test-strerror: make debugging EAI_SYSTEM easier
85015         * modules/getaddrinfo-tests (Depends-on): Add strerror.
85016         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
85017         failure was EAI_SYSTEM.
85019 2009-03-25  Bruno Haible  <bruno@clisp.org>
85021         Fix a problem with --enable-relocatable on Solaris 7.
85022         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
85023         since 2008-02-24.
85025 2009-03-25  Eric Blake  <ebb9@byu.net>
85027         test-sockets: avoid gcc warning
85028         * tests/test-sockets.c (main): Silence compiler warning.
85030 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
85032         New modules nproc, pthread, contributed by Glen Lenker.
85034         * MODULES.html.sh: Add pthread, nproc.
85035         * lib/nproc.c: New file.
85036         * lib/nproc.h: New file.
85037         * lib/pthread.in.h: New file.
85038         * m4/pthread.m4: New file.
85039         * modules/nproc: New file.
85040         * modules/pthread: New file.
85042 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85044         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
85045         New variable.
85047 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
85049         filevercmp: handle simple~ and numbered.~3~ backup suffixes
85050         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
85051         * tests/test-filevercmp.c: Add tests for backup suffixes.
85053 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85055         * modules/stdlib (Depends-on): Add stdint, needed when defining
85056         struct random_data on, for example, HP-UX 10.20.  Reported by
85057         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85059 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85061         * lib/readline.c (readline): Call fflush on stdout after printing
85062         prompt.
85064 2009-03-20  Bruno Haible  <bruno@clisp.org>
85066         Remove dependency from 'close' module to -lws2_32 on native Windows.
85067         * lib/close-hook.h: New file.
85068         * lib/close-hook.c: New file.
85069         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
85070         w32sock.h.
85071         (_gl_close_fd_maybe_socket): Remove function.
85072         (rpl_close): Invoke execute_all_close_hooks instead of
85073         _gl_close_fd_maybe_socket.
85074         * lib/sockets.c: Include close-hook.h, w32sock.h.
85075         (close_fd_maybe_socket): New function, essentially from lib/close.c.
85076         (close_sockets_hook): New variable.
85077         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
85078         (gl_sockets_cleanup): Unregister it.
85079         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
85080         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
85081         * modules/close-hook: New file.
85082         * modules/close (Files): Remove lib/w32sock.h.
85083         (Depends-on): Add close-hook.
85084         (Link): Remove section.
85085         * modules/sockets (Files): Add lib/w32sock.h.
85086         (Depends-on): Add close-hook.
85087         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
85088         invocation.
85089         * NEWS: Mention that LIB_CLOSE is gone.
85091 2009-03-23  Eric Blake  <ebb9@byu.net>
85093         signal-tests: test previous patch
85094         * tests/test-signal.c: New file.
85095         * modules/signal-tests: Likewise.
85097         signal.h: always support 'volatile sig_atomic_t'
85098         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
85099         (gl_SIGNAL_H_DEFAULTS): Add a default.
85100         * modules/signal (Makefile.am): Substitute if needed.
85101         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
85102         users can blindly add volatile.
85103         * doc/posix-headers/signal.texi (signal.h): Document it.
85104         Reported by Matthew Woehlke.
85106 2009-03-23  Jim Meyering  <meyering@redhat.com>
85108         pathmax: PATH_MAX: use pathconf only when available
85109         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
85110         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
85111         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
85112         This avoids a link failure in a PSP cross-compilation environment
85113         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
85115         * lib/vasnprintf.c (divide): Fix typo in comment.
85117 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85119         * gnulib-tool (func_filter_filelist): Fix comment.
85121 2009-03-20  Bruno Haible  <bruno@clisp.org>
85123         Make sockets.h self-contained.
85124         * lib/sockets.c: Include sockets.h first.
85125         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
85127 2009-03-19  Eric Blake  <ebb9@byu.net>
85129         doc: mention more functions added in cygwin 1.7.0
85130         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
85131         addition.
85132         * doc/posix-functions/log2f.texi: Likewise.
85134 2009-03-19  Jim Meyering  <meyering@redhat.com>
85136         fsusage: avoid syntax error due to statement-before-declaration
85137         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
85138         after all declarations.  Reported by Matthew Woehlke in
85139         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
85141 2009-03-18  Eric Blake  <ebb9@byu.net>
85143         build-aux/compile: sync from automake
85144         * build-aux/compile: New file, from automake.
85145         * config/srclist.txt: Mention build-aux/compile.
85147 2009-03-17  Bruno Haible  <bruno@clisp.org>
85149         * lib/git-merge-changelog.c: Fix typo in comment.
85150         Reported by Reuben Thomas <rrt@sc3d.org>.
85152 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
85154         * m4/regex.m4: update and improve help for
85155         --without-included-regex.
85157 2009-03-17  Simon Josefsson  <simon@josefsson.org>
85159         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
85160         failure on missing include files.
85162 2009-03-17  Eric Blake  <ebb9@byu.net>
85164         doc: mention more functions added in cygwin 1.7.0
85165         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
85166         addition.
85167         * doc/posix-functions/fwscanf.texi: Likewise.
85168         * doc/posix-functions/swprintf.texi: Likewise.
85169         * doc/posix-functions/swscanf.texi: Likewise.
85170         * doc/posix-functions/vfwprintf.texi: Likewise.
85171         * doc/posix-functions/vfwscanf.texi: Likewise.
85172         * doc/posix-functions/vswprintf.texi: Likewise.
85173         * doc/posix-functions/vswscanf.texi: Likewise.
85174         * doc/posix-functions/vwprintf.texi: Likewise.
85175         * doc/posix-functions/vwscanf.texi: Likewise.
85176         * doc/posix-functions/wcscasecmp.texi: Likewise.
85177         * doc/posix-functions/wcsdup.texi: Likewise.
85178         * doc/posix-functions/wcsftime.texi: Likewise.
85179         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85180         * doc/posix-functions/wprintf.texi: Likewise.
85181         * doc/posix-functions/wscanf.texi: Likewise.
85182         * doc/glibc-functions/gethostbyname2.texi: Likewise.
85184 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85186         maint.mk: really add $(AM_MAKEFLAGS)
85187         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
85188         was inadvertently omitted in the last commit.
85189         Spotted by Bruno Haible.
85191         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
85192         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
85193         $(AM_MAKEFLAGS)' rather than plain `make'.
85195         gnulib-tool: execute $MAKE not make
85196         * gnulib-tool: Default $MAKE to 'make'.
85197         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
85198         than make.  Initialize $MAKE in the do-autobuild script.
85200         gnulib-tool: use $MAKE not make in generated files
85201         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
85202         make, in generated files.  Initialize $MAKE in the do-autobuild
85203         script.
85205         * top/GNUmakefile (_have-git-version-gen): Fix typo.
85207         GNUmakefile: disable parallelism only for multiple, recursive targets
85208         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
85209         additions in the Makefile.
85210         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
85211         by Automake.
85212         (.NOTPARALLEL): Only disable parallel builds if multiple targets
85213         are listed on the command line and at least one of them is
85214         listed in $(ALL_RECURSIVE_TARGETS).
85216 2009-03-14  Bruno Haible  <bruno@clisp.org>
85218         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
85219         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
85220         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
85221         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
85222         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
85223         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
85224         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
85225         unistr/u8-uctomb.
85226         * modules/unistr/u8-strchr (Depends-on): Likewise.
85227         * modules/unistr/u8-strrchr (Depends-on): Likewise.
85228         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
85229         unistr/u16-uctomb.
85230         * modules/unistr/u16-strchr (Depends-on): Likewise.
85231         * modules/unistr/u16-strrchr (Depends-on): Likewise.
85233 2009-03-12  Bruno Haible  <bruno@clisp.org>
85235         Work around select() bug on Interix 3.5.
85236         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
85237         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
85238         * m4/select.m4: New file.
85239         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
85240         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
85241         * modules/select (Files): Add m4/select.m4.
85242         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
85243         * modules/nanosleep (Depends-on): Add select.
85244         * modules/poll (Depends-on): Likewise.
85245         * doc/posix-functions/select.texi: Mention the Interix bug.
85246         Reported by Markus Duft <mduft@gentoo.org>.
85248         * lib/select.c: Renamed from lib/winsock-select.c.
85249         * modules/select (Files): Add lib/select.c, remove
85250         lib/winsock-select.c.
85251         (configure.ac): Update.
85253 2009-03-12  Jim Meyering  <meyering@redhat.com>
85255         avoid gcc warnings about unused macro definitions
85256         * lib/readtokens.c (STREQ): Remove unused definition.
85257         * lib/xmalloc.c (SIZE_MAX): Likewise.
85258         * lib/openat-die.c (N_): Likewise.
85259         * lib/mountlist.c (SIZE_MAX): Remove definition.
85260         Instead, include <stdint.h>.
85261         * lib/readutmp.c: Likewise.
85262         * modules/readutmp (Depends-on): Add stdint.
85263         * modules/mountlist (Depends-on): Add stdint.
85264         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
85266 2009-03-10  Bruno Haible  <bruno@clisp.org>
85268         Tests for module 'mbmemcasecoll'.
85269         * modules/mbmemcasecoll-tests: New file.
85270         * tests/test-mbmemcasecoll1.sh: New file.
85271         * tests/test-mbmemcasecoll2.sh: New file.
85272         * tests/test-mbmemcasecoll3.sh: New file.
85273         * tests/test-mbmemcasecoll.c: New file.
85275         New module 'mbmemcasecoll'.
85276         * lib/mbmemcasecoll.h: New file.
85277         * lib/mbmemcasecoll.c: New file.
85278         * modules/mbmemcasecoll: New file.
85280         * tests/test-mbmemcasecmp.h: New file, extracted from
85281         tests/test-mbmemcasecmp.c.
85282         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
85283         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
85284         (main): Update.
85285         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
85287 2009-03-09  Bruno Haible  <bruno@clisp.org>
85289         Tests for module 'mbmemcasecmp'.
85290         * modules/mbmemcasecmp-tests: New file.
85291         * tests/test-mbmemcasecmp1.sh: New file.
85292         * tests/test-mbmemcasecmp2.sh: New file.
85293         * tests/test-mbmemcasecmp3.sh: New file.
85294         * tests/test-mbmemcasecmp.c: New file.
85296         New module 'mbmemcasecmp'.
85297         * lib/mbmemcasecmp.h: New file.
85298         * lib/mbmemcasecmp.c: New file.
85299         * modules/mbmemcasecmp: New file.
85301 2009-03-09  Bruno Haible  <bruno@clisp.org>
85303         Tests for module 'unicase/ulc-casecoll'.
85304         * modules/unicase/ulc-casecoll-tests: New file.
85305         * tests/unicase/test-ulc-casecoll1.sh: New file.
85306         * tests/unicase/test-ulc-casecoll2.sh: New file.
85307         * tests/unicase/test-ulc-casecoll.c: New file.
85309         New module 'unicase/ulc-casecoll'.
85310         * lib/unicase.h (ulc_casecoll): New declaration.
85311         * lib/unicase/ulc-casecoll.c: New file.
85312         * modules/unicase/ulc-casecoll: New file.
85314         New module 'unicase/ulc-casexfrm'.
85315         * lib/unicase.h (ulc_casexfrm): New declaration.
85316         * lib/unicase/ulc-casexfrm.c: New file.
85317         * modules/unicase/ulc-casexfrm: New file.
85319 2009-03-09  Bruno Haible  <bruno@clisp.org>
85321         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
85322         invocations.
85324         * m4/mbscasecmp.m4: Remove file.
85325         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
85326         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85328         * m4/mbscasestr.m4: Remove file.
85329         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85330         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85332         * m4/mbschr.m4: Remove file.
85333         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85334         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85336         * m4/mbscspn.m4: Remove file.
85337         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85338         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85340         * m4/mbslen.m4: Remove file.
85341         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85342         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85344         * m4/mbsncasecmp.m4: Remove file.
85345         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85346         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85348         * m4/mbsnlen.m4: Remove file.
85349         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85350         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85352         * m4/mbspbrk.m4: Remove file.
85353         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85354         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85356         * m4/mbspcasecmp.m4: Remove file.
85357         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85358         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85360         * m4/mbsrchr.m4: Remove file.
85361         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85362         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85364         * m4/mbssep.m4: Remove file.
85365         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85366         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85368         * m4/mbsspn.m4: Remove file.
85369         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85370         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85372         * m4/mbsstr.m4: Remove file.
85373         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85374         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85376         * m4/mbstok_r.m4: Remove file.
85377         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85378         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85380         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85382         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85383         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85385         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85387 2009-03-08  Bruno Haible  <bruno@clisp.org>
85389         Tests for module 'unicase/ulc-casecmp'.
85390         * modules/unicase/ulc-casecmp-tests: New file.
85391         * tests/unicase/test-ulc-casecmp1.sh: New file.
85392         * tests/unicase/test-ulc-casecmp2.sh: New file.
85393         * tests/unicase/test-ulc-casecmp.c: New file.
85395         New module 'unicase/ulc-casecmp'.
85396         * lib/unicase.h (ulc_casecmp): New declaration.
85397         * lib/unicase/ulc-casecmp.c: New file.
85398         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85399         'const SRC_UNIT *'.
85400         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85401         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85402         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85403         * modules/unicase/ulc-casecmp: New file.
85405         Tests for module 'unicase/u32-is-cased'.
85406         * modules/unicase/u32-is-cased-tests: New file.
85407         * tests/unicase/test-u32-is-cased.c: New file.
85409         Tests for module 'unicase/u16-is-cased'.
85410         * modules/unicase/u16-is-cased-tests: New file.
85411         * tests/unicase/test-u16-is-cased.c: New file.
85413         Tests for module 'unicase/u8-is-cased'.
85414         * modules/unicase/u8-is-cased-tests: New file.
85415         * tests/unicase/test-u8-is-cased.c: New file.
85416         * tests/unicase/test-is-cased.h: New file.
85418         New module 'unicase/u32-is-cased'.
85419         * lib/unicase/u32-is-cased.c: New file.
85420         * modules/unicase/u32-is-cased: New file.
85422         New module 'unicase/u16-is-cased'.
85423         * lib/unicase/u16-is-cased.c: New file.
85424         * modules/unicase/u16-is-cased: New file.
85426         New module 'unicase/u8-is-cased'.
85427         * lib/unicase/u8-is-cased.c: New file.
85428         * lib/unicase/u-is-cased.h: New file.
85429         * modules/unicase/u8-is-cased: New file.
85431         Tests for module 'unicase/u32-is-casefolded'.
85432         * modules/unicase/u32-is-casefolded-tests: New file.
85433         * tests/unicase/test-u32-is-casefolded.c: New file.
85435         Tests for module 'unicase/u16-is-casefolded'.
85436         * modules/unicase/u16-is-casefolded-tests: New file.
85437         * tests/unicase/test-u16-is-casefolded.c: New file.
85439         Tests for module 'unicase/u8-is-casefolded'.
85440         * modules/unicase/u8-is-casefolded-tests: New file.
85441         * tests/unicase/test-u8-is-casefolded.c: New file.
85442         * tests/unicase/test-is-casefolded.h: New file.
85444         New module 'unicase/u32-is-casefolded'.
85445         * lib/unicase/u32-is-casefolded.c: New file.
85446         * modules/unicase/u32-is-casefolded: New file.
85448         New module 'unicase/u16-is-casefolded'.
85449         * lib/unicase/u16-is-casefolded.c: New file.
85450         * modules/unicase/u16-is-casefolded: New file.
85452         New module 'unicase/u8-is-casefolded'.
85453         * lib/unicase/u8-is-casefolded.c: New file.
85454         * modules/unicase/u8-is-casefolded: New file.
85456         Tests for module 'unicase/u32-is-titlecase'.
85457         * modules/unicase/u32-is-titlecase-tests: New file.
85458         * tests/unicase/test-u32-is-titlecase.c: New file.
85460         Tests for module 'unicase/u16-is-titlecase'.
85461         * modules/unicase/u16-is-titlecase-tests: New file.
85462         * tests/unicase/test-u16-is-titlecase.c: New file.
85464         Tests for module 'unicase/u8-is-titlecase'.
85465         * modules/unicase/u8-is-titlecase-tests: New file.
85466         * tests/unicase/test-u8-is-titlecase.c: New file.
85467         * tests/unicase/test-is-titlecase.h: New file.
85469         New module 'unicase/u32-is-titlecase'.
85470         * lib/unicase/u32-is-titlecase.c: New file.
85471         * modules/unicase/u32-is-titlecase: New file.
85473         New module 'unicase/u16-is-titlecase'.
85474         * lib/unicase/u16-is-titlecase.c: New file.
85475         * modules/unicase/u16-is-titlecase: New file.
85477         New module 'unicase/u8-is-titlecase'.
85478         * lib/unicase/u8-is-titlecase.c: New file.
85479         * modules/unicase/u8-is-titlecase: New file.
85481         Tests for module 'unicase/u32-is-lowercase'.
85482         * modules/unicase/u32-is-lowercase-tests: New file.
85483         * tests/unicase/test-u32-is-lowercase.c: New file.
85485         Tests for module 'unicase/u16-is-lowercase'.
85486         * modules/unicase/u16-is-lowercase-tests: New file.
85487         * tests/unicase/test-u16-is-lowercase.c: New file.
85489         Tests for module 'unicase/u8-is-lowercase'.
85490         * modules/unicase/u8-is-lowercase-tests: New file.
85491         * tests/unicase/test-u8-is-lowercase.c: New file.
85492         * tests/unicase/test-is-lowercase.h: New file.
85494         New module 'unicase/u32-is-lowercase'.
85495         * lib/unicase/u32-is-lowercase.c: New file.
85496         * modules/unicase/u32-is-lowercase: New file.
85498         New module 'unicase/u16-is-lowercase'.
85499         * lib/unicase/u16-is-lowercase.c: New file.
85500         * modules/unicase/u16-is-lowercase: New file.
85502         New module 'unicase/u8-is-lowercase'.
85503         * lib/unicase/u8-is-lowercase.c: New file.
85504         * modules/unicase/u8-is-lowercase: New file.
85506         Tests for module 'unicase/u32-is-uppercase'.
85507         * modules/unicase/u32-is-uppercase-tests: New file.
85508         * tests/unicase/test-u32-is-uppercase.c: New file.
85510         Tests for module 'unicase/u16-is-uppercase'.
85511         * modules/unicase/u16-is-uppercase-tests: New file.
85512         * tests/unicase/test-u16-is-uppercase.c: New file.
85514         Tests for module 'unicase/u8-is-uppercase'.
85515         * modules/unicase/u8-is-uppercase-tests: New file.
85516         * tests/unicase/test-u8-is-uppercase.c: New file.
85517         * tests/unicase/test-is-uppercase.h: New file.
85519         New module 'unicase/u32-is-uppercase'.
85520         * lib/unicase/u32-is-uppercase.c: New file.
85521         * modules/unicase/u32-is-uppercase: New file.
85523         New module 'unicase/u16-is-uppercase'.
85524         * lib/unicase/u16-is-uppercase.c: New file.
85525         * modules/unicase/u16-is-uppercase: New file.
85527         New module 'unicase/u8-is-uppercase'.
85528         * lib/unicase/u8-is-uppercase.c: New file.
85529         * modules/unicase/u8-is-uppercase: New file.
85531         New module 'unicase/u32-is-invariant'.
85532         * lib/unicase/u32-is-invariant.c: New file.
85533         * modules/unicase/u32-is-invariant: New file.
85535         New module 'unicase/u16-is-invariant'.
85536         * lib/unicase/u16-is-invariant.c: New file.
85537         * modules/unicase/u16-is-invariant: New file.
85539         New module 'unicase/u8-is-invariant'.
85540         * lib/unicase/u8-is-invariant.c: New file.
85541         * lib/unicase/invariant.h: New file.
85542         * lib/unicase/u-is-invariant.h: New file.
85543         * modules/unicase/u8-is-invariant: New file.
85545         Tests for module 'unicase/u32-casecoll'.
85546         * modules/unicase/u32-casecoll-tests: New file.
85547         * tests/unicase/test-u32-casecoll.c: New file.
85549         Tests for module 'unicase/u16-casecoll'.
85550         * modules/unicase/u16-casecoll-tests: New file.
85551         * tests/unicase/test-u16-casecoll.c: New file.
85553         Tests for module 'unicase/u8-casecoll'.
85554         * modules/unicase/u8-casecoll-tests: New file.
85555         * tests/unicase/test-u8-casecoll.c: New file.
85557         New module 'unicase/u32-casecoll'.
85558         * lib/unicase/u32-casecoll.c: New file.
85559         * modules/unicase/u32-casecoll: New file.
85561         New module 'unicase/u16-casecoll'.
85562         * lib/unicase/u16-casecoll.c: New file.
85563         * modules/unicase/u16-casecoll: New file.
85565         New module 'unicase/u8-casecoll'.
85566         * lib/unicase/u8-casecoll.c: New file.
85567         * lib/unicase/u-casecoll.h: New file.
85568         * modules/unicase/u8-casecoll: New file.
85570         New module 'unicase/u32-casexfrm'.
85571         * lib/unicase/u32-casexfrm.c: New file.
85572         * modules/unicase/u32-casexfrm: New file.
85574         New module 'unicase/u16-casexfrm'.
85575         * lib/unicase/u16-casexfrm.c: New file.
85576         * modules/unicase/u16-casexfrm: New file.
85578         New module 'unicase/u8-casexfrm'.
85579         * lib/unicase/u8-casexfrm.c: New file.
85580         * lib/unicase/u-casexfrm.h: New file.
85581         * modules/unicase/u8-casexfrm: New file.
85583         Tests for module 'unicase/u32-casecmp'.
85584         * modules/unicase/u32-casecmp-tests: New file.
85585         * tests/unicase/test-u32-casecmp.c: New file.
85587         Tests for module 'unicase/u16-casecmp'.
85588         * modules/unicase/u16-casecmp-tests: New file.
85589         * tests/unicase/test-u16-casecmp.c: New file.
85591         Tests for module 'unicase/u8-casecmp'.
85592         * modules/unicase/u8-casecmp-tests: New file.
85593         * tests/unicase/test-u8-casecmp.c: New file.
85594         * tests/unicase/test-casecmp.h: New file.
85596         New module 'unicase/u32-casecmp'.
85597         * lib/unicase/u32-casecmp.c: New file.
85598         * modules/unicase/u32-casecmp: New file.
85600         New module 'unicase/u16-casecmp'.
85601         * lib/unicase/u16-casecmp.c: New file.
85602         * modules/unicase/u16-casecmp: New file.
85604         New module 'unicase/u8-casecmp'.
85605         * lib/unicase/u8-casecmp.c: New file.
85606         * lib/unicase/u-casecmp.h: New file.
85607         * modules/unicase/u8-casecmp: New file.
85609         Tests for module 'unicase/u32-casefold'.
85610         * modules/unicase/u32-casefold-tests: New file.
85611         * tests/unicase/test-u32-casefold.c: New file.
85613         Tests for module 'unicase/u16-casefold'.
85614         * modules/unicase/u16-casefold-tests: New file.
85615         * tests/unicase/test-u16-casefold.c: New file.
85617         Tests for module 'unicase/u8-casefold'.
85618         * modules/unicase/u8-casefold-tests: New file.
85619         * tests/unicase/test-u8-casefold.c: New file.
85621         New module 'unicase/u32-casefold'.
85622         * lib/unicase/u32-casefold.c: New file.
85623         * modules/unicase/u32-casefold: New file.
85625         New module 'unicase/u16-casefold'.
85626         * lib/unicase/u16-casefold.c: New file.
85627         * modules/unicase/u16-casefold: New file.
85629         New module 'unicase/u8-casefold'.
85630         * lib/unicase/u8-casefold.c: New file.
85631         * lib/unicase/u-casefold.h: New file.
85632         * modules/unicase/u8-casefold: New file.
85634         New module 'unicase/tocasefold'.
85635         * lib/unicase/casefold.h: New file.
85636         * lib/unicase/tocasefold.c: New file.
85637         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85638         * modules/unicase/tocasefold: New file.
85640         Tests for module 'unicase/u32-totitle'.
85641         * modules/unicase/u32-totitle-tests: New file.
85642         * tests/unicase/test-u32-totitle.c: New file.
85644         Tests for module 'unicase/u16-totitle'.
85645         * modules/unicase/u16-totitle-tests: New file.
85646         * tests/unicase/test-u16-totitle.c: New file.
85648         Tests for module 'unicase/u8-totitle'.
85649         * modules/unicase/u8-totitle-tests: New file.
85650         * tests/unicase/test-u8-totitle.c: New file.
85652         New module 'unicase/u32-totitle'.
85653         * lib/unicase/u32-totitle.c: New file.
85654         * modules/unicase/u32-totitle: New file.
85656         New module 'unicase/u16-totitle'.
85657         * lib/unicase/u16-totitle.c: New file.
85658         * modules/unicase/u16-totitle: New file.
85660         New module 'unicase/u8-totitle'.
85661         * lib/unicase/u8-totitle.c: New file.
85662         * lib/unicase/u-totitle.h: New file.
85663         * modules/unicase/u8-totitle: New file.
85665         Tests for module 'unicase/u32-tolower'.
85666         * modules/unicase/u32-tolower-tests: New file.
85667         * tests/unicase/test-u32-tolower.c: New file.
85669         Tests for module 'unicase/u16-tolower'.
85670         * modules/unicase/u16-tolower-tests: New file.
85671         * tests/unicase/test-u16-tolower.c: New file.
85673         Tests for module 'unicase/u8-tolower'.
85674         * modules/unicase/u8-tolower-tests: New file.
85675         * tests/unicase/test-u8-tolower.c: New file.
85677         New module 'unicase/u32-tolower'.
85678         * lib/unicase/u32-tolower.c: New file.
85679         * modules/unicase/u32-tolower: New file.
85681         New module 'unicase/u16-tolower'.
85682         * lib/unicase/u16-tolower.c: New file.
85683         * modules/unicase/u16-tolower: New file.
85685         New module 'unicase/u8-tolower'.
85686         * lib/unicase/u8-tolower.c: New file.
85687         * modules/unicase/u8-tolower: New file.
85689         Tests for module 'unicase/u32-toupper'.
85690         * modules/unicase/u32-toupper-tests: New file.
85691         * tests/unicase/test-u32-toupper.c: New file.
85693         Tests for module 'unicase/u16-toupper'.
85694         * modules/unicase/u16-toupper-tests: New file.
85695         * tests/unicase/test-u16-toupper.c: New file.
85697         Tests for module 'unicase/u8-toupper'.
85698         * modules/unicase/u8-toupper-tests: New file.
85699         * tests/unicase/test-u8-toupper.c: New file.
85701         New module 'unicase/u32-toupper'.
85702         * lib/unicase/u32-toupper.c: New file.
85703         * modules/unicase/u32-toupper: New file.
85705         New module 'unicase/u16-toupper'.
85706         * lib/unicase/u16-toupper.c: New file.
85707         * modules/unicase/u16-toupper: New file.
85709         New module 'unicase/u8-toupper'.
85710         * lib/unicase/u8-toupper.c: New file.
85711         * modules/unicase/u8-toupper: New file.
85713         New module 'unicase/u32-casemap'.
85714         * lib/unicase/u32-casemap.c: New file.
85715         * modules/unicase/u32-casemap: New file.
85717         New module 'unicase/u16-casemap'.
85718         * lib/unicase/u16-casemap.c: New file.
85719         * modules/unicase/u16-casemap: New file.
85721         New module 'unicase/u8-casemap'.
85722         * lib/unicase/unicasemap.h: New file.
85723         * lib/unicase/u8-casemap.c: New file.
85724         * lib/unicase/u-casemap.h: New file.
85725         * modules/unicase/u8-casemap: New file.
85727         New module 'unicase/special-casing'.
85728         * lib/unicase/special-casing.h: New file.
85729         * lib/unicase/special-casing.c: New file.
85730         * lib/unicase/special-casing-table.gperf: New file, generated by
85731         gen-uni-tables.c.
85732         * modules/unicase/special-casing: New file.
85734         Tests for module 'unicase/locale-language'.
85735         * modules/unicase/locale-language-tests: New file.
85736         * tests/unicase/test-locale-language.sh: New file.
85737         * tests/unicase/test-locale-language.c: New file.
85739         New module 'unicase/locale-language'.
85740         * lib/unicase/locale-language.c: New file.
85741         * lib/unicase/locale-languages.gperf: New file.
85742         * modules/unicase/locale-language: New file.
85744         Generate more tables for case conversion and case folding.
85745         * lib/gen-uni-tables.c (SCC_*): New enum items.
85746         (struct special_casing_rule): New type.
85747         (casing_rules, num_casing_rules, allocated_casing_rules): New
85748         variables.
85749         (add_casing_rule, fill_casing_rules): New functions.
85750         (struct casefold_rule): New type.
85751         (casefolding_rules, num_casefolding_rules,
85752         allocated_casefolding_rules): New variables.
85753         (fill_casefolding_rules): New function.
85754         (unicode_casefold): New variable.
85755         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85756         sort_casing_rules, output_casing_rules): New functions.
85757         (main): Accept to more arguments: SpecialCasing.txt and
85758         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85759         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85760         Output mapping for casefolding.
85762         * lib/unicase.h: Include stdbool.h, uninorm.h.
85763         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85764         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85765         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85766         arguments.
85767         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85768         resultp arguments.
85769         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85770         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85771         resultp arguments.
85772         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85773         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85774         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85775         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85776         declarations.
85777         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85779 2009-03-08  Bruno Haible  <bruno@clisp.org>
85781         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85782         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85783         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85784         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85786 2009-03-07  Bruno Haible  <bruno@clisp.org>
85788         Adjust u*_normcmp, u*_normcoll API.
85789         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85790         u16_normcoll, u32_normcoll): Change failure conventions.
85791         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85792         errno and return -1.
85793         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85795 2009-03-07  Bruno Haible  <bruno@clisp.org>
85797         Tests for module 'uninorm/u32-normcoll'.
85798         * modules/uninorm/u32-normcoll-tests: New file.
85799         * tests/uninorm/test-u32-normcoll.c: New file.
85801         Tests for module 'uninorm/u16-normcoll'.
85802         * modules/uninorm/u16-normcoll-tests: New file.
85803         * tests/uninorm/test-u16-normcoll.c: New file.
85805         Tests for module 'uninorm/u8-normcoll'.
85806         * modules/uninorm/u8-normcoll-tests: New file.
85807         * tests/uninorm/test-u8-normcoll.c: New file.
85809 2009-03-07  Bruno Haible  <bruno@clisp.org>
85811         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85812         tests/uninorm/test-u32-normcmp.c.
85813         * tests/uninorm/test-u32-normcmp.c: Include it.
85814         (test_nonascii): New function, extracted from main. Add some more
85815         tests.
85816         (main): Invoke test_ascii and test_nonascii.
85817         * modules/uninorm/u32-normcmp-tests (Files): Add
85818         tests/uninorm/test-u32-normcmp.h.
85819         (Depends-on): Remove uninorm/u32-normcmp.
85821         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85822         tests/uninorm/test-u16-normcmp.c.
85823         * tests/uninorm/test-u16-normcmp.c: Include it.
85824         (test_nonascii): New function, extracted from main. Add some more
85825         tests.
85826         (main): Invoke test_ascii and test_nonascii.
85827         * modules/uninorm/u16-normcmp-tests (Files): Add
85828         tests/uninorm/test-u16-normcmp.h.
85829         (Depends-on): Remove uninorm/u16-normcmp.
85831         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85832         tests/uninorm/test-u8-normcmp.c.
85833         * tests/uninorm/test-u8-normcmp.c: Include it.
85834         (test_nonascii): New function, extracted from main. Add some more
85835         tests.
85836         (main): Invoke test_ascii and test_nonascii.
85837         * modules/uninorm/u8-normcmp-tests (Files): Add
85838         tests/uninorm/test-u8-normcmp.h.
85839         (Depends-on): Remove uninorm/u8-normcmp.
85841 2009-03-07  Bruno Haible  <bruno@clisp.org>
85843         New module 'uninorm/u32-normcoll'.
85844         * lib/uninorm/u32-normcoll.c: New file.
85845         * modules/uninorm/u32-normcoll: New file.
85847         New module 'uninorm/u16-normcoll'.
85848         * lib/uninorm/u16-normcoll.c: New file.
85849         * modules/uninorm/u16-normcoll: New file.
85851         New module 'uninorm/u8-normcoll'.
85852         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85853         declarations.
85854         * lib/uninorm/u8-normcoll.c: New file.
85855         * lib/uninorm/u-normcoll.h: New file.
85856         * modules/uninorm/u8-normcoll: New file.
85858         New module 'uninorm/u32-normxfrm'.
85859         * lib/uninorm/u32-normxfrm.c: New file.
85860         * modules/uninorm/u32-normxfrm: New file.
85862         New module 'uninorm/u16-normxfrm'.
85863         * lib/uninorm/u16-normxfrm.c: New file.
85864         * modules/uninorm/u16-normxfrm: New file.
85866         New module 'uninorm/u8-normxfrm'.
85867         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85868         declarations.
85869         * lib/uninorm/u8-normxfrm.c: New file.
85870         * lib/uninorm/u-normxfrm.h: New file.
85871         * modules/uninorm/u8-normxfrm: New file.
85873 2009-03-07  Bruno Haible  <bruno@clisp.org>
85875         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85876         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85877         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85879 2009-03-07  Bruno Haible  <bruno@clisp.org>
85881         New module 'memxfrm'.
85882         * lib/memxfrm.h: New file.
85883         * lib/memxfrm.c: New file.
85884         * modules/memxfrm: New file.
85886 2009-03-07  Bruno Haible  <bruno@clisp.org>
85888         New module 'memcmp2'.
85889         * lib/memcmp2.h: New file.
85890         * lib/memcmp2.c: New file.
85891         * modules/memcmp2: New file.
85893 2009-03-07  Bruno Haible  <bruno@clisp.org>
85895         Tests for module 'uninorm/decomposing-form'.
85896         * modules/uninorm/decomposing-form-tests: New file.
85897         * tests/uninorm/test-decomposing-form.c: New file.
85899         New module 'uninorm/decomposing-form'.
85900         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85901         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85902         Add 'decomposing_variant' field.
85903         * lib/uninorm/decomposing-form.c: New file.
85904         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85905         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85906         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85907         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85908         * modules/uninorm/decomposing-form: New file.
85909         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85910         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85912 2009-03-07  Bruno Haible  <bruno@clisp.org>
85914         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85915         strings.
85917 2009-03-06  Bruno Haible  <bruno@clisp.org>
85919         Tests for module 'uninorm/u32-normcmp'.
85920         * tests/uninorm/test-u32-normcmp.c: New file.
85921         * modules/uninorm/u32-normcmp-tests: New file.
85923         Tests for module 'uninorm/u16-normcmp'.
85924         * tests/uninorm/test-u16-normcmp.c: New file.
85925         * modules/uninorm/u16-normcmp-tests: New file.
85927         Tests for module 'uninorm/u8-normcmp'.
85928         * tests/uninorm/test-u8-normcmp.c: New file.
85929         * modules/uninorm/u8-normcmp-tests: New file.
85931         New module 'uninorm/u32-normcmp'.
85932         * lib/uninorm/u32-normcmp.c: New file.
85933         * modules/uninorm/u32-normcmp: New file.
85935         New module 'uninorm/u16-normcmp'.
85936         * lib/uninorm/u16-normcmp.c: New file.
85937         * modules/uninorm/u16-normcmp: New file.
85939         New module 'uninorm/u8-normcmp'.
85940         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85941         declarations.
85942         * lib/uninorm/u8-normcmp.c: New file.
85943         * lib/uninorm/u-normcmp.h: New file.
85944         * modules/uninorm/u8-normcmp: New file.
85946 2009-03-06  Bruno Haible  <bruno@clisp.org>
85948         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85949         Reported by Eric Blake.
85951 2009-03-06  Eric Blake  <ebb9@byu.net>
85952             Bruno Haible  <bruno@clisp.org>
85954         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85955         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85956         condition.
85957         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85958         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85959         condition.
85960         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85962 2009-03-06  Eric Blake  <ebb9@byu.net>
85964         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85965         to avoid compiler warnings.
85966         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85968 2009-03-05  Bruno Haible  <bruno@clisp.org>
85970         * tests/test-ftell.c (main): Disable test beyond end of file on
85971         FreeMiNT.
85972         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85974 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85976         * lib/filevercmp.c: Move hidden files up in ordering.
85977         * tests/test-filevercmp.c: Add tests for hidden files.
85979 2009-03-04  Bruno Haible  <bruno@clisp.org>
85981         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85982         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85983         AM_CFLAGS.
85984         Reported by Simon Josefsson.
85986 2009-03-03  Bruno Haible  <bruno@clisp.org>
85988         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85989         Reported by Simon Josefsson.
85991         * doc/ld-version-script.texi: Update node reference.
85993 2009-03-03  Bruno Haible  <bruno@clisp.org>
85995         * modules/visibility (License): Change to 'unlimited'.
85996         Suggested by Simon Josefsson.
85998 2009-03-03  Jim Meyering  <meyering@redhat.com>
86000         unlinkdir: cannot_unlink_dir may modify process state
86001         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
86002         it's neither thread-safe nor appropriate for use in a library.
86004 2009-03-03  Eric Blake  <ebb9@byu.net>
86006         test-closein: silence test under Darwin
86007         * tests/test-closein.sh: Ignore stderr from cat, since we don't
86008         care if it dies from EPIPE or EBADF.
86010 2009-03-03  Bruno Haible  <bruno@clisp.org>
86012         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
86013         earlier.
86014         * doc/visibility.texi: Fix @node and @section.
86016 2009-03-03  Simon Josefsson  <simon@josefsson.org>
86018         * doc/gnulib.texi: Link to sections for ld version script and
86019         visibility.
86020         * doc/visibility.texi: Add @node and @section.
86021         * modules/ld-version-script: New module.
86022         * m4/ld-version-script.m4: New file.
86023         * doc/ld-version-script.texi: New file.
86025 2009-03-02  David Lutterkort  <lutter@redhat.com>
86027         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
86028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86030 2009-03-02  Bruno Haible  <bruno@clisp.org>
86032         * doc/visibility.texi: Mention libtool's -export-symbols option.
86034 2009-03-02  Jim Meyering  <meyering@redhat.com>
86036         announce-gen: new option: --no-print-checksums
86037         * build-aux/announce-gen (usage): Describe it.
86038         (print_checksums): Print a newline here, not in the [*] footnote.
86039         (main): Honor it.
86041 2009-03-01  Bruno Haible  <bruno@clisp.org>
86043         Use socklen_t in the native Windows replacements prototypes.
86044         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
86045         instead of 'int'.
86046         * lib/getsockopt.c (rpl_getsockopt): Likewise.
86047         * lib/setsockopt.c (rpl_setsockopt): Likewise.
86048         * modules/getsockopt (Depends-on): Add socklen.
86049         * modules/setsockopt (Depends-on): Add socklen.
86051 2009-03-01  Bruno Haible  <bruno@clisp.org>
86053         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
86054         least 4.2.
86056 2009-03-01  Eric Blake  <ebb9@byu.net>
86057             Bruno Haible  <bruno@clisp.org>
86059         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
86060         error messages.
86061         * lib/wait-process.c (wait_subprocess): Omit error message about
86062         deadly signal sent to the child of termsigp != NULL.
86064 2009-03-01  Eric Blake  <ebb9@byu.net>
86066         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
86068 2009-03-01  Bruno Haible  <bruno@clisp.org>
86070         Avoid a gcc warning.
86071         * tests/test-sched.c (b): Make global.
86072         Reported by Eric Blake.
86074 2009-01-19  Martin Lambers  <marlam@marlam.de>
86076         Provide POSIX semantics for socket timeout options on W32.
86077         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
86078         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
86079         * modules/setsockopt: Depend on sys_time module for struct timeval.
86080         * modules/getsockopt: Depend on sys_time module for struct timeval.
86082 2009-03-01  Simon Josefsson  <simon@josefsson.org>
86084         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
86085         __USE_GNU, for consistency with netdb.in.h.
86086         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86088 2009-03-01  Bruno Haible  <bruno@clisp.org>
86090         More support for FreeMiNT.
86091         * lib/fseeko.c (rpl_fseeko): Complete last commit.
86092         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86094 2009-03-01  Bruno Haible  <bruno@clisp.org>
86096         More support for FreeMiNT.
86097         * lib/fpurge.c (fpurge): Correct last commit.
86098         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86100 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86102         Fix unportable awk script in vc-list-files.
86103         * build-aux/vc-list-files: In the replacement awk script, use
86104         substr with a second argument of 1, not zero.
86105         Report by Simon Josefsson.
86107 2009-02-28  Bruno Haible  <bruno@clisp.org>
86109         More support for FreeMiNT.
86110         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
86111         to FreeMiNT today.
86112         * lib/fwriting.c (fwriting): Likewise.
86113         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
86115 2009-02-28  Bruno Haible  <bruno@clisp.org>
86117         * tests/test-freadseek.c (main): Disable test beyond end of file on
86118         FreeMiNT.
86119         * tests/test-ftello.c (main): Likewise.
86120         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86122 2009-02-28  Bruno Haible  <bruno@clisp.org>
86124         Add tentative support for FreeMiNT.
86125         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
86126         * lib/fpurge.c (fpurge): Likewise.
86127         * lib/freadable.c (freadable): Likewise.
86128         * lib/freading.c (freading): Likewise.
86129         * lib/freadptr.c (freadptr): Likewise.
86130         * lib/freadseek.c (freadptrinc): Likewise.
86131         * lib/fseeko.c (rpl_fseeko): Likewise.
86132         * lib/fseterr.c (fseterr): Likewise.
86133         * lib/fwritable.c (fwritable): Likewise.
86134         * lib/fwriting.c (fwriting): Likewise.
86135         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
86136         Hourihane.
86137         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86139 2009-02-28  Bruno Haible  <bruno@clisp.org>
86141         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
86142         SIGCHLD.
86143         Reported by Jim Meyering.
86145 2009-02-28  Bruno Haible  <bruno@clisp.org>
86147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
86148         Mention the results of these tests on various platforms.
86149         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
86150         order.
86151         * doc/posix-functions/printf.texi: Likewise.
86152         * doc/posix-functions/snprintf.texi: Likewise.
86153         * doc/posix-functions/sprintf.texi: Likewise.
86154         * doc/posix-functions/vfprintf.texi: Likewise.
86155         * doc/posix-functions/vprintf.texi: Likewise.
86156         * doc/posix-functions/vsnprintf.texi: Likewise.
86157         * doc/posix-functions/vsprintf.texi: Likewise.
86158         * doc/glibc-functions/obstack_printf.texi: Likewise.
86159         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
86161 2009-02-28  Bruno Haible  <bruno@clisp.org>
86163         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
86164         Reported by Loïc Minier <lool@dooz.org>.
86166 2009-02-27  Bruno Haible  <bruno@clisp.org>
86168         * gnulib-tool (func_import): Make the sed expression used to create the
86169         sed script for updating the .gitignore file POSIX compliant.
86170         Reported by Eric Blake.
86172 2009-02-27  Bruno Haible  <bruno@clisp.org>
86174         * gnulib-tool (sed): Don't alias as "sed --posix".
86175         Reported by Eric Blake.
86177 2009-02-27  Bruno Haible  <bruno@clisp.org>
86179         Avoid test link errors.
86180         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
86181         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
86182         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
86183         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
86184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86186 2009-02-27  Bruno Haible  <bruno@clisp.org>
86188         Avoid spurious "(cached)" in configure output.
86189         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
86190         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
86191         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
86192         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
86193         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
86194         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
86195         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
86196         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
86197         Reported by Eric Blake.
86199 2009-02-27  Eric Blake  <ebb9@byu.net>
86201         printf: fix regression in previous patch
86202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
86204 2009-02-27  Bruno Haible  <bruno@clisp.org>
86206         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
86207         value.
86208         * lib/stdint.in.h: Likewise.
86209         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
86211 2009-02-27  Eric Blake  <ebb9@byu.net>
86213         doc: mention more functions added in cygwin 1.7.0
86214         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
86215         addition.
86216         * doc/posix-functions/open_wmemstream.texi: Likewise.
86217         * doc/posix-functions/wcsnlen.texi: Likewise.
86218         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86219         * doc/posix-functions/wcstod.texi: Likewise.
86220         * doc/posix-functions/wcstof.texi: Likewise.
86221         * doc/posix-functions/wcstoimax.texi: Likewise.
86222         * doc/posix-functions/wcstok.texi: Likewise.
86223         * doc/posix-functions/wcstoumax.texi: Likewise.
86225         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
86226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
86227         * doc/posix-functions/fprintf.texi: Update.
86228         * doc/posix-functions/printf.texi: Update.
86229         * doc/posix-functions/snprintf.texi: Update.
86230         * doc/posix-functions/sprintf.texi: Update.
86231         * doc/posix-functions/vfprintf.texi: Update.
86232         * doc/posix-functions/vprintf.texi: Update.
86233         * doc/posix-functions/vsnprintf.texi: Update.
86234         * doc/posix-functions/vsprintf.texi: Update.
86235         * doc/glibc-functions/obstack_printf.texi: Update.
86236         * doc/glibc-functions/obstack_vprintf.texi: Update.
86238 2009-02-26  Eric Blake  <ebb9@byu.net>
86240         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
86241         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
86242         compilation bug by using runtime conversion.
86243         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
86244         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
86245         * modules/ceill-tests (Files): Use nan.h.
86246         * modules/floorl-tests (Files): Likewise.
86247         * modules/frexpl-tests (Files): Likewise.
86248         * modules/isnanl-tests (Files): Likewise.
86249         * modules/ldexpl-tests (Files): Likewise.
86250         * modules/roundl-tests (Files): Likewise.
86251         * modules/truncl-tests (Files): Likewise.
86252         * tests/test-ceill.c (main): Use a working NaN.
86253         * tests/test-floorl.c (main): Likewise.
86254         * tests/test-frexpl.c (main): Likewise.
86255         * tests/test-isnan.c (test_long_double): Likewise.
86256         * tests/test-isnanl.h (main): Likewise.
86257         * tests/test-ldexpl.h (main): Likewise.
86258         * tests/test-roundl.h (main): Likewise.
86259         * tests/test-truncl.h (main): Likewise.
86260         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
86262 2009-02-26  Eric Blake  <ebb9@byu.net>
86263             Bruno Haible  <bruno@clisp.org>
86265         Work around a *printf bug with %ls on Solaris.
86266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
86267         precision is specified, sprintf stops converting the wide string
86268         argument when the number of bytes that have been produced by this
86269         conversion equals or exceeds the precision.
86270         * doc/posix-functions/fprintf.texi: Update.
86271         * doc/posix-functions/printf.texi: Update.
86272         * doc/posix-functions/snprintf.texi: Update.
86273         * doc/posix-functions/sprintf.texi: Update.
86274         * doc/posix-functions/vfprintf.texi: Update.
86275         * doc/posix-functions/vprintf.texi: Update.
86276         * doc/posix-functions/vsnprintf.texi: Update.
86277         * doc/posix-functions/vsprintf.texi: Update.
86278         * doc/glibc-functions/obstack_printf.texi: Update.
86279         * doc/glibc-functions/obstack_vprintf.texi: Update.
86281 2009-02-26  Eric Blake  <ebb9@byu.net>
86283         stdlib: favor compiler check of random.h
86284         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
86285         to avoid an ObjC random.h installed by Swarm.
86287 2009-02-26  Bruno Haible  <bruno@clisp.org>
86289         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
86290         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
86291         Reported by Gary V. Vaughan <gary@gnu.org>.
86293 2009-02-26  Bruno Haible  <bruno@clisp.org>
86295         Fix *printf behaviour regarding the %ls directive.
86296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
86297         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
86298         NEED_PRINTF_DIRECTIVE_LS.
86299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
86300         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86302         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
86303         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
86304         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
86305         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
86306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86310         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
86311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86314         * doc/posix-functions/fprintf.texi: Update.
86315         * doc/posix-functions/printf.texi: Update.
86316         * doc/posix-functions/snprintf.texi: Update.
86317         * doc/posix-functions/sprintf.texi: Update.
86318         * doc/posix-functions/vfprintf.texi: Update.
86319         * doc/posix-functions/vprintf.texi: Update.
86320         * doc/posix-functions/vsnprintf.texi: Update.
86321         * doc/posix-functions/vsprintf.texi: Update.
86322         * doc/glibc-functions/obstack_printf.texi: Update.
86323         * doc/glibc-functions/obstack_vprintf.texi: Update.
86324         Reported by Eric Blake.
86326 2009-02-25  Bruno Haible  <bruno@clisp.org>
86328         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86329         with known value.
86330         Reported by Gary V. Vaughan <gary@gnu.org>.
86332 2009-02-25  Bruno Haible  <bruno@clisp.org>
86334         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86335         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86336         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86337         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86338         Reported by Gary V. Vaughan <gary@gnu.org>.
86340 2009-02-25  Bruno Haible  <bruno@clisp.org>
86342         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86343         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86344         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86345         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86346         Reported by Gary V. Vaughan <gary@gnu.org>.
86348 2009-02-25  Eric Blake  <ebb9@byu.net>
86350         tests: skip fseek/ftell tests if ungetc is broken
86351         * m4/ungetc.m4: New file.
86352         * modules/fseek-tests: Split test, so ungetc dependency is
86353         separate from rest of test.
86354         * modules/fseeko-tests: Likewise.
86355         * modules/ftell-tests: Likewise.
86356         * modules/ftello-tests: Likewise.
86357         * tests/test-fseek.c (main): Isolate ungetc dependency.
86358         * tests/test-fseeko.c (main): Likewise.
86359         * tests/test-ftell.c (main): Likewise.
86360         * tests/test-ftello.c (main): Likewise.
86361         * tests/test-fseek2.sh: New file.
86362         * tests/test-fseeko2.sh: Likewise.
86363         * tests/test-ftell2.sh: Likewise.
86364         * tests/test-ftello2.sh: Likewise.
86366 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86368         test-getaddrinfo: fix usage of skip return code 77
86369         * tests/test-gettaddrinfo.c: Return skip code 77 only
86370         for first occurrence of skip (4x77 is not 77)
86372 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86374         strtod: avoid C99 decl-after-statement
86375         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86377 2009-02-24  Eric Blake  <ebb9@byu.net>
86379         strtod: detect HP-UX 11.31 bug
86380         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86381         Reported by Gary V. Vaughan.
86383 2009-02-23  Bruno Haible  <bruno@clisp.org>
86385         Fix invalid read past end of memory block.
86386         * lib/vasnprintf.c (DCHAR_SET): Define.
86387         (local_wcslen): Define only when needed.
86388         (local_strnlen, local_wcsnlen): New functions.
86389         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86390         directives that involve a conversion ourselves.
86391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86392         wcsnlen, mbrtowc, wcrtomb.
86393         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86394         * tests/test-vasprintf-posix.c (test_function): Likewise.
86395         * tests/test-snprintf-posix.h (test_function): Likewise.
86396         * tests/test-sprintf-posix.h (test_function): Likewise.
86397         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86399 2009-02-22  Bruno Haible  <bruno@clisp.org>
86401         Implement new clarified decomposition of Hangul syllables.
86402         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86403         of type LTV, return only a pairwise decomposition.
86404         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86405         Likewise.
86406         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86407         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86408         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86410 2009-02-22  Bruno Haible  <bruno@clisp.org>
86412         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86413         zero-length results and shrink excess allocated memory.
86414         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86415         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86416         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86417         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86418         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86419         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86420         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86421         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86422         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86423         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86424         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86425         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86427 2009-02-21  Bruno Haible  <bruno@clisp.org>
86429         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86430         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86431         spaces after a period. Put a space between a macro name and its
86432         argument list. Trivial rewordings.
86433         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86434         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86435         (main): Return 0 explicitly.
86437 2009-02-21  Bruno Haible  <bruno@clisp.org>
86439         Tests for module 'uninorm/filter'.
86440         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86441         * modules/uninorm/filter-tests: New file.
86443         New module 'uninorm/filter'.
86444         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86445         uninorm_filter_flush, uninorm_filter_free): New declarations.
86446         * lib/uninorm/uninorm-filter.c: New file.
86447         * modules/uninorm/filter: New file.
86449 2009-02-21  Bruno Haible  <bruno@clisp.org>
86451         Tests for module 'uninorm/nfkc'.
86452         * tests/uninorm/test-nfkc.c: New file.
86453         * tests/uninorm/test-u8-nfkc.c: New file.
86454         * tests/uninorm/test-u16-nfkc.c: New file.
86455         * tests/uninorm/test-u32-nfkc.c: New file.
86456         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86457         * tests/uninorm/test-u32-nfkc-big.c: New file.
86458         * modules/uninorm/nfkc-tests: New file.
86460         New module 'uninorm/nfkc'.
86461         * lib/uninorm/nfkc.c: New file.
86462         * modules/uninorm/nfkc: New file.
86464         Tests for module 'uninorm/nfkd'.
86465         * tests/uninorm/test-nfkd.c: New file.
86466         * tests/uninorm/test-u8-nfkd.c: New file.
86467         * tests/uninorm/test-u16-nfkd.c: New file.
86468         * tests/uninorm/test-u32-nfkd.c: New file.
86469         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86470         * tests/uninorm/test-u32-nfkd-big.c: New file.
86471         * modules/uninorm/nfkd-tests: New file.
86473         New module 'uninorm/nfkd'.
86474         * lib/uninorm/nfkd.c: New file.
86475         * modules/uninorm/nfkd: New file.
86477         Tests for module 'uninorm/nfc'.
86478         * tests/uninorm/test-nfc.c: New file.
86479         * tests/uninorm/test-u8-nfc.c: New file.
86480         * tests/uninorm/test-u16-nfc.c: New file.
86481         * tests/uninorm/test-u32-nfc.c: New file.
86482         * tests/uninorm/test-u32-nfc-big.sh: New file.
86483         * tests/uninorm/test-u32-nfc-big.c: New file.
86484         * modules/uninorm/nfc-tests: New file.
86486         New module 'uninorm/nfc'.
86487         * lib/uninorm/nfc.c: New file.
86488         * modules/uninorm/nfc: New file.
86490         Tests for module 'uninorm/nfd'.
86491         * tests/uninorm/test-nfd.c: New file.
86492         * tests/uninorm/test-u8-nfd.c: New file.
86493         * tests/uninorm/test-u16-nfd.c: New file.
86494         * tests/uninorm/test-u32-nfd.c: New file.
86495         * tests/uninorm/test-u32-nfd-big.sh: New file.
86496         * tests/uninorm/test-u32-nfd-big.c: New file.
86497         * tests/uninorm/test-u32-normalize-big.h: New file.
86498         * tests/uninorm/test-u32-normalize-big.c: New file.
86499         * tests/uninorm/NormalizationTest.txt: New file, created from
86500         Unicode 5.1.0 NormalizationTest.txt.
86501         * modules/uninorm/nfd-tests: New file.
86503         New module 'uninorm/nfd'.
86504         * lib/uninorm/nfd.c: New file.
86505         * modules/uninorm/nfd: New file.
86507         New module 'uninorm/u32-normalize'.
86508         * lib/uninorm/u32-normalize.c: New file.
86509         * modules/uninorm/u32-normalize: New file.
86511         New module 'uninorm/u16-normalize'.
86512         * lib/uninorm/u16-normalize.c: New file.
86513         * modules/uninorm/u16-normalize: New file.
86515         New module 'uninorm/u8-normalize'.
86516         * lib/uninorm/u8-normalize.c: New file.
86517         * lib/uninorm/normalize-internal.h: New file.
86518         * lib/uninorm/u-normalize-internal.h: New file.
86519         * modules/uninorm/u8-normalize: New file.
86521         New module 'uninorm/decompose-internal'.
86522         * lib/uninorm/decompose-internal.c: New file.
86523         * modules/uninorm/decompose-internal: New file.
86525         Tests for module 'uninorm/composition'.
86526         * tests/uninorm/test-composition.c: New file.
86527         * modules/uninorm/composition-tests: New file.
86529         New module 'uninorm/composition'.
86530         * lib/uninorm/composition.c: New file.
86531         * lib/uninorm/composition-table.gperf: New file, generated by
86532         gen-uni-tables.
86533         * modules/uninorm/composition: New file.
86535         Tests for module 'uninorm/compat-decomposition'.
86536         * tests/uninorm/test-compat-decomposition.c: New file.
86537         * modules/uninorm/compat-decomposition-tests: New file.
86539         New module 'uninorm/compat-decomposition'.
86540         * lib/uninorm/decompose-internal.h: New file.
86541         * lib/uninorm/compat-decomposition.c: New file.
86542         * modules/uninorm/compat-decomposition: New file.
86544         Tests for module 'uninorm/canonical-decomposition'.
86545         * tests/uninorm/test-canonical-decomposition.c: New file.
86546         * modules/uninorm/canonical-decomposition-tests: New file.
86548         New module 'uninorm/canonical-decomposition'.
86549         * lib/uninorm/canonical-decomposition.c: New file.
86550         * modules/uninorm/canonical-decomposition: New file.
86552         Tests for module 'uninorm/decomposition'.
86553         * tests/uninorm/test-decomposition.c: New file.
86554         * modules/uninorm/decomposition-tests: New file.
86556         New module 'uninorm/decomposition'.
86557         * lib/uninorm/decomposition.c: New file.
86558         * modules/uninorm/decomposition: New file.
86560         New module 'uninorm/decomposition-table'.
86561         * lib/uninorm/decomposition-table.h: New file.
86562         * lib/uninorm/decomposition-table.c: New file.
86563         * lib/uninorm/decomposition-table1.h: New file, generated by
86564         gen-uni-tables.
86565         * lib/uninorm/decomposition-table2.h: New file, generated by
86566         gen-uni-tables.
86567         * modules/uninorm/decomposition-table: New file.
86569         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86570         (UC_DECOMP_*): New enumeration items.
86571         (get_decomposition): New function.
86572         (struct decomp_table): New type.
86573         (output_decomposition, output_decomposition_tables): New functions.
86574         (unicode_composition_exclusions): New variable.
86575         (fill_composition_exclusions, debug_output_composition_tables): New
86576         functions.
86577         (main): Accept one more argument. Invoke fill_composition_exclusions.
86578         Output decomposition and composition tables.
86580         New module 'uninorm/base'.
86581         * lib/uninorm.h: New file.
86582         * lib/unictype.h: Update comment.
86583         * modules/uninorm/base: New file.
86585 2009-02-21  David Lutterkort  <lutter@redhat.com>
86587         Tests for module 'safe-alloc'.
86588         * tests/test-safe-alloc.c: New file.
86589         * modules/safe-alloc-tests: New file.
86591         New module 'safe-alloc'.
86592         * lib/safe-alloc.h: New file.
86593         * lib/safe-alloc.c: New file.
86594         * m4/safe-alloc.m4: New file.
86595         * modules/safe-alloc: New file.
86596         * doc/safe-alloc.texi: New file.
86597         * doc/gnulib.texi: Include it.
86598         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86599         safe-alloc.
86601 2009-02-18  Bruno Haible  <bruno@clisp.org>
86603         Fix link error on non-glibc systems.
86604         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86605         variable.
86606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86608 2009-02-18  Jim Meyering  <meyering@redhat.com>
86610         fts: avoid used-uninitialized error due to recent change
86611         * lib/fts.c (fts_read): Guard uses of the new member,
86612         parent->fts_n_dirs_remaining, since it's not relevant for
86613         the parent of a directory specified on the command-line.
86615 2009-02-17  James Youngman  <jay@gnu.org>
86616             Bruno Haible  <bruno@clisp.org>
86618         * m4/include_next.m4: Reformulate comment.
86620 2009-02-16  Jim Meyering  <meyering@redhat.com>
86622         fts: add #if guards so that the fts_lgpl module still builds
86623         * lib/fts.c: Guard just-added hash-table-using parts with
86624         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86625         Reported by Simon Josefsson.
86627 2009-02-15  Bruno Haible  <bruno@clisp.org>
86629         * modules/array-mergesort-tests: New file.
86630         * tests/test-array-mergesort.c: New file.
86632         New module 'array-mergesort'.
86633         * modules/array-mergesort: New file.
86634         * lib/array-mergesort.h: New file.
86636 2009-02-15  Bruno Haible  <bruno@clisp.org>
86638         Fix 2009-02-07 commit.
86639         * lib/gen-uni-tables.c (output_predicate, output_category,
86640         output_combclass, output_bidi_category, output_decimal_digit,
86641         output_digit, output_numeric, output_mirror, output_scripts,
86642         output_ident_category, output_simple_mapping): Fix format directives.
86643         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86645 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86647         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86648         fixes are available from IBM.
86650 2009-02-13  Jim Meyering  <meyering@redhat.com>
86652         fts: arrange not to stat non-directories in more cases
86653         This makes GNU find (when it doesn't need to stat each file)
86654         *much* more efficient at traversing reiserfs file systems.
86655         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86656         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86657         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86658         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86659         (leaf_optimization_applies): New function.
86660         (LCO_hash, LCO_compare): New helper functions.
86661         (link_count_optimize_ok): New function.
86662         (fts_stat): Initialize new member (if dir).
86663         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86664         we've just stat'ed a directory.  Skip the stat call when possible.
86665         ---
86666         Note this AFS-related exchange:
86667         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86668         and note find's pioctl call in find/fstype.c.
86669         But that is necessary only if you want to enable the
86670         optimization for AFS, and for now, I don't.
86672         fts: move a function definition "up" (no semantic change)
86673         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86674         "up" to precede upcoming use of a related function.
86676 2009-02-11  Jim Meyering  <meyering@redhat.com>
86678         fts: correct internal computation of nlinks (optimization-related)
86679         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86680         whether the current entry is a directory, so don't test it.
86682 2009-02-10  Bruno Haible  <bruno@clisp.org>
86684         Tests for module 'uniwbrk/ulc-wordbreaks'.
86685         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86686         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86687         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86689         Tests for module 'uniwbrk/u32-wordbreaks'.
86690         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86691         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86693         Tests for module 'uniwbrk/u16-wordbreaks'.
86694         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86695         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86697         Tests for module 'uniwbrk/u8-wordbreaks'.
86698         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86699         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86701 2009-02-10  Bruno Haible  <bruno@clisp.org>
86703         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86704         property.
86705         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86706         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86707         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86709 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86711         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86712         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86714 2009-02-10  Bruno Haible  <bruno@clisp.org>
86716         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86717         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86718         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86719         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86720         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86721         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86723 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86725         * lib/sockets.h (gl_fd_to_handle): New function.
86727         * tests/test-sockets.c: Call gl_fd_to_handle.
86729 2009-02-09  Bruno Haible  <bruno@clisp.org>
86731         * doc/havelib.texi: Document the conventions on bi-arch systems.
86733 2009-02-08  Bruno Haible  <bruno@clisp.org>
86735         Document the AC_LIB_LINKFLAGS macro.
86736         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86737         * doc/gnulib.texi: Include it.
86739 2009-02-08  Bruno Haible  <bruno@clisp.org>
86741         Fix wrong order of sections, compared to TOC.
86742         * doc/gnulib.texi: Include relocatable-maint.texi after the
86743         "Regular expressions" node, not before.
86745 2009-02-08  Bruno Haible  <bruno@clisp.org>
86747         Tests for module 'unicase/totitle'.
86748         * modules/unicase/totitle-tests: New file.
86750         Tests for module 'unicase/tolower'.
86751         * modules/unicase/tolower-tests: New file.
86753         Tests for module 'unicase/toupper'.
86754         * modules/unicase/toupper-tests: New file.
86755         * tests/unicase/test-mapping-part1.h: New file.
86756         * tests/unicase/test-mapping-part2.h: New file.
86758         New module 'unicase/totitle'.
86759         * modules/unicase/totitle: New file.
86760         * lib/unicase/totitle.c: New file.
86762         New module 'unicase/tolower'.
86763         * modules/unicase/tolower: New file.
86764         * lib/unicase/tolower.c: New file.
86766         New module 'unicase/toupper'.
86767         * modules/unicase/toupper: New file.
86768         * lib/unicase/toupper.c: New file.
86769         * lib/unicase/simple-mapping.h: New file.
86771         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86772         (mapping_table): New structure.
86773         (output_simple_mapping): New function.
86774         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86775         * modules/gen-uni-tables (Description): Update.
86776         * lib/unicase/toupper.h: New file, automatically generated by
86777         gen-uni-tables.
86778         * lib/unicase/tolower.h: New file, automatically generated by
86779         gen-uni-tables.
86780         * lib/unicase/totitle.h: New file, automatically generated by
86781         gen-uni-tables.
86782         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86783         gen-uni-tables.
86784         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86785         gen-uni-tables.
86786         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86787         gen-uni-tables.
86789         New module 'unicase/base'.
86790         * modules/unicase/base: New file.
86791         * lib/unicase.h: New file.
86793 2009-02-08  Bruno Haible  <bruno@clisp.org>
86795         New module 'uniwbrk/ulc-wordbreaks'.
86796         * modules/uniwbrk/ulc-wordbreaks: New file.
86797         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86799         New module 'uniwbrk/u32-wordbreaks'.
86800         * modules/uniwbrk/u32-wordbreaks: New file.
86801         * lib/uniwbrk/u32-wordbreaks.c: New file.
86803         New module 'uniwbrk/u16-wordbreaks'.
86804         * modules/uniwbrk/u16-wordbreaks: New file.
86805         * lib/uniwbrk/u16-wordbreaks.c: New file.
86807         New module 'uniwbrk/u8-wordbreaks'.
86808         * modules/uniwbrk/u8-wordbreaks: New file.
86809         * lib/uniwbrk/u8-wordbreaks.c: New file.
86810         * lib/uniwbrk/u-wordbreaks.h: New file.
86812         New module 'uniwbrk/table'.
86813         * modules/uniwbrk/table: New file.
86814         * lib/uniwbrk/wbrktable.h: New file.
86815         * lib/uniwbrk/wbrktable.c: New file.
86817         New module 'uniwbrk/wordbreak-property'.
86818         * modules/uniwbrk/wordbreak-property: New file.
86819         * lib/uniwbrk/wordbreak-property.c: New file.
86821         * lib/gen-uni-tables.c (WBP_*): New enum items.
86822         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86823         (unicode_org_wbp): New variable.
86824         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86825         New functions.
86826         (wbp_table): New structure.
86827         (output_wbp, output_wbrk_tables): New functions.
86828         (main): Accept additional argument. Invoke fill_org_wbp,
86829         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86830         output_wbrk_tables.
86831         * modules/gen-uni-tables (Description): Update.
86832         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86833         gen-uni-tables.
86835         New module 'uniwbrk/base'.
86836         * modules/uniwbrk/base: New file.
86837         * lib/uniwbrk.h: New file.
86839 2009-02-08  Bruno Haible  <bruno@clisp.org>
86841         Update to Unicode 5.1.0.
86842         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86843         U+2185..U+2188.
86844         (is_property_default_ignorable_code_point): Don't include characters
86845         of category Cc or Cs and not-a-characters.
86846         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86847         U+0D79, U+109E, U+109F, U+A60C.
86848         * lib/unictype/bidi_of.h: Regenerated.
86849         * lib/unictype/blocks.h: Regenerated.
86850         * lib/unictype/categ_C.h: Regenerated.
86851         * lib/unictype/categ_Cf.h: Regenerated.
86852         * lib/unictype/categ_Cn.h: Regenerated.
86853         * lib/unictype/categ_L.h: Regenerated.
86854         * lib/unictype/categ_Ll.h: Regenerated.
86855         * lib/unictype/categ_Lm.h: Regenerated.
86856         * lib/unictype/categ_Lo.h: Regenerated.
86857         * lib/unictype/categ_Lu.h: Regenerated.
86858         * lib/unictype/categ_M.h: Regenerated.
86859         * lib/unictype/categ_Mc.h: Regenerated.
86860         * lib/unictype/categ_Me.h: Regenerated.
86861         * lib/unictype/categ_Mn.h: Regenerated.
86862         * lib/unictype/categ_N.h: Regenerated.
86863         * lib/unictype/categ_Nd.h: Regenerated.
86864         * lib/unictype/categ_Nl.h: Regenerated.
86865         * lib/unictype/categ_No.h: Regenerated.
86866         * lib/unictype/categ_P.h: Regenerated.
86867         * lib/unictype/categ_Pd.h: Regenerated.
86868         * lib/unictype/categ_Pe.h: Regenerated.
86869         * lib/unictype/categ_Pf.h: Regenerated.
86870         * lib/unictype/categ_Pi.h: Regenerated.
86871         * lib/unictype/categ_Po.h: Regenerated.
86872         * lib/unictype/categ_Ps.h: Regenerated.
86873         * lib/unictype/categ_S.h: Regenerated.
86874         * lib/unictype/categ_Sk.h: Regenerated.
86875         * lib/unictype/categ_Sm.h: Regenerated.
86876         * lib/unictype/categ_So.h: Regenerated.
86877         * lib/unictype/categ_of.h: Regenerated.
86878         * lib/unictype/combining.h: Regenerated.
86879         * lib/unictype/ctype_alnum.h: Regenerated.
86880         * lib/unictype/ctype_alpha.h: Regenerated.
86881         * lib/unictype/ctype_graph.h: Regenerated.
86882         * lib/unictype/ctype_lower.h: Regenerated.
86883         * lib/unictype/ctype_print.h: Regenerated.
86884         * lib/unictype/ctype_punct.h: Regenerated.
86885         * lib/unictype/ctype_upper.h: Regenerated.
86886         * lib/unictype/decdigit.h: Regenerated.
86887         * lib/unictype/digit.h: Regenerated.
86888         * lib/unictype/mirror.h: Regenerated.
86889         * lib/unictype/numeric.h: Regenerated.
86890         * lib/unictype/pr_alphabetic.h: Regenerated.
86891         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86892         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86893         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86894         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86895         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86896         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86897         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86898         * lib/unictype/pr_combining.h: Regenerated.
86899         * lib/unictype/pr_dash.h: Regenerated.
86900         * lib/unictype/pr_decimal_digit.h: Regenerated.
86901         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86902         * lib/unictype/pr_deprecated.h: Regenerated.
86903         * lib/unictype/pr_diacritic.h: Regenerated.
86904         * lib/unictype/pr_extender.h: Regenerated.
86905         * lib/unictype/pr_format_control.h: Regenerated.
86906         * lib/unictype/pr_grapheme_base.h: Regenerated.
86907         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86908         * lib/unictype/pr_grapheme_link.h: Regenerated.
86909         * lib/unictype/pr_id_continue.h: Regenerated.
86910         * lib/unictype/pr_id_start.h: Regenerated.
86911         * lib/unictype/pr_ideographic.h: Regenerated.
86912         * lib/unictype/pr_ignorable_control.h: Regenerated.
86913         * lib/unictype/pr_lowercase.h: Regenerated.
86914         * lib/unictype/pr_math.h: Regenerated.
86915         * lib/unictype/pr_numeric.h: Regenerated.
86916         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86917         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86918         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86919         * lib/unictype/pr_other_id_continue.h: Regenerated.
86920         * lib/unictype/pr_other_lowercase.h: Regenerated.
86921         * lib/unictype/pr_other_math.h: Regenerated.
86922         * lib/unictype/pr_punctuation.h: Regenerated.
86923         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86924         * lib/unictype/pr_soft_dotted.h: Regenerated.
86925         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86926         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86927         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86928         * lib/unictype/pr_uppercase.h: Regenerated.
86929         * lib/unictype/pr_xid_continue.h: Regenerated.
86930         * lib/unictype/pr_xid_start.h: Regenerated.
86931         * lib/unictype/pr_zero_width.h: Regenerated.
86932         * lib/unictype/scripts.h: Regenerated.
86933         * lib/unictype/scripts_byname.gperf: Regenerated.
86934         * lib/unictype/sy_java_ident.h: Regenerated.
86935         * lib/unilbrk/lbrkprop1.h: Regenerated.
86936         * lib/unilbrk/lbrkprop2.h: Regenerated.
86937         * tests/unictype/test-categ_C.c: Regenerated.
86938         * tests/unictype/test-categ_Cf.c: Regenerated.
86939         * tests/unictype/test-categ_Cn.c: Regenerated.
86940         * tests/unictype/test-categ_L.c: Regenerated.
86941         * tests/unictype/test-categ_Ll.c: Regenerated.
86942         * tests/unictype/test-categ_Lm.c: Regenerated.
86943         * tests/unictype/test-categ_Lo.c: Regenerated.
86944         * tests/unictype/test-categ_Lu.c: Regenerated.
86945         * tests/unictype/test-categ_M.c: Regenerated.
86946         * tests/unictype/test-categ_Mc.c: Regenerated.
86947         * tests/unictype/test-categ_Me.c: Regenerated.
86948         * tests/unictype/test-categ_Mn.c: Regenerated.
86949         * tests/unictype/test-categ_N.c: Regenerated.
86950         * tests/unictype/test-categ_Nd.c: Regenerated.
86951         * tests/unictype/test-categ_Nl.c: Regenerated.
86952         * tests/unictype/test-categ_No.c: Regenerated.
86953         * tests/unictype/test-categ_P.c: Regenerated.
86954         * tests/unictype/test-categ_Pd.c: Regenerated.
86955         * tests/unictype/test-categ_Pe.c: Regenerated.
86956         * tests/unictype/test-categ_Pf.c: Regenerated.
86957         * tests/unictype/test-categ_Pi.c: Regenerated.
86958         * tests/unictype/test-categ_Po.c: Regenerated.
86959         * tests/unictype/test-categ_Ps.c: Regenerated.
86960         * tests/unictype/test-categ_S.c: Regenerated.
86961         * tests/unictype/test-categ_Sk.c: Regenerated.
86962         * tests/unictype/test-categ_Sm.c: Regenerated.
86963         * tests/unictype/test-categ_So.c: Regenerated.
86964         * tests/unictype/test-ctype_alnum.c: Regenerated.
86965         * tests/unictype/test-ctype_alpha.c: Regenerated.
86966         * tests/unictype/test-ctype_graph.c: Regenerated.
86967         * tests/unictype/test-ctype_lower.c: Regenerated.
86968         * tests/unictype/test-ctype_print.c: Regenerated.
86969         * tests/unictype/test-ctype_punct.c: Regenerated.
86970         * tests/unictype/test-ctype_upper.c: Regenerated.
86971         * tests/unictype/test-decdigit.h: Regenerated.
86972         * tests/unictype/test-digit.h: Regenerated.
86973         * tests/unictype/test-numeric.h: Regenerated.
86974         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86975         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86976         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86977         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86978         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86979         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86980         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86981         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86982         * tests/unictype/test-pr_combining.c: Regenerated.
86983         * tests/unictype/test-pr_dash.c: Regenerated.
86984         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86985         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86986         * tests/unictype/test-pr_deprecated.c: Regenerated.
86987         * tests/unictype/test-pr_diacritic.c: Regenerated.
86988         * tests/unictype/test-pr_extender.c: Regenerated.
86989         * tests/unictype/test-pr_format_control.c: Regenerated.
86990         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86991         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86992         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86993         * tests/unictype/test-pr_id_continue.c: Regenerated.
86994         * tests/unictype/test-pr_id_start.c: Regenerated.
86995         * tests/unictype/test-pr_ideographic.c: Regenerated.
86996         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86997         * tests/unictype/test-pr_lowercase.c: Regenerated.
86998         * tests/unictype/test-pr_math.c: Regenerated.
86999         * tests/unictype/test-pr_numeric.c: Regenerated.
87000         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
87001         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
87002         Regenerated.
87003         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
87004         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
87005         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
87006         * tests/unictype/test-pr_other_math.c: Regenerated.
87007         * tests/unictype/test-pr_punctuation.c: Regenerated.
87008         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
87009         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
87010         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
87011         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
87012         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
87013         * tests/unictype/test-pr_uppercase.c: Regenerated.
87014         * tests/unictype/test-pr_xid_continue.c: Regenerated.
87015         * tests/unictype/test-pr_xid_start.c: Regenerated.
87016         * tests/unictype/test-pr_zero_width.c: Regenerated.
87018         Update to Unicode 5.1.0.
87019         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
87020         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
87021         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
87022         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
87023         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
87024         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
87025         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
87026         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
87027         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
87028         (nonspacing_table_ind): Update.
87029         * tests/uniwidth/test-uc_width2.sh: Update expected result.
87031         Update to Unicode 5.1.0.
87032         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
87033         code transform.
87034         * lib/uniname/uniname.c (unicode_character_name,
87035         unicode_name_character): Add the range 0x1Fxxx to the code transform.
87036         * lib/uniname/uninames.h: Regenerated.
87037         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
87039 2009-02-07  Bruno Haible  <bruno@clisp.org>
87041         Merge gen-ctype and gen-lbrk into a single program.
87042         * lib/gen-uni-tables.c: New file, incorporating
87043         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
87044         Add directory prefixes to the names of the generated files.
87045         * lib/unictype/gen-ctype.c: Remove file.
87046         * lib/unilbrk/gen-lbrk.c: Remove file.
87047         * modules/gen-uni-tables: New file.
87048         * modules/unictype/gen-ctype: Remove file.
87049         * modules/unilbrk/gen-lbrk: Remove file.
87051 2009-02-07  Bruno Haible  <bruno@clisp.org>
87053         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
87055         New module 'unistr/u32-strcoll'.
87056         * modules/unistr/u32-strcoll: New file.
87057         * lib/unistr/u32-strcoll.c: New file.
87059         New module 'unistr/u16-strcoll'.
87060         * modules/unistr/u16-strcoll: New file.
87061         * lib/unistr/u16-strcoll.c: New file.
87063         New module 'unistr/u8-strcoll'.
87064         * modules/unistr/u8-strcoll: New file.
87065         * lib/unistr/u8-strcoll.c: New file.
87066         * lib/unistr/u-strcoll.h: New file.
87068 2009-02-07  Bruno Haible  <bruno@clisp.org>
87070         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
87071         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87072         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87073         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
87074         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
87075         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
87077 2009-02-07  Bruno Haible  <bruno@clisp.org>
87079         Make 64-bit clean.
87080         * lib/unictype/gen-ctype.c (output_predicate, output_category,
87081         output_combclass, output_bidi_category, output_decimal_digit,
87082         output_digit, output_numeric, output_mirror, output_scripts,
87083         output_ident_category): Use proper width specifier in format strings.
87085 2009-02-07  Bruno Haible  <bruno@clisp.org>
87087         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
87088         failure behaviour.
87090 2009-02-07  Jim Meyering  <meyering@redhat.com>
87092         regex: avoid compilation failure with upcoming gcc-4.4
87093         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
87094         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
87095         "... error: integer overflow in preprocessor expression".
87097 2009-02-05  Ben Pfaff  <blp@gnu.org>
87099         Fix link errors on Windows when close module is used.
87100         * modules/close: Add $(LIB_CLOSE) to Link section.
87101         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
87102         $(LIB_CLOSE) on Windows.
87104 2009-02-05  Jim Meyering  <meyering@redhat.com>
87106         still avoid unused-parameter warnings, but do it cleanly
87107         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
87108         (get_fs_usage): Cast to void instead.
87109         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
87110         (dev_from_mount_options, read_file_system_list): Cast to void.
87111         Prompted by Bruno Haible.
87113 2009-02-04  Jim Meyering  <meyering@redhat.com>
87115         fsusage.c: correct copyright year
87116         * lib/fsusage.c: Reflect year in which the change is pushed into
87118         avoid misc. warnings
87119         * lib/fsusage.c (UNUSED_PARAM): Define.
87120         (get_fs_usage): Mark parameter "disk" as unused.
87121         * lib/getugroups.c (getgrent): Use "void" in prototype.
87122         * lib/mountlist.c: Mark unused parameters.
87123         (read_file_system_list): Declare a local with "const".
87124         * lib/nanosleep.c (getnow): Declare static.
87125         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
87127         dirfd: set errno upon failure
87128         * lib/dirfd.c: Include <errno.h>.
87129         Set errno to ENOTSUP when returning -1.
87130         * modules/dirfd (Depends-on): Add errno.
87131         Suggested by John Kodis <kodis@comcast.net>.
87133 2009-02-01  Bruno Haible  <bruno@clisp.org>
87135         Don't assume sizeof (long) >= sizeof (void *).
87136         * lib/memcmp.c: Include stdint.h.
87137         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
87138         srcp2 to 'const byte *'.
87139         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
87140         types to uintptr_t.
87141         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
87142         * modules/memcmp (Depends-on): Add stdint.
87143         Reported by Ozkan Sezer <sezeroz@gmail.com>.
87145 2009-01-30  Eric Blake  <ebb9@byu.net>
87147         fix more require-before-expand issues
87148         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
87149         expand, AC_PROG_AWK.
87150         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
87152 2009-01-28  Eric Blake  <ebb9@byu.net>
87154         version-etc: use consistent URL formatting
87155         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
87156         Improve formatting.  Use fputs for string without %.
87158 2009-01-28  Jim Meyering  <meyering@redhat.com>
87160         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
87161         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
87162         "underquoted definition of NAME" from autoconf-2.59.
87164 2009-01-28  Bruno Haible  <bruno@clisp.org>
87166         * doc/gnulib.texi: Add "Obsolete modules" to index.
87168 2009-01-28  Jim Meyering  <meyering@redhat.com>
87170         useless-if-before-free: recognize more variants
87171         * build-aux/useless-if-before-free: Also recognize e.g.,
87172         if (NULL != p) free (p);
87174 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
87176         test-getaddrinfo: skip (don't fail) this test when there's no network
87177         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
87178         on the presumption that it means you lack network access.
87180 2009-01-26  Jim Meyering  <meyering@redhat.com>
87182         fflush: avoid warnings on modern systems
87183         * lib/fflush.c (rpl_fflush): Move declarations of locals,
87184         pos and result, into scopes where they're used.
87186 2009-01-26  Eric Blake  <ebb9@byu.net>
87188         Silence warning reintroduced by recent extensions patch.
87189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
87190         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
87191         autoconf.
87193         Backport improved autoconf semantics of AC_DEFUN_ONCE.
87194         * m4/00gnulib.m4: New file.
87195         * gnulib-tool (func_get_filelist): Always use it.
87196         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
87197         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
87199 2009-01-25  Bruno Haible  <bruno@clisp.org>
87201         Make test-quotearg work on MacOS X and AIX.
87202         * tests/test-quotearg.sh: New file.
87203         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
87204         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
87205         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
87206         include <libintl.h>.
87207         (fake_locale): Remove variable.
87208         (gettext, dgettext, dcgettext): Remove functions.
87209         (main): Instead of setting a fake locale, set a real locale. Call
87210         textdomain and bindtextdomain.
87211         * modules/quotearg-tests (Files): Add the new files.
87212         (Depends-on): Add gettext, setenv, unsetenv.
87213         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87214         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
87215         Augment TESTS_ENVIRONMENT.
87217 2009-01-25  Bruno Haible  <bruno@clisp.org>
87219         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
87220         fr_FR.ISO8859-1 locale on MacOS X.
87221         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
87222         ja_JP.eucJP locale on MacOS X.
87223         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
87224         zh_CN.GB18030 locale on MacOS X.
87226 2009-01-25  Bruno Haible  <bruno@clisp.org>
87228         Avoid link errors on MacOS X 10.3.
87229         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
87230         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
87232 2009-01-25  Bruno Haible  <bruno@clisp.org>
87234         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87235         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
87236         * modules/pipe (Files): Remove m4/posix_spawn.m4.
87237         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87238         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
87239         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87240         posix_spawnattr_init, posix_spawnattr_setsigmask,
87241         posix_spawnattr_setflags, posix_spawnattr_destroy.
87243         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87244         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
87245         * modules/execute (Files): Remove m4/posix_spawn.m4.
87246         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87247         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87248         posix_spawnattr_init, posix_spawnattr_setsigmask,
87249         posix_spawnattr_setflags, posix_spawnattr_destroy.
87251 2009-01-25  Bruno Haible  <bruno@clisp.org>
87253         * lib/glthread/threadlib.c: Include <stdlib.h>.
87255 2009-01-25  Bruno Haible  <bruno@clisp.org>
87257         * lib/glthread/threadlib.c (dummy): New declaration.
87259 2009-01-25  Bruno Haible  <bruno@clisp.org>
87261         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
87262         multibyte characters also for the GB18030 encoding. Don't crash when
87263         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
87265 2009-01-25  Bruno Haible  <bruno@clisp.org>
87267         Avoid redefining 'struct random_data' on OSF/1 5.1.
87268         * lib/stdlib.in.h: Include <random.h> if it exists.
87269         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
87270         HAVE_RANDOM_H. Include <random.h> when testing whether
87271         'struct random_data' exists.
87272         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
87274 2009-01-25  Bruno Haible  <bruno@clisp.org>
87276         Don't install charset.alias on MacOS X >= 10.3.
87277         * lib/localcharset.c (DARWIN7): New macro.
87278         (get_charset_aliases): Hardcode the result for Darwin7.
87279         * modules/localcharset (install-exec-local): Don't install
87280         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
87282 2009-01-25  Bruno Haible  <bruno@clisp.org>
87284         Don't install charset.alias on mingw and Cygwin.
87285         * modules/localcharset (install-exec-local): Don't install
87286         charset.alias on mingw and Cygwin, if the file does not yet exist.
87287         The result for these platforms is hardcoded in localcharset.c.
87289 2009-01-25  Bruno Haible  <bruno@clisp.org>
87291         Make it possible again to use AC_GNU_SOURCE together with gnulib.
87292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
87293         before requiring AC_USE_SYSTEM_EXTENSIONS.
87295 2009-01-25  Jim Meyering  <meyering@redhat.com>
87297         c-strtod: avoid warnings
87298         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
87299         "assignment discards qualifiers from pointer target type" warnings.
87301 2009-01-24  Bruno Haible  <bruno@clisp.org>
87303         Add support for non-UTF-8 locales on MacOS X.
87304         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
87305         canonical encodings. For Darwin 7 and newer, don't map traditional
87306         encodings to UTF-8.
87307         Reported by Vincent Lefevre <vincent@vinc17.org>
87308         at <http://savannah.gnu.org/bugs/?25235>.
87310 2009-01-24  Bruno Haible  <bruno@clisp.org>
87312         * doc/gnulib.texi (Obsolete modules): New section.
87313         Reported by Mike Frysinger <vapier@gentoo.org>.
87315 2009-01-24  Bruno Haible  <bruno@clisp.org>
87317         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
87318         (%.dvi): New rule.
87320 2009-01-24  Bruno Haible  <bruno@clisp.org>
87322         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
87323         Reported by Eric Blake.
87325 2009-01-24  Bruno Haible  <bruno@clisp.org>
87327         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87328         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87329         Reported by Gary V. Vaughan <gary@gnu.org>.
87331 2009-01-24  Bruno Haible  <bruno@clisp.org>
87333         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87335 2009-01-23  Bruno Haible  <bruno@clisp.org>
87337         Make c-strtod, c-strtold usable in libraries.
87338         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87339         (C_STRTOD): Call strdup instead of xstrdup.
87340         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87341         * modules/c-strtold (Depends-on): Likewise.
87342         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87343         * NEWS: Mention the change.
87344         Reported by Michael Gold <mgold@ncf.ca>.
87346 2009-01-23  Jim Meyering  <meyering@redhat.com>
87348         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87349         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87350         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87352 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87354         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87355         GNU CoreUtils.
87356         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87357         * modules/version-etc (Description): Update.
87359 2009-01-22  Bruno Haible  <bruno@clisp.org>
87361         Cache the C locale object.
87362         * lib/c-strtod.c (c_locale_cache): New variable.
87363         (c_locale): New function.
87364         (C_STRTOD): Use it, and don't call freelocale.
87365         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87366         Suggested by Paolo Bonzini.
87368 2009-01-21  Bruno Haible  <bruno@clisp.org>
87370         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87371         conditions other than overflow.
87373 2009-01-21  Bruno Haible  <bruno@clisp.org>
87375         * lib/c-strtod.c: Include errno.h.
87376         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87377         value from STRTOD_L and STRTOD.
87379 2009-01-21  Bruno Haible  <bruno@clisp.org>
87380         and Jim Meyering  <meyering@redhat.com>
87382         nanosleep: skip configure test (fail it) for apple universal builds
87383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87384         universal builds, assume that nanosleep does not work.
87385         * modules/nanosleep (Depends-on): Add multiarch.
87387         mktime: skip configure test (fail it) for apple universal builds
87388         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87389         universal builds, assume that mktime does not work.
87390         * modules/mktime (Depends-on): Add multiarch.
87392 2009-01-21  Eric Blake  <ebb9@byu.net>
87394         multiarch: avoid expand-before-require warning
87395         * modules/multiarch (configure.ac): Require, rather than expand,
87396         gl_MULTIARCH.
87397         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87398         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87399         enforce that all clients require it.  Partial reversion of
87400         2008-12-29 patch.
87402         error: avoid expand-before-require warning
87403         * modules/errno (configure.ac): Require, rather than expand,
87404         gl_HEADER_ERRNO_H.
87405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87406         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87407         enforce that all clients require it.
87409         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87410         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87411         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87412         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87414 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87416         Revert:
87417         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87419         regex: do not depend on obsolete modules.
87420         * modules/regex: Remove memcmp and memmove.
87422 2009-01-20  Bruno Haible  <bruno@clisp.org>
87424         Make the 'link' module link on Windows NT 4.
87425         * lib/link.c (_WIN32_WINNT): Don't define.
87426         (CreateHardLinkFuncType): New type.
87427         (CreateHardLinkFunc, initialized): New variables.
87428         (initialize): New function.
87429         (link): Invoke CreateHardLink indirectly through the function pointer.
87431 2009-01-20  Bruno Haible  <bruno@clisp.org>
87433         Fix compilation failure on mingw.
87434         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87436 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87438         * doc/c-strtod.texi: Mention a couple of restrictions.
87440 2009-01-20  Jim Meyering  <meyering@redhat.com>
87442         gettimeofday: move more declarations out of functions
87443         * lib/gettimeofday.c: Move extern declarations of tzset and
87444         gmtime out of containing functions.  Prompted by Bruno Haible.
87446 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87448         regex: do not depend on obsolete modules.
87449         * modules/regex: Remove memcmp and memmove.
87451 2009-01-19  Bruno Haible  <bruno@clisp.org>
87453         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87454         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87455         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87456         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87457         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87459 2009-01-19  Bruno Haible  <bruno@clisp.org>
87461         * tests/test-link.c: Include <errno.h>.
87462         (main): Exit with code 77 when a hard link cannot be created due to
87463         the file system.
87464         * tests/test-link.sh: Skip test when a hard link cannot be created due
87465         to the file system.
87466         Suggested by Eric Blake.
87468 2009-01-19  Martin Lambers  <marlam@marlam.de>
87470         * modules/link-tests: New file.
87471         * tests/test-link.sh: New file.
87472         * tests/test-link.c: New file.
87474 2009-01-19  Eric Blake  <ebb9@byu.net>
87476         doc: mention another function added in cygwin 1.7.0
87477         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87478         Another new function in cygwin 1.7.
87480 2009-01-19  Bruno Haible  <bruno@clisp.org>
87482         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87483         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87484         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87485         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87486         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87487         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87488         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87489         * m4/md4.m4 (gl_MD4): Likewise.
87490         * m4/md5.m4 (gl_MD5): Likewise.
87491         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87492         * m4/sha1.m4 (gl_SHA1): Likewise.
87493         * m4/sha256.m4 (gl_SHA256): Likewise.
87494         * m4/sha512.m4 (gl_SHA512): Likewise.
87496 2009-01-19  Bruno Haible  <bruno@clisp.org>
87498         * modules/uniname/uniname-tests (Depends-on): Add progname.
87499         * tests/uniname/test-uninames.c: Include progname.h.
87500         (main): Call set_program_name.
87502         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87503         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87504         (main): Call set_program_name.
87506         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87507         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87508         (main): Call set_program_name.
87510         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87511         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87512         (main): Call set_program_name.
87514         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87515         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87516         (main): Call set_program_name.
87518         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87519         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87520         (main): Call set_program_name.
87522         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87523         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87524         (main): Call set_program_name.
87526         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87527         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87528         (main): Call set_program_name.
87530         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87531         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87532         (main): Call set_program_name.
87534 2009-01-19  Eric Blake  <ebb9@byu.net>
87536         test-unistd: test previous patch
87537         * tests/test-unistd.c: Test *_FILENO macros.
87539         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87540         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87541         Guarantee a definition.
87542         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87543         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87544         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87545         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87546         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87547         Likewise.
87548         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87549         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87550         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87551         Likewise.
87552         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87553         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87554         (STDERR_FILENO): Likewise.
87555         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87556         (STDERR_FILENO): Likewise.
87557         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87558         (STDERR_FILENO): Likewise.
87559         Reported by Elbert Pol.
87561 2009-01-19  Eric Blake  <ebb9@byu.net>
87563         doc: mention more functions added in cygwin 1.7.0
87564         * doc/posix-functions/abort.texi (abort): Update wording related
87565         to cygwin.
87566         * doc/posix-functions/daylight.texi (daylight): Likewise.
87567         * doc/posix-functions/optarg.texi (optarg): Likewise.
87568         * doc/posix-functions/optarg.texi (opterr): Likewise.
87569         * doc/posix-functions/optarg.texi (optind): Likewise.
87570         * doc/posix-functions/optarg.texi (optopt): Likewise.
87571         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87572         worked in 1.5.x, and was withdrawn in 1.7.
87573         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87574         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87575         cygwin versions.
87576         * doc/posix-functions/perror.texi (perror): Likewise.
87577         * doc/posix-functions/printf.texi (printf): Likewise.
87578         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87579         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87580         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87581         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87582         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87583         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87584         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87585         Likewise.
87586         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87587         Likewise.
87588         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87589         this function.
87590         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87591         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87592         Likewise.
87593         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87594         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87595         * doc/posix-functions/confstr.texi (confstr): Likewise.
87596         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87597         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87598         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87599         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87600         * doc/posix-functions/fputws.texi (fputws): Likewise.
87601         * doc/posix-functions/fwide.texi (fwide): Likewise.
87602         * doc/posix-functions/getwc.texi (getwc): Likewise.
87603         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87604         * doc/posix-functions/putwc.texi (putwc): Likewise.
87605         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87606         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87607         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87608         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87609         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87610         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87611         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87612         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87613         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87614         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87615         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87617 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87619         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87620         * lib/ioctl.c: Include <sys/ioctl.h>.
87622 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87624         * modules/getdate-tests (Depends-on): Add progname.
87625         * tests/test-getdate.c: Use progname module, to avoid link errors
87626         on non-glibc systems.
87628 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87630         * modules/filenamecat-tests (Depends-on): Add progname.
87631         * modules/fstrcmp-tests (Depends-on): Likewise.
87633         * tests/test-filenamecat.c: Use progname module, to avoid link
87634         errors on non-glibc systems.
87635         * tests/test-fstrcmp.c: Likewise.
87637 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87639         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87640         * lib/gettimeofday.c: Move extern declaration out of function.
87642 2009-01-18  Bruno Haible  <bruno@clisp.org>
87644         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87645         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87646         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87648 2009-01-18  Bruno Haible  <bruno@clisp.org>
87650         * lib/strftime.c (MEMPCPY): Remove unused macro.
87651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87653 2009-01-18  Martin Lambers  <marlam@marlam.de>
87655         New module 'link'.
87656         * lib/unistd.in.h (link): New declaration.
87657         * lib/link.c: New file.
87658         * m4/link.m4: New file.
87659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87660         HAVE_LINK.
87661         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87662         * modules/link: New file.
87663         * doc/posix-functions/link.texi: Mention the new module.
87665 2009-01-18  Bruno Haible  <bruno@clisp.org>
87667         * tests/test-avltree_list.c (main): Call set_program_name.
87668         * tests/test-avltree_oset.c (main): Likewise.
87669         * tests/test-obstack-printf.c: Include progname.h.
87670         (main): Call set_program_name.
87671         * tests/test-quotearg.c: Include progname.h.
87672         (main): Call set_program_name.
87673         * tests/test-xmemdup0.c: Include progname.h.
87674         (main): Call set_program_name.
87676 2009-01-18  Bruno Haible  <bruno@clisp.org>
87678         New module 'alphasort'.
87679         * lib/dirent.in.h (alphasort): New declaration.
87680         * lib/alphasort.c: New file, from glibc with modifications.
87681         * m4/alphasort.m4: New file.
87682         * modules/alphasort: New file.
87683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87684         HAVE_ALPHASORT.
87685         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87686         HAVE_ALPHASORT.
87687         * doc/posix-functions/alphasort.texi: Mention the new module and the
87688         portability problems.
87690 2009-01-18  Bruno Haible  <bruno@clisp.org>
87692         New module 'scandir'.
87693         * lib/dirent.in.h (scandir): New declaration.
87694         * lib/scandir.c: New file, from glibc with modifications.
87695         * m4/scandir.m4: New file.
87696         * modules/scandir: New file.
87697         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87698         HAVE_SCANDIR.
87699         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87700         HAVE_SCANDIR.
87701         * doc/posix-functions/scandir.texi: Mention the new module and the
87702         portability problems.
87704 2009-01-17  Bruno Haible  <bruno@clisp.org>
87706         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87707         Update documentation.
87708         (func_remove_suffix): Escape all dots in the suffix. Update
87709         documentation.
87710         (func_filter_filelist): Update documentation.
87711         Reported by Ralf Wildenhues.
87713 2009-01-17  Bruno Haible  <bruno@clisp.org>
87715         * modules/dprintf-posix-tests: New file.
87716         * tests/test-dprintf-posix.sh: New file.
87717         * tests/test-dprintf-posix.c: New file.
87719         New modules 'dprintf', 'dprintf-posix'.
87720         * lib/stdio.in.h (dprintf): New declaration.
87721         * lib/dprintf.c: New file.
87722         * m4/dprintf.m4: New file.
87723         * m4/dprintf-posix.m4: New file.
87724         * modules/dprintf: New file.
87725         * modules/dprintf-posix: New file.
87726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87727         HAVE_DPRINTF, REPLACE_DPRINTF.
87728         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87729         HAVE_DPRINTF, REPLACE_DPRINTF.
87730         * doc/posix-functions/dprintf.texi: Mention the new modules.
87732 2009-01-17  Bruno Haible  <bruno@clisp.org>
87734         * modules/vdprintf-posix-tests: New file.
87735         * tests/test-vdprintf-posix.sh: New file.
87736         * tests/test-vdprintf-posix.c: New file.
87738         New modules 'vdprintf', 'vdprintf-posix'.
87739         * lib/stdio.in.h (vdprintf): New declaration.
87740         * lib/vdprintf.c: New file.
87741         * m4/vdprintf.m4: New file.
87742         * m4/vdprintf-posix.m4: New file.
87743         * modules/vdprintf: New file.
87744         * modules/vdprintf-posix: New file.
87745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87746         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87747         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87748         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87749         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87751 2009-01-17  Bruno Haible  <bruno@clisp.org>
87753         Fix replacement of fopen on mingw.
87754         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87755         mingw.
87757 2009-01-17  Bruno Haible  <bruno@clisp.org>
87759         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87760         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87762 2009-01-17  Bruno Haible  <bruno@clisp.org>
87764         Avoid test-fflush2.sh failure on mingw.
87765         * tests/test-fflush2.c: Include binary-io.h.
87766         (main): Put standard input into binary mode.
87767         * modules/fflush-tests (Depends-on): Add binary-io.
87769 2009-01-17  Bruno Haible  <bruno@clisp.org>
87771         * lib/wchar.in.h: In another particular situation, include only the
87772         system's <wchar.h> file.
87773         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87774         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87775         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87777 2009-01-17  Bruno Haible  <bruno@clisp.org>
87779         Support for stripping executables in --enable-relocatable.
87780         * build-aux/install-reloc: Expect one more argument, or an environment
87781         variable RELOC_STRIP_PROG. If set, strip the destination program and
87782         its wrapper.
87783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87784         RELOC_STRIP_PROG.
87785         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87786         to set RELOCATABLE_STRIP.
87787         * NEWS: Mention the new Makefile requirement.
87789 2009-01-17  Bruno Haible  <bruno@clisp.org>
87791         * build-aux/install-reloc: Remove debugging information left over by
87792         C compiler on MacOS X.
87794 2009-01-17  Bruno Haible  <bruno@clisp.org>
87796         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87797         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87798         _NSGetExecutablePath.
87800 2009-01-16  Jim Meyering  <meyering@redhat.com>
87802         strerror: avoid warnings about discarding "const"
87803         * lib/strerror.c (rpl_strerror): Instead of returning a const
87804         string from each and every "case", use a variable, and add a single
87805         cast after the switch.
87807 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87809         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87811 2009-01-16  Bruno Haible  <bruno@clisp.org>
87813         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87814         array initializer syntax that also works in C++ mode.
87815         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87817 2009-01-16  Jim Meyering  <meyering@redhat.com>
87819         poll: suppress a warning
87820         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87821         to ignore "...unsigned expression < 0 is always false" warnings.
87823 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87825         poll: remove declarations of unused variables
87826         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87827         sockbuf and optlen.
87829 2009-01-15  Bruno Haible  <bruno@clisp.org>
87831         Make fflush-after-ungetc POSIX compliant on BSD systems.
87832         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87833         (clear_ungetc_buffer): Implement also for other systems.
87834         (rpl_fflush): On glibc systems, invoke
87835         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87836         clear_ungetc_buffer after fetching the stream's position, not before.
87838 2009-01-15  Bruno Haible  <bruno@clisp.org>
87840         Make fflush-after-ungetc POSIX compliant on glibc systems.
87841         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87842         after ungetc.
87843         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87844         (rpl_fflush): On glibc systems, simply call the system's fflush
87845         function after clearing the ungetc buffer.
87846         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87847         Instead, lseek only to the end of file, then use the system's fseeko
87848         for the rest. On glibc systems, reset the EOF indicator bit.
87850 2009-01-15  Jim Meyering  <meyering@redhat.com>
87852         openmp.m4: revert quote-adding change, for portability to older autoconf
87853         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87854         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87855         Simon Josefsson noticed the problem when using autoconf-2.61.
87857 2009-01-15  Bruno Haible  <bruno@clisp.org>
87859         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87860         * tests/test-fflush2.c (ASSERT): Always fail.
87861         (main): Add two tests for fflush() after ungetc(), taking into account
87862         the Austin Group's clarification.
87863         Suggested by Eric Blake.
87865 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87867         mktime.m4: remove K&R-style function prototypes
87868         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87869         for the Sun C++ compiler.
87871 2009-01-14  Bruno Haible  <bruno@clisp.org>
87873         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87874         while including <wchar.h>.
87875         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87876         the system's <wchar.h> file.
87877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87879 2009-01-14  Bruno Haible  <bruno@clisp.org>
87881         * m4/csharp.m4: Don't mention gettext on the serial number line.
87882         * m4/csharpexec.m4: Likewise.
87883         * m4/eaccess.m4: Likewise.
87884         * m4/javaexec.m4: Likewise.
87885         * m4/sig_atomic_t.m4: Likewise.
87886         * m4/tmpdir.m4: Likewise.
87887         * m4/intldir.m4: Bump gettext version.
87888         * m4/lib-ld.m4: Likewise.
87890 2009-01-14  Bruno Haible  <bruno@clisp.org>
87892         * lib/progname.c (set_program_name): Add more comments.
87893         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87895 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87897         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87898         were sys/stat.h does not define it.
87900 2009-01-14  Jim Meyering  <meyering@redhat.com>
87902         many *.m4 files: improve m4 quoting
87903         99% of this change was performed by running the following commands:
87904         git ls-files | grep '\.m4$' | xargs perl -pi \
87905           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87906           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87907           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87908           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87909         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87910         The remainder were to add Copyright dates, increment serial numbers,
87911         undo some changes in comments, exclude m4/intl.m4, and add quotes
87912         around the "1" in ",1" where the unusual spacing prohibited the
87913         above regexps from doing the job.  For more details, see
87914         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87915         * m4/acl.m4: Modified.
87916         * m4/afs.m4: Likewise.
87917         * m4/alloca.m4: Likewise.
87918         * m4/argp.m4: Likewise.
87919         * m4/argz.m4: Likewise.
87920         * m4/atexit.m4: Likewise.
87921         * m4/bison-i18n.m4: Likewise.
87922         * m4/bison.m4: Likewise.
87923         * m4/byteswap.m4: Likewise.
87924         * m4/c-stack.m4: Likewise.
87925         * m4/c-strtod.m4: Likewise.
87926         * m4/calloc.m4: Likewise.
87927         * m4/canonicalize-lgpl.m4: Likewise.
87928         * m4/chown.m4: Likewise.
87929         * m4/clock_time.m4: Likewise.
87930         * m4/codeset.m4: Likewise.
87931         * m4/copy-file.m4: Likewise.
87932         * m4/csharp.m4: Likewise.
87933         * m4/csharpcomp.m4: Likewise.
87934         * m4/csharpexec.m4: Likewise.
87935         * m4/d-ino.m4: Likewise.
87936         * m4/d-type.m4: Likewise.
87937         * m4/dirfd.m4: Likewise.
87938         * m4/double-slash-root.m4: Likewise.
87939         * m4/eaccess.m4: Likewise.
87940         * m4/eealloc.m4: Likewise.
87941         * m4/environ.m4: Likewise.
87942         * m4/errno_h.m4: Likewise.
87943         * m4/euidaccess.m4: Likewise.
87944         * m4/execute.m4: Likewise.
87945         * m4/fatal-signal.m4: Likewise.
87946         * m4/fchdir.m4: Likewise.
87947         * m4/fcntl_h.m4: Likewise.
87948         * m4/fileblocks.m4: Likewise.
87949         * m4/filenamecat.m4: Likewise.
87950         * m4/findprog.m4: Likewise.
87951         * m4/flexmember.m4: Likewise.
87952         * m4/fnmatch.m4: Likewise.
87953         * m4/fopen.m4: Likewise.
87954         * m4/fpending.m4: Likewise.
87955         * m4/fprintf-posix.m4: Likewise.
87956         * m4/free.m4: Likewise.
87957         * m4/frexp.m4: Likewise.
87958         * m4/frexpl.m4: Likewise.
87959         * m4/fsusage.m4: Likewise.
87960         * m4/ftruncate.m4: Likewise.
87961         * m4/gc-camellia.m4: Likewise.
87962         * m4/gc-random.m4: Likewise.
87963         * m4/gc.m4: Likewise.
87964         * m4/getaddrinfo.m4: Likewise.
87965         * m4/getcwd-abort-bug.m4: Likewise.
87966         * m4/getcwd-path-max.m4: Likewise.
87967         * m4/getdate.m4: Likewise.
87968         * m4/getdomainname.m4: Likewise.
87969         * m4/getgroups.m4: Likewise.
87970         * m4/gethostname.m4: Likewise.
87971         * m4/gethrxtime.m4: Likewise.
87972         * m4/getline.m4: Likewise.
87973         * m4/getloadavg.m4: Likewise.
87974         * m4/getndelim2.m4: Likewise.
87975         * m4/getpass.m4: Likewise.
87976         * m4/gettext.m4: Likewise.
87977         * m4/gettime.m4: Likewise.
87978         * m4/gettimeofday.m4: Likewise.
87979         * m4/gnulib-common.m4: Likewise.
87980         * m4/group-member.m4: Likewise.
87981         * m4/host-os.m4: Likewise.
87982         * m4/iconv.m4: Likewise.
87983         * m4/iconv_open.m4: Likewise.
87984         * m4/inet_ntop.m4: Likewise.
87985         * m4/inet_pton.m4: Likewise.
87986         * m4/inline.m4: Likewise.
87987         * m4/intldir.m4: Likewise.
87988         * m4/intlmacosx.m4: Likewise.
87989         * m4/intmax.m4: Likewise.
87990         * m4/intmax_t.m4: Likewise.
87991         * m4/inttypes.m4: Likewise.
87992         * m4/inttypes_h.m4: Likewise.
87993         * m4/inttypes-pri.m4: Likewise.
87994         * m4/isapipe.m4: Likewise.
87995         * m4/isnand.m4: Likewise.
87996         * m4/isnanf.m4: Likewise.
87997         * m4/isnanl.m4: Likewise.
87998         * m4/javacomp.m4: Likewise.
87999         * m4/javaexec.m4: Likewise.
88000         * m4/jm-winsz1.m4: Likewise.
88001         * m4/jm-winsz2.m4: Likewise.
88002         * m4/lchown.m4: Likewise.
88003         * m4/lcmessage.m4: Likewise.
88004         * m4/ldexpl.m4: Likewise.
88005         * m4/lib-ld.m4: Likewise.
88006         * m4/lib-link.m4: Likewise.
88007         * m4/libsigsegv.m4: Likewise.
88008         * m4/link-follow.m4: Likewise.
88009         * m4/localcharset.m4: Likewise.
88010         * m4/locale-fr.m4: Likewise.
88011         * m4/locale-ja.m4: Likewise.
88012         * m4/locale-tr.m4: Likewise.
88013         * m4/locale-zh.m4: Likewise.
88014         * m4/lock.m4: Likewise.
88015         * m4/longlong.m4: Likewise.
88016         * m4/ls-mntd-fs.m4: Likewise.
88017         * m4/lstat.m4: Likewise.
88018         * m4/malloc.m4: Likewise.
88019         * m4/mathl.m4: Likewise.
88020         * m4/mbrtowc.m4: Likewise.
88021         * m4/mbstate_t.m4: Likewise.
88022         * m4/mbswidth.m4: Likewise.
88023         * m4/memchr.m4: Likewise.
88024         * m4/memcmp.m4: Likewise.
88025         * m4/memcpy.m4: Likewise.
88026         * m4/memmem.m4: Likewise.
88027         * m4/memmove.m4: Likewise.
88028         * m4/mempcpy.m4: Likewise.
88029         * m4/memrchr.m4: Likewise.
88030         * m4/memset.m4: Likewise.
88031         * m4/minmax.m4: Likewise.
88032         * m4/mkdir-slash.m4: Likewise.
88033         * m4/mkdtemp.m4: Likewise.
88034         * m4/mktime.m4: Likewise.
88035         * m4/mmap-anon.m4: Likewise.
88036         * m4/mountlist.m4: Likewise.
88037         * m4/nanosleep.m4: Likewise.
88038         * m4/nls.m4: Likewise.
88039         * m4/nocrash.m4: Likewise.
88040         * m4/open.m4: Likewise.
88041         * m4/openat.m4: Likewise.
88042         * m4/openmp.m4: Likewise.
88043         * m4/pathmax.m4: Likewise.
88044         * m4/perl.m4: Likewise.
88045         * m4/physmem.m4: Likewise.
88046         * m4/pipe.m4: Likewise.
88047         * m4/po.m4: Likewise.
88048         * m4/poll.m4: Likewise.
88049         * m4/posixtm.m4: Likewise.
88050         * m4/posixver.m4: Likewise.
88051         * m4/printf-frexp.m4: Likewise.
88052         * m4/printf-frexpl.m4: Likewise.
88053         * m4/printf-posix.m4: Likewise.
88054         * m4/printf-posix-rpl.m4: Likewise.
88055         * m4/printf.m4: Likewise.
88056         * m4/progtest.m4: Likewise.
88057         * m4/putenv.m4: Likewise.
88058         * m4/readline.m4: Likewise.
88059         * m4/readlink.m4: Likewise.
88060         * m4/readutmp.m4: Likewise.
88061         * m4/realloc.m4: Likewise.
88062         * m4/regex.m4: Likewise.
88063         * m4/relocatable.m4: Likewise.
88064         * m4/relocatable-lib.m4: Likewise.
88065         * m4/rename-dest-slash.m4: Likewise.
88066         * m4/rename.m4: Likewise.
88067         * m4/rmdir-errno.m4: Likewise.
88068         * m4/rmdir.m4: Likewise.
88069         * m4/roundf.m4: Likewise.
88070         * m4/roundl.m4: Likewise.
88071         * m4/rpmatch.m4: Likewise.
88072         * m4/save-cwd.m4: Likewise.
88073         * m4/selinux-selinux-h.m4: Likewise.
88074         * m4/setenv.m4: Likewise.
88075         * m4/settime.m4: Likewise.
88076         * m4/sig2str.m4: Likewise.
88077         * m4/sig_atomic_t.m4: Likewise.
88078         * m4/signalblocking.m4: Likewise.
88079         * m4/signbit.m4: Likewise.
88080         * m4/sigpipe.m4: Likewise.
88081         * m4/sockets.m4: Likewise.
88082         * m4/sockpfaf.m4: Likewise.
88083         * m4/st_dm_mode.m4: Likewise.
88084         * m4/stat-time.m4: Likewise.
88085         * m4/stdbool.m4: Likewise.
88086         * m4/stdint.m4: Likewise.
88087         * m4/stdint_h.m4: Likewise.
88088         * m4/stpcpy.m4: Likewise.
88089         * m4/stpncpy.m4: Likewise.
88090         * m4/strcase.m4: Likewise.
88091         * m4/strchrnul.m4: Likewise.
88092         * m4/strcspn.m4: Likewise.
88093         * m4/strdup.m4: Likewise.
88094         * m4/strftime.m4: Likewise.
88095         * m4/strndup.m4: Likewise.
88096         * m4/strnlen.m4: Likewise.
88097         * m4/strpbrk.m4: Likewise.
88098         * m4/strptime.m4: Likewise.
88099         * m4/strsep.m4: Likewise.
88100         * m4/strtod.m4: Likewise.
88101         * m4/strtoimax.m4: Likewise.
88102         * m4/strtok_r.m4: Likewise.
88103         * m4/strtol.m4: Likewise.
88104         * m4/strtoll.m4: Likewise.
88105         * m4/strtoul.m4: Likewise.
88106         * m4/strtoull.m4: Likewise.
88107         * m4/strtoumax.m4: Likewise.
88108         * m4/strverscmp.m4: Likewise.
88109         * m4/threadlib.m4: Likewise.
88110         * m4/timegm.m4: Likewise.
88111         * m4/tm_gmtoff.m4: Likewise.
88112         * m4/tmpdir.m4: Likewise.
88113         * m4/tmpfile.m4: Likewise.
88114         * m4/tzset.m4: Likewise.
88115         * m4/uintmax_t.m4: Likewise.
88116         * m4/unlinkdir.m4: Likewise.
88117         * m4/unlocked-io.m4: Likewise.
88118         * m4/uptime.m4: Likewise.
88119         * m4/userspec.m4: Likewise.
88120         * m4/utimbuf.m4: Likewise.
88121         * m4/utime.m4: Likewise.
88122         * m4/utimes-null.m4: Likewise.
88123         * m4/utimes.m4: Likewise.
88124         * m4/vararrays.m4: Likewise.
88125         * m4/vasnprintf.m4: Likewise.
88126         * m4/vfprintf-posix.m4: Likewise.
88127         * m4/vprintf-posix.m4: Likewise.
88128         * m4/wait-process.m4: Likewise.
88129         * m4/wchar_t.m4: Likewise.
88130         * m4/wint_t.m4: Likewise.
88131         * m4/write-any-file.m4: Likewise.
88132         * m4/yield.m4: Likewise.
88134 2009-01-13  Bruno Haible  <bruno@clisp.org>
88136         Avoid test-copy-file.sh failures when ACL support insufficient.
88137         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
88138         TESTS_ENVIRONMENT.
88139         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
88140         Reported by Jim Meyering.
88142 2009-01-13  Bruno Haible  <bruno@clisp.org>
88144         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
88145         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
88146         * modules/unistdio/u8-printf-parse (Files): Likewise.
88147         * modules/unistdio/u32-printf-parse (Files): Likewise.
88148         * modules/unistdio/ulc-printf-parse (Files): Likewise.
88150 2009-01-13  Simon Josefsson  <simon@josefsson.org>
88152         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
88153         and m4/inttypes_h.m4 too.
88155 2009-01-12  Eric Blake  <ebb9@byu.net>
88157         tests: IRIX 6.2 cc can't compile -0.0 into .data
88158         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
88159         rather than at compile-time.
88160         * tests/test-floorl.c (minus_zero): Likewise.
88161         * tests/test-frexpl.c (minus_zero): Likewise.
88162         * tests/test-isnan.c (minus_zerol): Likewise.
88163         * tests/test-isnanl.h (minus_zero): Likewise.
88164         * tests/test-ldexpl.c (minus_zero): Likewise.
88165         * tests/test-roundl.c (minus_zero): Likewise.
88166         * tests/test-signbit.c (minus_zerol): Likewise.
88167         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88168         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88169         * tests/test-truncl.c (minus_zero): Likewise.
88170         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88171         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88172         Reported by Tom G. Christensen and Nelson H. F. Beebe.
88174 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88176         regex: fix glibc bug 9697
88177         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
88178         handling.
88180 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88182         regex: fix glibc bug 697
88183         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
88184         being NULL also if there are no backreferences.
88186 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88188         regex: merge glibc changes
88189         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88190         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
88191         re_string_skip_chars, re_string_reconstruct): Likewise.
88192         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
88194 2009-01-07  Jim Meyering  <meyering@redhat.com>
88196         poll: filter through cppi
88197         * lib/poll.c: Indent cpp directives to reflect nesting.
88199 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
88201         poll: don't return uninitialized
88202         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
88204 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
88206         avoid compile failure on AIX 6.1
88207         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
88208         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
88210 2009-01-04  Jim Meyering  <meyering@redhat.com>
88212         remove duplicate inclusion of <stdio.h>
88213         * tests/test-fprintf-posix.c: Likewise.
88214         * tests/test-printf-posix.c: Likewise.
88215         * tests/test-snprintf-posix.c: Likewise.
88216         * tests/test-sprintf-posix.c: Likewise.
88217         * tests/test-vasprintf-posix.c: Likewise.
88218         * tests/test-vfprintf-posix.c: Likewise.
88219         * tests/test-vprintf-posix.c: Likewise.
88220         * tests/test-vsnprintf-posix.c: Likewise.
88221         * tests/test-vsprintf-posix.c: Likewise.
88223 2009-01-03  Jim Meyering  <meyering@redhat.com>
88225         gnulib-tool: fix sed-based filtering
88226         * gnulib-tool (func_filter_filelist): Remove extra backslash
88227         in sed_fff_filter definition.
88229 2009-01-02  Jim Meyering  <meyering@redhat.com>
88231         strftime: avoid compilation failure on Solaris 2.6
88232         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
88233         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
88234         Don't #define mbrlen or mbsinit, since now they're guaranteed to
88235         be available.  Reported by Tom G. Christensen.  Details in
88236         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
88238 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88239             Bruno Haible  <bruno@clisp.org>
88241         Speed up gnulib-tool by doing more string processing through shell
88242         built-ins.
88243         * gnulib-tool (fast_func_append): New variable.
88244         (func_remove_prefix, func_remove_suffix): New functions.
88245         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
88246         (func_filter_filelist): New function.
88247         (func_get_dependencies): Use func_remove_suffix instead of sed.
88248         (func_get_automake_snippet): Use func_filter_filelist instead of a
88249         subshell and sed invocation.
88251 2009-01-01  Bruno Haible  <bruno@clisp.org>
88253         Fix a security bug.
88254         * gnulib-tool (func_import, import, update): Don't allow the characters
88255         '"', '$', '`', '\' in macro arguments that become part of commands that
88256         are evaluated.
88258 2009-01-01  Bruno Haible  <bruno@clisp.org>
88260         * gnulib-tool (func_reset_sigpipe): Add more comments.
88262 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88264         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
88265         func_emit_tests_Makefile_am, func_import): Abort loops early if we
88266         already know the answer.
88268 2009-01-01  Jim Meyering  <meyering@redhat.com>
88270         * lib/version-etc.c (version_etc_va): Update copyright year.
88272 2008-12-30  Bruno Haible  <bruno@clisp.org>
88274         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
88275         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
88276         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
88278 2008-12-29  Eric Blake  <ebb9@byu.net>
88280         multiarch: avoid autoconf AC_REQUIRE bug
88281         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
88282         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
88283         2.63 and older.
88284         Reported by Bruno Haible, and analyzed in
88285         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
88287 2008-12-29  Bruno Haible  <bruno@clisp.org>
88289         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
88290         files in subdirectories correctly.
88291         Reported by Ralf Wildenhues.
88293 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88295         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
88296         rather than 'join FILE -', for Solaris join.
88298 2008-12-29  Bruno Haible  <bruno@clisp.org>
88300         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
88301         quoting.
88302         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88303         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
88304         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
88305         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
88306         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
88307         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
88308         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
88309         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
88310         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88311         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
88312         * m4/nls.m4 (AM_NLS): Likewise.
88313         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
88314         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
88315         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88316         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
88317         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
88318         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
88319         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
88320         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
88321         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
88322         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88323         * m4/xsize.m4 (gl_XSIZE): Likewise.
88324         Suggested by Jim Meyering.
88326 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88328         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88329         * lib/parse-duration.c: use a switch instead of cascading if's.
88331 2008-12-29  Eric Blake  <ebb9@byu.net>
88333         wchar.h: supply WEOF on Irix 5.3
88334         * lib/wchar.in.h (wint_t): Also supply WEOF.
88335         * lib/wctype.in.h (wint_t): Likewise.
88336         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88337         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88338         Reported by Tom G. Christensen.
88340 2008-12-26  Bruno Haible  <bruno@clisp.org>
88342         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88343         i486, i586, i686.
88345 2008-12-26  Bruno Haible  <bruno@clisp.org>
88347         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88349 2008-12-26  Bruno Haible  <bruno@clisp.org>
88351         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88352         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88353         not __STDC_CONSTANT_MACROS.
88354         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88356 2008-12-25  Bruno Haible  <bruno@clisp.org>
88358         Add support for universal builds to vasnprintf.
88359         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88360         universal builds, guess no.
88361         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88362         * modules/vasprintf-posix (Depends-on): Likewise.
88363         * modules/fprintf-posix (Depends-on): Likewise.
88364         * modules/vfprintf-posix (Depends-on): Likewise.
88365         * modules/snprintf-posix (Depends-on): Likewise.
88366         * modules/vsnprintf-posix (Depends-on): Likewise.
88367         * modules/sprintf-posix (Depends-on): Likewise.
88368         * modules/vsprintf-posix (Depends-on): Likewise.
88369         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88370         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88371         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88372         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88373         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88375         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88377         Add support for universal builds to <inttypes.h>.
88378         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88379         _SCNu64_PREFIX): In Apple
88380         universal builds, define directly, using _LP64.
88381         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88382         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88383         * modules/inttypes (Depends-on): Add multiarch.
88384         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88386         Add support for universal builds to <stdint.h>.
88387         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88388         universal builds, define directly, using _LP64.
88389         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88390         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88391         and size_t.
88392         * modules/stdint (Depends-on): Add multiarch.
88393         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88395         New module 'multiarch'.
88396         * modules/multiarch: New file.
88397         * m4/multiarch.m4: New file.
88399 2008-12-25  Bruno Haible  <bruno@clisp.org>
88401         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88403 2008-12-25  Bruno Haible  <bruno@clisp.org>
88405         * modules/btowc (License): Relicense under LGPLv2+.
88406         * modules/mbsinit (License): Likewise.
88407         * modules/mbrtowc (License): Likewise.
88408         * modules/wcrtomb (License): Likewise.
88409         * modules/streq (License): Likewise.
88410         Reported by David Lutterkort <lutter@redhat.com>.
88412 2008-12-23  Bruno Haible  <bruno@clisp.org>
88414         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88416 2008-12-23  Bruno Haible  <bruno@clisp.org>
88418         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88420         GETADDRINFO_LIB, not in LIBS.
88421         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88422         * modules/canon-host (Link): Likewise.
88423         * NEWS: Mention the change.
88424         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88425         GETADDRINFO_LIB.
88427 2008-12-22  Bruno Haible  <bruno@clisp.org>
88429         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88430         * doc/posix-functions/iswalpha_l.texi: Likewise.
88431         * doc/posix-functions/iswblank_l.texi: Likewise.
88432         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88433         * doc/posix-functions/iswctype_l.texi: Likewise.
88434         * doc/posix-functions/iswdigit_l.texi: Likewise.
88435         * doc/posix-functions/iswgraph_l.texi: Likewise.
88436         * doc/posix-functions/iswlower_l.texi: Likewise.
88437         * doc/posix-functions/iswprint_l.texi: Likewise.
88438         * doc/posix-functions/iswpunct_l.texi: Likewise.
88439         * doc/posix-functions/iswspace_l.texi: Likewise.
88440         * doc/posix-functions/iswupper_l.texi: Likewise.
88441         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88442         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88443         * doc/posix-functions/open_wmemstream.texi: Likewise.
88444         * doc/posix-functions/swscanf.texi: Likewise.
88445         * doc/posix-functions/towctrans_l.texi: Likewise.
88446         * doc/posix-functions/towlower.texi: Likewise.
88447         * doc/posix-functions/towlower_l.texi: Likewise.
88448         * doc/posix-functions/towupper.texi: Likewise.
88449         * doc/posix-functions/towupper_l.texi: Likewise.
88450         * doc/posix-functions/vfwprintf.texi: Likewise.
88451         * doc/posix-functions/vfwscanf.texi: Likewise.
88452         * doc/posix-functions/vswscanf.texi: Likewise.
88453         * doc/posix-functions/vwprintf.texi: Likewise.
88454         * doc/posix-functions/vwscanf.texi: Likewise.
88455         * doc/posix-functions/wcpcpy.texi: Likewise.
88456         * doc/posix-functions/wcpncpy.texi: Likewise.
88457         * doc/posix-functions/wcscasecmp.texi: Likewise.
88458         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88459         * doc/posix-functions/wcscoll_l.texi: Likewise.
88460         * doc/posix-functions/wcsdup.texi: Likewise.
88461         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88462         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88463         * doc/posix-functions/wcsnlen.texi: Likewise.
88464         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88465         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88466         * doc/posix-functions/wctrans_l.texi: Likewise.
88467         * doc/posix-functions/wctype_l.texi: Likewise.
88468         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88469         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88470         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88471         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88472         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88473         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88474         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88475         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88476         * doc/glibc-functions/wcschrnul.texi: Likewise.
88477         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88478         * doc/glibc-functions/wcstod_l.texi: Likewise.
88479         * doc/glibc-functions/wcstof_l.texi: Likewise.
88480         * doc/glibc-functions/wcstol_l.texi: Likewise.
88481         * doc/glibc-functions/wcstold_l.texi: Likewise.
88482         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88483         * doc/glibc-functions/wcstoq.texi: Likewise.
88484         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88485         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88486         * doc/glibc-functions/wcstouq.texi: Likewise.
88487         * doc/glibc-functions/wmempcpy.texi: Likewise.
88489 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88490             Eric Blake  <ebb9@byu.net>
88491             Paolo Bonzini  <bonzini@gnu.org>
88492             Bruno Haible  <bruno@clisp.org>
88494         Make c-stack work on Haiku.
88495         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88496         (c_stack_action): Use SA_ONSTACK flag.
88498 2008-12-22  Bruno Haible  <bruno@clisp.org>
88500         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88502 2008-12-22  Bruno Haible  <bruno@clisp.org>
88504         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88505         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88506         being overridden.
88507         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88508         New macros.
88509         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88511         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88512         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88514 2008-12-22  Bruno Haible  <bruno@clisp.org>
88516         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88517         from test code.
88519 2008-12-22  Eric Blake  <ebb9@byu.net>
88521         Avoid gcc warnings on cygwin.
88522         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88523         Avoid unused variable.
88524         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88525         Likewise.
88527 2008-12-22  Bruno Haible  <bruno@clisp.org>
88529         Remove HAVE_MBRTOWC conditionals.
88530         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88531         (mbscasecmp): Assume mbrtowc function.
88532         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88533         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88534         * lib/mbschr.c: Include mbuiter.h unconditionally.
88535         (mbschr): Assume mbrtowc function.
88536         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88537         (mbscspn): Assume mbrtowc function.
88538         * lib/mbslen.c: Include mbuiter.h unconditionally.
88539         (mbslen): Assume mbrtowc function.
88540         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88541         (mbsncasecmp): Assume mbrtowc function.
88542         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88543         (mbsnlen): Assume mbrtowc function.
88544         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88545         (mbspbrk): Assume mbrtowc function.
88546         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88547         (mbspcasecmp): Assume mbrtowc function.
88548         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88549         (mbsrchr): Assume mbrtowc function.
88550         * lib/mbssep.c: Include mbuiter.h unconditionally.
88551         (mbssep): Assume mbrtowc function.
88552         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88553         (mbsspn): Assume mbrtowc function.
88554         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88555         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88556         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88557         (mbstok_r): Assume mbrtowc function.
88558         * lib/propername.c: Include mbuiter.h unconditionally.
88559         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88560         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88561         (trim2): Assume mbrtowc function.
88562         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88563         (mbsnwidth): Assume mbrtowc function.
88564         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88565         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88566         fallback definitions.
88567         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88569 2008-12-22  Bruno Haible  <bruno@clisp.org>
88571         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88573 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88575         * modules/regex: Request emulations for the mb*/wc* functions we need.
88576         * m4/regex.m4: Don't look for those functions here.
88577         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88579 2008-12-22  Bruno Haible  <bruno@clisp.org>
88581         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88583 2008-12-21  Bruno Haible  <bruno@clisp.org>
88585         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88586         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88587         (Include): Remove conditionalization.
88588         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88589         (Include): Remove conditionalization.
88590         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88591         (Include): Remove conditionalization.
88592         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88593         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88594         * NEWS: Mention the change.
88595         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88596         via Sergey Poznyakoff <gray@gnu.org.ua>.
88598 2008-12-21  Bruno Haible  <bruno@clisp.org>
88600         * MODULES.html.sh (Extended multibyte and wide character utilities
88601         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88602         wcrtomb, wcsrtombs.
88603         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88604         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88605         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88606         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88608 2008-12-21  Bruno Haible  <bruno@clisp.org>
88610         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88612 2008-12-21  Bruno Haible  <bruno@clisp.org>
88614         * modules/wcsnrtombs-tests: New file.
88615         * tests/test-wcsnrtombs1.sh: New file.
88616         * tests/test-wcsnrtombs2.sh: New file.
88617         * tests/test-wcsnrtombs3.sh: New file.
88618         * tests/test-wcsnrtombs4.sh: New file.
88619         * tests/test-wcsnrtombs.c: New file.
88621         New module 'wcsnrtombs'.
88622         * lib/wchar.in.h (wcsnrtombs): New declaration.
88623         * lib/wcsnrtombs.c: New file.
88624         * lib/wcsrtombs-state.c: New file.
88625         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88626         (internal_state): Remove variable.
88627         * m4/wcsnrtombs.m4: New file.
88628         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88629         compilation units.
88630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88631         HAVE_WCSNRTOMBS.
88632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88633         HAVE_WCSNRTOMBS.
88634         * modules/wcsnrtombs: New file.
88635         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88636         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88638 2008-12-21  Bruno Haible  <bruno@clisp.org>
88640         * modules/wcsrtombs-tests: New file.
88641         * tests/test-wcsrtombs1.sh: New file.
88642         * tests/test-wcsrtombs2.sh: New file.
88643         * tests/test-wcsrtombs3.sh: New file.
88644         * tests/test-wcsrtombs4.sh: New file.
88645         * tests/test-wcsrtombs.c: New file.
88647         New module 'wcsrtombs'.
88648         * lib/wchar.in.h (wcsrtombs): New declaration.
88649         * lib/wcsrtombs.c: New file.
88650         * m4/wcsrtombs.m4: New file.
88651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88652         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88653         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88654         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88655         * modules/wcsrtombs: New file.
88656         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88657         bugs.
88659 2008-12-21  Bruno Haible  <bruno@clisp.org>
88661         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88662         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88664         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88665         if not correct.
88666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88667         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88668         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88669         m4/locale-zh.m4, m4/codeset.m4.
88670         * doc/posix-functions/wcrtomb.texi: Document the bug.
88672 2008-12-21  Bruno Haible  <bruno@clisp.org>
88674         Work around a btowc() bug on IRIX 6.5.
88675         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88676         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88677         REPLACE_WTOBC if not.
88678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88679         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88680         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88682 2008-12-21  Bruno Haible  <bruno@clisp.org>
88684         * modules/wcrtomb-tests: New file.
88685         * tests/test-wcrtomb.sh: New file.
88686         * tests/test-wcrtomb.c: New file.
88688         New module 'wcrtomb'.
88689         * lib/wchar.in.h (wcrtomb): New declaration.
88690         * lib/wcrtomb.c: New file.
88691         * m4/wcrtomb.m4: New file.
88692         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88693         HAVE_WCRTOMB.
88694         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88695         HAVE_WCRTOMB.
88696         * modules/wcrtomb: New file.
88697         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88699 2008-12-21  Bruno Haible  <bruno@clisp.org>
88701         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88702         * modules/mbsrtowcs (Files): Likewise.
88703         * modules/wctob (Files): Likewise.
88704         * modules/c-strcase-tests (Files): Likewise.
88705         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88706         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88707         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88708         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88709         * modules/vasnprintf-posix-tests (Files): Likewise.
88711 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88713         gitlog-to-changelog: pass all command-line arguments to git-log
88714         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88715         it is sometimes convenient to filter the commits in various ways.
88716         gitlog-to-changelog only allows --since to specify a start date,
88717         but git-log itself supports many other filtering mechanisms.
88718         At the moment, I want to filter by branch name.  Rather than
88719         adding a --branch option to gitlog-to-changelog, it seems more
88720         flexible to simply pass all options directly to git-log and let
88721         git do the work.  Notice that this effectively makes --since a
88722         redundant option for gitlog-to-changelog, but removing it would
88723         require current usage to change since calls would then require
88724         an additional '--'.
88726 2008-12-21  Bruno Haible  <bruno@clisp.org>
88728         * modules/mbsnrtowcs-tests: New file.
88729         * tests/test-mbsnrtowcs1.sh: New file.
88730         * tests/test-mbsnrtowcs2.sh: New file.
88731         * tests/test-mbsnrtowcs3.sh: New file.
88732         * tests/test-mbsnrtowcs4.sh: New file.
88733         * tests/test-mbsnrtowcs.c: New file.
88735         New module 'mbsnrtowcs'.
88736         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88737         * lib/mbsnrtowcs.c: New file.
88738         * lib/mbsrtowcs-state.c: New file.
88739         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88740         (internal_state): Remove variable.
88741         * m4/mbsnrtowcs.m4: New file.
88742         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88743         compilation units.
88744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88745         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88746         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88747         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88748         * modules/mbsnrtowcs: New file.
88749         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88750         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88751         portability problem.
88753 2008-12-21  Bruno Haible  <bruno@clisp.org>
88755         Work around mbsrtowcs bug.
88756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88757         (gl_FUNC_MBSRTOWCS): Invoke it.
88758         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88759         m4/locale-zh.m4.
88760         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88762 2008-12-21  Bruno Haible  <bruno@clisp.org>
88764         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88766 2008-12-21  Bruno Haible  <bruno@clisp.org>
88768         Update doc for AIX.
88769         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88770         16-bit wchar_t type.
88771         * doc/posix-functions/btowc.texi: Likewise.
88772         * doc/posix-functions/fgetwc.texi: Likewise.
88773         * doc/posix-functions/fgetws.texi: Likewise.
88774         * doc/posix-functions/fputwc.texi: Likewise.
88775         * doc/posix-functions/fputws.texi: Likewise.
88776         * doc/posix-functions/fwide.texi: Likewise.
88777         * doc/posix-functions/fwprintf.texi: Likewise.
88778         * doc/posix-functions/fwscanf.texi: Likewise.
88779         * doc/posix-functions/getwchar.texi: Likewise.
88780         * doc/posix-functions/getwc.texi: Likewise.
88781         * doc/posix-functions/iswalnum.texi: Likewise.
88782         * doc/posix-functions/iswalpha.texi: Likewise.
88783         * doc/posix-functions/iswblank.texi: Likewise.
88784         * doc/posix-functions/iswcntrl.texi: Likewise.
88785         * doc/posix-functions/iswctype.texi: Likewise.
88786         * doc/posix-functions/iswdigit.texi: Likewise.
88787         * doc/posix-functions/iswgraph.texi: Likewise.
88788         * doc/posix-functions/iswlower.texi: Likewise.
88789         * doc/posix-functions/iswprint.texi: Likewise.
88790         * doc/posix-functions/iswpunct.texi: Likewise.
88791         * doc/posix-functions/iswspace.texi: Likewise.
88792         * doc/posix-functions/iswupper.texi: Likewise.
88793         * doc/posix-functions/iswxdigit.texi: Likewise.
88794         * doc/posix-functions/mbrtowc.texi: Likewise.
88795         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88796         * doc/posix-functions/mbstowcs.texi: Likewise.
88797         * doc/posix-functions/mbtowc.texi: Likewise.
88798         * doc/posix-functions/putwchar.texi: Likewise.
88799         * doc/posix-functions/putwc.texi: Likewise.
88800         * doc/posix-functions/swprintf.texi: Likewise.
88801         * doc/posix-functions/tolower.texi: Likewise.
88802         * doc/posix-functions/toupper.texi: Likewise.
88803         * doc/posix-functions/towctrans.texi: Likewise.
88804         * doc/posix-functions/ungetwc.texi: Likewise.
88805         * doc/posix-functions/vswprintf.texi: Likewise.
88806         * doc/posix-functions/wcrtomb.texi: Likewise.
88807         * doc/posix-functions/wcscat.texi: Likewise.
88808         * doc/posix-functions/wcschr.texi: Likewise.
88809         * doc/posix-functions/wcscmp.texi: Likewise.
88810         * doc/posix-functions/wcscoll.texi: Likewise.
88811         * doc/posix-functions/wcscpy.texi: Likewise.
88812         * doc/posix-functions/wcscspn.texi: Likewise.
88813         * doc/posix-functions/wcsftime.texi: Likewise.
88814         * doc/posix-functions/wcslen.texi: Likewise.
88815         * doc/posix-functions/wcsncat.texi: Likewise.
88816         * doc/posix-functions/wcsncmp.texi: Likewise.
88817         * doc/posix-functions/wcsncpy.texi: Likewise.
88818         * doc/posix-functions/wcspbrk.texi: Likewise.
88819         * doc/posix-functions/wcsrchr.texi: Likewise.
88820         * doc/posix-functions/wcsrtombs.texi: Likewise.
88821         * doc/posix-functions/wcsspn.texi: Likewise.
88822         * doc/posix-functions/wcsstr.texi: Likewise.
88823         * doc/posix-functions/wcstod.texi: Likewise.
88824         * doc/posix-functions/wcstof.texi: Likewise.
88825         * doc/posix-functions/wcstoimax.texi: Likewise.
88826         * doc/posix-functions/wcstok.texi: Likewise.
88827         * doc/posix-functions/wcstold.texi: Likewise.
88828         * doc/posix-functions/wcstoll.texi: Likewise.
88829         * doc/posix-functions/wcstol.texi: Likewise.
88830         * doc/posix-functions/wcstombs.texi: Likewise.
88831         * doc/posix-functions/wcstoull.texi: Likewise.
88832         * doc/posix-functions/wcstoul.texi: Likewise.
88833         * doc/posix-functions/wcstoumax.texi: Likewise.
88834         * doc/posix-functions/wcswidth.texi: Likewise.
88835         * doc/posix-functions/wcsxfrm.texi: Likewise.
88836         * doc/posix-functions/wctob.texi: Likewise.
88837         * doc/posix-functions/wctomb.texi: Likewise.
88838         * doc/posix-functions/wctrans.texi: Likewise.
88839         * doc/posix-functions/wctype.texi: Likewise.
88840         * doc/posix-functions/wcwidth.texi: Likewise.
88841         * doc/posix-functions/wmemchr.texi: Likewise.
88842         * doc/posix-functions/wmemcmp.texi: Likewise.
88843         * doc/posix-functions/wmemcpy.texi: Likewise.
88844         * doc/posix-functions/wmemmove.texi: Likewise.
88845         * doc/posix-functions/wmemset.texi: Likewise.
88846         * doc/posix-functions/wprintf.texi: Likewise.
88847         * doc/posix-functions/wscanf.texi: Likewise.
88849 2008-12-21  Bruno Haible  <bruno@clisp.org>
88851         Update doc for HP-UX 11.11.
88852         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88853         in HP-UX version 11.00, not in all versions of HP-UX 11.
88854         * doc/posix-functions/fwide.texi: Likewise.
88855         * doc/posix-functions/fwprintf.texi: Likewise.
88856         * doc/posix-functions/fwscanf.texi: Likewise.
88857         * doc/posix-functions/inet_ntop.texi: Likewise.
88858         * doc/posix-functions/inet_pton.texi: Likewise.
88859         * doc/posix-functions/mbrlen.texi: Likewise.
88860         * doc/posix-functions/mbrtowc.texi: Likewise.
88861         * doc/posix-functions/mbsinit.texi: Likewise.
88862         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88863         * doc/posix-functions/swprintf.texi: Likewise.
88864         * doc/posix-functions/swscanf.texi: Likewise.
88865         * doc/posix-functions/towctrans.texi: Likewise.
88866         * doc/posix-functions/vfwprintf.texi: Likewise.
88867         * doc/posix-functions/vswprintf.texi: Likewise.
88868         * doc/posix-functions/vwprintf.texi: Likewise.
88869         * doc/posix-functions/wcrtomb.texi: Likewise.
88870         * doc/posix-functions/wcsrtombs.texi: Likewise.
88871         * doc/posix-functions/wcsstr.texi: Likewise.
88872         * doc/posix-functions/wctob.texi: Likewise.
88873         * doc/posix-functions/wctrans.texi: Likewise.
88874         * doc/posix-functions/wmemchr.texi: Likewise.
88875         * doc/posix-functions/wmemcmp.texi: Likewise.
88876         * doc/posix-functions/wmemcpy.texi: Likewise.
88877         * doc/posix-functions/wmemmove.texi: Likewise.
88878         * doc/posix-functions/wmemset.texi: Likewise.
88879         * doc/posix-functions/wprintf.texi: Likewise.
88880         * doc/posix-functions/wscanf.texi: Likewise.
88882 2008-12-21  Bruno Haible  <bruno@clisp.org>
88884         Work around a portability problem.
88885         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88886         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88888 2008-12-20  Bruno Haible  <bruno@clisp.org>
88890         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88891         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88892         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88894         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88896         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88897         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88898         set.
88899         (GNULIB_defined_mbstate_t): New macro.
88900         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88901         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88902         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88903         reuses the system's mbrtowc function but works around the bugs.
88904         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88905         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88906         macros.
88907         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88908         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88909         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88910         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88911         REPLACE_MBSINIT if mbsinit needs to be overridden.
88912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88913         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88914         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88915         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88916         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88917         m4/locale-zh.m4.
88918         (Depends): Add mbsinit.
88919         * modules/mbsinit (Depends): Add mbrtowc.
88920         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88922 2008-12-20  Bruno Haible  <bruno@clisp.org>
88924         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88925         so that there are no conversion errors on AIX.
88926         * tests/test-mbsrtowcs.c (main): LIkewise.
88928 2008-12-20  Bruno Haible  <bruno@clisp.org>
88930         Work around wctob bug on Solaris <= 9.
88931         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88932         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88934         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88935         * modules/wctob (Files): Add m4/locale-fr.m4.
88936         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88938 2008-12-20  Bruno Haible  <bruno@clisp.org>
88940         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88941         /dev/null.
88942         * tests/test-select-in.sh: Likewise.
88943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88945 2008-12-20  Bruno Haible  <bruno@clisp.org>
88947         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88948         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88949         Cygwin 1.5.x.
88951 2008-12-20  Bruno Haible  <bruno@clisp.org>
88953         Ensure mbstate_t is defined on HP-UX 11.11.
88954         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88955         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88956         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88957         AC_USE_SYSTEM_EXTENSIONS.
88958         * modules/fnmatch (Depends-on): Add extensions.
88959         * modules/mbrlen (Depends-on): Likewise.
88960         * modules/mbrtowc (Depends-on): Likewise.
88961         * modules/mbsinit (Depends-on): Likewise.
88962         * modules/mbsrtowcs (Depends-on): Likewise.
88963         * modules/mbswidth (Depends-on): Likewise.
88964         * modules/quotearg (Depends-on): Likewise.
88965         * modules/strftime (Depends-on): Likewise.
88967 2008-12-20  Bruno Haible  <bruno@clisp.org>
88969         Ensure wctob is declared on IRIX 6.5.
88970         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88971         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88972         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88974         of HAVE_WCTOB.
88975         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88976         HAVE_WCTOB.
88977         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88979 2008-12-19  Bruno Haible  <bruno@clisp.org>
88981         * modules/mbsrtowcs-tests: New file.
88982         * tests/test-mbsrtowcs1.sh: New file.
88983         * tests/test-mbsrtowcs2.sh: New file.
88984         * tests/test-mbsrtowcs3.sh: New file.
88985         * tests/test-mbsrtowcs4.sh: New file.
88986         * tests/test-mbsrtowcs.c: New file.
88988         New module 'mbsrtowcs'.
88989         * lib/wchar.in.h (mbsrtowcs): New declaration.
88990         * lib/mbsrtowcs.c: New file.
88991         * m4/mbsrtowcs.m4: New file.
88992         * modules/mbsrtowcs: New file.
88993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88994         HAVE_MBSRTOWCS.
88995         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88996         HAVE_MBSRTOWCS.
88997         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88999 2008-12-19  Bruno Haible  <bruno@clisp.org>
89001         New module 'mbrlen'.
89002         * lib/wchar.in.h (mbrlen): New declaration.
89003         * lib/mbrlen.c: New file.
89004         * m4/mbrlen.m4: New file.
89005         * modules/mbrlen: New file.
89006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
89007         HAVE_MBRLEN.
89008         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
89009         HAVE_MBRLEN.
89010         * doc/posix-functions/mbrlen.texi: Document the new module.
89012 2008-12-19  Bruno Haible  <bruno@clisp.org>
89014         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
89015         * modules/mbrtowc (Depends-on): Add verify.
89016         Suggested by Paul Eggert.
89018 2008-12-18  Bruno Haible  <bruno@clisp.org>
89020         * modules/mbsinit-tests: New file.
89021         * tests/test-mbsinit.sh: New file.
89022         * tests/test-mbsinit.c: New file.
89024 2008-12-18  Bruno Haible  <bruno@clisp.org>
89026         * modules/mbrtowc-tests: New file.
89027         * tests/test-mbrtowc1.sh: New file.
89028         * tests/test-mbrtowc2.sh: New file.
89029         * tests/test-mbrtowc3.sh: New file.
89030         * tests/test-mbrtowc4.sh: New file.
89031         * tests/test-mbrtowc.c: New file.
89033         New module 'mbrtowc'.
89034         * lib/wchar.in.h (mbstate_t): Override when the system does not have
89035         mbsinit and mbrtowc.
89036         (mbrtowc): New declaration.
89037         * lib/mbrtowc.c: New file.
89038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
89039         * modules/mbrtowc: New file.
89040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
89041         HAVE_MBRTOWC.
89042         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
89043         HAVE_MBRTOWC.
89044         * doc/posix-functions/mbrtowc.texi: Document the new module.
89046 2008-12-18  Bruno Haible  <bruno@clisp.org>
89048         New module 'wctob'.
89049         * lib/wchar.in.h (wctob): New declaration.
89050         * lib/wctob.c: New file.
89051         * m4/wctob.m4: New file.
89052         * modules/wctob: New file.
89053         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
89054         HAVE_WCTOB.
89055         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
89056         * doc/posix-functions/wctob.texi: Document the new module.
89058 2008-12-18  Bruno Haible  <bruno@clisp.org>
89060         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
89061         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
89063 2008-12-18  Simon Josefsson  <simon@josefsson.org>
89065         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
89066         G. Christensen" <tgc@jupiterrise.com>.
89068         * lib/flock.c: Need to include errno.h.  Reported by "Tom
89069         G. Christensen" <tgc@jupiterrise.com>.
89071         * lib/flock.c: Need to include string.h.  Reported by "Tom
89072         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
89073         <ebb9@byu.net>.
89075 2008-12-18  Bruno Haible  <bruno@clisp.org>
89077         * m4/locale-ja.m4: New file, from GNU gettext.
89079 2008-12-17  Bruno Haible  <bruno@clisp.org>
89081         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
89082         Suggested by Eric Blake.
89084 2008-12-17  Bruno Haible  <bruno@clisp.org>
89086         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
89088 2008-12-17  Bruno Haible  <bruno@clisp.org>
89090         * lib/mbsinit.c: Include verify.h. Verify an assumption.
89091         * modules/mbsinit (Depends-on): Add verify.
89092         Suggested by Paul Eggert.
89094 2008-12-17  Bruno Haible  <bruno@clisp.org>
89096         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
89097         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
89098         gl_FUNC_MBRTOWC.
89099         * m4/mbiter.m4 (gl_MBITER): LIkewise.
89100         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
89101         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
89102         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
89103         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
89104         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
89105         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
89106         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
89107         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
89108         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
89109         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
89110         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
89111         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
89112         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
89113         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
89114         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89115         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
89116         * modules/trim (configure.ac): Likewise.
89118 2008-12-17  Bruno Haible  <bruno@clisp.org>
89120         * modules/btowc-tests: New file.
89121         * tests/test-btowc1.sh: New file.
89122         * tests/test-btowc2.sh: New file.
89123         * tests/test-btowc.c: New file.
89125         New module 'btowc'.
89126         * lib/wchar.in.h (btowc): New declaration.
89127         * lib/btowc.c: New file.
89128         * m4/btowc.m4: New file.
89129         * modules/btowc: New file.
89130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
89131         HAVE_BTOWC.
89132         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
89133         * doc/posix-functions/btowc.texi: Document the new module.
89135 2008-12-17  Bruno Haible  <bruno@clisp.org>
89137         New module 'mbsinit'.
89138         * lib/wchar.in.h (mbsinit): New declaration.
89139         * lib/mbsinit.c: New file.
89140         * m4/mbsinit.m4: New file.
89141         * modules/mbsinit: New file.
89142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
89143         HAVE_MBSINIT.
89144         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
89145         HAVE_MBSINIT.
89146         * doc/posix-functions/mbsinit.texi: Document the new module.
89148 2008-12-16  Bruno Haible  <bruno@clisp.org>
89150         * lib/unistd.in.h: Add comment.
89151         * tests/test-environ.c: Don't include <stdlib.h>.
89153 2008-12-16  Bruno Haible  <bruno@clisp.org>
89155         * lib/parse-duration.h (parse_duration): Document return value
89156         convention.
89157         * lib/parse-duration.c: Include specification header first. Add
89158         comments.
89159         (_): Remove macro.
89160         (parse_year_month_day, parse_hour_minute_second): Move side effects
89161         outside of strchr call.
89162         (parse_non_iso8601): Move side effects outside of isspace call.
89163         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
89164         call.
89166 2008-12-16  Bruno Haible  <bruno@clisp.org>
89168         * tests/test-parse-duration.sh: Produce no output when the test
89169         succeeds.
89171 2008-12-16  Bruno Haible  <bruno@clisp.org>
89173         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
89174         expressions.
89176 2008-12-15  Bruno Haible  <bruno@clisp.org>
89178         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
89179         * doc/glibc-functions/flistxattr.texi: Likewise.
89180         * doc/glibc-functions/fopencookie.texi: Likewise.
89181         * doc/glibc-functions/fremovexattr.texi: Likewise.
89182         * doc/glibc-functions/fsetxattr.texi: Likewise.
89183         * doc/glibc-functions/getxattr.texi: Likewise.
89184         * doc/glibc-functions/lgetxattr.texi: Likewise.
89185         * doc/glibc-functions/listxattr.texi: Likewise.
89186         * doc/glibc-functions/llistxattr.texi: Likewise.
89187         * doc/glibc-functions/lremovexattr.texi: Likewise.
89188         * doc/glibc-functions/lsetxattr.texi: Likewise.
89189         * doc/glibc-functions/removexattr.texi: Likewise.
89190         * doc/glibc-functions/setxattr.texi: Likewise.
89191         * doc/posix-functions/open_memstream.texi: Likewise.
89193 2008-12-15  Eric Blake  <ebb9@byu.net>
89195         Update doc for cygwin 1.7.
89196         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
89197         functions.
89198         * doc/posix-functions/fchmodat.texi: Likewise.
89199         * doc/posix-functions/fchownat.texi: Likewise.
89200         * doc/posix-functions/fdopendir.texi: Likewise.
89201         * doc/posix-functions/fmemopen.texi: Likewise.
89202         * doc/posix-functions/freeaddrinfo.texi: Likewise.
89203         * doc/posix-functions/fstatat.texi: Likewise.
89204         * doc/posix-functions/futimens.texi: Likewise.
89205         * doc/posix-functions/gai_strerror.texi: Likewise.
89206         * doc/posix-functions/getaddrinfo.texi: Likewise.
89207         * doc/posix-functions/getnameinfo.texi: Likewise.
89208         * doc/posix-functions/if_freenameindex.texi: Likewise.
89209         * doc/posix-functions/if_indextoname.texi: Likewise.
89210         * doc/posix-functions/if_nameindex.texi: Likewise.
89211         * doc/posix-functions/if_nametoindex.texi: Likewise.
89212         * doc/posix-functions/insque.texi: Likewise.
89213         * doc/posix-functions/linkat.texi: Likewise.
89214         * doc/posix-functions/llrint.texi: Likewise.
89215         * doc/posix-functions/llrintf.texi: Likewise.
89216         * doc/posix-functions/llrintl.texi: Likewise.
89217         * doc/posix-functions/lockf.texi: Likewise.
89218         * doc/posix-functions/lrintl.texi: Likewise.
89219         * doc/posix-functions/mkdirat.texi: Likewise.
89220         * doc/posix-functions/mkfifoat.texi: Likewise.
89221         * doc/posix-functions/mknodat.texi: Likewise.
89222         * doc/posix-functions/mq_close.texi: Likewise.
89223         * doc/posix-functions/mq_getattr.texi: Likewise.
89224         * doc/posix-functions/mq_notify.texi: Likewise.
89225         * doc/posix-functions/mq_open.texi: Likewise.
89226         * doc/posix-functions/mq_receive.texi: Likewise.
89227         * doc/posix-functions/mq_send.texi: Likewise.
89228         * doc/posix-functions/mq_setattr.texi: Likewise.
89229         * doc/posix-functions/mq_timedreceive.texi: Likewise.
89230         * doc/posix-functions/mq_timedsend.texi: Likewise.
89231         * doc/posix-functions/mq_unlink.texi: Likewise.
89232         * doc/posix-functions/open_memstream.texi: Likewise.
89233         * doc/posix-functions/openat.texi: Likewise.
89234         * doc/posix-functions/posix_fadvise.texi: Likewise.
89235         * doc/posix-functions/posix_fallocate.texi: Likewise.
89236         * doc/posix-functions/posix_madvise.texi: Likewise.
89237         * doc/posix-functions/posix_memalign.texi: Likewise.
89238         * doc/posix-functions/posix_openpt.texi: Likewise.
89239         * doc/posix-functions/readlinkat.texi: Likewise.
89240         * doc/posix-functions/remque.texi: Likewise.
89241         * doc/posix-functions/renameat.texi: Likewise.
89242         * doc/posix-functions/rintl.texi: Likewise.
89243         * doc/posix-functions/sem_unlink.texi: Likewise.
89244         * doc/posix-functions/shm_open.texi: Likewise.
89245         * doc/posix-functions/shm_unlink.texi: Likewise.
89246         * doc/posix-functions/signgam.texi: Likewise.
89247         * doc/posix-functions/sigset.texi: Likewise.
89248         * doc/posix-functions/stpcpy.texi: Likewise.
89249         * doc/posix-functions/stpncpy.texi: Likewise.
89250         * doc/posix-functions/strerror.texi: Likewise.
89251         * doc/posix-functions/strtod.texi: Likewise.
89252         * doc/posix-functions/symlinkat.texi: Likewise.
89253         * doc/posix-functions/unlinkat.texi: Likewise.
89254         * doc/posix-functions/utimensat.texi: Likewise.
89255         * doc/glibc-functions/bindresvport.texi: Likewise.
89256         * doc/glibc-functions/dn_expand.texi: Likewise.
89257         * doc/glibc-functions/exp10.texi: Likewise.
89258         * doc/glibc-functions/exp10f.texi: Likewise.
89259         * doc/glibc-functions/fgetxattr.texi: Likewise.
89260         * doc/glibc-functions/flistxattr.texi: Likewise.
89261         * doc/glibc-functions/fopencookie.texi: Likewise.
89262         * doc/glibc-functions/freeifaddrs.texi: Likewise.
89263         * doc/glibc-functions/fremovexattr.texi: Likewise.
89264         * doc/glibc-functions/fsetxattr.texi: Likewise.
89265         * doc/glibc-functions/getifaddrs.texi: Likewise.
89266         * doc/glibc-functions/getxattr.texi: Likewise.
89267         * doc/glibc-functions/lgetxattr.texi: Likewise.
89268         * doc/glibc-functions/listxattr.texi: Likewise.
89269         * doc/glibc-functions/llistxattr.texi: Likewise.
89270         * doc/glibc-functions/lremovexattr.texi: Likewise.
89271         * doc/glibc-functions/lsetxattr.texi: Likewise.
89272         * doc/glibc-functions/pow10.texi: Likewise.
89273         * doc/glibc-functions/pow10f.texi: Likewise.
89274         * doc/glibc-functions/rcmd_af.texi: Likewise.
89275         * doc/glibc-functions/removexattr.texi: Likewise.
89276         * doc/glibc-functions/res_init.texi: Likewise.
89277         * doc/glibc-functions/res_mkquery.texi: Likewise.
89278         * doc/glibc-functions/res_query.texi: Likewise.
89279         * doc/glibc-functions/res_querydomain.texi: Likewise.
89280         * doc/glibc-functions/res_send.texi: Likewise.
89281         * doc/glibc-functions/rresvport_af.texi: Likewise.
89282         * doc/glibc-functions/setxattr.texi: Likewise.
89283         * doc/glibc-functions/strcasestr.texi: Likewise.
89285 2008-12-15  Bruno Haible  <bruno@clisp.org>
89287         Fix compilation error on OSF/1 4.0.
89288         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
89289         <sys/time.h>, simply delegate to the system header.
89290         Reported by Daniel Richard G. <oss@teragram.com>.
89292 2008-12-15  Bruno Haible  <bruno@clisp.org>
89294         * doc/posix-functions/openat.texi: Mention the 'openat' module.
89295         * doc/posix-functions/fchmodat.texi: Likewise.
89296         * doc/posix-functions/fchownat.texi: Likewise.
89297         * doc/posix-functions/fdopendir.texi: Likewise.
89298         * doc/posix-functions/fstatat.texi: Likewise.
89299         * doc/posix-functions/mkdirat.texi: Likewise.
89300         * doc/posix-functions/unlinkat.texi: Likewise.
89302 2008-12-14  Bruno Haible  <bruno@clisp.org>
89304         Update doc for POSIX:2008.
89305         * doc/posix-functions/faccessat.texi: New file.
89306         * doc/posix-functions/fchmodat.texi: New file.
89307         * doc/posix-functions/fchownat.texi: New file.
89308         * doc/posix-functions/fdopendir.texi: New file.
89309         * doc/posix-functions/fstatat.texi: New file.
89310         * doc/posix-functions/futimens.texi: New file.
89311         * doc/posix-functions/linkat.texi: New file.
89312         * doc/posix-functions/mkdirat.texi: New file.
89313         * doc/posix-functions/mkfifoat.texi: New file.
89314         * doc/posix-functions/mknodat.texi: New file.
89315         * doc/posix-functions/open_wmemstream.texi: New file.
89316         * doc/posix-functions/openat.texi: New file.
89317         * doc/posix-functions/psiginfo.texi: New file.
89318         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
89319         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
89320         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
89321         * doc/posix-functions/readlinkat.texi: New file.
89322         * doc/posix-functions/renameat.texi: New file.
89323         * doc/posix-functions/strerror_l.texi: New file.
89324         * doc/posix-functions/symlinkat.texi: New file.
89325         * doc/posix-functions/unlinkat.texi: New file.
89326         * doc/posix-functions/utimensat.texi: New file.
89327         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89329 2008-12-14  Bruno Haible  <bruno@clisp.org>
89331         Update doc for POSIX:2008.
89332         * doc/posix-functions/alphasort.texi: Renamed from
89333         doc/glibc-functions/alphasort.texi.
89334         * doc/posix-functions/dirfd.texi: Renamed from
89335         doc/glibc-functions/dirfd.texi.
89336         * doc/posix-functions/dprintf.texi: Renamed from
89337         doc/glibc-functions/dprintf.texi.
89338         * doc/posix-functions/duplocale.texi: Renamed from
89339         doc/glibc-functions/duplocale.texi.
89340         * doc/posix-functions/fexecve.texi: Renamed from
89341         doc/glibc-functions/fexecve.texi.
89342         * doc/posix-functions/fmemopen.texi: Renamed from
89343         doc/glibc-functions/fmemopen.texi.
89344         * doc/posix-functions/freelocale.texi: Renamed from
89345         doc/glibc-functions/freelocale.texi.
89346         * doc/posix-functions/getdate_err.texi: Renamed from
89347         doc/glibc-functions/getdate_err.texi.
89348         * doc/posix-functions/isalnum_l.texi: Renamed from
89349         doc/glibc-functions/isalnum_l.texi.
89350         * doc/posix-functions/isalpha_l.texi: Renamed from
89351         doc/glibc-functions/isalpha_l.texi.
89352         * doc/posix-functions/isblank_l.texi: Renamed from
89353         doc/glibc-functions/isblank_l.texi.
89354         * doc/posix-functions/iscntrl_l.texi: Renamed from
89355         doc/glibc-functions/iscntrl_l.texi.
89356         * doc/posix-functions/isdigit_l.texi: Renamed from
89357         doc/glibc-functions/isdigit_l.texi.
89358         * doc/posix-functions/isgraph_l.texi: Renamed from
89359         doc/glibc-functions/isgraph_l.texi.
89360         * doc/posix-functions/islower_l.texi: Renamed from
89361         doc/glibc-functions/islower_l.texi.
89362         * doc/posix-functions/isprint_l.texi: Renamed from
89363         doc/glibc-functions/isprint_l.texi.
89364         * doc/posix-functions/ispunct_l.texi: Renamed from
89365         doc/glibc-functions/ispunct_l.texi.
89366         * doc/posix-functions/isspace_l.texi: Renamed from
89367         doc/glibc-functions/isspace_l.texi.
89368         * doc/posix-functions/isupper_l.texi: Renamed from
89369         doc/glibc-functions/isupper_l.texi.
89370         * doc/posix-functions/iswalnum_l.texi: Renamed from
89371         doc/glibc-functions/iswalnum_l.texi.
89372         * doc/posix-functions/iswalpha_l.texi: Renamed from
89373         doc/glibc-functions/iswalpha_l.texi.
89374         * doc/posix-functions/iswblank_l.texi: Renamed from
89375         doc/glibc-functions/iswblank_l.texi.
89376         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89377         doc/glibc-functions/iswcntrl_l.texi.
89378         * doc/posix-functions/iswctype_l.texi: Renamed from
89379         doc/glibc-functions/iswctype_l.texi.
89380         * doc/posix-functions/iswdigit_l.texi: Renamed from
89381         doc/glibc-functions/iswdigit_l.texi.
89382         * doc/posix-functions/iswgraph_l.texi: Renamed from
89383         doc/glibc-functions/iswgraph_l.texi.
89384         * doc/posix-functions/iswlower_l.texi: Renamed from
89385         doc/glibc-functions/iswlower_l.texi.
89386         * doc/posix-functions/iswprint_l.texi: Renamed from
89387         doc/glibc-functions/iswprint_l.texi.
89388         * doc/posix-functions/iswpunct_l.texi: Renamed from
89389         doc/glibc-functions/iswpunct_l.texi.
89390         * doc/posix-functions/iswspace_l.texi: Renamed from
89391         doc/glibc-functions/iswspace_l.texi.
89392         * doc/posix-functions/iswupper_l.texi: Renamed from
89393         doc/glibc-functions/iswupper_l.texi.
89394         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89395         doc/glibc-functions/iswxdigit_l.texi.
89396         * doc/posix-functions/isxdigit_l.texi: Renamed from
89397         doc/glibc-functions/isxdigit_l.texi.
89398         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89399         doc/glibc-functions/mbsnrtowcs.texi.
89400         * doc/posix-functions/mkdtemp.texi: Renamed from
89401         doc/glibc-functions/mkdtemp.texi.
89402         * doc/posix-functions/newlocale.texi: Renamed from
89403         doc/glibc-functions/newlocale.texi.
89404         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89405         doc/glibc-functions/nl_langinfo_l.texi.
89406         * doc/posix-functions/open_memstream.texi: Renamed from
89407         doc/glibc-functions/open_memstream.texi.
89408         * doc/posix-functions/opterr.texi: Renamed from
89409         doc/glibc-functions/opterr.texi.
89410         * doc/posix-functions/optind.texi: Renamed from
89411         doc/glibc-functions/optind.texi.
89412         * doc/posix-functions/optopt.texi: Renamed from
89413         doc/glibc-functions/optopt.texi.
89414         * doc/posix-functions/psignal.texi: Renamed from
89415         doc/glibc-functions/psignal.texi.
89416         * doc/posix-functions/scandir.texi: Renamed from
89417         doc/glibc-functions/scandir.texi.
89418         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89419         doc/glibc-functions/sched_get_priority_min.texi.
89420         * doc/posix-functions/signgam.texi: Renamed from
89421         doc/glibc-functions/signgam.texi.
89422         * doc/posix-functions/stpcpy.texi: Renamed from
89423         doc/glibc-functions/stpcpy.texi.
89424         * doc/posix-functions/stpncpy.texi: Renamed from
89425         doc/glibc-functions/stpncpy.texi.
89426         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89427         doc/glibc-functions/strcasecmp_l.texi.
89428         * doc/posix-functions/strcoll_l.texi: Renamed from
89429         doc/glibc-functions/strcoll_l.texi.
89430         * doc/posix-functions/strfmon_l.texi: Renamed from
89431         doc/glibc-functions/strfmon_l.texi.
89432         * doc/posix-functions/strftime_l.texi: Renamed from
89433         doc/glibc-functions/strftime_l.texi.
89434         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89435         doc/glibc-functions/strncasecmp_l.texi.
89436         * doc/posix-functions/strndup.texi: Renamed from
89437         doc/glibc-functions/strndup.texi.
89438         * doc/posix-functions/strnlen.texi: Renamed from
89439         doc/glibc-functions/strnlen.texi.
89440         * doc/posix-functions/strsignal.texi: Renamed from
89441         doc/glibc-functions/strsignal.texi.
89442         * doc/posix-functions/strxfrm_l.texi: Renamed from
89443         doc/glibc-functions/strxfrm_l.texi.
89444         * doc/posix-functions/timer_gettime.texi: Renamed from
89445         doc/glibc-functions/timer_gettime.texi.
89446         * doc/posix-functions/tolower_l.texi: Renamed from
89447         doc/glibc-functions/tolower_l.texi.
89448         * doc/posix-functions/toupper_l.texi: Renamed from
89449         doc/glibc-functions/toupper_l.texi.
89450         * doc/posix-functions/towctrans_l.texi: Renamed from
89451         doc/glibc-functions/towctrans_l.texi.
89452         * doc/posix-functions/towlower_l.texi: Renamed from
89453         doc/glibc-functions/towlower_l.texi.
89454         * doc/posix-functions/towupper_l.texi: Renamed from
89455         doc/glibc-functions/towupper_l.texi.
89456         * doc/posix-functions/uselocale.texi: Renamed from
89457         doc/glibc-functions/uselocale.texi.
89458         * doc/posix-functions/vdprintf.texi: Renamed from
89459         doc/glibc-functions/vdprintf.texi.
89460         * doc/posix-functions/wcpcpy.texi:
89461         Renamed from doc/glibc-functions/wcpcpy.texi.
89462         * doc/posix-functions/wcpncpy.texi: Renamed from
89463         doc/glibc-functions/wcpncpy.texi.
89464         * doc/posix-functions/wcscasecmp.texi: Renamed from
89465         doc/glibc-functions/wcscasecmp.texi.
89466         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89467         doc/glibc-functions/wcscasecmp_l.texi.
89468         * doc/posix-functions/wcscoll_l.texi: Renamed from
89469         doc/glibc-functions/wcscoll_l.texi.
89470         * doc/posix-functions/wcsdup.texi: Renamed from
89471         doc/glibc-functions/wcsdup.texi.
89472         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89473         doc/glibc-functions/wcsncasecmp.texi.
89474         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89475         doc/glibc-functions/wcsncasecmp_l.texi.
89476         * doc/posix-functions/wcsnlen.texi: Renamed from
89477         doc/glibc-functions/wcsnlen.texi.
89478         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89479         doc/glibc-functions/wcsnrtombs.texi.
89480         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89481         doc/glibc-functions/wcsxfrm_l.texi.
89482         * doc/posix-functions/wctrans_l.texi: Renamed from
89483         doc/glibc-functions/wctrans_l.texi.
89484         * doc/posix-functions/wctype_l.texi: Renamed from
89485         doc/glibc-functions/wctype_l.texi.
89486         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89487         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89488         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89489         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89490         these subsections.
89491         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89492         Remove sections.
89494 2008-12-14  Bruno Haible  <bruno@clisp.org>
89496         Update doc for POSIX:2008.
89497         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89499 2008-12-14  Bruno Haible  <bruno@clisp.org>
89501         Update doc for POSIX:2008.
89502         * doc/pastposix-functions/bcmp.texi: Renamed from
89503         doc/posix-functions/bcmp.texi.
89504         * doc/pastposix-functions/bcopy.texi: Renamed from
89505         doc/posix-functions/bcopy.texi.
89506         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89507         doc/posix-functions/bsd_signal.texi.
89508         * doc/pastposix-functions/bzero.texi: Renamed from
89509         doc/posix-functions/bzero.texi.
89510         * doc/pastposix-functions/ecvt.texi: Renamed from
89511         doc/posix-functions/ecvt.texi.
89512         * doc/pastposix-functions/fcvt.texi: Renamed from
89513         doc/posix-functions/fcvt.texi.
89514         * doc/pastposix-functions/ftime.texi: Renamed from
89515         doc/posix-functions/ftime.texi.
89516         * doc/pastposix-functions/gcvt.texi: Renamed from
89517         doc/posix-functions/gcvt.texi.
89518         * doc/pastposix-functions/getcontext.texi: Renamed from
89519         doc/posix-functions/getcontext.texi.
89520         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89521         doc/posix-functions/gethostbyaddr.texi.
89522         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89523         doc/posix-functions/gethostbyname.texi.
89524         * doc/pastposix-functions/getwd.texi: Renamed from
89525         doc/posix-functions/getwd.texi.
89526         * doc/pastposix-functions/h_errno.texi: Renamed from
89527         doc/posix-functions/h_errno.texi.
89528         * doc/pastposix-functions/index.texi: Renamed from
89529         doc/posix-functions/index.texi.
89530         * doc/pastposix-functions/makecontext.texi: Renamed from
89531         doc/posix-functions/makecontext.texi.
89532         * doc/pastposix-functions/mktemp.texi: Renamed from
89533         doc/posix-functions/mktemp.texi.
89534         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89535         doc/posix-functions/pthread_attr_getstackaddr.texi.
89536         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89537         doc/posix-functions/pthread_attr_setstackaddr.texi.
89538         * doc/pastposix-functions/rindex.texi: Renamed from
89539         doc/posix-functions/rindex.texi.
89540         * doc/pastposix-functions/scalb.texi: Renamed from
89541         doc/posix-functions/scalb.texi.
89542         * doc/pastposix-functions/setcontext.texi: Renamed from
89543         doc/posix-functions/setcontext.texi.
89544         * doc/pastposix-functions/swapcontext.texi: Renamed from
89545         doc/posix-functions/swapcontext.texi.
89546         * doc/pastposix-functions/ualarm.texi: Renamed from
89547         doc/posix-functions/ualarm.texi.
89548         * doc/pastposix-functions/usleep.texi: Renamed from
89549         doc/posix-functions/usleep.texi.
89550         * doc/pastposix-functions/vfork.texi: Renamed from
89551         doc/posix-functions/vfork.texi.
89552         * doc/pastposix-functions/wcswcs.texi: Renamed from
89553         doc/posix-functions/wcswcs.texi.
89554         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89555         (Function Substitutes): Update.
89557 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89559         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89560         m4/strerror.m4.
89562 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89563             Bruno Haible  <bruno@clisp.org>
89565         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89567 2008-12-13  Bruno Haible  <bruno@clisp.org>
89569         * modules/strtoull (Depends-on): Remove unistd.
89571 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89573         * modules/strtoull (Depends-on): Add stdlib.
89575 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89577         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89579 2008-12-10  Jim Meyering  <meyering@redhat.com>
89581         gl_ASSERT: don't say assertions are disabled when they're not
89582         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89583         "checking whether to enable assertions... no", when they are in
89584         fact enabled.  This is solely a bug in the output of configure.
89585         In spite of saying "no", NDEBUG was not defined in that case.
89586         Also, as noted by Eric Blake, leave assertions enabled upon
89587         --enable-assert=INVALID.
89589 2008-12-10  Bruno Haible  <bruno@clisp.org>
89591         Change MODULES.html to refer to POSIX:2008 where possible.
89592         * MODULES.html.sh (POSIX2008_URL): New variable.
89593         (posix_headers): Remove sys/timeb, ucontext.
89594         (posix2001_headers): New variable.
89595         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89596         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89597         index, makecontext, mktemp, pthread_attr_getstackaddr,
89598         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89599         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89600         (posix2001_functions): New variable.
89601         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89602         otherwise.
89604 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89606         add missing include to parse-duration.c
89607         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89608         * modules/parse-duration (Depends-on): Add xalloc.
89610         fix sed script reading maint.mk
89611         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89612         (syntax-check-rules): Use it.
89614 2008-12-09  Bruno Haible  <bruno@clisp.org>
89616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89617         MacOS X 10.4/PowerPC.
89618         Reported by Simon Josefsson.
89620 2008-12-08  Jim Meyering  <meyering@redhat.com>
89622         work around mingw's lack of some S_IF definitions
89623         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89624         Reported by Simon Josefsson.
89626 2008-12-08  Bruno Haible  <bruno@clisp.org>
89628         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89629         applied to variables. Needed on MacOS X 10.4/PowerPC.
89630         Reported by Simon Josefsson.
89632 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89633         and Eric Blake  <ebb9@byu.net>
89635         assert: honor --enable-assert
89636         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89637         order to honor --enable-assert, rather than treating it as a
89638         synonym for --disable-assert.
89640 2008-12-08  Jim Meyering  <meyering@redhat.com>
89642         * lib/posixtm.c: Remove now-useless declaration of mktime.
89644         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89646 2008-12-07  Bruno Haible  <bruno@clisp.org>
89648         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89649         test_once): Mark functions as static.
89650         * tests/test-tls.c (test_tls): Likewise.
89652 2008-12-07  Bruno Haible  <bruno@clisp.org>
89654         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89655         iconv_register_autodetect.
89657 2008-12-07  Jim Meyering  <meyering@redhat.com>
89659         posixtm.c: avoid a warning
89660         * lib/posixtm.c (posixtime): Don't initialize tm0.
89661         It's no longer needed to placate gcc4's -Wuninitialized,
89662         and the attempt to placate would elicit a new warning.
89664         unicodeio.c: mark unused parameters
89665         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89666         (fallback_failure_callback): Likewise.
89668 2008-12-07  Bruno Haible  <bruno@clisp.org>
89670         * gnulib-tool (func_create_testdir): When building the tests
89671         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89672         Reported by Simon Josefsson.
89674 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89676         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89678 2008-12-06  Bruno Haible  <bruno@clisp.org>
89680         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89681         Suggested by Eric Blake.
89683 2008-12-06  Bruno Haible  <bruno@clisp.org>
89685         Fix a c-stack test failure on MacOS X.
89686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89687         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89688         handler for SIGBUS as well.
89689         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89690         install a signal handler for SIGBUS as well.
89691         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89693 2008-12-06  Bruno Haible  <bruno@clisp.org>
89695         Advocacy documentation.
89696         * doc/gnulib-intro.texi (Benefits): New section.
89697         * doc/gnulib.texi: Update.
89699 2008-12-06  Bruno Haible  <bruno@clisp.org>
89701         Document the 'manywarnings' module.
89702         * doc/manywarnings.texi: New file.
89703         * doc/gnulib.texi: Include it.
89705 2008-12-05  Eric Blake  <ebb9@byu.net>
89707         tests: silence some gcc warnings
89708         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89709         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89710         type mismatches.
89712 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89713             Bruno Haible  <bruno@clisp.org>
89715         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89717 2008-11-29  Jim Meyering  <meyering@redhat.com>
89719         unicodeio.c: mark unused parameters
89720         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89721         (fallback_failure_callback): Likewise.
89723         fts: fix a thinko
89724         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89725         (set_stat_type): Return S_IF*-valued "type" directly.
89726         Prompted by James Youngman's spotting a related bug.
89727         Confirmed by further testing through find.
89729         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89730         * lib/fts.c (D_TYPE): Define.
89731         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89732         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89733         (s_ifmt_shift_bits): New function.
89734         (set_stat_type): New function.
89735         (fts_build): When not calling fts_stat, call set_stat_type
89736         to propagate dirent.d_type info to fts_read caller.
89737         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89738         fts_statp->st_mode type information may be valid.
89740 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89742         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89743         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89744         <sds@gnu.org>.
89746 2008-11-20  Bruno Haible  <bruno@clisp.org>
89748         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89749         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89750         INCLUDE_NEXT.
89751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89752         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89753         * modules/math (Makefile.am): Substitute
89754         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89757 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89758             Bruno Haible  <bruno@clisp.org>
89760         * lib/stdint.in.h: Define all type macros so that their expansion is
89761         a single typedef'ed token. Fixes a compilation failure in Boost which
89762         does "using ::int8_t;".
89764 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89766         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89767         gl_MANYWARN_ALL_GCC.
89768         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89769         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89770         * modules/manywarnings: New file.
89771         * MODULES.html.sh: Mention manywarnings module.
89773 2008-11-18  Bruno Haible  <bruno@clisp.org>
89775         * doc/gnulib-tool.texi (Unit tests): New section.
89777 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89779         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89780         paths like 'lib/po/foo.po'.
89782 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89784         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89785         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89787 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89789         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89790         parameter works.
89792 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89794         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89796 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89798         * modules/parse-duration-tests: New file.
89799         * tests/test-parse-duration.sh: New file.
89800         * tests/test-parse-duration.c: New file.
89802         New module 'parse-duration'.
89803         * lib/parse-duration.h: New file.
89804         * lib/parse-duration.c: New file.
89805         * modules/parse-duration: New file.
89807 2008-11-17  Bruno Haible  <bruno@clisp.org>
89809         * tests/test-select-out.sh: Comment out the first pipe test.
89810         Reported by Simon Josefsson.
89812 2008-11-17  Bruno Haible  <bruno@clisp.org>
89814         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89816         gl_HOSTENT.
89818 2008-11-17  Bruno Haible  <bruno@clisp.org>
89820         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89821         -lnetwork and -lnet. Needed for Haiku and BeOS.
89823 2008-11-16  Bruno Haible  <bruno@clisp.org>
89825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89827 2008-11-16  Bruno Haible  <bruno@clisp.org>
89829         Avoid test failure on Haiku.
89830         * tests/test-fsync.c: Include <errno.h>.
89831         (main): Don't require that fsync (0) fails.
89833 2008-11-15  Bruno Haible  <bruno@clisp.org>
89835         New module 'hostent'.
89836         * modules/hostent: New file.
89837         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89839 2008-11-15  Bruno Haible  <bruno@clisp.org>
89841         New module 'servent'.
89842         * modules/servent: New file.
89843         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89845 2008-11-15  Bruno Haible  <bruno@clisp.org>
89847         Avoid generating same test program with two different rules.
89848         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89849         test-frexp to test-frexp-nolibm.
89850         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89851         test-frexpl to test-frexpl-nolibm.
89853 2008-11-15  Bruno Haible  <bruno@clisp.org>
89855         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89856         $(FREXPL_LIBM).
89858 2008-11-15  Bruno Haible  <bruno@clisp.org>
89860         * lib/netdb.in.h: Activate the definitions also when the system's
89861         <netdb.h> has 'struct addrinfo'.
89862         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89863         EAI_OVERFLOW or AI_NUMERICSERV.
89864         * doc/posix-headers/netdb.texi: Document the problem.
89866 2008-11-15  Bruno Haible  <bruno@clisp.org>
89868         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89870         Make the 'sched' module work on platforms where <sched.h> exists but
89871         is incomplete (such as Haiku).
89872         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89873         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89874         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89875         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89876         HAVE_STRUCT_SCHED_PARAM.
89877         * modules/sched (Depends-on): Add include_next.
89878         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89879         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89880         * doc/posix-headers/sched.texi: Document the issue.
89882 2008-11-13  Jim Meyering  <meyering@redhat.com>
89884         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89885         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89886         test would fail due to the difference in the Report bugs to ...
89887         line.  The expected address is empty, "<>", while the actual
89888         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89890 2008-11-12  Bruno Haible  <bruno@clisp.org>
89892         lstat: don't compile lstat.c on systems lacking lstat
89893         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89894         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89895         Reported by Daniel P. Berrange via Jim Meyering.
89897 2008-11-12  Jim Meyering  <meyering@redhat.com>
89899         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89901 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89903         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89904         instead.
89906 2008-11-12  Bruno Haible  <bruno@clisp.org>
89908         * lib/unicodeio.c: Include unistr.h.
89909         (utf8_wctomb): Remove function.
89910         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89912 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89914         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89915         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89916         <bruno@clisp.org>.
89917         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89919 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89921         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89922         * doc/gnulib.texi: Add section for warnings.
89924 2008-11-11  Bruno Haible  <bruno@clisp.org>
89926         * lib/sockets.h: Add a comment.
89928 2008-11-11  Karl Berry  <karl@gnu.org>
89930         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89932 2008-11-11  Eric Blake  <ebb9@byu.net>
89934         fdl.texi: avoid git symlinks
89935         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89937 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89939         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89941 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89943         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89944         (gl_WARN_ADD): Substitute $2 if literal.
89946 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89948         * m4/warning.m4: Remove.
89950 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89952         * m4/warnings.m4: Almost complete rewrite. :-)
89954 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89956         * modules/warnings: New module.
89957         * m4/warnings.m4: New file.
89958         * MODULES.html.sh: Mention warnings module.
89959         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89960         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89962 2008-11-10  Eric Blake  <ebb9@byu.net>
89964         fdl.texi: make a symlink to the latest version
89965         * doc/standards.texi: Revert today's earlier change.
89966         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89967         * doc/fdl.texi: ...and replace this with a symlink to the newer
89968         fdl-1.3.texi.
89970 2008-11-10  Bruno Haible  <bruno@clisp.org>
89972         * tests/test-select-fd.c (main): Accept the result file name as fourth
89973         argument.
89974         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89975         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89977 2008-11-10  Bruno Haible  <bruno@clisp.org>
89979         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89980         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89981         as autoconf-substituted macros.
89982         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89984         gl_NETDB_H_DEFAULTS. Set these variables.
89985         * modules/netdb (Makefile.am): Substitute these variables.
89987 2008-11-10  Eric Blake  <ebb9@byu.net>
89989         standards.texi: include correct file for FDL 1.3
89990         * doc/standards.texi (GNU Free Documentation License): Change
89991         include file to pull in FDL 1.3, not 1.2.
89993         fdl.texi: revert accidental change to license
89994         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89996 2008-11-10  Bruno Haible  <bruno@clisp.org>
89998         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89999         cross-compiling guesses also when the native compile gives no result.
90001 2008-11-10  Bruno Haible  <bruno@clisp.org>
90003         * lib/spawni.c (__spawni): Force variable into the stack.
90005 2008-11-10  Bruno Haible  <bruno@clisp.org>
90007         Add support for Haiku.
90008         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
90009         glibc and BeOS, but also on Haiku.
90010         * lib/fpurge.c (fpurge): Likewise.
90011         * lib/freadable.c (freadable): Likewise.
90012         * lib/freadahead.c (freadahead): Likewise.
90013         * lib/freading.c (freading): Likewise.
90014         * lib/freadptr.c (freadptr): Likewise.
90015         * lib/freadseek.c (freadptrinc): Likewise.
90016         * lib/fseeko.c (rpl_fseeko): Likewise.
90017         * lib/fseterr.c (fseterr): Likewise.
90018         * lib/fwritable.c (fwritable): Likewise.
90019         * lib/fwriting.c (fwriting): Likewise.
90020         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
90022 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90024         * lib/config.charset: Treat Haiku like BeOS.
90026 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90028         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
90029         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
90031 2008-11-08  Bruno Haible  <bruno@clisp.org>
90033         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
90034         AC_CACHE_CHECK.
90036 2008-11-08  Bruno Haible  <bruno@clisp.org>
90038         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
90040 2008-11-08  Bruno Haible  <bruno@clisp.org>
90042         * tests/test-select-fd.c: New file.
90043         * tests/test-select-in.sh: New file.
90044         * tests/test-select-out.sh: New file.
90045         * tests/test-select-stdin.c: New file.
90046         * modules/select-tests (Files): Add the new files.
90047         (Depends-on): Add gettimeofday.
90048         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
90049         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
90050         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
90052 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
90053             Bruno Haible  <bruno@clisp.org>
90055         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
90057 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
90059         * build-aux/pmccabe2html: Added support for C++ source files.
90061 2008-11-05  Ben Pfaff  <blp@gnu.org>
90063         Fix lib/close.c build on Windows.
90064         * modules/close (Files): Add lib/w32sock.h.
90066 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
90068         Accept Bison's NEWS format.
90069         * build-aux/announce-gen (print_news_deltas): Tweak
90070         $re_prefix.
90072 2008-11-04  Bruno Haible  <bruno@clisp.org>
90074         * modules/random_r (Maintainer): Add glibc.
90076 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90078         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
90079         by karl@freefriends.org (Karl Berry).
90080         * doc/alloca.texi: Likewise.
90081         * doc/c-ctype.texi: Likewise.
90082         * doc/c-strcase.texi: Likewise.
90083         * doc/c-strcaseeq.texi: Likewise.
90084         * doc/c-strcasestr.texi: Likewise.
90085         * doc/c-strstr.texi: Likewise.
90086         * doc/c-strtod.texi: Likewise.
90087         * doc/c-strtold.texi: Likewise.
90088         * doc/ctime.texi: Likewise.
90089         * doc/error.texi: Likewise.
90090         * doc/fdl.texi: Likewise.
90091         * doc/gcd.texi: Likewise.
90092         * doc/getdate.texi: Likewise.
90093         * doc/gnulib-intro.texi: Likewise.
90094         * doc/gnulib-tool.texi: Likewise.
90095         * doc/gnulib.texi: Likewise.
90096         * doc/inet_ntoa.texi: Likewise.
90097         * doc/maintain.texi: Likewise.
90098         * doc/make-stds.texi: Likewise.
90099         * doc/quote.texi: Likewise.
90100         * doc/regexprops-generic.texi: Likewise.
90101         * doc/standards.texi: Likewise.
90102         * doc/verify.texi: Likewise.
90103         * doc/visibility.texi: Likewise.
90104         * doc/gnulib.texi (GNU Free Documentation License): Include
90105         fdl-1.3.texi instead of fdl.texi.
90107 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90109         * doc/fdl-1.3.texi: New file, from
90110         <http://www.gnu.org/licenses/fdl-1.3.texi>.
90111         * modules/fdl-1.3: Add.
90112         * MODULES.html.sh: Add fdl-1.3.
90114 2008-11-03  Bruno Haible  <bruno@clisp.org>
90116         Make determination of absolute name of header file work with AIX xlc.
90117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
90118         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
90119         preprocessing.
90120         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90121         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
90123 2008-11-03  Simon Josefsson  <simon@josefsson.org>
90125         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
90126         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
90127         <ludo@gnu.org>.
90129 2008-11-02  Bruno Haible  <bruno@clisp.org>
90131         Mark 'strpbrk' obsolete.
90132         * modules/strpbrk (Status, Notice): New sections.
90133         * modules/strtok_r (Depends-on): Add strpbrk.
90135 2008-11-02  Bruno Haible  <bruno@clisp.org>
90137         Mark 'strdup' obsolete.
90138         * modules/strdup (Status, Notice): New sections.
90139         * modules/findprog (Depends-on): Add strdup.
90140         * modules/getaddrinfo (Depends-on): Likewise.
90141         * modules/localename (Depends-on): Likewise.
90142         * modules/relocatable-lib (Depends-on): Likewise.
90143         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
90144         * modules/relocatable-prog (Depends-on): Likewise.
90145         * modules/trim (Depends-on): Likewise.
90146         * modules/unictype/gen-ctype (Depends-on): Likewise.
90147         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90149 2008-11-02  Bruno Haible  <bruno@clisp.org>
90151         Mark 'strcspn' obsolete.
90152         * modules/strcspn (Status, Notice): New sections.
90154 2008-11-02  Bruno Haible  <bruno@clisp.org>
90156         Mark 'rmdir' obsolete.
90157         * modules/rmdir (Status, Notice): New sections.
90158         * modules/clean-temp (Depends-on): Add rmdir.
90159         * modules/openat (Depends-on): Likewise.
90161 2008-11-02  Bruno Haible  <bruno@clisp.org>
90163         Mark 'raise' obsolete.
90164         * modules/raise (Status, Notice): New sections.
90165         (Include): Specify <signal.h>.
90166         * modules/stdio (Depends-on): Add raise.
90167         * modules/write (Depends-on): Likewise.
90169 2008-11-02  Bruno Haible  <bruno@clisp.org>
90171         Mark 'memset' obsolete.
90172         * modules/memset (Status, Notice): New sections.
90174 2008-11-02  Bruno Haible  <bruno@clisp.org>
90176         Mark 'memmove' obsolete.
90177         * modules/memmove (Status, Notice): New sections.
90178         * modules/argp (Depends-on): Add memmove.
90179         * modules/argz (Depends-on): Likewise.
90180         * modules/canonicalize (Depends-on): Likewise.
90181         * modules/canonicalize-lgpl (Depends-on): Likewise.
90182         * modules/fts (Depends-on): Likewise.
90183         * modules/getcwd (Depends-on): Likewise.
90184         * modules/human (Depends-on): Likewise.
90185         * modules/regex (Depends-on): Likewise.
90186         * modules/striconveh (Depends-on): Likewise.
90187         * modules/trim (Depends-on): Likewise.
90188         * modules/unistr/u8-move (Depends-on): Likewise.
90189         * modules/unistr/u16-move (Depends-on): Likewise.
90190         * modules/unistr/u32-move (Depends-on): Likewise.
90192 2008-11-02  Bruno Haible  <bruno@clisp.org>
90194         Mark 'memcpy' obsolete.
90195         * modules/memcpy (Status, Notice): New sections.
90197 2008-11-02  Bruno Haible  <bruno@clisp.org>
90199         Mark 'memcmp' obsolete.
90200         * modules/memcmp (Status, Notice): New sections.
90201         * modules/argmatch (Depends-on): Add memchr.
90202         * modules/backupfile (Depends-on): Likewise.
90203         * modules/c-strcasestr (Depends-on): Likewise.
90204         * modules/crypto/des (Depends-on): Likewise.
90205         * modules/csharpcomp (Depends-on): Likewise.
90206         * modules/fnmatch (Depends-on): Likewise.
90207         * modules/git-merge-changelog (Depends-on): Likewise.
90208         * modules/isnand (Depends-on): Likewise.
90209         * modules/isnand-nolibm (Depends-on): Likewise.
90210         * modules/isnanf (Depends-on): Likewise.
90211         * modules/isnanf-nolibm (Depends-on): Likewise.
90212         * modules/isnanl (Depends-on): Likewise.
90213         * modules/isnanl-nolibm (Depends-on): Likewise.
90214         * modules/mbchar (Depends-on): Likewise.
90215         * modules/memcoll (Depends-on): Likewise.
90216         * modules/quotearg (Depends-on): Likewise.
90217         * modules/regex (Depends-on): Likewise.
90218         * modules/relocatable-prog (Depends-on): Likewise.
90219         * modules/same (Depends-on): Likewise.
90220         * modules/signbit (Depends-on): Likewise.
90221         * modules/strcasestr-simple (Depends-on): Likewise.
90222         * modules/unictype/gen-ctype (Depends-on): Likewise.
90223         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90224         * modules/uniname/uniname (Depends-on): Likewise.
90225         * modules/unistr/u8-cmp (Depends-on): Likewise.
90227 2008-11-02  Bruno Haible  <bruno@clisp.org>
90229         Mark 'memchr' obsolete.
90230         * modules/memchr (Status, Notice): New sections.
90231         * modules/argp (Depends-on): Add memchr.
90232         * modules/base64 (Depends-on): Likewise.
90233         * modules/c-strcasestr (Depends-on): Likewise.
90234         * modules/chdir-long (Depends-on): Likewise.
90235         * modules/fnmatch (Depends-on): Likewise.
90236         * modules/getsubopt (Depends-on): Likewise.
90237         * modules/git-merge-changelog (Depends-on): Likewise.
90238         * modules/glob (Depends-on): Likewise.
90239         * modules/strcasestr-simple (Depends-on): Likewise.
90240         * modules/strnlen (Depends-on): Likewise.
90242 2008-11-02  Bruno Haible  <bruno@clisp.org>
90244         Mark 'atexit' obsolete.
90245         * modules/atexit (Status, Notice): New sections.
90246         * modules/chdir-long (Depends-on): Add atexit.
90247         * modules/wait-process (Depends-on): Likewise.
90249 2008-11-02  Bruno Haible  <bruno@clisp.org>
90251         * gnulib-tool: New option --with-obsolete.
90252         (func_usage): Document it.
90253         (func_modules_transitive_closure): Drop obsolete dependencies if
90254         incobsolete is not true.
90255         (func_import): Read and save the incobsolete variable to the cache.
90257 2008-11-02  Bruno Haible  <bruno@clisp.org>
90259         * modules/TEMPLATE-EXTENDED: New field 'Status'.
90260         * gnulib-tool: New option --extract-status.
90261         (func_usage): Document it.
90262         (sed_extract_prog): Recognize it.
90263         (func_get_status): New function.
90265 2008-10-30  Simon Josefsson  <simon@josefsson.org>
90267         * modules/sockets (License): Change from LGPL to LGPLv2+.
90269 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90271         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
90273 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90275         * MODULES.html.sh (Support for systems lacking POSIX:2001):
90276         Mention times and sys_times.
90277         * modules/sys_times, modules/sys_times-tests: New modules.
90278         * modules/times, modules/times-tests: Likewise
90279         * m4/sys_times_h.m4: New file.
90280         * lib/sys_times.in.h: Likewise
90281         * lib/times.c: Likewise.
90282         * tests/test-sys_times.c: Likewise.
90283         * tests/test-times.c: Likewise.
90284         * doc/posix-headers/sys_times.texi: Update.
90285         * doc/posix-functions/times.texi: Update.
90287 2008-10-28  Jim Meyering  <meyering@redhat.com>
90289         * modules/tempname (Depends-on): Add lstat.
90291         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
90293 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90295         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
90296         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
90297         using idiom used elsewhere in gnulib.
90299 2008-10-27  Jim Meyering  <meyering@redhat.com>
90301         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
90303 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90305         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
90306         TESTS_ENVIRONMENT, for shell scripts that needs to call built
90307         programs.
90308         * tests/test-argp-2.sh: Use $EXEEXT when needed.
90310 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90312         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
90314 2008-10-27  Bruno Haible  <bruno@clisp.org>
90316         * tests/test-lstat.c: Include <stdio.h>.
90318 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90320         * modules/lstat-tests: New module.
90321         * tests/test-lstat.c: New file.
90323 2008-10-26  Jim Meyering  <meyering@redhat.com>
90325         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90327 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90328             Bruno Haible  <bruno@clisp.org>
90330         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90331         * modules/configmake (Include): Add a note that the include must come
90332         after all system headers.
90333         * lib/javaversion.c: Include configmake.h after all other includes.
90335 2008-10-26  Bruno Haible  <bruno@clisp.org>
90337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90338         HAVE_STRUCT_RANDOM_DATA to 1.
90339         (gl_STDLIB_H): Simplify.
90341 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90343         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90344         substitute HAVE_STRUCT_RANDOM_DATA.
90345         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90346         random_data.
90347         * modules/stdlib (Makefile.am): Substitute
90348         HAVE_STRUCT_RANDOM_DATA.
90350 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90352         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90353         * doc/gnulib-intro.texi (Copyright): Likewise.
90355 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90357         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90358         findings.
90360 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90361             Bruno Haible  <bruno@clisp.org>
90363         * lib/unistd.in.h: Include <winsock2.h>.
90364         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90365         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90366         Provide dummy declarations.
90367         (gethostname): Override.
90368         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90369         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90370         gl_PREREQ_SYS_H_WINSOCK2.
90371         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90372         * doc/posix-functions/gethostname.texi: More details.
90374 2008-10-25  Bruno Haible  <bruno@clisp.org>
90376         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90377         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90378         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90380         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90381         here ...
90382         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90384         gl_UNISTD_H_DEFAULTS.
90386 2008-10-25  Eric Blake  <ebb9@byu.net>
90388         signbit: avoid spurious compiler failure
90389         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90390         declarations inside function.
90392 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90393             Bruno Haible  <bruno@clisp.org>
90395         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90396         * modules/random_r (Depends-on): Add stdint.
90398 2008-10-24  Bruno Haible  <bruno@clisp.org>
90400         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90401         Eggert.
90402         * modules/strerror (License): Likewise.
90404 2008-10-24  Jim Meyering  <meyering@redhat.com>
90406         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90407         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90409 2008-10-24  Eric Blake  <ebb9@byu.net>
90411         getgroups: fix compilation when getgroups is available
90412         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90413         but with <config.h> override of getgroups disabled.
90415 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90417         * doc/gnulib.texi (Header files): Add note about C++ problems.
90418         Explained by Bruno Haible <bruno@clisp.org>.
90420 2008-10-23  Bruno Haible  <bruno@clisp.org>
90422         Define a dummy SA_NODEFER macro on Interix.
90423         * lib/signal.in.h (SA_NODEFER): Define fallback.
90424         Reported by Aleksey Cheusov <cheusov@tut.by> via
90425         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90427 2008-10-23  Bruno Haible  <bruno@clisp.org>
90429         * modules/freadahead (License): Change to LGPLv2+.
90430         Suggested by Simon Josefsson.
90432 2008-10-23  Jim Meyering  <meyering@redhat.com>
90434         random_r: new module
90435         * modules/random_r: New file.
90436         * m4/random_r.m4: New file.
90437         * lib/random_r.c: New file, from glibc.
90438         * modules/random_r-tests: New file.
90439         * tests/test-random_r.c: New file.
90440         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90441          Declare.
90442         (RAND_MAX): Define.
90443         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90444         * modules/stdlib: Substitute them, too.
90445         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90446         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90447         * doc/glibc-functions/random_r.texi: Likewise.
90448         * doc/glibc-functions/setstate_r.texi: Likewise.
90449         * doc/glibc-functions/srandom_r.texi: Likewise.
90450         * config/srclist.txt: Mention it.
90452 2008-10-23  David Lutterkort  <lutter@redhat.com>
90454         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90455         link requirement
90457 2008-10-23  Jim Meyering  <meyering@redhat.com>
90459         selinux-h: mark parameters of stub functions as intentionally unused
90460         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90461         * lib/se-context.in.h: Likewise.
90463 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90465         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90467 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90469         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90471 2008-10-22  Eric Blake  <ebb9@byu.net>
90473         glthread/thread: avoid compiler warning
90474         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90475         Add unreachable abort to silence compiler.
90477 2008-10-22  Eric Blake  <ebb9@byu.net>
90479         netdb: also supply struct addrinfo for cygwin 1.5.x
90480         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90481         older cygwin.
90482         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90483         cygwin.
90484         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90486 2008-10-22  Bruno Haible  <bruno@clisp.org>
90488         * users.txt: Update entry about pspp.
90490 2008-10-21  Bruno Haible  <bruno@clisp.org>
90492         Simplification.
90493         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90494         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90496         Simplification.
90497         * lib/ioctl.c (ioctl): Don't undefine.
90498         * lib/socket.c (socket): Don't undefine.
90500         Remove unused module indicator macros.
90501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90502         GNULIB_$1 as a C macro.
90504         * doc/posix-functions/close.texi: Undo last change.
90505         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90506         Windows platforms.
90508 2008-10-21  Bruno Haible  <bruno@clisp.org>
90510         Add gethostname() declaration to <unistd.h>.
90511         * lib/unistd.in.h (gethostname): New declaration.
90512         * lib/gethostname.c: Include <unistd.h>.
90513         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90514         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90516         and HAVE_GETHOSTNAME.
90517         * modules/gethostname (Depends-on): Add unistd.
90518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90519         (Include): Specify <unistd.h>.
90520         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90521         HAVE_GETHOSTNAME.
90522         * tests/test-gethostname.c: Include <unistd.h> first.
90524 2008-10-21  Bruno Haible  <bruno@clisp.org>
90526         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90527         * modules/select-tests (Depends-on): Likewise.
90528         Reported by Simon Josefsson.
90530 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90532         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90533         * lib/accept.c: New file, based on winsock.c.
90534         * lib/bind.c: New file, based on winsock.c.
90535         * lib/connect.c: New file, based on winsock.c.
90536         * lib/getpeername.c: New file, based on winsock.c.
90537         * lib/getsockname.c: New file, based on winsock.c.
90538         * lib/getsockopt.c: New file, based on winsock.c.
90539         * lib/ioctl.c: New file, based on winsock.c.
90540         * lib/listen.c: New file, based on winsock.c.
90541         * lib/recv.c: New file, based on winsock.c.
90542         * lib/recvfrom.c: New file, based on winsock.c.
90543         * lib/send.c: New file, based on winsock.c.
90544         * lib/sendto.c: New file, based on winsock.c.
90545         * lib/setsockopt.c: New file, based on winsock.c.
90546         * lib/shutdown.c: New file, based on winsock.c.
90547         * lib/socket.c: New file, based on winsock.c.
90548         * lib/w32sock.h: New file, based on winsock.c.
90549         * lib/winsock.c: Remove file.
90550         * modules/accept: Likewise.
90551         * modules/bind: Likewise.
90552         * modules/connect: Likewise.
90553         * modules/getpeername: Likewise.
90554         * modules/getsockname: Likewise.
90555         * modules/getsockopt: Likewise.
90556         * modules/ioctl: Likewise.
90557         * modules/listen: Likewise.
90558         * modules/recv: Likewise.
90559         * modules/recvfrom: Likewise.
90560         * modules/send: Likewise.
90561         * modules/sendto: Likewise.
90562         * modules/setsockopt: Likewise.
90563         * modules/shutdown: Likewise.
90564         * modules/socket: Use socket.c instead of winsock.c.
90565         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90566         * doc/posix-functions/accept.texi: Doc fix.
90567         * doc/posix-functions/bind.texi: Doc fix.
90568         * doc/posix-functions/close.texi: Doc fix.
90569         * doc/posix-functions/connect.texi: Doc fix.
90570         * doc/posix-functions/getpeername.texi: Doc fix.
90571         * doc/posix-functions/getsockname.texi: Doc fix.
90572         * doc/posix-functions/getsockopt.texi: Doc fix.
90573         * doc/posix-functions/ioctl.texi: Doc fix.
90574         * doc/posix-functions/listen.texi: Doc fix.
90575         * doc/posix-functions/recv.texi: Doc fix.
90576         * doc/posix-functions/recvfrom.texi: Doc fix.
90577         * doc/posix-functions/send.texi: Doc fix.
90578         * doc/posix-functions/sendto.texi: Doc fix.
90579         * doc/posix-functions/setsockopt.texi: Doc fix.
90580         * doc/posix-functions/shutdown.texi: Doc fix.
90581         * doc/posix-functions/socket.texi: Doc fix.
90583 2008-10-20  Bruno Haible  <bruno@clisp.org>
90585         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90586         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90587         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90588         as an alias for SIGABRT.
90589         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90590         (sigaction): Map it to SIGABRT.
90591         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90593 2008-10-20  Bruno Haible  <bruno@clisp.org>
90595         * lib/fts.c: Don't include lstat.h.
90596         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90598         Move the lstat() declaration to <sys/stat.h>.
90599         * lib/lstat.h: Remove file.
90600         * lib/sys_stat.in.h: Add special invocation convention.
90601         (lstat): New declaration.
90602         * lib/lstat.c (orig_lstat): New function.
90603         (rpl_lstat): Use orig_lstat instead of lstat.
90604         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90605         AC_C_INLINE. Set REPLACE_LSTAT.
90606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90607         and REPLACE_LSTAT.
90608         * modules/lstat (Files): Remove lib/lstat.h.
90609         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90610         (Include): Specify <sys/stat.h> instead of lstat.h.
90611         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90612         REPLACE_LSTAT.
90613         * NEWS: Mention the change.
90615 2008-10-20  Bruno Haible  <bruno@clisp.org>
90617         * modules/posix_spawn-tests: New file.
90618         * tests/test-posix_spawn3.c: New file.
90620 2008-10-20  Bruno Haible  <bruno@clisp.org>
90622         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90623         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90624         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90625         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90626         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90628 2008-10-20  Bruno Haible  <bruno@clisp.org>
90630         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90631         of posix_spawn on AIX 5.3.
90633 2008-10-20  Bruno Haible  <bruno@clisp.org>
90635         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90637 2008-10-20  Bruno Haible  <bruno@clisp.org>
90639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90640         of AC_LANG_PROGRAM.
90642 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90644         * lib/netdb.in.h: Don't define GNU specific constants until they
90645         are supported or needed.  Reported by Bruno Haible
90646         <bruno@clisp.org>.
90648 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90650         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90652 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90654         * lib/getaddrinfo.h: Remove file.
90655         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90656         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90657         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90658         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90659         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90660         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90661         * tests/test-getaddrinfo.c: Likewise.
90662         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90663         * NEWS: Mention change.
90665 2008-10-19  Bruno Haible  <bruno@clisp.org>
90667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90669 2008-10-19  Bruno Haible  <bruno@clisp.org>
90671         * lib/wait-process.c: Include simply <sys/wait.h>.
90672         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90673         WIFSTOPPED): Remove fallback definitions.
90674         * modules/wait-process (Depends-on): Add sys_wait.
90676         New module 'sys_wait'.
90677         * modules/sys_wait: New file.
90678         * lib/sys_wait.in.h: New file, partially copied from
90679         lib/wait-process.c.
90680         * m4/sys_wait_h.m4: New file.
90681         * doc/posix-headers/sys_wait.texi: Mention the new module.
90683 2008-10-19  Bruno Haible  <bruno@clisp.org>
90685         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90687 2008-10-19  Bruno Haible  <bruno@clisp.org>
90689         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90690         * lib/wait-process.c (WAIT_T): Remove type.
90691         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90692         (wait_subprocess): Update.
90694 2008-10-19  Bruno Haible  <bruno@clisp.org>
90696         New module 'atoll'.
90697         * modules/atoll: New file.
90698         * lib/stdlib.in.h (atoll): New declaration.
90699         * lib/atoll.c: New file, from glibc with modifications.
90700         * m4/atoll.m4: New file.
90701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90702         HAVE_ATOLL.
90703         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90704         * doc/posix-functions/atoll.texi: Mention the new module.
90706 2008-10-19  Bruno Haible  <bruno@clisp.org>
90708         Add strtoull() declaration to <stdlib.h>.
90709         * lib/stdlib.in.h (strtoull): New declaration.
90710         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90711         Set HAVE_STRTOULL.
90712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90713         HAVE_STRTOULL.
90714         * modules/strtoull (Depends-on): Add stdlib.
90715         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90716         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90717         HAVE_STRTOULL.
90719 2008-10-19  Bruno Haible  <bruno@clisp.org>
90721         Add strtoll() declaration to <stdlib.h>.
90722         * lib/stdlib.in.h (strtoll): New declaration.
90723         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90724         Set HAVE_STRTOLL.
90725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90726         HAVE_STRTOLL.
90727         * modules/strtoll (Depends-on): Add stdlib.
90728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90729         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90731 2008-10-19  Bruno Haible  <bruno@clisp.org>
90733         * modules/bcopy (Depends-on): Add strings.
90734         (Include): Specify <strings.h>.
90736 2008-10-19  Bruno Haible  <bruno@clisp.org>
90738         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90740 2008-10-19  Bruno Haible  <bruno@clisp.org>
90742         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90743         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90744         mingw.
90746 2008-10-19  Bruno Haible  <bruno@clisp.org>
90748         * lib/atanl.c: Don't include isnanl.h.
90749         * lib/cosl.c: Likewise.
90750         * lib/ldexpl.c: Likewise.
90751         * lib/logl.c: Likewise.
90752         * lib/sinl.c: Likewise.
90753         * lib/sqrtl.c: Likewise.
90754         * lib/tanl.c: Likewise.
90756         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90757         * lib/isnanf.h: Remove file.
90758         * lib/isnand.h: Remove file.
90759         * lib/isnanl.h: Remove file.
90760         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90761         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90762         macros.
90763         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90764         HAVE_ISNANF, don't define it as a C macro.
90765         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90766         HAVE_ISNAND, don't define it as a C macro.
90767         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90768         HAVE_ISNANL, don't define it as a C macro.
90769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90770         HAVE_ISNAN[FDL].
90771         * modules/isnanf (Files): Remove lib/isnanf.h.
90772         (Depends-on): Add math.
90773         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90774         (Include): Specify <math.h> instead of isnanf.h.
90775         * modules/isnand (Files): Remove lib/isnand.h.
90776         (Depends-on): Add math.
90777         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90778         (Include): Specify <math.h> instead of isnand.h.
90779         * modules/isnanl (Files): Remove lib/isnanl.h.
90780         (Depends-on): Add math.
90781         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90782         (Include): Specify <math.h> instead of isnanl.h.
90783         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90784         HAVE_ISNAN[FDL].
90785         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90786         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90787         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90788         * NEWS: Mention the change.
90790 2008-10-18  Bruno Haible  <bruno@clisp.org>
90792         Add getusershell(), setusershell(), endusershell() declarations to
90793         <unistd.h>.
90794         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90795         declarations.
90796         * lib/getusershell.c: Include unistd.h.
90797         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90798         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90799         HAVE_GETUSERSHELL.
90800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90801         and HAVE_GETUSERSHELL.
90802         * modules/getusershell (Depends-on): Add unistd, extensions.
90803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90804         (Include): Specify <unistd.h>.
90805         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90806         HAVE_GETUSERSHELL.
90808 2008-10-18  Bruno Haible  <bruno@clisp.org>
90810         Add a getloadavg() declaration to <stdlib.h>.
90811         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90812         getloadavg declaration.
90813         (getloadavg): New declaration.
90814         * lib/getloadavg.c: Include <stdlib.h> first.
90815         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90816         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90817         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90819         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90820         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90822         (Include): Specify <stdlib.h>.
90823         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90824         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90826 2008-10-18  Bruno Haible  <bruno@clisp.org>
90828         * lib/dirchownmod.c: Don't include lchmod.h.
90830         Move the lchmod() declaration to <sys/stat.h>.
90831         * lib/lchmod.h: Remove file.
90832         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90833         (lchmod): New declaration, moved here from lib/lchown.h.
90834         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90835         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90837         and HAVE_LCHMOD.
90838         * modules/lchmod (Files): Remove lib/lchmod.h.
90839         (Depends-on): Add sys_stat, extensions.
90840         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90841         (Include): Specify <sys/stat.h> instead of lchmod.h.
90842         * modules/sys_stat (Depends-on): Add link-warning.
90843         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90844         definition of GL_LINK_WARNING.
90845         * NEWS: Mention the change.
90847 2008-10-18  Bruno Haible  <bruno@clisp.org>
90849         * lib/fchdir.c: Don't include dirfd.h.
90850         * lib/fts.c: Likewise.
90851         * lib/getcwd.c: Likewise.
90852         * lib/glob.c: Likewise.
90854         Move the dirfd() declaration to <dirent.h>.
90855         * lib/dirfd.h: Remove file.
90856         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90857         (dirfd): New declaration.
90858         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90859         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90860         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90861         HAVE_DECL_DIRFD.
90862         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90863         HAVE_DECL_DIRFD.
90864         * modules/dirfd (Files): Remove lib/dirfd.h.
90865         (Depends-on): Add dirent, extensions.
90866         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90867         (Include): Specify <dirent.h> instead of dirfd.h.
90868         * modules/dirent (Depends-on): Add link-warning.
90869         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90870         definition of GL_LINK_WARNING.
90871         * NEWS: Mention the change.
90873 2008-10-18  Bruno Haible  <bruno@clisp.org>
90875         Move the euidaccess() declaration to <unistd.h>.
90876         * lib/euidaccess.h: Remove file.
90877         * lib/unistd.in.h (euidaccess): New declaration.
90878         * lib/euidaccess.c: Don't include euidaccess.h.
90879         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90880         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90882         and HAVE_EUIDACCESS.
90883         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90884         (Depends-on): Add unistd.
90885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90886         (Include): Specify <unistd.h> instead of euidaccess.h.
90887         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90888         HAVE_EUIDACCESS.
90889         * NEWS: Mention the change.
90891 2008-10-18  Bruno Haible  <bruno@clisp.org>
90893         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90895         Move the getdomainname() declaration to <unistd.h>.
90896         * lib/getdomainname.h: Remove file.
90897         * lib/unistd.in.h (getdomainname): New declaration.
90898         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90899         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90900         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90901         HAVE_GETDOMAINNAME.
90902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90903         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90904         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90905         (Depends-on): Add unistd, extensions.
90906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90907         (Includes): Specify <unistd.h> instead of getdomainname.h.
90908         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90909         HAVE_GETDOMAINNAME.
90910         * NEWS: Mention the change.
90912 2008-10-18  Bruno Haible  <bruno@clisp.org>
90914         * modules/dirent: New file.
90915         * m4/dirent_h.m4: New file.
90916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90917         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90918         * modules/fchdir (Files): Remove lib/dirent.in.h.
90919         (Depends-on): Add dirent.
90920         (Makefile.am): Move rules to modules/dirent.
90921         * doc/posix-headers/dirent.texi: Mention the new module.
90923 2008-10-18  Bruno Haible  <bruno@clisp.org>
90925         Avoid -Wunused-parameter warnings in public gnulib header files.
90926         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90927         macro.
90928         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90930 2008-10-18  Bruno Haible  <bruno@clisp.org>
90932         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90933         * doc/glibc-functions/error.texi: Mention the module 'error'.
90934         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90935         * doc/glibc-functions/getdomainname.texi: Mention the module
90936         'getdomainname'.
90937         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90938         * doc/glibc-functions/getpagesize.texi: Mention the module
90939         'getpagesize'.
90940         * doc/glibc-functions/getusershell.texi: Mention the module
90941         'getusershell'.
90942         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90943         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90944         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90945         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90946         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90947         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90948         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90949         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90950         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90951         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90952         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90953         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90954         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90955         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90957 2008-10-17  Bruno Haible  <bruno@clisp.org>
90959         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90960         HP-UX and IRIX, use -0.0L.
90961         * tests/test-ceill.c (minus_zero): Likewise.
90962         * tests/test-floorl.c (minus_zero): Likewise.
90963         * tests/test-frexpl.c (minus_zero): Likewise.
90964         * tests/test-isnan.c (minus_zerol): Likewise.
90965         * tests/test-isnanl.h (minus_zero): Likewise.
90966         * tests/test-ldexpl.c (minus_zero): Likewise.
90967         * tests/test-roundl.c (minus_zero): Likewise.
90968         * tests/test-signbit.c (minus_zerol): Likewise.
90969         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90970         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90971         * tests/test-truncl.c (minus_zero): Likewise.
90972         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90973         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90974         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90975         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90977 2008-10-17  Bruno Haible  <bruno@clisp.org>
90979         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90980         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90981         that it gets activated only for gcc >= 3.0.
90982         * lib/dirent.in.h: Likewise.
90983         * lib/errno.in.h: Likewise.
90984         * lib/fcntl.in.h: Likewise.
90985         * lib/float.in.h: Likewise.
90986         * lib/iconv.in.h: Likewise.
90987         * lib/inttypes.in.h: Likewise.
90988         * lib/locale.in.h: Likewise.
90989         * lib/math.in.h: Likewise.
90990         * lib/netdb.in.h: Likewise.
90991         * lib/netinet_in.in.h: Likewise.
90992         * lib/search.in.h: Likewise.
90993         * lib/signal.in.h: Likewise.
90994         * lib/spawn.in.h: Likewise.
90995         * lib/stdarg.in.h: Likewise.
90996         * lib/stdint.in.h: Likewise.
90997         * lib/stdio.in.h: Likewise.
90998         * lib/stdlib.in.h: Likewise.
90999         * lib/string.in.h: Likewise.
91000         * lib/strings.in.h: Likewise.
91001         * lib/sys_file.in.h: Likewise.
91002         * lib/sys_ioctl.in.h: Likewise.
91003         * lib/sys_select.in.h: Likewise.
91004         * lib/sys_socket.in.h: Likewise.
91005         * lib/sys_stat.in.h: Likewise.
91006         * lib/sys_time.in.h: Likewise.
91007         * lib/sysexits.in.h: Likewise.
91008         * lib/time.in.h: Likewise.
91009         * lib/unistd.in.h: Likewise.
91010         * lib/wchar.in.h: Likewise.
91011         * lib/wctype.in.h: Likewise.
91012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91014 2008-10-17  Jim Meyering  <meyering@redhat.com>
91016         ignore-value: don't depend on inline module
91017         * modules/ignore-value (Depends-on): Remove 'inline'.
91018         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
91019         Suggestion from Bruno Haible.
91021 2008-10-17  Bruno Haible  <bruno@clisp.org>
91023         New implementation of condition variables for Win32.
91024         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
91025         (gl_linked_waitqueue_t): New type.
91026         (gl_cond_t): Use it.
91027         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
91028         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
91029         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
91030         (glthread_cond_init_func, glthread_cond_wait_func,
91031         glthread_cond_timedwait_func, glthread_cond_signal_func,
91032         glthread_cond_broadcast_func, glthread_cond_destroy_func):
91033         Reimplemented on the basis of gl_linked_waitqueue_t.
91034         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
91035         gl_waitqueue_t.
91036         (gl_rwlock_t): Update.
91037         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
91039 2008-10-17  Simon Josefsson  <simon@josefsson.org>
91041         * modules/recvfrom (Depends-on): Add dependency on getpeername.
91042         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91044 2008-10-17  Jim Meyering  <meyering@redhat.com>
91046         ignore-value: new module
91047         * modules/ignore-value: New file.
91048         * lib/ignore-value.h: New file.
91049         * MODULES.html.sh (Compiler warning management): New section,
91050         just for this module.  More to come.
91052 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91054         open-safer.c: avoid 'signed and unsigned in conditional...' warning
91055         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
91056         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
91058 2008-10-16  Jim Meyering  <meyering@redhat.com>
91060         openat-die.c: avoid 'no previous prototype' warning
91061         * lib/openat-die.c: Include "openat.h".
91062         Reported by Reuben Thomas <rrt@sc3d.org>.
91064 2008-10-16  Simon Josefsson  <simon@josefsson.org>
91066         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
91067         * lib/netdb.in.h: Fix typo.
91068         Reported by Bruno Haible  <bruno@clisp.org>
91070         * lib/netdb.in.h: Include sys/socket.h for platforms without
91071         netdb.h, to get structures like hostent on MinGW.
91072         * modules/netdb (Depends-on): Add sys_socket.
91074 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91076         * modules/netdb, modules/netdb-tests: New file.
91077         * m4/netdb_h.m4: New file.
91078         * lib/netdb.in.h: Add, currently just an empty file pending
91079         definitions.
91080         * tests/test-netdb.c: New file.
91081         * doc/posix-headers/netdb.texi: Mention that we replace it if
91082         needed.
91083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91084         netdb.
91086 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91088         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
91089         with code.
91091 2008-10-13  Bruno Haible  <bruno@clisp.org>
91093         * lib/glthread/cond.c (glthread_cond_wait_func,
91094         glthread_cond_timedwait_func): Add a comment.
91096 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91098         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
91099         * tests/test-select.c: Likewise,
91101 2008-10-13  Bruno Haible  <bruno@clisp.org>
91103         * lib/glthread/cond.c (glthread_cond_wait_func,
91104         glthread_cond_timedwait_func): Fix variable name.
91105         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91107 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
91109         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
91110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
91111         struct sockaddr.sa_len.
91112         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
91114 2008-10-13  Simon Josefsson  <simon@josefsson.org>
91116         * build-aux/pmccabe2html: Add css and css_url parameters.
91118 2008-10-12  Bruno Haible  <bruno@clisp.org>
91120         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
91121         calling aclx_get.
91122         Reported by Rainer Tammer <tammer@tammer.net>.
91124 2008-10-12  Bruno Haible  <bruno@clisp.org>
91126         Use msvcrt aware primitives for creation/termination of Win32 threads.
91127         * lib/glthread/thread.c: Include <process.h>.
91128         (glthread_create_func): Use _beginthreadex instead of CreateThread.
91129         (wrapper_func): Update signature.
91130         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
91132 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91133             Bruno Haible  <bruno@clisp.org>
91135         Provide a Win32 implementation of the 'cond' module.
91136         * lib/glthread/cond.h [USE_WIN32]: New implementation.
91137         * lib/glthread/cond.c (glthread_cond_init_func,
91138         glthread_cond_wait_func, glthread_cond_timedwait_func,
91139         glthread_cond_signal_func, glthread_cond_broadcast_func,
91140         glthread_cond_destroy_func) [USE_WIN32]: New functions.
91141         * modules/cond (Dependencies): Add gettimeofday.
91143 2008-10-11  Bruno Haible  <bruno@clisp.org>
91145         Make sleep work on older versions of mingw.
91146         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
91147         only whether it exists.
91148         * doc/posix-functions/sleep.texi: Mention the problem with older
91149         versions of mingw.
91151 2008-10-11  Bruno Haible  <bruno@clisp.org>
91153         New module 'shutdown'.
91154         * modules/shutdown: New file.
91155         * lib/sys_socket.in.h (shutdown): New declaration.
91156         * lib/winsock.c (shutdown): New function.
91157         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
91158         GNULIB_SHUTDOWN.
91159         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
91160         * doc/posix-functions/shutdown.texi: Document the new module.
91162 2008-10-11  Jim Meyering  <meyering@redhat.com>
91164         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
91166 2008-10-11  Bruno Haible  <bruno@clisp.org>
91168         New module 'fclose'.
91169         * modules/fclose: New file.
91170         * lib/stdio.in.h (fclose): New declaration.
91171         * lib/fclose.c: New file.
91172         * m4/fclose.m4: New file.
91173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
91174         REPLACE_FCLOSE.
91175         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
91176         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
91177         REPLACE_FCLOSE.
91178         * modules/close (Depends-on): fclose.
91179         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
91181 2008-10-11  Bruno Haible  <bruno@clisp.org>
91183         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
91184         set errno and don't call _close.
91186 2008-10-10  Bruno Haible  <bruno@clisp.org>
91188         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
91189         ACL, not afterwards. Fixes test failure on Cygwin.
91191 2008-10-09  Ben Pfaff  <blp@gnu.org>
91193         * build-aux/announce-gen: Fix gnulib version related part of usage
91194         message.  Die with a useful error message if no tarballs are
91195         found.
91197 2008-10-10  Jim Meyering  <meyering@redhat.com>
91199         bootstrap: use git's --depth=N option only if it's supported
91200         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
91201         recognize the --depth option.  Reported by Pádraig Brady.
91203 2008-10-09  Bruno Haible  <bruno@clisp.org>
91205         New module 'ioctl'.
91206         * modules/ioctl: New file.
91207         * lib/sys_socket.in.h (ioctl): Remove declaration.
91208         * lib/winsock.c: Include <sys/ioctl.h>.
91209         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
91210         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
91211         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
91212         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
91213         * doc/posix-functions/ioctl.texi: Mention the new module.
91215 2008-10-09  Bruno Haible  <bruno@clisp.org>
91217         New module 'sys_ioctl'.
91218         * lib/sys_ioctl.in.h: New file.
91219         * m4/sys_ioctl_h.m4: New file.
91220         * modules/sys_ioctl: New file.
91221         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
91223 2008-10-09  Bruno Haible  <bruno@clisp.org>
91225         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
91226         * lib/winsock.c: Include <stdarg.h>.
91227         (rpl_ioctl): Change to second argument 'int' and then varargs.
91229 2008-10-09  Bruno Haible  <bruno@clisp.org>
91231         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
91232         when the sys_socket module is present and the system has <winsock2.h>.
91234 2008-10-09  Bruno Haible  <bruno@clisp.org>
91236         * doc/posix-functions/close.texi: Mention module 'close' instead of
91237         module 'sys_socket'.
91239 2008-10-09  Bruno Haible  <bruno@clisp.org>
91241         * doc/glibc-headers/sys_ioctl.texi: New file.
91242         * doc/gnulib.texi: Include it.
91244 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91245             Bruno Haible  <bruno@clisp.org>
91247         Combine the two replacements of 'close'.
91248         * lib/sys_socket.in.h (close): Define to a reminder to include
91249         <unistd.h>.
91250         (_gl_close_fd_maybe_socket): New declaration.
91251         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91252         * lib/winsock.c (close): Remove undefinition.
91253         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
91254         needed for the gnulib module 'close'.
91255         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
91256         define to an error symbol or to a warning, if suitable.
91257         * lib/close.c: Include <sys/socket.h>.
91258         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
91259         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
91260         UNISTD_H_HAVE_WINSOCK2_H.
91261         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
91262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91263         UNISTD_H_HAVE_WINSOCK2_H.
91264         * modules/sys_socket (Files): Add m4/unistd_h.m4.
91265         (configure.ac): Set a module indicator.
91266         (Makefile.am): Substitute GNULIB_CLOSE.
91267         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
91268         * modules/poll-tests (Depends-on): Add close.
91269         * modules/select-tests (Depends-on): Likewise.
91271 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91272             Bruno Haible  <bruno@clisp.org>
91274         New module 'close'.
91275         * modules/close: New file.
91276         * lib/unistd.in.h (close): Move declaration out of the
91277         FCHDIR_REPLACEMENT scope.
91278         (_gl_unregister_fd): New declaration.
91279         * lib/close.c: New file.
91280         * lib/fchdir.c (rpl_close): Remove function.
91281         * m4/close.m4: New file.
91282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91283         close.
91284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
91285         REPLACE_CLOSE.
91286         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
91287         REPLACE_CLOSE.
91288         * modules/fchdir (Depends-on): Add close.
91290 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91291             Bruno Haible  <bruno@clisp.org>
91293         * lib/fcntl.in.h (open): Simplify conditionals.
91294         (_gl_register_fd): New declaration.
91295         * lib/fchdir.c (rpl_open): Remove function.
91296         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
91297         also.
91298         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
91299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91300         open.
91302 2008-10-09  Jim Meyering  <meyering@redhat.com>
91304         GNUmakefile: use the more name-space-friendly "_version"
91305         * top/GNUmakefile (_dummy): Update.
91306         (_version): Rename from "version".
91308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91309             Bruno Haible  <bruno@clisp.org>
91311         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
91312         rpl_close.
91313         (_gl_register_fd): New function, extracted from rpl_open.
91314         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
91315         (rpl_open, rpl_opendir): Use _gl_register_fd.
91317 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91319         Fix organization of 'open' replacement.
91320         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
91321         (gl_FUNC_OPEN): Use it.
91322         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
91324 2008-10-08  Bruno Haible  <bruno@clisp.org>
91326         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91328 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91330         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91331         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91332         listen).
91334 2008-10-08  Eric Blake  <ebb9@byu.net>
91336         GNUmakefile: add 'make version' target
91337         * top/GNUmakefile (_curr-ver): Split version update rules...
91338         (version): ...into a target.
91340 2008-10-07  Bruno Haible  <bruno@clisp.org>
91342         Use a more portable replacement expression for -0.0L.
91343         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91344         instead of -0.0L. Fix m4 quotation.
91346         * tests/test-signbit.c: Include <float.h>.
91347         (minus_zero): New variable.
91348         (test_signbitl): Use minus_zero instead of -zero.
91349         * modules/signbit-tests (Depends-on): Add float.
91351         * tests/test-ceill.c: Include <float.h>.
91352         (zero): Remove variable.
91353         (minus_zero): New variable.
91354         (main): Use minus_zero instead of -zero.
91355         * modules/ceill-tests (Depends-on): Add float.
91357         * tests/test-floorl.c: Include <float.h>.
91358         (zero): Remove variable.
91359         (minus_zero): New variable.
91360         (main): Use minus_zero instead of -zero.
91361         * modules/floorl-tests (Depends-on): Add float.
91363         * tests/test-roundl.c: Include <float.h>.
91364         (zero): Remove variable.
91365         (minus_zero): New variable.
91366         (main): Use minus_zero instead of -zero.
91367         * modules/roundl-tests (Depends-on): Add float.
91369         * tests/test-truncl.c: Include <float.h>.
91370         (zero): Remove variable.
91371         (minus_zero): New variable.
91372         (main): Use minus_zero instead of -zero.
91373         * modules/truncl-tests (Depends-on): Add float.
91375         * tests/test-frexpl.c (zero): Remove variable.
91376         (minus_zero): New variable.
91377         (main): Use minus_zero instead of -zero.
91378         * modules/frexpl-tests (Depends-on): Add float.
91380         * tests/test-isnan.c (zerol): Remove variable.
91381         (minus_zerol): New variable.
91382         (test_long_double): Use minus_zerol instead of -zerol.
91383         * modules/isnan-tests (Depends-on): Add float.
91385         * tests/test-isnanl.h (zero): Remove variable.
91386         (minus_zero): New variable.
91387         (main): Use minus_zero instead of -zero.
91388         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91389         * modules/isnanl-tests (Depends-on): Add float.
91391         * tests/test-ldexpl.c (zero): Remove variable.
91392         (minus_zero): New variable.
91393         (main): Use minus_zero instead of -zero.
91394         * modules/ldexpl-tests (Depends-on): Add float.
91396         * tests/test-snprintf-posix.h (zerol): Remove variable.
91397         (minus_zerol): New variable.
91398         (test_function): Use minus_zerol instead of -zerol.
91399         * modules/snprintf-posix-tests (Depends-on): Add float.
91400         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91402         * tests/test-sprintf-posix.h (zerol): Remove variable.
91403         (minus_zerol): New variable.
91404         (test_function): Use minus_zerol instead of -zerol.
91405         * modules/sprintf-posix-tests (Depends-on): Add float.
91406         * modules/vsprintf-posix-tests (Depends-on): Add float.
91408         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91409         (minus_zerol): New variable.
91410         (test_function): Use minus_zerol instead of -zerol.
91411         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91413         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91414         (minus_zerol): New variable.
91415         (test_function): Use minus_zerol instead of -zerol.
91416         * modules/vasprintf-posix-tests (Depends-on): Add float.
91418 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91420         * MODULES.html.sh (Support for building documentation): Mention
91421         pmccabe2html.  Sort entries.
91423         Add pmccabe2html module, from gnupdf.
91424         * build-aux/pmccabe.css: New file.
91425         * build-aux/pmccabe2html: New file.
91426         * m4/pmccabe2html.m4: New file.
91427         * modules/pmccabe2html: New file.
91429 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91431         flock: new module
91432         * MODULES.html.sh: Add to list of modules.
91433         * lib/flock.c: flock implementation for Windows and Unix systems
91434         which have fcntl.
91435         * doc/glibc-functions/flock.texi: Update documentation.
91436         * lib/sys_file.in.h: <sys/file.h> header file.
91437         * m4/flock.m4: M4 macros.
91438         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91439         * modules/flock: flock module.
91440         * modules/flock-tests: flock tests module.
91441         * modules/sys_file: sys/file.h module.
91442         * tests/test-flock.c: test suite for flock.
91444 2008-10-06  Jim Meyering  <meyering@redhat.com>
91446         bootstrap: check for LT_INIT more portably still ;-)
91447         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91448         Spotted by Bruno Haible.
91450 2008-10-06  Eric Blake  <ebb9@byu.net>
91452         test-signbit: avoid tripping Irix cc bug on -0.0L
91453         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91454         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91455         entire testsuite consistent and avoids an Irix 6.2 bug.
91457 2008-10-05  Bruno Haible  <bruno@clisp.org>
91458             Jim Meyering  <jim@meyering.net>
91460         Add an option for ignoring EPIPE during close_stdout.
91461         * lib/closeout.h: Include <stdbool.h>.
91462         (close_stdout_set_ignore_EPIPE): New declaration.
91463         * lib/closeout.c: Include <stdbool.h>.
91464         (ignore_EPIPE): New variable.
91465         (close_stdout_set_ignore_EPIPE): New function.
91466         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91467         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91468         failure.
91469         * modules/closeout (Depends-on): Add stdbool.
91471 2008-10-05  Bruno Haible  <bruno@clisp.org>
91473         * modules/accept: New file.
91474         * modules/bind: New file.
91475         * modules/connect: New file.
91476         * modules/getpeername: New file.
91477         * modules/getsockname: New file.
91478         * modules/getsockopt: New file.
91479         * modules/listen: New file.
91480         * modules/recv: New file.
91481         * modules/recvfrom: New file.
91482         * modules/send: New file.
91483         * modules/sendto: New file.
91484         * modules/setsockopt: New file.
91485         * modules/socket: New file.
91486         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91487         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91488         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91489         the particular module is requested. Add a link warning when the
91490         particular module is not requested.
91491         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91492         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91493         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91494         the particular module is requested.
91495         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91496         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91497         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91498         * modules/sys_socket (Depends-on): Add link-warning.
91499         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91500         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91501         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91502         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91503         GL_LINK_WARNING.
91504         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91505         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91506         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91507         * doc/posix-functions/getpeername.texi: Mention the new module
91508         'getpeername'.
91509         * doc/posix-functions/getsockname.texi: Mention the new module
91510         'getsockname'.
91511         * doc/posix-functions/getsockopt.texi: Mention the new module
91512         'getsockopt'.
91513         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91514         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91515         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91516         * doc/posix-functions/send.texi: Mention the new module 'send'.
91517         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91518         * doc/posix-functions/setsockopt.texi: Mention the new module
91519         'setsockopt'.
91520         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91521         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91522         listen, connect, accept.
91523         * modules/select-tests (Depends-on): Likewise.
91525 2008-10-05  Bruno Haible  <bruno@clisp.org>
91527         * lib/winsock.c (strerror): Remove unused #undef.
91528         (rpl_close): Remove unused local variable.
91530         * modules/sys_socket (Depends-on); Add errno.
91532 2008-10-05  Bruno Haible  <bruno@clisp.org>
91534         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91535         (select): Add a link warning when the 'select' module is not used.
91536         * modules/sys_select (Depends-on): Add link-warning.
91537         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91538         Suggested by Paolo Bonzini.
91540 2008-10-05  Jim Meyering  <meyering@redhat.com>
91542         bootstrap: check for LT_INIT more portably
91543         * build-aux/bootstrap: Avoid using grep -E, since it's not
91544         portable enough.  Suggestion from Bruno Haible.
91546 2008-10-05  Bruno Haible  <bruno@clisp.org>
91548         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91549         as being fixed by gnulib.
91551 2008-10-05  Bruno Haible  <bruno@clisp.org>
91553         * modules/select-tests: New file, mostly copied from
91554         modules/sys_select-tests.
91555         * tests/test-select.c: New file, mostly copied from
91556         tests/test-sys_select.c.
91557         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91558         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91559         (Makefile.am): Remove test_sys_select_LDADD.
91561         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91562         to an undefined symbol, for an error message.
91563         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91564         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91565         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91566         winsock-select.c here.
91567         * modules/sys_select (Files): Remove lib/winsock-select.c.
91568         (Depends-on): Remove alloca.
91569         (Makefile.am): Substitute GNULIB_SELECT.
91570         * modules/select: New file.
91571         * doc/posix-functions/select.texi: Update.
91573 2008-10-05  Bruno Haible  <bruno@clisp.org>
91575         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91576         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91577         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91578         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91579         getdtablesize.
91580         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91581         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91583 2008-10-05  Bruno Haible  <bruno@clisp.org>
91585         * modules/getdtablesize-tests: New file.
91586         * tests/test-getdtablesize.c: New file.
91588         New module 'getdtablesize'.
91589         * lib/unistd.in.h (getdtablesize): New declaration.
91590         * lib/getdtablesize.c: New file.
91591         * m4/getdtablesize.m4: New file.
91592         * modules/getdtablesize: New file.
91593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91594         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91595         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91596         HAVE_GETDTABLESIZE.
91597         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91599 2008-10-05  Bruno Haible  <bruno@clisp.org>
91601         * modules/sched (Makefile.am): Fix typo.
91602         Reported by Simon Josefsson.
91604 2008-10-05  Jim Meyering  <meyering@redhat.com>
91606         bootstrap: check for LT_INIT, too
91607         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91608         are deprecated.  Suggestion from Ralf Wildenhues.
91610 2008-10-05  Bruno Haible  <bruno@clisp.org>
91612         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91613         overriding them by ours.
91614         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91616 2008-10-05  Jim Meyering  <meyering@redhat.com>
91618         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91619         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91620         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91622 2008-10-04  Bruno Haible  <bruno@clisp.org>
91624         * modules/dup2 (License): Change to LGPLv2+.
91625         * modules/sleep (License): Likewise.
91626         * modules/perror (License): Likewise.
91627         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91628         Blake.
91629         * modules/signal (License): Likewise.
91630         * modules/sigprocmask (License): Likewise.
91631         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91632         Meyering.
91634 2008-10-04  Bruno Haible  <bruno@clisp.org>
91636         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91637         Reported by Rainer Tammer <tammer@tammer.net>.
91639 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91640             Bruno Haible  <bruno@clisp.org>
91642         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91643         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91644         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91646 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91648         filevercmp: new module
91649         * lib/filevercmp.h: New function filevercmp comparing version strings.
91650         * lib/filevercmp.c: Implementation of filevercmp function.
91651         * modules/filevercmp: Module metadata.
91652         * tests/test-filevercmp.c: Unit test for new module.
91653         * modules/filevercmp-tests: Unit test metadata.
91654         * MODULES.html.sh: Add filevercmp module.
91656 2008-10-03  Bruno Haible  <bruno@clisp.org>
91658         * lib/c-ctype.h: Add comment.
91659         Reported by Jim Meyering.
91661 2008-10-02  Bruno Haible  <bruno@clisp.org>
91663         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91665 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91667         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91668         name of bootstrap.conf accordingly.
91670 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91672         * build-aux/bootstrap: Install git-merge-changelog configuration
91673         items into .gitconfig if needed.
91675 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91677         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91678         git repository, and initialize/update it accordingly.
91680 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91682         * modules/fsync-tests: New file.
91683         * tests/test-fsync.c: New file.
91685         New module 'fsync'.
91686         * lib/fsync.c: New file.
91687         * m4/fsync.m4: New file.
91688         * modules/fsync: New file.
91689         * lib/unistd.in.h (fsync): New declaration.
91690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91691         GNULIB_FSYNC and HAVE_FSYNC.
91692         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91693         * MODULES.html.sh (posix_functions): Add fsync.
91694         * doc/posix-functions/fsync.texi: Mention the new module.
91696 2008-10-02  Jim Meyering  <meyering@redhat.com>
91698         fts.c: sync with similar code from coreutils' remove.c
91699         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91700         Guard also with "#if defined __linux__", since for now at least,
91701         this code is Linux-kernel-specific.
91703 2008-10-02  Jim Meyering  <meyering@redhat.com>
91705         fts: bug fixes
91706         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91707         Include <sys/vfs.h>, not <sys/statfs.h>.
91709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91710         Include <sys/vfs.h>, not <sys/statfs.h>.
91712 2008-10-01  Bruno Haible  <bruno@clisp.org>
91714         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91716         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91717         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91718         * doc/posix-functions/posix_spawnp.texi: Likewise.
91719         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91720         whether posix_spawn actually works.
91721         * m4/pipe.m4 (gl_PIPE): Likewise.
91722         * modules/execute (Files): Add m4/posix_spawn.m4.
91723         * modules/pipe (Files): Add m4/posix_spawn.m4.
91724         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91726 2008-10-01  Jim Meyering  <meyering@redhat.com>
91728         remove trailing spaces
91729         * NEWS: Likewise.
91730         * lib/poll.c (poll): Likewise.
91731         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91732         * lib/winsock.c (rpl_close): Likewise.
91733         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91734         * modules/yield: Likewise.
91735         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91736         * tests/test-sys_select.c (connect_to_socket): Likewise.
91738         fts.c: adjust a new interface to be more generally useful
91739         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91740         (fts_build): Adjust caller.
91742 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91744         * modules/cond-tests: New file.
91745         * tests/test-cond.c: New file.
91747 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91748             Bruno Haible  <bruno@clisp.org>
91750         * modules/cond (Dependencies): Add errno, time.
91751         * lib/glthread/cond.h: Include <time.h>.
91752         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91753         across platforms.
91755 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91756             Bruno Haible  <bruno@clisp.org>
91758         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91761             Bruno Haible  <bruno@clisp.org>
91763         * modules/tls-tests (Depends-on): Add thread, yield.
91764         (configure.ac): Remove all checks.
91765         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91766         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91767         gl_thread_self): Remove definitions. Include glthread/thread.h and
91768         glthread/yield.h instead.
91769         (test_tls): Pass an additional NULL argument to gl_thread_join.
91771 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91772             Bruno Haible  <bruno@clisp.org>
91774         * modules/lock-tests (Depends-on): Add thread, yield.
91775         (configure.ac): Remove all checks.
91776         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91777         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91778         gl_thread_self): Remove definitions. Include glthread/thread.h and
91779         glthread/yield.h instead.
91780         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91781         additional NULL argument to gl_thread_join.
91783 2008-09-30  Bruno Haible  <bruno@clisp.org>
91785         Fix the Win32 implementation of the 'thread' module.
91786         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91787         pointer type.
91788         (gl_thread_self): Invoke gl_thread_self_func.
91789         (gl_thread_self_func): New declaration.
91790         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91791         (do_init_self_key, init_self_key): New functions.
91792         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91793         Remove some fields.
91794         (running_threads, running_lock): Remove variables.
91795         (get_current_thread_handle): New function.
91796         (gl_thread_self_func, wrapper_func, glthread_create_func,
91797         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91798         simplified.
91800 2008-09-30  Bruno Haible  <bruno@clisp.org>
91802         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91803         files.
91805 2008-09-30  Jim Meyering  <meyering@redhat.com>
91807         fts.m4: correct the test for statfs.f_type
91808         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91809         when checking for statfs.f_type.
91811 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91813         tests: avoid some compiler warnings
91814         * tests/test-memchr.c (main): Pass NULL indirectly.
91815         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91817 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91819         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91820         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91821         exactly specified dayshifts.
91822         (dayshift): New rule.
91823         (rel): Add dayshift.
91824         (relative_time_table) [tomorrow, yesterday, today, now]:
91825         Use tDAY_SHIFT in place of tDAY_UNIT.
91826         * tests/test-getdate.c: Add tests for now-disallowed countable
91827         dayshifts, e.g., "4 yesterday ago".
91829 2008-09-29  Bruno Haible  <bruno@clisp.org>
91831         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91832         * tests/test-posix_spawn1.in.sh: Renamed from
91833         tests/test-posix_spawn.in.sh.
91834         * tests/test-posix_spawn2.c: New file.
91835         * tests/test-posix_spawn2.in.sh: New file.
91836         * modules/posix_spawnp-tests (Files): Update.
91837         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91839 2008-09-29  Bruno Haible  <bruno@clisp.org>
91841         Propagate effects of putenv/setenv/unsetenv to child processes.
91842         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91843         * lib/pipe.c (create_pipe): Likewise.
91845 2008-09-29  Bruno Haible  <bruno@clisp.org>
91847         Enable use of shell scripts as executables in mingw.
91848         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91849         run the program as a shell script.
91850         * lib/pipe.c (create_pipe): Likewise.
91851         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91852         resulting array.
91854 2008-09-29  Eric Blake  <ebb9@byu.net>
91856         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91858 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91860         * doc/posix-functions/accept.texi: Update mingw problems.
91861         * doc/posix-functions/bind.texi: Update mingw problems.
91862         * doc/posix-functions/close.texi: Update mingw problems.
91863         * doc/posix-functions/connect.texi: Update mingw problems.
91864         * doc/posix-functions/getpeername.texi: Update mingw problems.
91865         * doc/posix-functions/getsockname.texi: Update mingw problems.
91866         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91867         * doc/posix-functions/ioctl.texi: Update mingw problems.
91868         * doc/posix-functions/listen.texi: Update mingw problems.
91869         * doc/posix-functions/recv.texi: Update mingw problems.
91870         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91871         * doc/posix-functions/select.texi: Update mingw problems.
91872         * doc/posix-functions/send.texi: Update mingw problems.
91873         * doc/posix-functions/sendto.texi: Update mingw problems.
91874         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91875         * doc/posix-functions/socket.texi: Update mingw problems.
91877 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91878             Bruno Haible  <bruno@clisp.org>
91880         * lib/sys_select.in.h: Include sys/time.h.
91881         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91882         * modules/sys_select: Depend on sys_time.
91883         * tests/test-sys_select.c: Test that sys/select.h defines struct
91884         timeval fully.
91886 2008-09-29  Bruno Haible  <bruno@clisp.org>
91888         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91889         * lib/sys_select.in.h: Likewise.
91891 2008-09-29  Bruno Haible  <bruno@clisp.org>
91893         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91895 2008-09-29  Bruno Haible  <bruno@clisp.org>
91897         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91898         Set LIBSOCKET instead of augmenting LIBS.
91899         * modules/sockets (Link): New section.
91900         * modules/sockets-tests (test_sockets_LDADD): New variable.
91901         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91902         * modules/poll-tests (test_poll_LDADD): New variable.
91903         * NEWS: Document the change.
91905 2008-09-29  Bruno Haible  <bruno@clisp.org>
91907         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91908         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91909         ARPA_INET_H directly.
91910         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91912 2008-09-28  Bruno Haible  <bruno@clisp.org>
91914         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91915         from gl_HEADER_SYS_SOCKET.
91916         (gl_HEADER_SYS_SOCKET): Invoke it.
91917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91919 2008-09-28  Bruno Haible  <bruno@clisp.org>
91921         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91922         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91923         Needed on OSF/1 4.0.
91925 2008-09-28  Bruno Haible  <bruno@clisp.org>
91927         Override open more carefully.
91928         * lib/open.c (orig_open): New function.
91929         (rpl_open): Use orig_open instead of open.
91930         * lib/fcntl.in.h: Add special invocation convention.
91931         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91932         (gl_FUNC_OPEN): Invoke it.
91934         Override freopen more carefully.
91935         * lib/freopen.c (orig_freopen): New function.
91936         (rpl_freopen): Use orig_freopen instead of freopen.
91937         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91938         (gl_FUNC_FREOPEN): Invoke it.
91940         Override fopen more carefully.
91941         * lib/fopen.c (orig_fopen): New function.
91942         (rpl_fopen): Use orig_fopen instead of fopen.
91943         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91944         (gl_FUNC_FOPEN): Invoke it.
91945         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91947 2008-09-28  Bruno Haible  <bruno@clisp.org>
91949         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91950         SIGPIPE.
91952 2008-09-28  Bruno Haible  <bruno@clisp.org>
91954         * tests/test-sigaction.c (handler, main): Disable the check whether
91955         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91956         glibc systems with LinuxThreads.
91958 2008-09-28  Bruno Haible  <bruno@clisp.org>
91960         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91962         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91963         with AIX xlc.
91964         * lib/fcntl.in.h (open): Likewise.
91965         Reported by Rainer Tammer <tammer@tammer.net>.
91967 2008-09-28  Bruno Haible  <bruno@clisp.org>
91969         * modules/posix_spawnp-tests: New file.
91970         * tests/test-posix_spawn.c: New file.
91971         * tests/test-posix_spawn.in.sh: New file.
91973         New module 'posix_spawnp'.
91974         * modules/posix_spawnp: New file.
91975         * lib/spawnp.c: New file, from GNU libc with modifications.
91976         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91978         New module 'posix_spawn'.
91979         * modules/posix_spawn: New file.
91980         * lib/spawn.c: New file, from GNU libc with modifications.
91981         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91983         New module 'posix_spawnattr_destroy'.
91984         * modules/posix_spawnattr_destroy: New file.
91985         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91986         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91987         module.
91989         New module 'posix_spawnattr_setsigmask'.
91990         * modules/posix_spawnattr_setsigmask: New file.
91991         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91992         modifications.
91993         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91994         new module.
91996         New module 'posix_spawnattr_getsigmask'.
91997         * modules/posix_spawnattr_getsigmask: New file.
91998         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91999         modifications.
92000         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
92001         new module.
92003         New module 'posix_spawnattr_setsigdefault'.
92004         * modules/posix_spawnattr_setsigdefault: New file.
92005         * lib/spawnattr_setdefault.c: New file, from GNU libc with
92006         modifications.
92007         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
92008         new module.
92010         New module 'posix_spawnattr_getsigdefault'.
92011         * modules/posix_spawnattr_getsigdefault: New file.
92012         * lib/spawnattr_getdefault.c: New file, from GNU libc with
92013         modifications.
92014         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
92015         new module.
92017         New module 'posix_spawnattr_setschedpolicy'.
92018         * modules/posix_spawnattr_setschedpolicy: New file.
92019         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
92020         modifications.
92021         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
92022         new module.
92024         New module 'posix_spawnattr_getschedpolicy'.
92025         * modules/posix_spawnattr_getschedpolicy: New file.
92026         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
92027         modifications.
92028         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
92029         new module.
92031         New module 'posix_spawnattr_setschedparam'.
92032         * modules/posix_spawnattr_setschedparam: New file.
92033         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
92034         modifications.
92035         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
92036         new module.
92038         New module 'posix_spawnattr_getschedparam'.
92039         * modules/posix_spawnattr_getschedparam: New file.
92040         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
92041         modifications.
92042         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
92043         new module.
92045         New module 'posix_spawnattr_setpgroup'.
92046         * modules/posix_spawnattr_setpgroup: New file.
92047         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
92048         modifications.
92049         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
92050         module.
92052         New module 'posix_spawnattr_getpgroup'.
92053         * modules/posix_spawnattr_getpgroup: New file.
92054         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
92055         modifications.
92056         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
92057         module.
92059         New module 'posix_spawnattr_setflags'.
92060         * modules/posix_spawnattr_setflags: New file.
92061         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
92062         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
92063         module.
92065         New module 'posix_spawnattr_getflags'.
92066         * modules/posix_spawnattr_getflags: New file.
92067         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
92068         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
92069         module.
92071         New module 'posix_spawnattr_init'.
92072         * modules/posix_spawnattr_init: New file.
92073         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
92074         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
92075         module.
92077         New module 'posix_spawn_file_actions_destroy'.
92078         * modules/posix_spawn_file_actions_destroy: New file.
92079         * lib/spawn_faction_destroy.c: New file, from GNU libc with
92080         modifications.
92081         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
92082         the new module.
92084         New module 'posix_spawn_file_actions_addopen'.
92085         * modules/posix_spawn_file_actions_addopen: New file.
92086         * lib/spawn_faction_addopen.c: New file, from GNU libc with
92087         modifications.
92088         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
92089         the new module.
92091         New module 'posix_spawn_file_actions_adddup2'.
92092         * modules/posix_spawn_file_actions_adddup2: New file.
92093         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
92094         modifications.
92095         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
92096         the new module.
92098         New module 'posix_spawn_file_actions_addclose'.
92099         * modules/posix_spawn_file_actions_addclose: New file.
92100         * lib/spawn_faction_addclose.c: New file, from GNU libc with
92101         modifications.
92102         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
92103         the new module.
92105         New module 'posix_spawn_file_actions_init'.
92106         * modules/posix_spawn_file_actions_init: New file.
92107         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
92108         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
92109         new module.
92111         New module 'posix_spawn-internal'.
92112         * modules/posix_spawn-internal: New file.
92113         * lib/spawn_int.h: New file, from GNU libc with modifications.
92114         * lib/spawni.c: New file, from GNU libc with modifications.
92115         * m4/posix_spawn.m4: New file.
92117         New module 'spawn'.
92118         * modules/spawn: New file.
92119         * lib/spawn.in.h: New file, from GNU libc with modifications.
92120         * m4/spawn_h.m4: New file.
92121         * doc/posix-headers/spawn.texi: Mention the new module.
92123 2008-09-28  Bruno Haible  <bruno@clisp.org>
92125         * modules/sched-tests: New file.
92126         * tests/test-sched.c: New file.
92128         New module 'sched'.
92129         * modules/sched: New file.
92130         * lib/sched.in.h: New file.
92131         * m4/sched_h.m4: New file.
92132         * doc/posix-headers/sched.texi: Mention the new module.
92134 2008-09-27  Eric Blake  <ebb9@byu.net>
92136         Fix previous patch, and tweak references to $0.
92137         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
92138         (func_version, func_gnulib_dir): Don't call this program
92139         gnulib-tool.
92140         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
92141         with using $0 in function.
92142         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
92143         (func_fatal_error): Reuse the name the user invoked us with.
92145 2008-09-27  Bruno Haible  <bruno@clisp.org>
92147         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
92148         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
92149         (gl_ICONV_H): Not here.
92150         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
92151         instead of assigning ICONV_H directly.
92153         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
92154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
92155         WCHAR_H directly.
92157 2008-09-27  Bruno Haible  <bruno@clisp.org>
92159         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
92160         * modules/arpa_inet (Depends-on): Add link-warning.
92161         (Makefile.am): Insert the definition of GL_LINK-WARNING.
92162         * modules/unistd (Makefile.am): Likewise.
92164 2008-09-26  Bruno Haible  <bruno@clisp.org>
92166         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
92167         variables.
92168         (func_version): Essentially copied from gnulib-tool.
92169         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
92170         func_readlink): Copied from gnulib-tool.
92172 2008-09-26  Bruno Haible  <bruno@clisp.org>
92174         * gnulib-tool (func_version): Change directory to $gnulib_dir before
92175         invoking git-version-gen.
92177 2008-09-26  Bruno Haible  <bruno@clisp.org>
92179         * posix-modules: Update to directory names changed on 2008-01-19.
92180         Remove commas in output before splitting into words. No more need to
92181         avoid 'ftruncate' since 2007-02-19.
92183 2008-09-26  Bruno Haible  <bruno@clisp.org>
92185         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
92187 2008-09-26  Bruno Haible  <bruno@clisp.org>
92189         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
92190         * modules/fwriteerror (Depends-on): Add errno.
92192 2008-09-26  Bruno Haible  <bruno@clisp.org>
92194         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
92195         * tests/test-vc-list-files-cvs.sh: Likewise.
92197 2008-09-26  Bruno Haible  <bruno@clisp.org>
92199         * doc/posix-headers/sys_resource.texi: Reorder items.
92201 2008-09-26  Jim Meyering  <meyering@redhat.com>
92203         fts: tweak inode comparison function
92204         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
92205         inode numbers, as documented.
92207         fts: sort dirent entries on inode number before traversing
92208         This avoids a quadratic, seek-related performance penalty when
92209         operating on a directory containing many entries (measurable at 10k;
92210         3.5 hours at 2 million entries with a cold cache) on certain types
92211         of file systems, including ext3 and ext4, but not tmpfs.
92212         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
92213         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
92214         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
92215         (fs_handles_readdir_ordered_dirents_efficiently): New function.
92216         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92217         (fts_build): Set the stat.st_ino member from D_INO.
92218         If it is likely to be useful, sort dirent entries on inode number.
92220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
92221         and the struct statfs.f_type member.
92222         * modules/fts (Depends-on): Add d-ino.
92224 2008-09-26  Bruno Haible  <bruno@clisp.org>
92226         * modules/sigpipe-die (Depends-on): Add sigpipe.
92228         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
92229         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
92230         and GNULIB_STDIO_H_SIGPIPE are set.
92231         * lib/stdio-write.c: New file.
92232         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
92233         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92234         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92235         REPLACE_STDIO_WRITE_FUNCS.
92236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
92237         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92238         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92239         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92240         * modules/stdio (Files): Add lib/stdio-write.c.
92241         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
92242         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92243         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92244         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92245         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
92246         REPLACE_FPRINTF_POSIX.
92247         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
92248         REPLACE_PRINTF_POSIX.
92249         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
92250         REPLACE_VFPRINTF_POSIX.
92251         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
92252         REPLACE_VPRINTF_POSIX.
92253         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
92254         SIGPIPE issue.
92255         * doc/posix-functions/fputc.texi: Likewise.
92256         * doc/posix-functions/fputs.texi: Likewise.
92257         * doc/posix-functions/fwrite.texi: Likewise.
92258         * doc/posix-functions/printf.texi: Likewise.
92259         * doc/posix-functions/putc.texi: Likewise.
92260         * doc/posix-functions/putchar.texi: Likewise.
92261         * doc/posix-functions/puts.texi: Likewise.
92262         * doc/posix-functions/vfprintf.texi: Likewise.
92263         * doc/posix-functions/vprintf.texi: Likewise.
92265         * modules/safe-write (Depends-on): Add write.
92267         * modules/sigpipe-tests: New file.
92268         * tests/test-sigpipe.c: New file.
92269         * tests/test-sigpipe.sh: New file.
92271         * modules/write: New file.
92272         * lib/unistd.in.h: Include <sys/types.h>.
92273         (write): New declaration.
92274         * lib/write.c: New file.
92275         * m4/write.m4: New file.
92276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92277         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
92278         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
92279         GNULIB_WRITE, REPLACE_WRITE.
92280         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
92281         and the SIGPIPE issue.
92283         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
92284         (raise): New declaration.
92285         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
92286         (ext_signal): New function.
92287         (rpl_raise): New function.
92288         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
92289         GNULIB_SIGNAL_H_SIGPIPE.
92290         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
92291         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
92293         * modules/sigpipe: New file.
92294         * m4/sigpipe.m4: New file.
92296 2008-09-25  Derek Price  <derek@ximbiot.com>
92297             Bruno Haible  <bruno@clisp.org>
92299         * gnulib-tool (func_import): Report all license incompatibilities, not
92300         just the first one.
92302 2008-09-25  Bruno Haible  <bruno@clisp.org>
92304         * gnulib-tool (func_import): When computing the edits, consider not
92305         only the Makefile.ams that exist but also those that will be generated.
92307 2008-09-25  Simon Josefsson  <simon@josefsson.org>
92309         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
92310         fixes gnulib-tool --test warning about duplicate dependency.
92312 2008-09-25  Bruno Haible  <bruno@clisp.org>
92314         * gnulib-tool: Don't ask the user to perform edits in the generated
92315         Makefile.ams.
92316         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
92317         apply to the Makefile.am being generated.
92318         (func_emit_tests_Makefile_am): Execute edits that apply to the
92319         Makefile.am being generated.
92320         (func_import): Setup list of Makefile.am edits before emitting the
92321         Makefile.ams, not at the end.
92322         (func_create_testdir): Update.
92323         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92325 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92327         * gnulib-tool (func_import): Store the --tests-base option in the
92328         comment in gnulib-cache.m4.
92330 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92332         * NEWS: Document increased portability that sys_select now provides.
92334         * lib/sys_select.in.h: Install select wrapper.
92335         * lib/sys_socket.in.h: Use more descriptive name when there is no
92336         select wrapper.
92337         * lib/winsock-select.c: New.
92338         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92339         Require gl_HEADER_SYS_SOCKET.
92340         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92341         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92342         * tests/test-sys_select.c: Add functional tests.
92344 2008-09-24  Eric Blake  <ebb9@byu.net>
92346         open, fopen: close fd leak in last patch
92347         * lib/open.c (rpl_open): Close fd before returning error.
92348         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92349         * doc/posix-functions/open.texi (open): Document that Irix also
92350         has the bug.
92351         * doc/posix-functions/fopen.texi (fopen): Likewise.
92352         Reported by Paolo Bonzini.
92354 2008-09-24  Bruno Haible  <bruno@clisp.org>
92356         Ensure that a filename ending in a slash cannot be used to access a
92357         non-directory.
92358         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92359         to check whether it's really a directory.
92360         * lib/fopen.c: Include fcntl.h, unistd.h.
92361         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92362         and fdopen().
92363         * modules/fopen (Depends-on): Add unistd.
92364         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92365         * tests/test-fopen.c (main): Likewise.
92366         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92367         * doc/posix-functions/fopen.texi: Likewise.
92368         Reported by Eric Blake.
92370 2008-09-23  Eric Blake  <ebb9@byu.net>
92372         c-stack: avoid compiler optimizations when provoking overflow
92373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92374         recursion harder to optimize, to ensure a stack overflow occurs.
92375         * tests/test-c-stack.c (recurse): Likewise.
92376         Borrowed from libsigsegv.
92378         c-stack: work around Irix sigaltstack bug
92379         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92380         whether sigaltstack uses wrong end of stack_t (copied in part from
92381         libsigsegv).
92382         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92383         Irix bug, without requiring an over-allocation.
92384         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92385         bug.
92387         fopen: document mingw bug on directories
92388         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92389         not allowing a stream visiting a directory, even though reading
92390         from such a stream is not portable.
92392 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92394         * lib/poll.c: Rewrite.
92395         * modules/poll: Depend on alloca.
92397 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92399         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92400         instead define prototypes for a full set of wrappers.  Ensure
92401         that Cygwin does not use the compatibility code, which is only
92402         for MinGW.
92403         * lib/winsock.c: New.
92404         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92405         * modules/sys_socket: Add lib/winsock.c.
92407         * modules/poll-tests: Add errno and perror.
92408         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92410 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92412         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92414 2008-09-23  Bruno Haible  <bruno@clisp.org>
92416         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92417         * doc/glibc-functions/*: Likewise.
92419 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92421         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92422         success.
92424 2008-09-22  Eric Blake  <ebb9@byu.net>
92425             Bruno Haible  <bruno@clisp.org>
92427         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92428         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92429         supply %A but mishandle pseudo-NaN.
92430         Reported by Simon Josefsson.
92432 2008-09-21  Bruno Haible  <bruno@clisp.org>
92434         * tests/test-lock.c (main): Tweak skip message.
92435         * tests/test-tls.c (main): Likewise.
92437 2008-09-21  Bruno Haible  <bruno@clisp.org>
92439         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92440         whether 'struct sigaction' has sa_sigaction here...
92441         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92442         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92444 2008-09-21  Bruno Haible  <bruno@clisp.org>
92446         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92447         section.
92448         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92449         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92450         the new section.
92451         (Support for obsolete systems lacking POSIX:2001): New section.
92452         (String handling <string.h>): Move strdup to the new section.
92453         Suggested by Simon Josefsson and Paolo Bonzini.
92455 2008-09-21  Bruno Haible  <bruno@clisp.org>
92457         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92458         exponents in %e and %g results on 'long double'. Needed for mingw's
92459         improved *printf functions.
92460         * tests/test-vasprintf-posix.c (test_function): Likewise.
92461         * tests/test-snprintf-posix.h (test_function): Likewise.
92462         * tests/test-sprintf-posix.h (test_function): Likewise.
92463         Reported by Eric Blake.
92465 2008-09-21  Bruno Haible  <bruno@clisp.org>
92467         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92468         * tests/test-sprintf-posix.h (test_function): Likewise.
92470 2008-09-21  Bruno Haible  <bruno@clisp.org>
92472         * modules/getpass (Depends-on): Add strdup-posix.
92474         New module 'strdup-posix'.
92475         * modules/strdup-posix: New file.
92476         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92477         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92479         REPLACE_STRDUP.
92480         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92481         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92483         strdup-posix.
92485         * modules/strdup (Depends-on): Remove malloc-posix.
92487 2008-09-20  Bruno Haible  <bruno@clisp.org>
92489         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92490         Wildenhues.
92492 2008-09-20  Bruno Haible  <bruno@clisp.org>
92494         Ensure that wint_t gets defined on IRIX 5.3.
92495         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92496         * lib/wctype.in.h (wint_t): Likewise.
92497         (__wctype_wint_t): Remove type.
92498         (isw*): Use wint_t instead of __wctype_wint_t.
92499         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92500         * modules/wchar (Files): Add m4/wint_t.m4.
92501         (Makefile.am): Substitute HAVE_WINT_T.
92502         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92503         * tests/test-wctype.c: Check that wint_t is defined.
92504         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92505         * doc/posix-headers/wctype.texi: Likewise.
92506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92508 2008-09-18  Bruno Haible  <bruno@clisp.org>
92510         * gnulib-tool (func_exit): Update comment.
92512 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92514         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92515         assumes strdup exists and does not depend on strdup to return
92516         ENOMEM on out of memory conditions.
92518 2008-09-18  Bruno Haible  <bruno@clisp.org>
92520         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92521         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92522         digits for the exponent.
92524 2008-09-18  Jim Meyering  <meyering@redhat.com>
92525             Bruno Haible  <bruno@clisp.org>
92527         * lib/vasnprintf.c (decimal_point_char): Define also if
92528         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92530 2008-09-16  Bruno Haible  <bruno@clisp.org>
92531         and Eric Blake  <ebb9@byu.net>
92533         vasnprintf: support Irix 5.3
92534         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92535         that mishandle long double infinity.
92536         Reported by Tom G. Christensen.
92538 2008-09-16  Bruno Haible  <bruno@clisp.org>
92540         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92541         Solaris 9.
92542         * doc/glibc-functions/alphasort.texi: Likewise.
92543         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92545 2008-09-16  Jim Meyering  <meyering@redhat.com>
92547         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92548         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92549         a umask modification leak out of a subshell.  Otherwise, the
92550         opensolaris /bin/sh would be accepted and thus cause unwarranted
92551         failures in the coreutils test suite.
92553 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92555         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92556         to succeed.
92558 2008-09-16  Jim Meyering  <meyering@redhat.com>
92560         avoid spurious test failure when library is built without ACL support
92561         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92562         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92563         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92564         * tests/test-copy-acl.sh: Likewise.
92566 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92568         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92569         based on character occurrence counts.
92571 2008-09-15  Eric Blake  <ebb9@byu.net>
92573         tests: avoid some compiler warnings
92574         * tests/test-memchr.c (main): Pass NULL indirectly.
92575         * tests/test-closein.c (main): Avoid unused variable.
92577 2008-09-15  Bruno Haible  <bruno@clisp.org>
92579         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92580         are missing on OpenBSD 4.0 individually.
92581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92583 2008-09-15  Bruno Haible  <bruno@clisp.org>
92585         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92586         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92587         * doc/posix-functions/perror.texi: Likewise.
92588         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92589         is missing.
92590         Reported by Eric Blake.
92592         * lib/errno.in.h: Use replacement values >= 2000.
92593         Reported by Eric Blake.
92595 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92597         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92598         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92599         limit.
92600         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92601         compareseq was aborted.
92603 2008-09-14  Bruno Haible  <bruno@clisp.org>
92605         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92606         yvec_edit_count.
92607         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92608         (fstrcmp_bounded): Simplify result computation accordingly.
92610 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92612         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92613         (fstrcmp): Define in terms of fstrcmp_bounded.
92614         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92615         lower_bound argument.
92616         Return quickly if the result is certainly < lower_bound.
92617         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92619 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92621         * lib/diffseq.h (EARLY_ABORT): New macro.
92622         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92623         evaluates to true.
92625 2008-09-14  Bruno Haible  <bruno@clisp.org>
92627         * modules/perror-tests: New file.
92628         * tests/test-perror.sh: New file.
92629         * tests/test-perror.c: New file.
92631         New module 'perror'.
92632         * lib/stdio.in.h (perror): New declaration.
92633         * lib/perror.c: New file.
92634         * m4/perror.m4: New file.
92635         * modules/perror: New file.
92636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92637         * doc/posix-functions/perror.texi: Mention the perror module.
92638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92639         REPLACE_PERROR.
92640         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92641         REPLACE_PERROR.
92643 2008-09-14  Bruno Haible  <bruno@clisp.org>
92645         * modules/stdio (Makefile.am): Reorder to match the order in
92646         lib/stdio.in.h.
92647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92649 2008-09-13  Bruno Haible  <bruno@clisp.org>
92651         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92653 2008-09-13  Bruno Haible  <bruno@clisp.org>
92655         Extend strerror to cover the added errno values.
92656         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92657         (rpl_strerror): Provide error messages for the added errno values and
92658         for the WSA* values.
92659         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92660         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92661         strerror.
92662         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92663         * modules/strerror (Depends-on): Add errno.
92664         * doc/posix-functions/strerror.texi: Document the change.
92665         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92666         and EOVERFLOW.
92668 2008-09-13  Bruno Haible  <bruno@clisp.org>
92670         * modules/EOVERFLOW: Remove file.
92671         * m4/eoverflow.m4: Remove file.
92672         * modules/EOVERFLOW-tests: Remove file.
92673         * tests/test-EOVERFLOW.c: Remove file.
92674         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92675         * modules/ftell (Depends-on): Likewise.
92676         * modules/getdelim (Depends-on): Likewise.
92677         * modules/getugroups (Depends-on): Likewise.
92678         * modules/poll (Depends-on): Likewise.
92679         * modules/snprintf (Depends-on): Likewise.
92680         * modules/sprintf-posix (Depends-on): Likewise.
92681         * modules/vasnprintf (Depends-on): Likewise.
92682         * modules/vasprintf (Depends-on): Likewise.
92683         * modules/vfprintf-posix (Depends-on): Likewise.
92684         * modules/vsnprintf (Depends-on): Likewise.
92685         * modules/vsprintf-posix (Depends-on): Likewise.
92686         * modules/xvasprintf (Depends-on): Likewise.
92687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92688         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92689         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92690         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92691         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92692         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92693         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92694         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92695         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92696         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92697         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92698         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92700         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92701         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92702         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92704         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92705         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92706         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92707         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92708         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92709         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92710         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92711         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92712         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92713         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92714         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92715         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92716         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92717         * MODULES.html.sh: Remove EOVERFLOW.
92718         * NEWS: Mention the change.
92720 2008-09-13  Bruno Haible  <bruno@clisp.org>
92722         * modules/errno-tests: New file.
92723         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92725         * lib/errno.in.h: New file.
92726         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92727         * modules/errno: New file.
92728         * doc/posix-headers/errno.texi: Update documentation.
92729         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92731 2008-09-13  Bruno Haible  <bruno@clisp.org>
92733         * tests/test-poll.c: Use #if for native Windows, rather than testing
92734         __MSVCRT__.
92736 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92737             Bruno Haible  <bruno@clisp.org>
92739         * lib/glob.c: Don't include <pwd.h> on native Windows.
92740         (WINDOWS32): New macro.
92741         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92743 2008-09-13  Bruno Haible  <bruno@clisp.org>
92745         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92746         (ETIMEDOUT): Remove macro.
92747         (glthread_cond_timedwait_multithreaded): New declaration.
92748         (glthread_cond_timedwait): Use it.
92749         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92750         (glthread_cond_timedwait_multithreaded): New function.
92752 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92754         * modules/poll-tests: Do not check for io.h.
92755         * tests/test-poll.c: Check for __MSVCRT__ instead.
92757 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92759         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92760         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92761         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92763 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92765         * modules/poll-tests: New.
92766         * tests/test-poll.c: New.
92768 2008-09-12  Eric Blake  <ebb9@byu.net>
92770         frexp: test for NetBSD failure on -0.0
92771         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92772         not all, bugs from NetBSD 3.0 have been fixed.
92773         * doc/posix-functions/frexp.texi (frexp): Document bug.
92774         Reported by Thomas Klausner.
92776         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92777         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92778         literal -0.0.
92779         Reported by Jonathan C. Patschke <jp@centtech.com>.
92781 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92783         * lib/glthread/cond.h: Use dummy implementation also if
92784         USE_WIN32_THREADS.
92786 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92788         * modules/fnmatch-posix (License): Change to LGPLv2+.
92789         * modules/fnmatch-gnu (License): Likewise.
92791 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92793         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92795 2008-09-11  Jim Meyering  <meyering@redhat.com>
92797         * users.txt: Add gtk-vnc.
92799 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92801         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92802         rotate amounts.
92804         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92805         required for 16-bit and 8-bit rotates.
92806         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92807         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92808         UINT8_MAX instead of hard-coded constants.
92809         Suggested by Paul Eggert.
92811 2008-09-07  Bruno Haible  <bruno@clisp.org>
92813         * tests/test-striconveh.c (main): Check behaviour when converting from
92814         UTF-7.
92816         Make striconveh work better with stateful encodings.
92817         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92818         that iconv does not increment the inptr when returning -1/EINVAL.
92820 2008-09-07  Bruno Haible  <bruno@clisp.org>
92822         * build-aux/config.rpath: Update according to libtool-2.2.6.
92823         * build-aux/config.libpath: Likewise.
92825 2008-09-06  Bruno Haible  <bruno@clisp.org>
92827         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92828         * lib/freadptr.c (freadptr): Likewise.
92829         * lib/freadseek.c (freadptrinc): Likewise.
92830         Reported by Simon Josefsson.
92832 2008-09-06  Bruno Haible  <bruno@clisp.org>
92834         * modules/freadptr (License): Change to LGPLv2+.
92835         * modules/freadseek (License): Likewise.
92836         Suggested by Eric Blake.
92838         * modules/memchr2 (License): Change to LGPLv2+.
92839         Approved by Eric Blake.
92841 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92842             Bruno Haible  <bruno@clisp.org>
92844         Make gnulib-tool work with native 'sed' on AIX.
92845         * gnulib-tool (sed_noop): New variable.
92846         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92847         func_add_or_update, func_create_testdir): Use it to initialize sed
92848         script variables.
92849         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92851 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92852             Bruno Haible  <bruno@clisp.org>
92854         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92855         also works after #include directives.
92857 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92859         getdate.y: reject an out-of-range timezone value
92860         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92861         the range [-24...+24].  When specified with only one or two digits,
92862         * tests/test-getdate.c: Tests for the fix.
92863         * doc/getdate.texi: Document this change.
92865 2008-09-03  Bruno Haible  <bruno@clisp.org>
92867         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92869 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92871         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92872         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92873         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92874         Blake <ebb9@byu.net>.
92876         * tests/test-bitrotate.c: Add more test vectors.
92878 2008-09-02  Eric Blake  <ebb9@byu.net>
92880         vasnprintf-posix: handle large precision via %.*d
92881         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92882         when handling it ourselves.
92883         * tests/test-vasnprintf-posix.c (test_function): Add test.
92884         * tests/test-snprintf-posix.h (test_function): Likewise.
92885         * tests/test-sprintf-posix.h (test_function): Likewise.
92886         * tests/test-vasprintf-posix.c (test_function): Likewise.
92887         Reported by Alain Guibert.
92889 2008-09-01  Eric Blake  <ebb9@byu.net>
92891         c-stack: make configure-time check more robust
92892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92893         successful sigaction call.
92894         Reported by Tom G. Christensen.
92896 2008-09-01  Bruno Haible  <bruno@clisp.org>
92898         New module 'findprog-lgpl'.
92899         * modules/findprog-lgpl: New file.
92900         * lib/findprog-lgpl.c: New file.
92901         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92902         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92903         to decide whether to use strdup or xstrdup, concatenated_filename or
92904         xconcatenated_filename.
92906 2008-09-01  Bruno Haible  <bruno@clisp.org>
92908         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92909         'xconcat-filename' (GPL).
92910         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92911         (License): Change to LGPLv2+.
92912         * modules/xconcat-filename: New file.
92913         * lib/concat-filename.h (concatenated_filename): Change specification.
92914         (xconcatenated_filename): New declaration.
92915         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92916         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92917         memory situations.
92918         * lib/xconcat-filename.c: New file.
92919         * NEWS: Mention the change.
92920         * lib/findprog.c: Include concat-filename.h, not filename.h.
92921         (find_in_path): Use xconcatenated_filename instead of
92922         concatenated_filename.
92923         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92924         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92925         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92926         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92927         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92928         instead of concatenated_filename.
92929         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92930         (execute_java_class): Use xconcatenated_filename instead of
92931         concatenated_filename.
92932         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92933         * modules/javacomp (Depends-on): Likewise.
92934         * modules/javaexec (Depends-on): Likewise.
92936 2008-09-01  Bruno Haible  <bruno@clisp.org>
92938         Split module 'filename' into 'filename' and 'concat-filename'.
92939         * modules/filename: Keep only lib/filename.h.
92940         (License): Change to LGPLv2+.
92941         * modules/concat-filename: New file, extracted from modules/filename.
92942         * lib/filename.h (concatenated_filename): Remove declaration.
92943         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92944         * lib/concat-filename.c: Include concat-filename.h.
92945         * NEWS: Mention the change.
92947 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92949         * lib/bitrotate.h (rotl8, rotr8): Add.
92951         * modules/bitrotate (configure.ac): Need
92952         AC_REQUIRE([AC_C_INLINE]).
92953         (Description): Mention stdint.h.  Reported by Bruno Haible
92954         <bruno@clisp.org>.
92956         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92957         Paolo Bonzini <bonzini@gnu.org>.
92959 2008-08-31  Bruno Haible  <bruno@clisp.org>
92961         Assume Solaris specific bi-arch conventions on Solaris systems.
92962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92963         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92964         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92965         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92966         like acl_libdirstem.
92967         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92968         acl_libdirstem.
92969         * NEWS: Mention the change.
92970         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92972 2008-08-31  Jim Meyering  <meyering@redhat.com>
92974         * lib/strftime.h: Add comments describing the two added arguments.
92976         remove duplicate #include directives
92977         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92978         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92980 2008-08-31  Bruno Haible  <bruno@clisp.org>
92982         New module 'sigpipe-die'.
92983         * modules/sigpipe-die: New file.
92984         * lib/sigpipe-die.h: New file.
92985         * lib/sigpipe-die.c: New file.
92986         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92988 2008-08-31  Bruno Haible  <bruno@clisp.org>
92990         Don't override previously installed signal handlers.
92991         * lib/fatal-signal.c (saved_sigactions): New variable.
92992         (uninstall_handlers): Reset the signal to the saved handler, not
92993         to SIG_DFL (except when ignored).
92994         (install_handlers): Save the previous handlers.
92996 2008-08-30  Bruno Haible  <bruno@clisp.org>
92998         * gnulib-tool (func_reset_sigpipe): New function.
92999         (func_get_automake_snippet, func_modules_transitive_closure,
93000         func_import): Invoke it before a join command that reads from stdin,
93001         to avoid "echo: write error: Broken pipe" error messages on stderr.
93002         Reported by Sam Steingold <sds@gnu.org>.
93004 2008-08-30  Bruno Haible  <bruno@clisp.org>
93006         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
93007         Code copied from m4/open.m4.
93008         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
93009         access and the filename ends in a slash. Code copied from lib/open.c.
93010         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
93011         * tests/test-fopen.c (main): Check against bug with trailing slash.
93013 2008-08-29  Bruno Haible  <bruno@clisp.org>
93015         Avoid some "gcc -pedantic" warnings.
93016         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
93017         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
93018         * lib/dirent.in.h: Likewise.
93019         * lib/fcntl.in.h: Likewise.
93020         * lib/float.in.h: Likewise.
93021         * lib/iconv.in.h: Likewise.
93022         * lib/inttypes.in.h: Likewise.
93023         * lib/locale.in.h: Likewise.
93024         * lib/math.in.h: Likewise.
93025         * lib/netinet_in.in.h: Likewise.
93026         * lib/search.in.h: Likewise.
93027         * lib/signal.in.h: Likewise.
93028         * lib/stdarg.in.h: Likewise.
93029         * lib/stdint.in.h: Likewise.
93030         * lib/stdio.in.h: Likewise.
93031         * lib/stdlib.in.h: Likewise.
93032         * lib/string.in.h: Likewise.
93033         * lib/strings.in.h: Likewise.
93034         * lib/sys_select.in.h: Likewise.
93035         * lib/sys_socket.in.h: Likewise.
93036         * lib/sys_stat.in.h: Likewise.
93037         * lib/sys_time.in.h: Likewise.
93038         * lib/sysexits.in.h: Likewise.
93039         * lib/time.in.h: Likewise.
93040         * lib/unistd.in.h: Likewise.
93041         * lib/wchar.in.h: Likewise.
93042         * lib/wctype.in.h: Likewise.
93043         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
93044         * modules/fchdir (Makefile.am): Likewise.
93045         * modules/fcntl (Makefile.am): Likewise.
93046         * modules/float (Makefile.am): Likewise.
93047         * modules/iconv_open (Makefile.am): Likewise.
93048         * modules/inttypes (Makefile.am): Likewise.
93049         * modules/locale (Makefile.am): Likewise.
93050         * modules/math (Makefile.am): Likewise.
93051         * modules/netinet_in (Makefile.am): Likewise.
93052         * modules/search (Makefile.am): Likewise.
93053         * modules/signal (Makefile.am): Likewise.
93054         * modules/stdarg (Makefile.am): Likewise.
93055         * modules/stdint (Makefile.am): Likewise.
93056         * modules/stdio (Makefile.am): Likewise.
93057         * modules/stdlib (Makefile.am): Likewise.
93058         * modules/string (Makefile.am): Likewise.
93059         * modules/strings (Makefile.am): Likewise.
93060         * modules/sys_select (Makefile.am): Likewise.
93061         * modules/sys_socket (Makefile.am): Likewise.
93062         * modules/sys_stat (Makefile.am): Likewise.
93063         * modules/sys_time (Makefile.am): Likewise.
93064         * modules/sysexits (Makefile.am): Likewise.
93065         * modules/time (Makefile.am): Likewise.
93066         * modules/unistd (Makefile.am): Likewise.
93067         * modules/wchar (Makefile.am): Likewise.
93068         * modules/wctype (Makefile.am): Likewise.
93069         Reported by Reuben Thomas <rrt@sc3d.org>.
93071 2008-08-29  Bruno Haible  <bruno@clisp.org>
93073         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
93074         any more.
93076 2008-08-29  Simon Josefsson  <simon@josefsson.org>
93078         * MODULES.html.sh (Misc): Add bitrotate.
93080         * modules/bitrotate: New file.
93082         * lib/bitrotate.h: New file.
93084         * modules/bitrotate-tests: New file.
93086         * tests/test-bitrotate.c: New file.
93088         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
93089         on the bitrotate module.
93091         * lib/arctwo.c: Use new bitrotate module.
93093 2008-08-29  Jim Meyering  <meyering@redhat.com>
93095         bootstrap: merge changes from coreutils
93096         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
93097         of copied files.  Remove a kludge, now that this is fixed.
93098         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
93099         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
93100         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
93102 2008-08-29  Bruno Haible  <bruno@clisp.org>
93104         * MODULES.html.sh: Remove --cvs-urls option.
93106 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
93108         maint.mk: adjust to file name change
93109         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
93111 2008-08-28  Jim Meyering  <meyering@redhat.com>
93113         * modules/getndelim2 (License): Relicense to LGPLv2+.
93114         Approved by Richard Stallman for the version of 1995, and by
93115         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
93117 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
93119         * lib/getdelim.c (flockfile, funlockfile): Make all of them
93120         dummy if one is not available.  Do not touch them if
93121         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
93122         (getc_maybe_unlocked): New.
93123         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
93125 2008-08-26  Eric Blake  <ebb9@byu.net>
93127         doc/INSTALL: resync from autoconf
93128         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
93129         (INSTALL_PRELUDE): Delete; this is done more efficiently by
93130         moving...
93131         * install.texi [!autoconf]: ...here.  Resync from autoconf.
93132         * INSTALL: Regenerate.
93133         * INSTALL.ISO: New file.
93134         * INSTALL.UTF-8: Likewise.
93136 2008-08-26  Jim Meyering  <meyering@redhat.com>
93138         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
93139         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
93140         these definitions conditional, so that they may be overridden, too.
93142 2008-08-26  Bruno Haible  <bruno@clisp.org>
93144         Generate INSTALL file variants with prettier quotes.
93145         * doc/Makefile (INSTALL_PRELUDE): New macro.
93146         (INSTALL): Use it.
93147         (INSTALL.ISO, INSTALL.UTF-8): New rules.
93149 2008-08-26  Bruno Haible  <bruno@clisp.org>
93151         Run makeinfo in an English locale.
93152         * doc/Makefile (MAKEINFO): New variable.
93154 2008-08-26  Bruno Haible  <bruno@clisp.org>
93156         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
93157         Suggested by Eric Blake.
93159 2008-08-25  Bruno Haible  <bruno@clisp.org>
93161         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
93163 2008-08-25  Eric Blake  <ebb9@byu.net>
93165         c-stack: test that stack overflow can be caught
93166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
93167         that platform allows handling stack overflow; at least OS/2 EMX
93168         has sigaltstack, but crashes before transferring control to
93169         handler on stack overflow.
93170         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
93171         check for HAVE_STACK_OVERFLOW_HANDLING.
93172         Reported by Elbert Pol.
93174 2008-08-25  Bruno Haible  <bruno@clisp.org>
93176         * doc/posix-functions/strftime.texi: Fix description of strftime
93177         module.
93179 2008-08-24  Bruno Haible  <bruno@clisp.org>
93181         * tests/uniwidth/test-uc_width2.c: New file.
93182         * tests/uniwidth/test-uc_width2.sh: New file.
93183         * modules/uniwidth/width-tests (Files): Add the new files.
93184         (TESTS): Add uniwidth/test-uc_width2.sh.
93185         (TESTS_ENVIRONMENT): New variable.
93186         (check_PROGRAMS): Add test-uc_width2.
93187         (test_uc_width2_SOURCES): New variable.
93189         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
93190         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
93191         not 0x00AB.
93192         Reported by Alexander V. Lukyanov <lav@netis.ru>.
93194 2008-08-22  Eric Blake  <ebb9@byu.net>
93196         test-lock, test-tls: mention why a test is skipped
93197         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
93198         skipped.
93199         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
93201         count-one-bits: relax license
93202         * modules/count-one-bits (License): Relicense to LGPLv2+.
93203         Suggested by Ludovic Courtès, approved by Ben Pfaff.
93205 2008-08-22  Andreas Schwab  <schwab@suse.de>
93207         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
93208         Remove spurious space in assignment.
93210 2008-08-21  Simon Josefsson  <simon@josefsson.org>
93212         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
93213         Paul Eggert <eggert@CS.UCLA.EDU>.
93215 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
93217         * modules/gettext: Add m4/threadlib.m4.
93219 2008-08-19  Eric Blake  <ebb9@byu.net>
93221         test-c-stack: fix compilation failure on FreeBSD 5.0
93222         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
93223         headers before <sys/resource.h>.
93224         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
93225         the bug.
93226         Reported by Nelson H. F. Beebe.
93228         strverscmp: migrate from "strverscmp.h" to <string.h>
93229         * modules/string (Makefile.am): Add new hooks.
93230         * modules/strverscmp (Files): Remove strverscmp.h.
93231         (Depends-on): Add string.
93232         (configure.ac): Add indicator.
93233         (Include): Mention new header.
93234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
93235         defaults.
93236         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
93237         results.
93238         * lib/strverscmp.h: Delete.
93239         * lib/string.in.h (strverscmp): Provide declaration, when needed.
93240         * tests/test-strverscmp.c (includes): Adjust client.
93241         * lib/check-version.c (includes): Likewise.
93242         * NEWS: Document the change.
93244         strverscmp: add unit test
93245         * modules/strverscmp-tests: New file.
93246         * tests/test-strverscmp.c: Likewise.
93248 2008-08-19  Simon Josefsson  <simon@josefsson.org>
93250         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
93251         regarding Windows crypto stuff, from Mono.
93253 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
93255         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
93256         if present, for intel RND.  Return error on failures.
93258 2008-08-18  Ben Pfaff  <blp@gnu.org>
93260         gitlog-to-changelog: give better diagnostic for failed pipe-open
93261         * build-aux/gitlog-to-changelog: Improve error message: suggest
93262         that the version of Git may be too old.
93264 2008-08-18  Simon Josefsson  <simon@josefsson.org>
93266         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
93267         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
93269 2008-08-18  Bruno Haible  <bruno@clisp.org>
93271         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
93272         pthread_in_use().
93274 2008-08-18  Bruno Haible  <bruno@clisp.org>
93276         * lib/glthread/threadlib.c: Include <pthread.h>.
93278 2008-08-18  Bruno Haible  <bruno@clisp.org>
93280         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
93281         glthread_recursive_lock_* macros.
93282         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
93283         Fix syntax error.
93285 2008-08-18  Bruno Haible  <bruno@clisp.org>
93287         * lib/glthread/thread.c: Avoid forcing a context switch right after
93288         thread creation.
93290 2008-08-17  Bruno Haible  <bruno@clisp.org>
93292         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
93293         * lib/glthread/thread.h: Provide Win32 specific implementation.
93294         * modules/thread (Files): Add lib/glthread/thread.c.
93295         (Depends-on): Add lock.
93296         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
93298 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93300         New module 'yield'.
93301         * modules/yield: New file.
93302         * lib/glthread/yield.h: New file.
93303         * m4/yield.m4: New file.
93304         * MODULES.html.sh (Multithreading): Add yield.
93306 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93308         New module 'thread'.
93309         * modules/thread: New file.
93310         * lib/glthread/thread.h: New file.
93311         * m4/thread.m4: New file.
93312         * MODULES.html.sh (Multithreading): Add thread.
93314 2008-08-17  Bruno Haible  <bruno@clisp.org>
93316         * lib/glthread/lock.h: Include <stdlib.h> always.
93317         * lib/glthread/tls.h: Likewise.
93318         * lib/glthread/cond.h: Likewise.
93320 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93322         New module 'cond'.
93323         * modules/cond: New file.
93324         * lib/glthread/cond.h: New file.
93325         * lib/glthread/cond.c: New file.
93326         * m4/cond.m4: New file.
93327         * MODULES.html.sh (Multithreading): Add cond.
93329 2008-08-16  Eric Blake  <ebb9@byu.net>
93331         c-stack: fix regression on Irix 5.3 from 2008-06-21
93332         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93333         sa_sigaction...
93334         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93335         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93336         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93337         * modules/signal (Makefile.am): Use the value.
93338         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93339         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93340         * doc/posix-headers/signal.texi (signal.h): Document this
93341         portability issue.
93342         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93343         Reported by Tom G. Christensen.
93345 2008-08-17  Bruno Haible  <bruno@clisp.org>
93347         New module 'threadlib'.
93348         * modules/threadlib: New file.
93349         * lib/glthread/threadlib.c: New file, extracted from
93350         lib/glthread/lock.c.
93351         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93352         functions.
93353         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93354         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93355         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93356         macros.
93357         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93358         (gl_DISABLE_THREADS): Remove macro.
93359         * modules/lock (Files): Remove build-aux/config.rpath.
93360         (Depends-on): Remove havelib. Add threadlib.
93361         (configure.ac-early): Remove section.
93362         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93363         * modules/tls (Depends-on): Remove lock. Add threadlib.
93364         (Link): New section, copied from threadlib.
93365         * MODULES.html.sh (Multithreading): Add threadlib.
93367 2008-08-14  Bruno Haible  <bruno@clisp.org>
93369         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93370         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93371         glthread_rwlock_unlock, glthread_rwlock_destroy,
93372         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93373         glthread_recursive_lock_destroy): Define as macros always.
93374         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93375         glthread_lock_lock.
93376         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93377         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93378         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93379         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93380         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93381         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93382         (glthread_recursive_lock_lock_func): Renamed from
93383         glthread_recursive_lock_lock.
93384         (glthread_recursive_lock_unlock_func): Renamed from
93385         glthread_recursive_lock_unlock.
93386         (glthread_recursive_lock_destroy_func): Renamed from
93387         glthread_recursive_lock_destroy.
93389 2008-08-14  Bruno Haible  <bruno@clisp.org>
93391         * lib/glthread/lock.h: Renamed from lib/lock.h.
93392         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93393         * lib/glthread/tls.h: Renamed from lib/tls.h.
93394         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93395         * lib/fstrcmp.c: Update includes.
93396         * lib/strsignal.c: Update includes.
93397         * modules/lock (Files, Makefile.am): Update.
93398         (Include): Change to "glthread/lock.h".
93399         * modules/tls (Files, Makefile.am): Update.
93400         (Include): Change to "glthread/tls.h".
93401         * tests/test-lock.c: Update includes.
93402         * tests/test-tls.c: Update includes.
93403         * NEWS: Mention the renamed header files.
93405 2008-08-11  Jim Meyering  <meyering@redhat.com>
93407         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93409 2008-08-11  Eric Blake  <ebb9@byu.net>
93411         test-c-stack: avoid C99-ism
93412         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93413         before statement.
93414         Reported by Alain Guibert.
93416 2008-08-10  Jim Meyering  <meyering@redhat.com>
93418         ensure that return value of uinttostr et al are not ignored
93419         * lib/inttostr.h (__GNUC_PREREQ): Define.
93420         (__attribute_warn_unused_result__): Define.
93421         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93423 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93425         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93426         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93428 2008-08-07  Jim Meyering  <meyering@redhat.com>
93430         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93432         * modules/mkstemp (License): Relicense under LGPLv2+.
93433         * modules/tempname (License): Likewise.
93435 2008-08-06  Bruno Haible  <bruno@clisp.org>
93437         * lib/poll.c (poll): Further micro-optimization.
93439 2008-08-06  Jim Meyering  <meyering@redhat.com>
93441         inet_pton.c: use locale-independent tolower
93442         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93443         (inet_pton6): Use c_tolower rather than tolower.
93444         * modules/inet_pton (Depends-on): Add c-ctype.
93446 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93448         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93449         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93451 2008-08-06  Jim Meyering  <meyering@redhat.com>
93453         * modules/inet_pton (License): Relicense under LGPLv2+.
93455 2008-08-03  Bruno Haible  <bruno@clisp.org>
93457         Additional non-aborting API for lock and tls.
93458         * lib/lock.h: Include <errno.h>.
93459         (glthread_lock_init): New macro/function.
93460         (gl_lock_init): Define as wrapper around glthread_lock_init.
93461         (glthread_lock_lock): New macro/function.
93462         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93463         (glthread_lock_unlock): New macro/function.
93464         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93465         (glthread_lock_destroy): New macro/function.
93466         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93467         (glthread_rwlock_init): New macro/function.
93468         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93469         (glthread_rwlock_rdlock): New macro/function.
93470         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93471         (glthread_rwlock_wrlock): New macro/function.
93472         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93473         (glthread_rwlock_unlock): New macro/function.
93474         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93475         (glthread_rwlock_destroy): New macro/function.
93476         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93477         (glthread_recursive_lock_init): New macro/function.
93478         (gl_recursive_lock_init): Define as wrapper around
93479         glthread_recursive_lock_init.
93480         (glthread_recursive_lock_lock): New macro/function.
93481         (gl_recursive_lock_lock): Define as wrapper around
93482         glthread_recursive_lock_lock.
93483         (glthread_recursive_lock_unlock): New macro/function.
93484         (gl_recursive_lock_unlock): Define as wrapper around
93485         glthread_recursive_lock_unlock.
93486         (glthread_recursive_lock_destroy): New macro/function.
93487         (gl_recursive_lock_destroy): Define as wrapper around
93488         glthread_recursive_lock_destroy.
93489         (glthread_once): New macro/function.
93490         (gl_once): Define as wrapper around glthread_once.
93491         Update function declarations.
93492         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93493         glthread_rwlock_init. Return error code.
93494         (glthread_rwlock_rdlock_multithreaded): Renamed from
93495         glthread_rwlock_rdlock. Return error code.
93496         (glthread_rwlock_wrlock_multithreaded): Renamed from
93497         glthread_rwlock_wrlock. Return error code.
93498         (glthread_rwlock_unlock_multithreaded): Renamed from
93499         glthread_rwlock_unlock. Return error code.
93500         (glthread_rwlock_destroy_multithreaded): Renamed from
93501         glthread_rwlock_destroy. Return error code.
93502         (glthread_recursive_lock_init_multithreaded): Renamed from
93503         glthread_recursive_lock_init. Return error code.
93504         (glthread_recursive_lock_lock_multithreaded): Renamed from
93505         glthread_recursive_lock_lock. Return error code.
93506         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93507         glthread_recursive_lock_unlock. Return error code.
93508         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93509         glthread_recursive_lock_destroy. Return error code.
93510         (glthread_once_call): Make static.
93511         (glthread_once_multithreaded): Renamed from glthread_once.
93512         * lib/tls.h: Include <errno.h>.
93513         (glthread_tls_key_init): New macro/function.
93514         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93515         (glthread_tls_set): New macro/function.
93516         (gl_tls_set): Define as wrapper around glthread_tls_set.
93517         (glthread_tls_key_destroy): New macro/function.
93518         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93519         Update function declarations.
93520         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93521         glthread_tls_get.
93522         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93524 2008-08-04  Eric Blake  <ebb9@byu.net>
93526         gnumakefile: use space, not TAB, outside of targets
93527         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93529 2008-08-02  Jim Meyering  <meyering@redhat.com>
93531         getdate.y: avoid locale-dependent date parsing failure
93532         In Turkish locales, getdate would fail to recognize keywords
93533         containing a lowercase "i".  The solution is not to rely on
93534         locale-sensitive case-conversion.
93535         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93536         (lookup_word): Use c_toupper in place of toupper.
93537         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93538         Reported by Vefa Bicakci <bicave@superonline.com> in
93539         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93540         * modules/getdate (Depends-on): Add c-ctype.
93542 2008-08-02  Bruno Haible  <bruno@clisp.org>
93544         * gnulib-tool (func_import): When updating or creating a .gitignore
93545         file, prepend each added line with a slash, and ignore leading slashes
93546         from the existing lines.
93547         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93549 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93551         Portability fix for GNU make 3.79.1.
93552         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93553         versions do not understand.
93555 2008-08-01  Bruno Haible  <bruno@clisp.org>
93557         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93558         * tests/test-isnanf.h (zero): New variable.
93559         (main): Avoid literal -0.0f.
93560         * tests/test-isnand.h (zero): New variable.
93561         (main): Avoid literal -0.0.
93562         * tests/test-isnanl.h (zero): New variable.
93563         (main): Avoid literal -0.0L.
93564         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93565         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93566         -0.0, -0.0L.
93567         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93568         (test_signbitd): Avoid literal -0.0.
93569         (test_signbitl): Avoid literal -0.0L.
93570         * tests/test-ceilf1.c (zero): New variable.
93571         (main): Avoid literal -0.0f.
93572         * tests/test-ceill.c (zero): New variable.
93573         (main): Avoid literal -0.0L.
93574         * tests/test-floorf1.c (zero): New variable.
93575         (main): Avoid literal -0.0f.
93576         * tests/test-floorl.c (zero): New variable.
93577         (main): Avoid literal -0.0L.
93578         * tests/test-roundf1.c (zero): New variable.
93579         (main): Avoid literal -0.0f.
93580         * tests/test-round1.c (zero): New variable.
93581         (main): Avoid literal -0.0.
93582         * tests/test-roundl.c (zero): New variable.
93583         (main): Avoid literal -0.0L.
93584         * tests/test-truncf1.c (zero): New variable.
93585         (main): Avoid literal -0.0f.
93586         * tests/test-trunc1.c (zero): New variable.
93587         (main): Avoid literal -0.0.
93588         * tests/test-truncl.c (zero): New variable.
93589         (main): Avoid literal -0.0L.
93590         * tests/test-frexp.c (zero): New variable.
93591         (main): Avoid literal -0.0.
93592         * tests/test-frexpl.c (zero): New variable.
93593         (main): Avoid literal -0.0L.
93594         * tests/test-ldexpl.c (zero): New variable.
93595         (main): Avoid literal -0.0L.
93596         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93597         (zerod, zerol): New variables.
93598         (test_function): Avoid literals -0.0, -0.0L.
93599         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93600         (zerod, zerol): New variables.
93601         (test_function): Avoid literals -0.0, -0.0L.
93602         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93603         (zerod, zerol): New variables.
93604         (test_function): Avoid literals -0.0, -0.0L.
93605         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93606         (zerod, zerol): New variables.
93607         (test_function): Avoid literals -0.0, -0.0L.
93608         * tests/test-strtod.c (zero): New variable.
93609         (main): Avoid literal -0.0.
93610         Reported by Jonathan C. Patschke <jp@centtech.com>.
93612 2008-07-31  Jim Meyering  <meyering@redhat.com>
93614         sha256.h: correct definition of SHA224_DIGEST_SIZE
93615         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93616         Reported by Paulie Pena IV <paulie4@gmail.com>.
93617         Define as 224 / 8, rather than as a literal.
93618         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93619         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93620         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93622 2008-07-31  Bruno Haible  <bruno@clisp.org>
93624         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93625         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93626         Reported by Jonathan Patschke <jp@centtech.com>.
93628 2008-07-31  Bruno Haible  <bruno@clisp.org>
93630         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93631         Reported by Paolo Bonzini <bonzini@gnu.org>.
93633 2008-07-30  Eric Blake  <ebb9@byu.net>
93635         test-strtod: allow compilation without -lm
93636         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93637         Reported by Dennis Clarke <blastwave@gmail.com>.
93639 2008-07-28  Jim Meyering  <meyering@redhat.com>
93641         bootstrap: work also when there are no .po files in po/
93642         * build-aux/bootstrap (update_po_files): Complete the change
93643         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93645 2008-07-27  Jim Meyering  <meyering@redhat.com>
93647         * users.txt: Add zile.
93649 2008-07-26  Ben Pfaff  <blp@gnu.org>
93651         Add missing dependencies on new m4/exponent[fdl].m4 files.
93652         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93653         * modules/isnand-nolibm: Add m4/exponentd.m4.
93654         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93655         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93656         m4/isnan[fdl].m4, because the macros actually used moved.
93657         Reported by Jim Meyering.
93659 2008-07-14  Ben Pfaff  <blp@gnu.org>
93661         Add isinf module.
93662         * lib/isinf.c: New file.
93663         * lib/math.in.h: Define isinf macro if we have decided to replace
93664         it.
93665         * m4/isinf.m4: New file.
93666         * m4/math_h.m4: Initialize and substitute variables for isinf
93667         module.
93668         * modules/isinf: New file.
93669         * modules/isinf-tests: New file.
93670         * modules/math: Add substitutions for new module.
93671         * tests/test-isinf.c: New file.
93672         * doc/posix-functions/isinf.texi: Mention new module.
93673         * MODULES.html.sh: Mention new module.
93675 2008-07-14  Ben Pfaff  <blp@gnu.org>
93677         Factor out some macros for use by additional modules.
93678         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93679         exponentf.m4.
93680         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93681         exponentd.m4.
93682         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93683         file exponentl.m4.
93684         * m4/exponentf.m4: New file.
93685         * m4/exponentd.m4: New file.
93686         * m4/exponentl.m4: New file.
93687         * modules/isnanf: Use new file m4/exponentf.m4.
93688         * modules/isnand: Use new file m4/exponentd.m4.
93689         * modules/isnanl: Use new file m4/exponentl.m4.
93691 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93693         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93694         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93695         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93696         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93698         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93699         readlink on platforms without PATH_MAX.
93701 2008-07-21  Eric Blake  <ebb9@byu.net>
93703         Warn, not fail, on stale version.
93704         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93706         Don't allow installation with stale devel version number.
93707         * top/GNUmakefile (_is-install-target): New macro.
93708         (_curr-ver): Forbid installation with stale version number.
93710 2008-07-20  Bruno Haible  <bruno@clisp.org>
93712         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93713         TESTS_ENVIRONMENT.
93714         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93716 2008-07-20  Bruno Haible  <bruno@clisp.org>
93718         * lib/c-stack.h (c_stack_action): Add documentation.
93719         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93721 2008-07-20  Bruno Haible  <bruno@clisp.org>
93723         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93724         * modules/readlink (License): Likewise.
93726 2008-07-17  Eric Blake  <ebb9@byu.net>
93728         * modules/c-stack (Link): Fix typo.
93730         Make c-stack use libsigsegv, when available.
93731         * modules/c-stack (Depends-on): Add libsigsegv.
93732         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93733         needed.
93734         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93735         (segv_handler, overflow_handler, c_stack_action)
93736         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93737         implementation when libsigsegv is available, but only when using
93738         the library is necessary.
93739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93740         comment, explaining why XSI check fails on Linux.
93741         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93742         * tests/test-c-stack2.sh: Tweak skip message.
93743         * NEWS: Document new link-time requirements.
93745 2008-07-16  Eric Blake  <ebb9@byu.net>
93747         c-stack: Expose false positives when not using libsigsegv.
93748         * modules/c-stack-tests (Files): Expand test.
93749         * tests/test-c-stack.c (main): Add means to conditionally trigger
93750         non-overflow SIGSEGV.
93751         * tests/test-c-stack2.sh: New file.
93753 2008-07-14  Bruno Haible  <bruno@clisp.org>
93755         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93756         Reported by Eric Blake.
93758 2008-07-14  Sam Steingold  <sds@gnu.org>
93759             Bruno Haible  <bruno@clisp.org>
93761         New module libsigsegv.
93762         * modules/libsigsegv: New file.
93763         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93764         modifications.
93765         * MODULES.html.sh (Signal handling): New section.
93767 2008-07-14  Bruno Haible  <bruno@clisp.org>
93769         * modules/unictype/ctype-* (Description): Add the word "function".
93770         Improves the resulting doc in MODULES.html.
93772 2008-07-12  Ben Pfaff  <blp@gnu.org>
93774         Add longlong module.
93775         * modules/longlong: New file.
93777 2008-07-12  Bruno Haible  <bruno@clisp.org>
93779         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93780         to empty.
93782 2008-07-10  Ben Pfaff  <blp@gnu.org>
93784         Add isnan module.
93785         * doc/posix-functions/isnan.texi: Mention new module.
93786         * lib/math.in.h: Define isnan macro if we have decided to replace
93787         it.
93788         * m4/isnan.m4: New file.
93789         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93790         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93791         also.
93792         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93793         redundancy.
93794         * m4/math_h.m4: Initialize and substitute variables for isnan
93795         module.
93796         * modules/isnan: New file.
93797         * modules/isnan-tests: New file.
93798         * modules/math: Add substitutions for new module.
93799         * tests/test-isnan.c: New file.
93800         * MODULES.html.sh: Mention new module.
93802 2008-07-10  Ben Pfaff  <blp@gnu.org>
93804         Add isnanf module.
93805         * lib/isnanf.m4: New file.
93806         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93807         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93808         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93809         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93810         * modules/isnanf: New file.
93811         * modules/isnanf-tests: New file.
93812         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93813         files.
93814         * tests/test-isnanf-nolibm.c: factored most of its contents into
93815         new file tests/test-isnanf.h.
93816         * tests/test-isnanf.h: New file.
93817         * tests/test-isnanf.c: New file.
93818         * MODULES.html.sh: Mention new module.
93819         * doc/glibc-functions/isnanf.texi: Mention new module.
93821 2008-07-10  Ben Pfaff  <blp@gnu.org>
93823         Add isnand module.
93824         * lib/isnand.h: New file.
93825         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93826         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93827         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93828         functionality also.
93829         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93830         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93831         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93832         * modules/isnand: New file.
93833         * modules/isnand-tests: New file.
93834         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93835         files.
93836         * tests/test-isnand-nolibm.c: factored most of its contents into
93837         new file tests/test-isnand.h.
93838         * tests/test-isnand.h: New file.
93839         * tests/test-isnand.c: New file.
93840         * MODULES.html.sh: Mention new module.
93842 2008-07-10  Ben Pfaff  <blp@gnu.org>
93844         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93845         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93846         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93847         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93848         * modules/isnanf-nolibm: Update references to renamed files.
93849         * modules/isnand-nolibm: Likewise.
93850         * modules/isnanf-nolibm-tests: Likewise.
93851         * modules/isnand-nolibm-tests: Likewise.
93852         * lib/frexp.c: Likewise.
93853         * lib/isfinite.c: Likewise.
93854         * lib/signbitd.c: Likewise.
93855         * lib/signbitf.c: Likewise.
93856         * lib/vasnprintf.c: Likewise.
93857         * tests/test-ceilf1.c: Likewise.
93858         * tests/test-ceilf2.c: Likewise.
93859         * tests/test-floorf1.c: Likewise.
93860         * tests/test-floorf2.c: Likewise.
93861         * tests/test-frexp.c: Likewise.
93862         * tests/test-round1.c: Likewise.
93863         * tests/test-round2.c: Likewise.
93864         * tests/test-roundf1.c: Likewise.
93865         * tests/test-strtod.c: Likewise.
93866         * tests/test-trunc1.c: Likewise.
93867         * tests/test-trunc2.c: Likewise.
93868         * tests/test-truncf1.c: Likewise.
93869         * tests/test-truncf2.c: Likewise.
93870         * NEWS: Mention the renamed header files.
93872 2008-07-11  Jim Meyering  <meyering@redhat.com>
93874         vc-list-files: make the last-resort awk code more portable
93875         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93876         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93877         does not support it.
93879 2008-07-10  Eric Blake  <ebb9@byu.net>
93881         Work with tar's bootstrap.
93882         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93883         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93884         an m4 comment.
93886 2008-07-09  Jim Meyering  <meyering@redhat.com>
93888         posix-shell.m4: fix typo that made this test malfunction
93889         * m4/posix-shell.m4: Remove capitalization in variable name.
93891 2008-07-08  Bruno Haible  <bruno@clisp.org>
93893         * m4/onceonly.m4: Update comments.
93894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93896 2008-07-04  Jim Meyering  <meyering@redhat.com>
93898         * users.txt: Add vc-dwim.
93899         (bison, coreutils): Use the gitweb URL.
93901 2008-07-03  Jim Meyering  <meyering@redhat.com>
93903         * users.txt: Add libffcall.  From Sam Steingold.
93905 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93907         getdate.y: do not ignore TZ with relative day, month or year offset
93908         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93909         relative-date-handling, since otherwise, the latter would clobber the
93910         sole output (an updated Start value) of the tz-handling block.
93911         * tests/test-getdate.c: Tests for the fix
93913 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93915         Recognize 'foo_LIBRARIES += libgnu.a'.
93916         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93917         makefile snippet has already specified an installation location,
93918         also using '+='.
93920 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93922         getdate.y: factor out common actions
93923         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93924         Use them in place of open-coded actions.
93926 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93928         Add self-test for getdate module.
93929         * modules/getdate-tests: New file.
93930         * tests/test-getdate.c: New file.
93932 2008-06-29  Bruno Haible  <bruno@clisp.org>
93934         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93935         .gitignore.
93936         Reported by Sylvain Beucler <beuc@beuc.net>.
93938 2008-06-29  Bruno Haible  <bruno@clisp.org>
93940         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93941         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93943 2008-06-29  Bruno Haible  <bruno@clisp.org>
93945         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93946         EXTRA_DIST.
93947         Reported by Sylvain Beucler <beuc@beuc.net>.
93949 2008-06-26  Jim Meyering  <meyering@redhat.com>
93951         make several modules depend on the "open" module
93952         This provides slightly increased consistency when opening-for-write
93953         the name of a non-directory spelled with a trailing slash.
93954         * modules/chdir-safer: Likewise.
93955         * modules/chown: Likewise.
93956         * modules/clean-temp: Likewise.
93957         * modules/copy-file: Likewise.
93958         * modules/fchdir: Likewise.
93959         * modules/fcntl-safer: Likewise.
93960         * modules/pipe: Likewise.
93961         * modules/utime: Likewise.
93962         Prompted by Eric Blake and Bruno Haible.
93964 2008-06-24  Andreas Schwab  <schwab@suse.de>
93966         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93967         literals can be used as initializers for global variables.
93969 2008-06-23  Eric Blake  <ebb9@byu.net>
93971         Make gnulib-cache.m4 easier to diff.
93972         * gnulib-tool (func_import): Allow newlines when reading cached
93973         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93975 2008-06-23  Bruno Haible  <bruno@clisp.org>
93977         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93978         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93979         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93980         m4/signalblocking.m4.
93981         (gl_PREREQ_SIGACTION): Don't invoke it.
93982         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93983         gl_PREREQ_SIG_HANDLER_H.
93984         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93985         Don't check for sigaction here.
93987 2008-06-23  Bruno Haible  <bruno@clisp.org>
93989         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93990         (install_handlers): Don't set the SA_RESETHAND flag.
93992 2008-06-23  Bruno Haible  <bruno@clisp.org>
93994         * m4/sigaction.m4: Comment fixes.
93995         * lib/signal.in.h: Likewise.
93997 2008-06-23  Eric Blake  <ebb9@byu.net>
93999         Fix typo.
94000         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
94002         Avoid SA_ namespace.
94003         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
94004         Reported by Ralf Wildenhues.
94006         Avoid test failure due to SA_RESTORER.
94007         * tests/test-sigaction.c (SA_MASK): New macro.
94008         (main): Avoid failing due to extension flags being set.
94009         Reported by Jim Meyering.
94011         Revert use of sig-handler.h in sigprocmask.c.
94012         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
94013         it requires the existence of struct sigaction.
94014         * lib/sigprocmask.c (handler_t): Restore typedef.
94015         (rpl_signal, old_handlers): Use local type.
94017 2008-06-22  Bruno Haible  <bruno@clisp.org>
94019         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
94020         conditionally.
94021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
94023 2008-06-22  Bruno Haible  <bruno@clisp.org>
94025         * doc/posix-functions/siginterrupt.texi: Move note.
94027         * lib/signal.in.h (SA_RESTART): New macro.
94028         * lib/sigaction.c: Update comment.
94030         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
94032         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
94033         (gl_PREREQ_SIGPROCMASK): Invoke it.
94034         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
94036         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
94038         * lib/sigprocmask.c: Update a comment.
94040 2008-06-21  Eric Blake  <ebb9@byu.net>
94042         Use sigaction module rather than signal().
94043         * modules/c-stack (Depends-on): Add sigaction.
94044         * modules/fatal-signal (Depends-on): Likewise.
94045         * modules/nanosleep (Depends-on): Likewise.
94046         * modules/sigprocmask (Files): Add sig-handler.h.
94047         * modules/sigaction (Files): Likewise.
94048         * lib/sig-handler.h (get_handler): New file, suggested by Paul
94049         Eggert.
94050         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
94051         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
94052         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
94053         (init_fatal_signals): Likewise.
94054         * lib/nanosleep.c (rpl_nanosleep): Likewise.
94055         (siginterrupt): Delete fallback.
94056         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
94057         instead.
94058         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
94059         siginterrupt.
94061         New module sigaction, for mingw.
94062         * modules/sigaction: New module...
94063         * modules/sigaction-tests: ...and its test.
94064         * m4/sigaction.m4: New file.
94065         * lib/sigaction.c: Likewise.
94066         * tests/test-sigaction.c: Likewise.
94067         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
94068         * modules/signal (Makefile.am): Likewise.
94069         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
94070         needed.
94071         * doc/posix-headers/signal.texi (signal.h): Mention provided
94072         types.
94073         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
94074         that sigaction is preferable.
94075         * doc/posix-functions/sigaction.texi (sigaction): Mention new
94076         module.
94077         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
94078         sigaction.
94080         Improve robustness of sigprocmask by overriding signal.
94081         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
94082         is in use.
94083         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
94084         (SIGKILL, SIGSTOP): Provide fallbacks.
94085         (rpl_signal): Implement.
94086         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
94087         signal can be called inside handlers.
94089         Fix nanosleep module on mingw.
94090         * modules/nanosleep (Depends-on): Add sys_select.
94091         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
94093         Fix licensing of sigprocmask.
94094         * modules/raise (License): Relicense as LGPL.
94096 2008-06-21  Bruno Haible  <bruno@clisp.org>
94098         * lib/propername.c (proper_name_utf8): Don't use the transliterated
94099         result if it contains question marks.
94100         Reported by Michael Geng <linux@michaelgeng.de>.
94102 2008-06-19  Bruno Haible  <bruno@clisp.org>
94104         Fix CVS-ism.
94105         * doc/gnulib.texi: Include updated-stamp.texi.
94106         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
94107         (updated-stamp.texi): New rule.
94108         (gnulib.info): Depend on it.
94109         * doc/.gitignore: Add updated-stamp.texi.
94110         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
94112 2008-06-19  Bruno Haible  <bruno@clisp.org>
94114         * doc/Makefile (gnulib.info): Update and simplify dependencies.
94115         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94117 2008-06-19  Eric Blake  <ebb9@byu.net>
94119         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
94120         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
94121         Reported by Stepan Kasal.
94123 2008-06-18  Bruno Haible  <bruno@clisp.org>
94125         * lib/fatal-signal.c (init_fatal_signals): Add comment.
94126         Reported by Eric Blake.
94128 2008-06-18  Eric Blake  <ebb9@byu.net>
94130         Work around cygwin 1.5.25 strsignal bug.
94131         * tests/test-strsignal.c: Allow for const char *.
94132         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
94134 2008-06-18  Simon Josefsson  <simon@josefsson.org>
94136         * users.txt: Update URL to article and add author/date
94137         information.
94139 2008-06-17  Bruno Haible  <bruno@clisp.org>
94141         New macro gl_DISABLE_THREADS.
94142         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
94143         if the user did not pass --enable-threads or --disable-threads option.
94144         (gl_DISABLE_THREADS): New macro.
94145         Reported by Eric Blake <ebb9@byu.net>.
94147 2008-06-17  Bruno Haible  <bruno@clisp.org>
94149         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
94150         when the macro ignores it.
94151         Based on a patch by Eric Blake <ebb9@byu.net>.
94153 2008-06-17  Bruno Haible  <bruno@clisp.org>
94155         * modules/tls (License): Change to LGPLv2+.
94156         Reported by Eric Blake.
94158 2008-06-17  Eric Blake  <ebb9@byu.net>
94160         Simplify c-stack prerequisites.
94161         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
94162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
94163         no longer requires <ucontext.h> to exist.  Optimize setrlimit
94164         check.
94165         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
94166         <sys/resource.h>.
94168         Move c-stack test into testsuite.
94169         * modules/c-stack-tests: New file.
94170         * lib/c-stack.c [DEBUG]: Move test program...
94171         * tests/test-c-stack.c: ...into this new file.  Skip rather than
94172         fail test if sigaltstack is lacking.
94173         * tests/test-c-stack.sh: New driver file.
94175 2008-06-16  Eric Blake  <ebb9@byu.net>
94177         Use raise module consistently.
94178         * modules/fatal-signal (Depends-on): Add raise.
94179         * modules/sigprocmask (Depends-on): Likewise.
94180         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
94181         * lib/sigprocmask.c (sigprocmask): Likewise.
94182         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94183         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
94185         Fix compliance bug in sigpending.
94186         * lib/sigprocmask.c (sigpending): Return pending array via
94187         parameter, not return value.
94189 2008-06-14  Eric Blake  <ebb9@byu.net>
94191         Improve obstack-printf test code.
94192         * tests/test-obstack-printf.c (test_function): Fix comment, and
94193         simplify usage of obstack_* in macros.  Add a test for coverage.
94194         Reported by Bruno Haible.
94196 2008-06-14  Bruno Haible  <bruno@clisp.org>
94198         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
94199         array size as a constant, not as a const variable.
94200         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
94201         AC_USE_SYSTEM_EXTENSIONS.
94202         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
94203         Test whether the obstack_printf function actually exists.
94204         * modules/obstack-printf (Depends-on): Add extensions.
94205         (Include): Remove obstack.h.
94206         * modules/obstack-printf-posix (Depends-on): Add extensions.
94207         (Include): Remove obstack.h.
94209 2008-06-13  Eric Blake  <ebb9@byu.net>
94211         Add obstack-printf and obstack-printf-posix modules.
94212         * modules/obstack-printf: New file.
94213         * modules/obstack-printf-posix: Likewise.
94214         * MODULES.html.sh (Misc): Mention them.
94215         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
94216         Likewise.
94217         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
94218         Likewise.
94219         * modules/stdio (Makefile.am): Accomodate new modules.
94220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94221         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
94222         Declare.
94223         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
94224         functions.
94225         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
94226         (gl_REPLACE_OBSTACK_PRINTF): New macros
94227         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
94228         * tests/test-obstack-printf.c: New file.
94229         * modules/obstack-printf-tests: Likewise.
94230         * modules/obstack-printf-posix-tests: Likewise.
94232 2008-06-11  Bruno Haible  <bruno@clisp.org>
94234         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
94235         * lib/open.c: Include errno.h.
94236         (open): Fail when attempting to write to a file that has a trailing
94237         slash.
94238         * tests/test-open.c (main): Test against trailing slash bug.
94239         * doc/posix-functions/open.texi: Mention the trailing slash bug.
94241 2008-06-10  Bruno Haible  <bruno@clisp.org>
94243         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
94244         for $? to work inside the trap command, with various /bin/sh-s.
94245         * tests/test-vc-list-files-cvs.sh: Likewise.
94247 2008-06-10  Bruno Haible  <bruno@clisp.org>
94249         * lib/acl-internal.h: Don't include gettext.h here.
94250         * lib/set-mode-acl.c: Include gettext.h here.
94251         * lib/copy-acl.c: Likewise.
94253 2008-06-10  Bruno Haible  <bruno@clisp.org>
94255         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
94256         * lib/wait-process.c (wait_subprocess): Likewise.
94257         * lib/execute.h (execute): Add termsigp argument.
94258         * lib/execute.c (execute): Likewise.
94259         * lib/csharpcomp.c (compile_csharp_using_pnet,
94260         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
94261         * lib/csharpexec.c (execute_csharp_using_pnet,
94262         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
94263         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
94264         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
94265         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
94266         is_jikes_present): Update.
94267         * lib/javaexec.c (execute_java_class): Update.
94268         * lib/javaversion.c (execute_and_read_line): Update.
94269         * NEWS: Document the changes.
94270         Reported by Eric Blake.
94272 2008-06-10  Eric Blake  <ebb9@byu.net>
94274         Add missing include.
94275         * tests/test-strstr.c (includes): Add <signal.h>.
94276         * tests/test-strcasestr.c (includes): Likewise.
94277         * tests/test-memmem.c (includes): Likewise.
94279 2008-06-10  Bruno Haible  <bruno@clisp.org>
94281         * lib/wait-process.c (wait_subprocess): Add an assertion.
94283 2008-06-10  Bruno Haible  <bruno@clisp.org>
94285         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
94287 2008-06-10  Bruno Haible  <bruno@clisp.org>
94289         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
94290         using alarm().
94291         * tests/test-strcasestr.c (main): Likewise.
94292         * tests/test-strstr.c (main): Likewise.
94294 2008-06-09  Bruno Haible  <bruno@clisp.org>
94296         Work around the Solaris 10 ACE ACLs ABI change.
94297         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
94298         declare if ACL_NO_TRIVIAL is present.
94299         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
94300         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
94301         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94302         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
94303         define if ACL_NO_TRIVIAL is present.
94304         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
94305         and use the current ABI.
94306         (file_has_acl): Use same #if condition as elsewhere.
94307         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
94308         in use, and use the current ABI.
94309         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
94310         Reported by Jim Meyering.
94312 2008-06-09  Eric Blake  <ebb9@byu.net>
94314         Work around environments that (stupidly) ignore SIGALRM.
94315         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
94316         before using alarm().
94317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94319         Reported by Ian Beckwith <ianb@erislabs.net>.
94321         Produce autobuild blurb earlier in log.
94322         * modules/autobuild (configure.ac-early): Move AB_INIT here.
94324 2008-06-09  Jim Meyering  <meyering@redhat.com>
94325         and Ondřej Vašík  <ovasik@redhat.com>
94327         utimens.c: correct kernel bug work-around
94328         Ondřej Vašík found that the invalid return value of 280 indicates
94329         failure, not success, and the kernel bug we're trying to work
94330         around affects not just the utimensat call, but also the fallback
94331         futimens call.
94332         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94333         not success.
94334         [HAVE_FUTIMENS]: Use the same work-around, here.
94336 2008-06-09  Jim Meyering  <meyering@redhat.com>
94338         add more guards around definition of ACE_-related code
94339         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94340         ALLOW and ACE_OWNER are also defined.
94342 2008-06-08  Bruno Haible  <bruno@clisp.org>
94344         * lib/acl-internal.h: Add me as co-author.
94345         * lib/file-has-acl.c: Likewise.
94346         * lib/set-mode-acl.c: Likewise.
94347         * lib/copy-acl.c: Likewise.
94349 2008-06-08  Bruno Haible  <bruno@clisp.org>
94351         Add support for AIX ACLs.
94352         * lib/acl-internal.h (acl_nontrivial): New declaration.
94353         * lib/file-has-acl.c (acl_nontrivial): New function.
94354         (file_has_acl): Add implementation using AIX 4 ACL API.
94355         * lib/set-mode-acl.c (qset_acl): Likewise.
94356         * lib/copy-acl.c (qcopy_acl): Likewise.
94358 2008-06-08  Bruno Haible  <bruno@clisp.org>
94360         Add support for HP-UX ACLs.
94361         * lib/acl-internal.h (acl_nontrivial): New declaration.
94362         * lib/file-has-acl.c (acl_nontrivial): New function.
94363         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94364         * lib/set-mode-acl.c (qset_acl): Likewise.
94365         * lib/copy-acl.c (qcopy_acl): Likewise.
94367 2008-06-08  Bruno Haible  <bruno@clisp.org>
94369         Add support for Cygwin ACLs.
94370         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94371         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94372         the chmod_or_fchmod call.
94373         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94375 2008-06-08  Bruno Haible  <bruno@clisp.org>
94377         Fix bug with setuid modes in Solaris 10+ code.
94378         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94379         succeeded, when the mode contains some special bits.
94381 2008-06-08  Bruno Haible  <bruno@clisp.org>
94383         Add support for Solaris 7..10 ACLs.
94384         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94385         declarations.
94386         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94387         functions.
94388         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94389         * lib/set-mode-acl.c (qset_acl): Likewise.
94390         * lib/copy-acl.c (qcopy_acl): Likewise.
94392 2008-06-08  Bruno Haible  <bruno@clisp.org>
94394         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94395         declaration.
94396         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94397         (acl_access_nontrivial): Remove MacOS X case.
94398         (file_has_acl): Use acl_extended_nontrivial.
94399         * lib/copy-acl.c (qcopy_acl): Likewise.
94401 2008-06-08  Bruno Haible  <bruno@clisp.org>
94403         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94405 2008-06-08  Jim Meyering  <meyering@redhat.com>
94407         * modules/acl (Maintainer): Add Bruno Haible.
94409 2008-06-07  Bruno Haible  <bruno@clisp.org>
94411         Improve support for Tru64 ACLs.
94412         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94413         ACL on OSF/1.
94415 2008-06-07  Bruno Haible  <bruno@clisp.org>
94417         Add support for MacOS X ACLs.
94418         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94419         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94420         * lib/set-mode-acl.c (qset_acl): Likewise.
94421         * lib/copy-acl.c (qcopy_acl): Likewise.
94423 2008-06-07  Bruno Haible  <bruno@clisp.org>
94425         Fix memory leak introduced on 2008-05-22.
94426         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94427         use.
94429 2008-06-07  Bruno Haible  <bruno@clisp.org>
94431         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94432         to construct an empty ACL.
94434 2008-06-07  Bruno Haible  <bruno@clisp.org>
94436         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94437         precisely.
94438         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94440 2008-06-07  Bruno Haible  <bruno@clisp.org>
94442         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94443         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94445 2008-06-07  Bruno Haible  <bruno@clisp.org>
94447         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94448         regardless of POSIX.
94449         * doc/posix-functions/_longjmp.texi: Likewise.
94450         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94451         SystemV platform in this case.
94453 2008-06-06  Eric Blake  <ebb9@byu.net>
94455         Document abort() bugs.
94456         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94458         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94459         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94460         sigsetjmp.
94461         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94462         siglongjmp, but only as a macro.
94463         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94464         is obsolete.
94465         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94467         Tweak documentation to cover cygwin argz bugs.
94468         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94469         argz bug fix; no code change needed since no cygwin releases
94470         occurred between the last fix and the bug being tested.
94471         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94472         module and recently fixed cygwin bugs.
94473         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94474         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94475         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94476         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94477         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94478         Likewise.
94479         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94480         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94481         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94482         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94483         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94484         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94485         Likewise.
94487         Avoid gcc warning on cygwin.
94488         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94489         !ACL_NO_TRIVIAL]: Avoid unused variable.
94491 2008-06-05  Eric Blake  <ebb9@byu.net>
94493         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94494         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94495         git-version-gen fails to come up with a version.
94496         Reported by Simon Josefsson.
94498 2008-06-05  Jim Meyering  <meyering@redhat.com>
94499             Paul Eggert  <eggert@cs.ucla.edu>
94501         utimens.c: work around a probable Linux kernel bug
94502         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94503         appears to be a kernel bug that causes utimensat to return 280
94504         instead of 0, indicating success.
94506 2008-06-04  Bruno Haible  <bruno@clisp.org>
94508         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94509         2008-06-01 commit.
94511 2008-06-04  Bruno Haible  <bruno@clisp.org>
94513         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94514         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94515         (file_has_acl): Use it. Save errno afterwards.
94516         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94518 2008-06-03  Bruno Haible  <bruno@clisp.org>
94520         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94521         draft code. Simplify #ifs.
94522         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94523         Put Solaris code after POSIX-draft code. Fix comments regarding
94524         Solaris 10, HP-UX. Mention Cygwin.
94525         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94527 2008-06-03  Eric Blake  <ebb9@byu.net>
94529         Provide fallback for older kernels.
94530         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94531         Provide runtime fallback if kernel lacks support.
94532         Reported by Mike Frysinger.
94534 2008-06-02  Bruno Haible  <bruno@clisp.org>
94536         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94537         it exists.
94539 2008-06-02  Bruno Haible  <bruno@clisp.org>
94541         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94542         * lib/copy-acl.c (qcopy_acl): Update comment.
94544 2008-06-02  Bruno Haible  <bruno@clisp.org>
94546         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94547         like ACL APIs.
94549 2008-06-02  Bruno Haible  <bruno@clisp.org>
94551         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94552         * tests/test-set-mode-acl.sh: Likewise.
94553         * tests/test-copy-acl.sh: Likewise.
94554         * tests/test-copy-file.sh: Likewise.
94556 2008-06-02  Bruno Haible  <bruno@clisp.org>
94558         * tests/test-file-has-acl.sh: Remove unused code.
94560 2008-06-01  Bruno Haible  <bruno@clisp.org>
94562         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94563         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94564         messages.
94565         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94567 2008-06-01  Bruno Haible  <bruno@clisp.org>
94569         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94570         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94571         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94572         APIs.
94573         * modules/acl-tests (configure.ac): Remove tests now contained in
94574         m4/acl.m4.
94576 2008-06-02  Jim Meyering  <meyering@redhat.com>
94578         announce-gen: use a better key-server host name
94579         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94580         it may be more consistently reliable.  Suggested by Werner Koch
94581         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94583 2008-06-01  Bruno Haible  <bruno@clisp.org>
94585         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94586         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94588 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94590         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94592 2008-06-01  Bruno Haible  <bruno@clisp.org>
94594         New ACL tests.
94595         * tests/test-file-has-acl.sh: New file.
94596         * tests/test-file-has-acl.c: New file.
94597         * tests/test-set-mode-acl.sh: New file.
94598         * tests/test-set-mode-acl.c: New file.
94599         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94600         * tests/test-copy-acl.c: New file.
94601         * modules/acl-tests: New file, based on modules/copy-file-tests.
94602         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94603         (Depends-on): Add acl-tests.
94604         (configure.ac): Remove checks.
94605         (Makefile.am): Don't create test-sameacls program here any more.
94607 2008-06-01  Bruno Haible  <bruno@clisp.org>
94609         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94610         * tests/test-sameacls.c: Include progname.h.
94611         (main): Invoke set_program_name. Portability fixes for MacOS X,
94612         Solaris, HP-UX.
94614 2008-06-01  Bruno Haible  <bruno@clisp.org>
94616         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94617         function.
94618         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94620 2008-06-01  Bruno Haible  <bruno@clisp.org>
94622         * modules/rpmatch (Depends-on): Add strdup.
94624 2008-06-01  Bruno Haible  <bruno@clisp.org>
94626         * lib/pipe.c: Include unistd-safer.h.
94627         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94628         * modules/pipe (Depends-on): Add unistd-safer.
94630 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94632         * modules/autobuild (configure.ac): Call AB_INIT.
94634 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94636         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94637         Suggested by Bruno Haible <bruno@clisp.org>.
94639 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94641         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94642         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94643         <bruno@clisp.org>.
94645 2008-05-29  Eric Blake  <ebb9@byu.net>
94647         Prefer new POSIX 200x interfaces over futimesat.
94648         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94649         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94650         when available.
94651         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94653 2008-05-28  Bruno Haible  <bruno@clisp.org>
94655         * modules/stpcpy (License): Change to LGPLv2+.
94656         Requested by David Lutterkort <dlutter@redhat.com>.
94658 2008-05-27  Bruno Haible  <bruno@clisp.org>
94660         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94661         current mingw.
94662         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94664 2008-05-27  Bruno Haible  <bruno@clisp.org>
94666         * modules/iconv_open (Link): New section, from module 'iconv'.
94667         * modules/striconv (Link): Likewise.
94668         * modules/striconveh (Link): Likewise.
94669         * modules/xstriconv (Link): Likewise.
94670         * modules/unicodeio (Link): Likewise.
94671         * modules/propername (Link): Likewise.
94672         Reported by Jim Meyering.
94674 2008-05-26  Jim Meyering  <meyering@redhat.com>
94676         sha256: do not artificially restrict buffer length to be < 2^32
94677         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94678         uint32_t to size_t.
94679         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94680         to match.
94682         avoid unaligned access errors, e.g., on sparc
94683         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94684         direct access through a possibly-unaligned uint64* pointer.
94685         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94686         direct access through a possibly-unaligned uint32* pointer.
94687         Prompted by this patch from Tom "spot" Callaway:
94688         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94690         sha512.c: fix typo in comment
94691         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94693 2008-05-25  Bruno Haible  <bruno@clisp.org>
94695         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94696         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94697         (Makefile.am): Update lib_SOURCES.
94699 2008-05-25  Bruno Haible  <bruno@clisp.org>
94701         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94703 2008-05-25  Jim Meyering  <meyering@redhat.com>
94705         useless-if-before-free: freed expr may have white-space differences
94706         * build-aux/useless-if-before-free: Recognize cases in which the
94707         freed expression differs from the tested one in embedded white
94708         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94709         $1 was used, so we can't make any regexp shy.  Improved tests now
94710         detect this.
94712         useless-if-before-free: accept white space in the expression.
94713         * build-aux/useless-if-before-free: For now, any white space
94714         in the expression must be identical in the free argument.
94716         useless-if-before-free: efficiency tweak
94717         * build-aux/useless-if-before-free: Make the expression-matching
94718         regexp "shy".
94719         Make the *outer* regexp shy, not the expr-matching one.
94721         update code-in-comment to accept cast of free arg
94722         * build-aux/useless-if-before-free: Update regexp.
94724 2008-05-25  Bruno Haible  <bruno@clisp.org>
94726         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94727         * modules/copy-file-tests (Files, Makefile.am): Update.
94728         * tests/test-copy-file.c (func_test_copy): Update.
94730 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94732         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94734 2008-05-23  Bruno Haible  <bruno@clisp.org>
94736         Improve support for ACLs on OSF/1.
94737         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94738         Remove fallback for unknown flavors of ACLs.
94740 2008-05-22  Bruno Haible  <bruno@clisp.org>
94742         Add support for ACLs on OSF/1.
94743         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94744         replacements.
94745         (acl_free_text): New macro fallback.
94746         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94747         acl_free.
94748         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94749         acl_free_text function. Require AC_C_INLINE.
94751 2008-05-22  Bruno Haible  <bruno@clisp.org>
94753         Make copy_acl work on MacOS X 10.5.
94754         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94755         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94756         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94757         If MODE_INSIDE_ACL, don't assume that every system has the same text
94758         representation for ACLs as FreeBSD.
94759         * lib/copy-acl.c (copy_acl): Add support for platforms with
94760         !MODE_INSIDE_ACL.
94761         * lib/file-has-acl.c (file_has_acl): Likewise.
94762         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94763         FreeBSD, MacOS X, or IRIX, respectively.
94765 2008-05-22  Bruno Haible  <bruno@clisp.org>
94767         * lib/acl.h: Don't include <sys/acl.h>.
94768         (GETACLCNT): Move fallback to lib/acl-internal.h.
94769         * lib/acl-internal.h: Include <sys/acl.h> here.
94770         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94772 2008-05-22  Bruno Haible  <bruno@clisp.org>
94774         Split off copy_acl function to separate file.
94775         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94776         * lib/acl.c (copy_acl): Moved function to separate file.
94777         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94778         * modules/acl (Files): Add lib/copy-acl.c.
94779         (Makefiles.am): Augment lib_SOURCES.
94781 2008-05-22  Bruno Haible  <bruno@clisp.org>
94783         * modules/copy-file-tests: New file.
94784         * tests/test-copy-file.sh: New file.
94785         * tests/test-copy-file.c: New file.
94786         * tests/test-copy-file-sameacls.c: New file.
94788 2008-05-22  Eric Blake  <ebb9@byu.net>
94790         Avoid gcc warning.
94791         * tests/test-memcmp.c (main): Pass NULL indirectly.
94793 2008-05-21  Bruno Haible  <bruno@clisp.org>
94795         Add reference doc about ACLs.
94796         * doc/acl-resources.txt: New file.
94797         * doc/acl-cygwin.txt: New file.
94799 2008-05-21  Bruno Haible  <bruno@clisp.org>
94801         Avoid one more warning from gcc.
94802         * lib/vasnprintf.c (IF_LINT): Update comments.
94803         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94805 2008-05-21  Jim Meyering  <meyering@redhat.com>
94807         avoid a warning from gcc
94808         * lib/vasnprintf.c (IF_LINT): Define.
94809         (scale10_round_decimal_long_double):
94810         Use it to avoid a "may be used uninitialized" warning.
94811         (scale10_round_decimal_double): Likewise.
94813 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94815         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94816         declared.
94818 2008-05-20  Bruno Haible  <bruno@clisp.org>
94820         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94821         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94823 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94825         * modules/memcmp-tests: New file.
94826         * tests/test-memcmp.c: New file.
94828 2008-05-19  Bruno Haible  <bruno@clisp.org>
94830         * modules/propername (Notice, configure.ac): Put quoted "..." into
94831         --keyword option.
94832         * lib/propername.h: Update comments accordingly.
94833         Reported by Eric Blake.
94835 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94837         * modules/getpass-gnu (Depends-on): Add fseeko.
94839 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94841         * modules/base64-tests: New file.
94843 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94845         * lib/base64.c (base64_decode_ctx): If a decode context structure
94846         was passed in use it to ignore newlines.  If a context structure
94847         was _not_ passed in, continue to treat newlines as garbage (this
94848         is the historical behavior).  Formerly base64_decode.
94849         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94850         takes a decode context structure.
94851         * lib/base64.h (base64_decode): Macro for four-argument calls.
94852         (base64_decode_alloc): Likewise.
94853         * lib/base64.c (base64_decode_ctx): If a decode context structure
94854         was passed in use it to ignore newlines.  If a context structure
94855         was _not_ passed in, continue to treat newlines as garbage (this
94856         is the historical behavior).  Formerly base64_decode.
94857         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94858         takes a decode context structure.
94859         * lib/base64.h (base64_decode): Macro for four-argument calls.
94860         (base64_decode_alloc): Likewise.
94862 2008-05-19  Jim Meyering  <meyering@redhat.com>
94864         avoid a warning from gcc
94865         * lib/trim.c (IF_LINT): Define.
94866         (trim2): Use it to avoid a "may be used uninitialized" warning.
94868         Fix doc typo.
94869         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94871 2008-05-19  Bruno Haible  <bruno@clisp.org>
94873         * doc/glibc-functions/getpass.texi: Document limits of other
94874         implementations.
94876 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94877             Bruno Haible <bruno@clisp.org>
94879         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94881 2008-05-18  Bruno Haible  <bruno@clisp.org>
94883         * modules/propername: New file, from GNU gettext.
94884         * lib/propername.h: New file, from GNU gettext.
94885         * lib/propername.c: New file, from GNU gettext.
94886         * MODULES.html.sh (Internationalization functions): Add propername.
94888 2008-05-16  Jim Meyering  <meyering@redhat.com>
94889             Bruno Haible  <bruno@clisp.org>
94891         Avoid some warnings from "gcc -Wshadow".
94892         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94894 2008-05-15  Eric Blake  <ebb9@byu.net>
94896         Extend previous patch to cygwin 1.7.0.
94897         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94898         fast implementation in cygwin >= 1.7.0.
94899         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94902 2008-05-15  Bruno Haible  <bruno@clisp.org>
94904         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94905         implementation in glibc >= 2.9.
94906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94909 2008-05-15  Bruno Haible  <bruno@clisp.org>
94911         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94912         (Unicode string functions): Add unilbrk/*.
94913         Reported by Karl Berry.
94915 2008-05-15  Eric Blake  <ebb9@byu.net>
94917         Fix violation of <stdbool.h> replacement in regex.
94918         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94919         * lib/regexec.c (re_search_internal): Likewise.
94920         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94922 2008-05-15  Jim Meyering  <meyering@redhat.com>
94924         avoid distracting test output when git or cvs is not found
94925         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94926         * tests/test-vc-list-files-git.sh: Likewise.
94928 2008-05-15  Eric Blake  <ebb9@byu.net>
94930         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94931         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94932         glibc version.
94933         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94934         * doc/posix-functions/strstr.texi (strstr): Likewise.
94935         * lib/str-two-way.h (MAX): Sychronize with glibc.
94937 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94939         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94940         opr.ctx_type.
94941         (calc_first): Initialize constraint field.
94942         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94943         Fix grammar.
94944         (duplicate_node): Merge constraint field for all node types.
94945         (calc_eclosure_iter): Look at constraint field for all node types.
94946         * lib/regex_internal.c (create_cd_newstate): Don't look at
94947         opr.ctx_type.
94949 2008-05-14  Bruno Haible  <bruno@clisp.org>
94951         Help GCC to do better code generation.
94952         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94953         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94954         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94955         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94956         Declare with attribute 'malloc' if supported.
94958 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94960         use "echo STR|wc -c" rather than unportable "expr length STR"
94961         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94962         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94964 2008-05-14  Jim Meyering  <meyering@redhat.com>
94966         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94967         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94968         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94969         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94970         via Collin Lasse.
94972 2008-05-14  Eric Blake  <ebb9@byu.net>
94974         Avoid quadratic growth in gl_LIBSOURCES.
94975         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94976         Suggested by Bruno Haible.
94978         Test xmemdup0.
94979         * modules/xmemdup0-tests: New file.
94980         * tests/test-xmemdup0.c: Likewise.
94982 2008-05-13  Eric Blake  <ebb9@byu.net>
94984         Split xmemdup0 into its own module.
94985         * modules/xmemdup0: New file.
94986         * lib/xmemdup0.h: Likewise.
94987         * lib/xmemdup0.c: Likewise.
94988         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94989         * lib/xalloc.h (xmemdup0): Remove.
94990         * lib/xmalloc.c (xmemdup0): Likewise.
94992 2008-05-13  Eric Blake  <ebb9@byu.net>
94993             Bruno Haible  <bruno@clisp.org>
94995         Reduce number of forks required during autoconf.
94996         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94997         and gl_LIBSOURCES_DIR.
94998         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94999         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
95000         m4_syscmd per file.
95001         <m4_foreach_w>: Move...
95002         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
95004 2008-05-13  Eric Blake  <ebb9@byu.net>
95006         * gnulib-tool: Fix various comment typos.
95008 2008-05-12  Bruno Haible  <bruno@clisp.org>
95010         Tailor the linebreaking algorithm.
95011         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
95013 2008-05-12  Bruno Haible  <bruno@clisp.org>
95015         Update to Unicode 5.0.0.
95016         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95017         LBP_JV, LBP_JT. Redistribute values.
95018         (unilbrk_table): Change size.
95019         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
95020         Unicode TR#14 rev. 22.
95021         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95022         LBP_JV, LBP_JT. Redistribute values.
95023         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
95024         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
95025         Update.
95026         * lib/unilbrk/lbrkprop1.h: Regenerated.
95027         * lib/unilbrk/lbrkprop2.h: Regenerated.
95028         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
95029         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
95030         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
95031         Likewise.
95032         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
95033         Likewise.
95034         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
95035         result.
95036         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
95037         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
95038         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
95039         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
95040         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
95041         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
95043 2008-05-11  Bruno Haible  <bruno@clisp.org>
95045         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
95047 2008-05-11  Bruno Haible  <bruno@clisp.org>
95049         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
95050         * modules/unilbrk/gen-lbrk: New file.
95052 2008-05-11  Bruno Haible  <bruno@clisp.org>
95054         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
95055         * m4/sha512.m4 (gl_SHA512): Likewise.
95057 2008-05-11  Jim Meyering  <meyering@redhat.com>
95059         New modules: crypto/sha256, crypto/sha512 (from coreutils)
95060         * modules/crypto/sha256: New file.
95061         * modules/crypto/sha512: Likewise.
95062         * lib/sha256.c: Likewise.
95063         * lib/sha256.h: Likewise.
95064         * lib/sha512.c: Likewise.
95065         * lib/sha512.h: Likewise.
95066         * lib/u64.h: Likewise.
95067         * m4/sha256.m4: Likewise.
95068         * m4/sha512.m4: Likewise.
95069         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
95071 2008-05-10  Bruno Haible  <bruno@clisp.org>
95073         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
95074         (Input/Output <stdio.h>): Add xprintf.
95075         (Signal handling <signal.h>): Add strsignal.
95076         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
95077         (Core language properties): Add func.
95078         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
95079         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
95080         strings.
95081         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
95082         (Input/output): New section.
95083         (File system functions): Add openat-die, stat-macros.
95084         (Networking functions): Add sockets.
95085         (Unicode string functions): Add unictype/*.
95086         (Support for building libraries and executables): Add gperf.
95087         (Support for building documentation): Add agpl-3.0.
95088         (Misc): Add nocrash.
95090 2008-05-10  Bruno Haible  <bruno@clisp.org>
95092         * modules/unictype/gen-ctype: New file.
95094 2008-05-10  Jim Meyering  <meyering@redhat.com>
95096         Make chdir-safer.c more efficient on a system with no symlinks.
95097         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
95098         also if ELOOP is zero.  Suggested by Bruno Haible.
95100         Make chdir-safer.c slightly safer.
95101         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
95102         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
95104         Avoid compile failure on systems without ELOOP (like mingw).
95105         * lib/chdir-safer.c (ELOOP): Define if not already defined.
95106         Reported by Bruno Haible.
95108 2008-05-10  Bruno Haible  <bruno@clisp.org>
95110         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
95111         (is_utf8_encoding): Use a case-insensitive comparison.
95112         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
95113         streq.
95115 2008-05-10  Bruno Haible  <bruno@clisp.org>
95117         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
95118         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
95119         * lib/unilbrk/ulc-common.h (iconv_string_length,
95120         iconv_string_keeping_offsets): Remove declarations.
95121         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
95122         Don't include <iconv.h>, streq.h, xsize.h.
95123         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
95124         conversion.
95125         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
95126         <iconv.h>, streq.h, xsize.h.
95127         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
95128         conversion.
95129         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
95130         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
95131         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
95132         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
95134 2008-05-10  Bruno Haible  <bruno@clisp.org>
95136         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
95137         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
95139         * modules/unilbrk/u32-width-linebreaks-tests: New file.
95140         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
95142         * modules/unilbrk/u16-width-linebreaks-tests: New file.
95143         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
95145         * modules/unilbrk/u8-width-linebreaks-tests: New file.
95146         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
95148         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
95149         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
95151         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
95152         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
95154         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
95155         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
95157         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
95158         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
95160 2008-05-10  Bruno Haible  <bruno@clisp.org>
95162         Split up 'linebreak' module.
95163         * lib/unilbrk.h: New file, based on lib/linebreak.h.
95164         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
95165         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
95166         modifications.
95167         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
95168         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
95169         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
95170         lib/linebreak.c.
95171         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
95172         lib/linebreak.c.
95173         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
95174         lib/linebreak.c.
95175         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
95176         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
95177         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
95178         lib/linebreak.c.
95179         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
95180         lib/linebreak.c.
95181         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
95182         lib/linebreak.c.
95183         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
95184         lib/linebreak.c.
95185         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
95186         lib/linebreak.c.
95187         * modules/unilbrk/base: New file.
95188         * modules/unilbrk/tables: New file.
95189         * modules/unilbrk/u8-possible-linebreaks: New file.
95190         * modules/unilbrk/u16-possible-linebreaks: New file.
95191         * modules/unilbrk/u32-possible-linebreaks: New file.
95192         * modules/unilbrk/ulc-common: New file.
95193         * modules/unilbrk/ulc-possible-linebreaks: New file.
95194         * modules/unilbrk/u8-width-linebreaks: New file.
95195         * modules/unilbrk/u16-width-linebreaks: New file.
95196         * modules/unilbrk/u32-width-linebreaks: New file.
95197         * modules/unilbrk/ulc-width-linebreaks: New file.
95198         * lib/linebreak.h: Remove file.
95199         * lib/linebreak.c: Remove file.
95200         * m4/linebreak.m4: Remove file.
95201         * modules/linebreak: Remove file.
95202         * NEWS: Mention the changes.
95204 2008-05-09  Eric Blake  <ebb9@byu.net>
95206         Add xmemdup0.
95207         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
95208         implementation.
95209         * lib/xmalloc.c (xmemdup0): New C implementation.
95211 2008-05-08  Bruno Haible  <bruno@clisp.org>
95213         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
95215 2008-05-07  Eric Blake  <ebb9@byu.net>
95217         Support cross-compilation of <wctype.h>.
95218         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
95219         AC_CACHE_CHECK.
95221 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
95223         * build-aux/vc-list-files: Add support for bzr.
95225 2008-05-03  Jim Meyering  <meyering@redhat.com>
95227         avoid failed assertion with tight malloc
95228         * tests/test-getndelim2.c: Correct an off-by-one assertion.
95230 2008-05-03  Simon Josefsson  <simon@josefsson.org>
95232         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
95233         are needed from arpa/inet.h.
95234         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
95235         Reported by Bruno Haible.
95237 2008-05-02  Jim Meyering  <meyering@redhat.com>
95239         avoid compilation error on FreeBSD 6
95240         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
95242 2008-05-01  Jim Meyering  <meyering@redhat.com>
95244         useless-if-before-free: correct --help's exit status description
95245         * build-aux/useless-if-before-free (usage): Like grep, exit 0
95246         for one or more matches, etc.  Reported by Bruno Haible.
95248         vc-list-files: make the stand-alone gnulib test work
95249         * modules/vc-list-files-tests (configure.ac):
95250         Define and AC_SUBST abs_aux_dir.
95251         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
95252         $(abs_top_srcdir) to each script and having each of them
95253         duplicate the work of setting PATH, set PATH here, using
95254         the new variable, abs_aux_dir instead.
95255         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
95256         * tests/test-vc-list-files-git.sh: Likewise.
95257         Reported by Bruno Haible.
95259 2008-05-01  Bruno Haible  <bruno@clisp.org>
95261         * lib/getndelim2.c (getndelim2): Fix newsize computation during
95262         reallocation. Rename 'done' to 'found_delimiter'.
95264 2008-05-01  Jim Meyering  <meyering@redhat.com>
95266         vc-list-files: accommodate /bin/sh like the one from Solaris 10
95267         * build-aux/vc-list-files: Use `...`, not $(...).
95269 2008-04-30  Jim Meyering  <meyering@redhat.com>
95271         add tests for vc-list-files
95272         * modules/vc-list-files-tests: New module.
95273         * tests/test-vc-list-files-cvs.sh: New file.
95274         * tests/test-vc-list-files-git.sh: New file.
95276         avoid a warning from gcc
95277         * lib/getndelim2.c (IF_LINT): Define.
95278         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
95280         vc-list-files: work properly with build-aux/cvsu, too
95281         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
95282         to all cvs-based clauses.
95284         vc-list-files: work properly in the CVS+awk case, too
95285         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
95287         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
95288         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
95289         take more than one file argument, so .  Add quotes, just in case $dir
95290         ever contains a shell meta-character.  Prompted by Soren Hansen in
95291         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
95293 2008-04-29  Eric Blake  <ebb9@byu.net>
95295         Optimize getndelim2 to use block operations when possible.
95296         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
95297         freadseek, and memchr2.
95298         * lib/getndelim2.c (getndelim2): Use them for block reads.
95300 2008-04-29  Bruno Haible  <bruno@clisp.org>
95302         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
95303         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95304         * modules/inet_ntop (Depends-on): Add extensions.
95305         * modules/inet_pton (Depends-on): Likewise.
95306         Reported by Simon Josefsson.
95308 2008-04-29  Jim Meyering  <meyering@redhat.com>
95310         When the is more than one match in a block, match all of them.
95311         * build-aux/useless-if-before-free: Iterate through each block
95312         until there are no more matches.
95314         Fix broken useless-if-before-free script.
95315         * build-aux/useless-if-before-free: Fix typo: missing "?" after
95316         the expression to match cast of argument to free-like function.
95318 2008-04-29  Eric Blake  <ebb9@byu.net>
95320         Use new header.
95321         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
95323 2008-04-29  Jim Meyering  <meyering@redhat.com>
95325         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
95326         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95327         by gnulib to exist and to declare e.g., inet_ntop.
95328         Don't include "inet_ntop.h", now removed.
95330         * m4/arpa_inet_h.m4: Remove trailing blanks.
95332 2008-04-29  Eric Blake  <ebb9@byu.net>
95334         Silence valgrind on safe reads beyond potential array bounds.
95335         * lib/rawmemchr.valgrind: New file.
95336         * lib/strchrnul.valgrind: Likewise.
95337         * modules/rawmemchr (Files): Distribute new file.
95338         * modules/strchrnul (Files): Likewise.
95339         Suggested by Bruno Haible.
95341 2008-04-29  Bruno Haible  <bruno@clisp.org>
95343         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95344         (inet_ntop, inet_pton): Change portability warning's wording.
95345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95346         Invoke gl_CHECK_NEXT_HEADERS.
95347         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95348         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95349         set ARPA_INET_H.
95350         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95351         * modules/arpa_inet (Description): No longer only for systems that
95352         lack it.
95353         (Depends-on): Add include_next.
95354         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95355         HAVE_ARPA_INET_H.
95357 2008-04-29  Jim Meyering  <meyering@redhat.com>
95359         * modules/mkdir (License): Re-license as LGPLv2+.
95361 2008-04-29  Bruno Haible  <bruno@clisp.org>
95363         * modules/rawmemchr (Maintainer): Set to Eric.
95364         * modules/strchrnul (Maintainer): Likewise.
95366 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95368         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95369         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95371         * modules/arpa_inet (arpa/inet.h): Use them.
95373 2008-04-28  Eric Blake  <ebb9@byu.net>
95375         Test getndelim2.
95376         * modules/getndelim2-tests: New file.
95377         * tests/test-getndelim2.c: Likewise.
95378         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95379         stream.
95380         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95382         * MODULES.html.sh: Document new module.
95384 2008-04-20  Bruno Haible  <bruno@clisp.org>
95386         * lib/c-stack.c (die): Use raise.
95387         * modules/c-stack (Depends-on): Add raise.
95389 2008-04-28  Bruno Haible  <bruno@clisp.org>
95391         Expect rpmatch to be declared.
95392         * lib/yesno.c (rpmatch): Remove declaration.
95394         Declare rpmatch.
95395         * lib/stdlib.in.h (rpmatch): New declaration.
95396         * lib/rpmatch.c: Include <stdlib.h> first.
95397         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95398         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95400         HAVE_RPMATCH.
95401         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95403         (Include): Set to <stdlib.h>.
95404         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95405         HAVE_RPMATCH.
95406         * NEWS: Document the change.
95408 2008-04-28  Bruno Haible  <bruno@clisp.org>
95410         Change rpmatch to use nl_langinfo when appropriate.
95411         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95412         (N_): New macro.
95413         (localized_pattern): New function/macro.
95414         (try): Remove match, nomatch arguments. Copy the pattern into safe
95415         memory before caching it.
95416         (rpmatch): Use localized_pattern. Add translator comments.
95417         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95418         Suggested by Eric Blake.
95419         * modules/rpmatch (Depends-on): Add stdbool.
95421 2008-04-28  Eric Blake  <ebb9@byu.net>
95423         Add rawmemchr module, matching glibc.
95424         * modules/string (Makefile.am): New indicator.
95425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95426         * lib/string.in.h (rawmemchr): Declare when appropriate.
95427         * modules/rawmemchr: New file.
95428         * m4/rawmemchr.m4: Likewise.
95429         * lib/rawmemchr.c: Likewise.
95430         * modules/rawmemchr-tests: Likewise.
95431         * tests/test-rawmemchr.c: Likewise.
95432         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95433         module.
95434         * modules/strchrnul (Depends-on): Add rawmemchr.
95435         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95437         Whitespace cleanup.
95438         * tests/test-strchrnul.c: Reindent.
95439         * lib/strchrnul.c: Likewise.
95441         Optimize and test strchrnul.
95442         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95443         * modules/strchrnul-tests: New file.
95444         * tests/test-strchrnul.c: Likewise.
95446         Remove intprops dependency.
95447         * modules/memchr (Depends-on): Remove intprops.
95448         * modules/memrchr (Depends-on): Likewise.
95449         * modules/memchr2 (Depends-on): Likewise.
95450         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95451         * lib/memrchr.c (__memrchr): Likewise.
95452         * lib/memrchr2.c (memchr2): Likewise.
95453         Reported by Simon Josefsson.
95455 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95457         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95458         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95460 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95462         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95464         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95466         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95468         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95469         declarations.
95470         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95472         * m4/inet_pton.m4: Don't check for header files.
95474         * m4/inet_ntop.m4: Don't check for header files.
95476 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95478         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95479         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95480         trigger for cygwin).
95481         Reported by Bruno Haible  <bruno@clisp.org>.
95483 2008-04-28  Bruno Haible  <bruno@clisp.org>
95485         * doc/posix-functions/strdup.texi: Mention mingw problem.
95487 2008-04-27  Bruno Haible  <bruno@clisp.org>
95489         * modules/stat-time-tests (Depends-on): Add sleep.
95490         * tests/test-stat-time.c (force_unlink): New function.
95491         (cleanup): Use it.
95492         (test_mtime): Remove the ctime related tests.
95493         (test_ctime): New function, containing the ctime related tests.
95494         (main): Call test_ctime, except on native Windows platforms.
95496 2008-04-27  Bruno Haible  <bruno@clisp.org>
95498         * lib/rpmatch.c (rpmatch): Add some comments.
95499         Reported by James Youngman <jay@gnu.org>.
95501 2008-04-27  Bruno Haible  <bruno@clisp.org>
95503         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95504         quiet NaNs.
95506 2008-04-27  Bruno Haible  <bruno@clisp.org>
95508         Make test-yesno.sh work on mingw.
95509         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95510         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95511         (main): Set stdin to binary mode.
95512         * modules/yesno-tests (Depends-on): Add binary-io.
95514 2008-04-27  Bruno Haible  <bruno@clisp.org>
95516         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95517         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95518         argument that lie outside the IEEE 854 domain.
95519         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95520         (gl_ISFINITE): Use it.
95521         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95523 2008-04-27  Bruno Haible  <bruno@clisp.org>
95525         Allow local renaming in config.h.
95526         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95528 2008-04-27  Bruno Haible  <bruno@clisp.org>
95530         * lib/memchr.c (__memchr): Change type of 'i'.
95531         * lib/memchr2.c (memchr2): Likewise.
95533 2008-04-26  Eric Blake  <ebb9@byu.net>
95534         and Bruno Haible  <bruno@clisp.org>
95536         Optimize and test memrchr.
95537         * modules/memrchr (Depends-on): Add intprops.
95538         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95539         * modules/memrchr-tests: New file.
95540         * tests/test-memrchr.c: New file.
95542 2008-04-26  Bruno Haible  <bruno@clisp.org>
95544         Add tentative support for DragonFly BSD.
95545         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95546         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95547         fp.
95548         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95549         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95550         * lib/fpurge.c (fpurge): Likewise.
95551         * lib/freadable.c (freaadable): Likewise.
95552         * lib/freadahead.c (freadahead): Likewise.
95553         * lib/freading.c (freading): Likewise.
95554         * lib/freadptr.c (freadptr): Likewise.
95555         * lib/freadseek.c (freadptrinc): Likewise.
95556         * lib/fseeko.c (fseeko): Likewise.
95557         * lib/fseterr.c (fseterr): Likewise.
95558         * lib/fwritable.c (fwritable): Likewise.
95559         * lib/fwriting.c (fwriting): Likewise.
95561 2008-04-26  Bruno Haible  <bruno@clisp.org>
95563         * lib/stdio-impl.h: New file.
95564         * lib/fbufmode.c: Include stdio-impl.h.
95565         (fbufmode): Use fp_, remove redundant #defines.
95566         * lib/fflush.c: Include stdio-impl.h.
95567         (clear_ungetc_buffer): Remove redundant #defines.
95568         * lib/fpurge.c: Include stdio-impl.h.
95569         (fpurge): Remove redundant #defines.
95570         * lib/freadable.c: Include stdio-impl.h.
95571         (freadable): Remove redundant #defines.
95572         * lib/freadahead.c: Include stdio-impl.h.
95573         (freadahead): Remove redundant #defines.
95574         * lib/freading.c: Include stdio-impl.h.
95575         (freading): Remove redundant #defines.
95576         * lib/freadptr.c: Include stdio-impl.h.
95577         (freadptr): Remove redundant #defines.
95578         * lib/freadseek.c: Include stdio-impl.h.
95579         (freadptrinc): Remove redundant #defines.
95580         * lib/fseeko.c: Include stdio-impl.h.
95581         (rpl_fseeko): Remove redundant #defines.
95582         * lib/fseterr.c: Include stdio-impl.h.
95583         (fseterr): Remove redundant #defines.
95584         * lib/fwritable.c: Include stdio-impl.h.
95585         (fwritable: Remove redundant #defines.
95586         * lib/fwriting.c: Include stdio-impl.h.
95587         (fwriting): Remove redundant #defines.
95588         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95589         * modules/fflush (Files): Likewise.
95590         * modules/fpurge (Files): Likewise.
95591         * modules/freadable (Files): Likewise.
95592         * modules/freadahead (Files): Likewise.
95593         * modules/freading (Files): Likewise.
95594         * modules/freadptr (Files): Likewise.
95595         * modules/freadseek (Files): Likewise.
95596         * modules/fseeko (Files): Likewise.
95597         * modules/fseterr (Files): Likewise.
95598         * modules/fwritable (Files): Likewise.
95599         * modules/fwriting (Files): Likewise.
95601 2008-04-26  Bruno Haible  <bruno@clisp.org>
95603         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95604         restore_seek_optimization, update_fpos_cache): New functions, extracted
95605         from rpl_fflush.
95606         (rpl_fflush): Use them.
95607         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95608         (gl_REPLACE_FFLUSH): Use it.
95610 2008-04-26  Bruno Haible  <bruno@clisp.org>
95612         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95613         on Solaris.
95614         * tests/test-xstrtoimax.sh: Likewise.
95615         * tests/test-xstrtoumax.sh: Likewise.
95616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95618 2008-04-26  Bruno Haible  <bruno@clisp.org>
95620         * modules/memchr-tests: New file.
95621         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95623 2008-04-26  Eric Blake  <ebb9@byu.net>
95624             Bruno Haible  <bruno@clisp.org>
95626         * lib/memchr.c: Include intprops.h.
95627         (__memchr): Optimize parallel detection of matching bytes. Rename local
95628         variables. Add explanatory comments.
95630 2008-04-26  Bruno Haible  <bruno@clisp.org>
95632         Fix module 'memchr', broken since 2000-10-28.
95633         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95635 2008-04-26  Bruno Haible  <bruno@clisp.org>
95637         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95638         comments.
95640 2008-04-25  Eric Blake  <ebb9@byu.net>
95642         Use native fstatat on cygwin 1.7.0.
95643         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95644         first.
95646 2008-04-23  Eric Blake  <ebb9@byu.net>
95648         Improve memchr2 performance.
95649         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95650         NUL bytes.
95651         * modules/memchr2 (Depends-on): Use intprops.h.
95653 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95655         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95656         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95657         <blp@cs.stanford.edu>.
95659 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95661         * lib/arpa_inet.in.h: New file.
95663         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95664         (Makefile.am): Sed in substitute header file.
95666         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95667         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95669         * modules/inet_ntop (configure.ac): Use
95670         gl_ARPA_INET_MODULE_INDICATOR.
95672         * modules/inet_pton (configure.ac): Use
95673         gl_ARPA_INET_MODULE_INDICATOR.
95675 2008-04-22  Jim Meyering  <meyering@redhat.com>
95677         * modules/verify (License): Re-license as LGPLv2+.
95679 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95681         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95682         parameter to void* as per POSIX standard (MinGW uses char*).
95684 2008-04-21  Bruno Haible  <bruno@clisp.org>
95686         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95687         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95688         Define to replacements if REPLACE_ISWCNTRL is 1.
95689         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95690         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95691         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95692         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95693         what it fixes.
95694         * doc/posix-functions/iswalpha.texi: Likewise.
95695         * doc/posix-functions/iswblank.texi: Likewise.
95696         * doc/posix-functions/iswcntrl.texi: Likewise.
95697         * doc/posix-functions/iswdigit.texi: Likewise.
95698         * doc/posix-functions/iswgraph.texi: Likewise.
95699         * doc/posix-functions/iswlower.texi: Likewise.
95700         * doc/posix-functions/iswprint.texi: Likewise.
95701         * doc/posix-functions/iswpunct.texi: Likewise.
95702         * doc/posix-functions/iswspace.texi: Likewise.
95703         * doc/posix-functions/iswupper.texi: Likewise.
95704         * doc/posix-functions/iswxdigit.texi: Likewise.
95705         Reported by Alain Guibert.
95707 2008-04-21  Bruno Haible  <bruno@clisp.org>
95709         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95710         Patch by Alain Guibert.
95712 2008-04-21  Bruno Haible  <bruno@clisp.org>
95714         Fix test failures on mingw.
95715         * tests/test-xstrtol.c (print_no_progname): New function.
95716         (main): Install it in error_print_progname hook.
95717         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95718         * tests/test-xstrtoimax.sh: Likewise.
95719         * tests/test-xstrtoumax.sh: Likewise.
95721 2008-04-21  Bruno Haible  <bruno@clisp.org>
95723         Fix test failure on mingw.
95724         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95726 2008-04-21  Bruno Haible  <bruno@clisp.org>
95728         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95729         Actually assign a value.
95731 2008-04-20  Bruno Haible  <bruno@clisp.org>
95733         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95734         take 2.
95735         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95736         'canonicalize-lgpl' module is also used.
95737         * lib/canonicalize-lgpl.c: Undo last change.
95738         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95740 2008-04-20  Bruno Haible  <bruno@clisp.org>
95742         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95743         config.h. Provide _mkdir based fallback for mingw.
95744         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95745         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95746         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95747         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95748         rather than defining mkdir in config.h.
95749         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95750         (gl_SYS_STAT_H_DEFAULTS): New macro.
95751         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95752         HAVE_IO_H any more.
95753         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95754         HAVE_DECL_MKDIR and HAVE_IO_H.
95756 2008-04-20  Bruno Haible  <bruno@clisp.org>
95758         * lib/isapipe.c: Port to native Windows platforms.
95760 2008-04-20  Bruno Haible  <bruno@clisp.org>
95762         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95764 2008-04-21  Eric Blake  <ebb9@byu.net>
95766         Work around preprocessors that don't handle UINTMAX_MAX.
95767         * lib/memchr2.c (memchr2): Avoid embedded #if.
95768         Reported by Alain Guibert, fix suggested by Bruno Haible.
95770 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95772         * doc/posix-functions/strftime.texi (strftime): Explain better
95773         Windows incompatibility.  Suggested by Micah Cowan
95774         <micah@cowan.name>.
95776 2008-04-20  Bruno Haible  <bruno@clisp.org>
95778         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95779         unistr/u8-mblen.
95781 2008-04-20  Bruno Haible  <bruno@clisp.org>
95783         Fix test failure on platforms with non-GNU iconv.
95784         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95785         (U_TO_U8): Use it, rather than u16_to_u8.
95786         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95787         units at the end of the input string.
95788         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95790 2008-04-20  Bruno Haible  <bruno@clisp.org>
95792         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95793         when the resulting length is 0.
95794         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95796 2008-04-20  Bruno Haible  <bruno@clisp.org>
95798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95799         works.
95800         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95802 2008-04-20  Bruno Haible  <bruno@clisp.org>
95804         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95805         * modules/tsearch-tests (configure.ac): Test for initstate function.
95807 2008-04-20  Bruno Haible  <bruno@clisp.org>
95809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95810         for nlink_t if missing.
95811         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95813 2008-04-19  Bruno Haible  <bruno@clisp.org>
95815         Work around snprintf bug on Linux libc5.
95816         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95818         gl_SNPRINTF_SIZE1.
95819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95820         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95821         that test failed.
95822         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95823         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95824         * modules/snprintf (Files): Add m4/printf.m4.
95825         * modules/vsnprintf (Files): Likewise.
95826         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95827         * doc/posix-functions/vsnprintf.texi: Likewise.
95829 2008-04-19  Bruno Haible  <bruno@clisp.org>
95831         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95832         from 0.0058 to less than 10^-7.
95834 2008-04-19  Bruno Haible  <bruno@clisp.org>
95836         Fix rounding when a precision is given.
95837         * lib/vasnprintf.c (is_borderline): New function.
95838         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95839         9...9x.
95840         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95841         %e, %g.
95842         * tests/test-vasprintf-posix.c (test_function): Likewise.
95843         * tests/test-snprintf-posix.h (test_function): Likewise.
95844         * tests/test-sprintf-posix.h (test_function): Likewise.
95845         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95846         * tests/test-printf-posix.h (test_function): Likewise.
95847         * tests/test-printf-posix.output: Update.
95848         Reported by John Darrington <john@darrington.wattle.id.au> via
95849         Ben Pfaff <blp@cs.stanford.edu>.
95851 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95853         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95854         Suggested by Bruno Haible <bruno@clisp.org>.
95856 2008-04-17  Bruno Haible  <bruno@clisp.org>
95858         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95859         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95860         implementation.
95861         Patch by Bruce Merry <bmerry@gmail.com>.
95863 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95865         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95866         doesn't work under Windows.
95868 2008-04-16  Bruno Haible  <bruno@clisp.org>
95870         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95871         New macros.
95872         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95873         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95874         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95875         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95876         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95877         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95878         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95879         macros.
95880         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95881         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95882         Northern Sotho, Uighur.
95884 2008-04-16  Bruno Haible  <bruno@clisp.org>
95886         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95887         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95888         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95889         Reported by Daniel Bergström <daniel@octocode.com>.
95891 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95892             Bruno Haible  <bruno@clisp.org>
95894         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95895         function.
95896         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95897         New functions, mostly extracted from gl_locale_name_default.
95898         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95900 2008-04-16  Eric Blake  <ebb9@byu.net>
95902         Adjust strtod detection to catch glibc 2.7 bug.
95903         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95904         Reported by John Gatewood Ham.
95906 2008-04-16  Bruno Haible  <bruno@clisp.org>
95908         Add tentative support for Linux libc5.
95909         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95910         * lib/fpurge.c (fpurge): Likewise.
95911         * lib/freadable.c (freadable): Likewise.
95912         * lib/freadahead.c (freadahead): Likewise.
95913         * lib/freading.c (freading): Likewise.
95914         * lib/freadptr.c (freadptr): Likewise.
95915         * lib/freadseek.c (freadptrinc): Likewise.
95916         * lib/fseeko.c (rpl_fseeko): Likewise.
95917         * lib/fseterr.c (fseterr): Likewise.
95918         * lib/fwritable.c (fwritable): Likewise.
95919         * lib/fwriting.c (fwriting): Likewise.
95920         Reported by Alain Guibert <alguibert+bts@free.fr>.
95922 2008-04-15  Bruno Haible  <bruno@clisp.org>
95924         * modules/mathl (configure.ac): Define module indicator.
95926 2008-04-15  Bruno Haible  <bruno@clisp.org>
95928         * lib/logl.c (logl): Remove unused variables.
95930 2008-04-15  Bruno Haible  <bruno@clisp.org>
95932         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95933         fails.
95935 2008-04-15  Bruno Haible  <bruno@clisp.org>
95937         * lib/trim.c (trim2): Fix argument of isspace() macro.
95939 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95941         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95942         to 0.
95943         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95945 2008-04-14  Bruno Haible  <bruno@clisp.org>
95947         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95948         AC_LANG_PROGRAM argument.
95949         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95950         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95952         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95953         * m4/math_h.m4 (gl_MATH_H): Likewise.
95954         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95956         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95957         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95958         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95959         * m4/regex.m4 (gl_REGEX): Likewise.
95960         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95961         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95962         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95963         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95965         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95966         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95969 2008-04-14  Jim Meyering  <meyering@redhat.com>
95971         test-strtod: fix typos: s/abs/fabs/
95972         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95974 2008-04-13  Bruno Haible  <bruno@clisp.org>
95976         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95977         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95978         module is also used and while not building the reloc-wrapper.
95980 2008-04-13  Bruno Haible  <bruno@clisp.org>
95982         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95984 2008-04-13  Bruno Haible  <bruno@clisp.org>
95986         Fix AIX compilation failure introduced on 2008-04-02.
95987         * tests/test-frexp.c (exp): Undefine before redefining.
95988         * tests/test-frexpl.c (exp): Likewise.
95990 2008-04-13  Bruno Haible  <bruno@clisp.org>
95992         Work around a HP-UX stdio bug.
95993         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95994         * tests/test-ftello.c (main): Likewise.
95995         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95996         * doc/posix-functions/ftello.texi: Likewise.
95998 2008-04-13  Bruno Haible  <bruno@clisp.org>
96000         Make test-signbit pass on HP-UX/hppa.
96001         * tests/test-signbit.c (minus_zerol): New variable.
96002         (test_signbitl): Use it.
96004 2008-04-13  Bruno Haible  <bruno@clisp.org>
96006         Make truncl work on OSF/1 4.0.
96007         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
96008         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96009         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
96011         HAVE_DECL_TRUNCL.
96012         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
96013         HAVE_DECL_TRUNCL.
96014         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
96016 2008-04-13  Bruno Haible  <bruno@clisp.org>
96018         * lib/unictype.h: Remove trailing comma from enumeration definitions.
96020 2008-04-13  Bruno Haible  <bruno@clisp.org>
96022         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
96023         expression, so as to avoid HP-UX 11 cc compiler bug.
96025 2008-04-13  Bruno Haible  <bruno@clisp.org>
96027         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
96029 2008-04-13  Bruno Haible  <bruno@clisp.org>
96031         * lib/git-merge-changelog.c: Remove empty declaration outside of
96032         functions.
96034 2008-04-13  Bruno Haible  <bruno@clisp.org>
96036         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
96038 2008-04-13  Bruno Haible  <bruno@clisp.org>
96040         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
96041         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
96042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
96043         also if it exists but lacks definitions of the SHUT_* macros.
96044         * modules/sys_socket (Description): Update.
96045         Reported by Elbert Pol <e.pol@chello.nl>.
96047 2008-04-13  Bruno Haible  <bruno@clisp.org>
96049         * lib/localcharset.c (OS2): Don't redefine if already defined.
96050         Reported by Elbert Pol <e.pol@chello.nl>.
96052 2008-04-13  Bruno Haible  <bruno@clisp.org>
96054         * lib/binary-io.h [__EMX__]: Include <io.h>.
96055         Reported by Elbert Pol <e.pol@chello.nl>.
96057 2008-04-12  Bruno Haible  <bruno@clisp.org>
96059         * lib/fpucw.h: Enable the definitions also for x86_64.
96060         Needed for NetBSD/x86_64.
96061         Reported by Thomas Klausner <tk@giga.or.at>.
96063 2008-04-12  Bruno Haible  <bruno@clisp.org>
96065         * tests/test-strtod.c: Include isnand.h.
96066         (main): Use isnand instead of isnan.
96067         Reported by Jim Meyering.
96069 2008-04-12  Bruno Haible  <bruno@clisp.org>
96071         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
96072         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
96074 2008-04-12  Jim Meyering  <meyering@redhat.com>
96076         * m4/math_h.m4 (gl_MATH_H): Fix typos.
96078 2008-04-12  Bruno Haible  <bruno@clisp.org>
96080         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
96081         Reported by Elbert Pol <e.pol@chello.nl>.
96083 2008-04-12  Eric Blake  <ebb9@byu.net>
96085         Work around Solaris 10 math.h bug.
96086         * m4/math_h.m4 (gl_MATH_H): Check for bug.
96087         (gl_MATH_H_DEFAULTS): Set up default.
96088         * modules/math (Makefile.am): Replace new indicators.
96089         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
96090         * tests/test-math.c (main): Test this.
96091         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
96092         * doc/posix-headers/math.texi (math.h): Mention bug.
96093         Reported by Nelson H. F. Beebe and Jim Meyering.
96095 2008-04-11  Bruno Haible  <bruno@clisp.org>
96097         Adapt to future versions of Apple GCC.
96098         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
96099         Reported by Peter O'Gorman <peter@pogma.com>.
96101 2008-04-11  Bruno Haible  <bruno@clisp.org>
96103         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
96105 2008-04-11  Bruno Haible  <bruno@clisp.org>
96107         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
96109         * modules/getaddrinfo-tests (Makefile.am): Define
96110         test_getaddrinfo_LDADD.
96112 2008-04-11  Bruno Haible  <bruno@clisp.org>
96114         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
96115         (init): Fix syntax error.
96116         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
96117         is declared.
96119 2008-04-11  Bruno Haible  <bruno@clisp.org>
96121         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
96122         * modules/glob (Depends-on): Add stdbool.
96124 2008-04-11  Bruno Haible  <bruno@clisp.org>
96126         * lib/trim.c: Include <string.h>.
96128 2008-04-11  Eric Blake  <ebb9@byu.net>
96130         Avoid compile failure on OS/2.
96131         * lib/regex_internal.h (internal_function): Disable optimization
96132         on OS/2 (__EMX__), where it caused compiler error.
96133         Reported by Elbert Pol.
96135 2008-04-11  Bruno Haible  <bruno@clisp.org>
96137         Flush the standard error stream before aborting. Needed on mingw.
96138         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
96139         * tests/test-array_list.c (ASSERT): Likewise.
96140         * tests/test-array_oset.c (ASSERT): Likewise.
96141         * tests/test-avltree_list.c (ASSERT): Likewise.
96142         * tests/test-avltree_oset.c (ASSERT): Likewise.
96143         * tests/test-avltreehash_list.c (ASSERT): Likewise.
96144         * tests/test-binary-io.c (ASSERT): Likewise.
96145         * tests/test-byteswap.c (ASSERT): Likewise.
96146         * tests/test-c-ctype.c (ASSERT): Likewise.
96147         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
96148         * tests/test-c-strcasestr.c (ASSERT): Likewise.
96149         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
96150         * tests/test-c-strstr.c (ASSERT): Likewise.
96151         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
96152         * tests/test-canonicalize.c (ASSERT): Likewise.
96153         * tests/test-carray_list.c (ASSERT): Likewise.
96154         * tests/test-ceilf1.c (ASSERT): Likewise.
96155         * tests/test-ceilf2.c (ASSERT): Likewise.
96156         * tests/test-ceill.c (ASSERT): Likewise.
96157         * tests/test-count-one-bits.c (ASSERT): Likewise.
96158         * tests/test-fbufmode.c (ASSERT): Likewise.
96159         * tests/test-fflush2.c (ASSERT): Likewise.
96160         * tests/test-floorf1.c (ASSERT): Likewise.
96161         * tests/test-floorf2.c (ASSERT): Likewise.
96162         * tests/test-floorl.c (ASSERT): Likewise.
96163         * tests/test-fopen.c (ASSERT): Likewise.
96164         * tests/test-fpending.c (ASSERT): Likewise.
96165         * tests/test-fprintf-posix.c (ASSERT): Likewise.
96166         * tests/test-fpurge.c (ASSERT): Likewise.
96167         * tests/test-freadable.c (ASSERT): Likewise.
96168         * tests/test-freadahead.c (ASSERT): Likewise.
96169         * tests/test-freading.c (ASSERT): Likewise.
96170         * tests/test-freadptr.c (ASSERT): Likewise.
96171         * tests/test-freadptr2.c (ASSERT): Likewise.
96172         * tests/test-freadseek.c (ASSERT): Likewise.
96173         * tests/test-freopen.c (ASSERT): Likewise.
96174         * tests/test-frexp.c (ASSERT): Likewise.
96175         * tests/test-frexpl.c (ASSERT): Likewise.
96176         * tests/test-fseek.c (ASSERT): Likewise.
96177         * tests/test-fseeko.c (ASSERT): Likewise.
96178         * tests/test-fstrcmp.c (ASSERT): Likewise.
96179         * tests/test-ftell.c (ASSERT): Likewise.
96180         * tests/test-ftello.c (ASSERT): Likewise.
96181         * tests/test-func.c (ASSERT): Likewise.
96182         * tests/test-fwritable.c (ASSERT): Likewise.
96183         * tests/test-fwriting.c (ASSERT): Likewise.
96184         * tests/test-getdelim.c (ASSERT): Likewise.
96185         * tests/test-getline.c (ASSERT): Likewise.
96186         * tests/test-i-ring.c (ASSERT): Likewise.
96187         * tests/test-iconv-utf.c (ASSERT): Likewise.
96188         * tests/test-iconv.c (ASSERT): Likewise.
96189         * tests/test-isfinite.c (ASSERT): Likewise.
96190         * tests/test-isnand.c (ASSERT): Likewise.
96191         * tests/test-isnanf.c (ASSERT): Likewise.
96192         * tests/test-isnanl.h (ASSERT): Likewise.
96193         * tests/test-ldexpl.c (ASSERT): Likewise.
96194         * tests/test-linked_list.c (ASSERT): Likewise.
96195         * tests/test-linkedhash_list.c (ASSERT): Likewise.
96196         * tests/test-localename.c (ASSERT): Likewise.
96197         * tests/test-lseek.c (ASSERT): Likewise.
96198         * tests/test-mbscasecmp.c (ASSERT): Likewise.
96199         * tests/test-mbscasestr1.c (ASSERT): Likewise.
96200         * tests/test-mbscasestr2.c (ASSERT): Likewise.
96201         * tests/test-mbscasestr3.c (ASSERT): Likewise.
96202         * tests/test-mbscasestr4.c (ASSERT): Likewise.
96203         * tests/test-mbschr.c (ASSERT): Likewise.
96204         * tests/test-mbscspn.c (ASSERT): Likewise.
96205         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
96206         * tests/test-mbspbrk.c (ASSERT): Likewise.
96207         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
96208         * tests/test-mbsrchr.c (ASSERT): Likewise.
96209         * tests/test-mbsspn.c (ASSERT): Likewise.
96210         * tests/test-mbsstr1.c (ASSERT): Likewise.
96211         * tests/test-mbsstr2.c (ASSERT): Likewise.
96212         * tests/test-mbsstr3.c (ASSERT): Likewise.
96213         * tests/test-memchr2.c (ASSERT): Likewise.
96214         * tests/test-memmem.c (ASSERT): Likewise.
96215         * tests/test-open.c (ASSERT): Likewise.
96216         * tests/test-printf-frexp.c (ASSERT): Likewise.
96217         * tests/test-printf-frexpl.c (ASSERT): Likewise.
96218         * tests/test-printf-posix.c (ASSERT): Likewise.
96219         * tests/test-quotearg.c (ASSERT): Likewise.
96220         * tests/test-rbtree_list.c (ASSERT): Likewise.
96221         * tests/test-rbtree_oset.c (ASSERT): Likewise.
96222         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
96223         * tests/test-round1.c (ASSERT): Likewise.
96224         * tests/test-roundf1.c (ASSERT): Likewise.
96225         * tests/test-roundl.c (ASSERT): Likewise.
96226         * tests/test-signbit.c (ASSERT): Likewise.
96227         * tests/test-sleep.c (ASSERT): Likewise.
96228         * tests/test-snprintf-posix.c (ASSERT): Likewise.
96229         * tests/test-snprintf.c (ASSERT): Likewise.
96230         * tests/test-sprintf-posix.c (ASSERT): Likewise.
96231         * tests/test-stat-time.c (ASSERT): Likewise.
96232         * tests/test-strcasestr.c (ASSERT): Likewise.
96233         * tests/test-strerror.c (ASSERT): Likewise.
96234         * tests/test-striconv.c (ASSERT): Likewise.
96235         * tests/test-striconveh.c (ASSERT): Likewise.
96236         * tests/test-striconveha.c (ASSERT): Likewise.
96237         * tests/test-strsignal.c (ASSERT): Likewise.
96238         * tests/test-strstr.c (ASSERT): Likewise.
96239         * tests/test-strtod.c (ASSERT): Likewise.
96240         * tests/test-trunc1.c (ASSERT): Likewise.
96241         * tests/test-trunc2.c (ASSERT): Likewise.
96242         * tests/test-truncf1.c (ASSERT): Likewise.
96243         * tests/test-truncf2.c (ASSERT): Likewise.
96244         * tests/test-truncl.c (ASSERT): Likewise.
96245         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
96246         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
96247         * tests/test-vasnprintf.c (ASSERT): Likewise.
96248         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
96249         * tests/test-vasprintf.c (ASSERT): Likewise.
96250         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
96251         * tests/test-vprintf-posix.c (ASSERT): Likewise.
96252         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
96253         * tests/test-vsnprintf.c (ASSERT): Likewise.
96254         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
96255         * tests/test-wcwidth.c (ASSERT): Likewise.
96256         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
96257         * tests/test-xprintf-posix.c (ASSERT): Likewise.
96258         * tests/test-xvasprintf.c (ASSERT): Likewise.
96259         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
96260         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
96261         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
96262         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
96263         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
96264         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
96265         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
96266         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
96267         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
96268         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
96269         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
96270         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
96271         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
96272         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
96273         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
96274         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
96275         * tests/unictype/test-block_list.c (ASSERT): Likewise.
96276         * tests/unictype/test-block_of.c (ASSERT): Likewise.
96277         * tests/unictype/test-block_test.c (ASSERT): Likewise.
96278         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
96279         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
96280         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
96281         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
96282         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
96283         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
96284         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
96285         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
96286         * tests/unictype/test-combining.c (ASSERT): Likewise.
96287         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
96288         * tests/unictype/test-digit.c (ASSERT): Likewise.
96289         * tests/unictype/test-mirror.c (ASSERT): Likewise.
96290         * tests/unictype/test-numeric.c (ASSERT): Likewise.
96291         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
96292         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
96293         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
96294         * tests/unictype/test-scripts.c (ASSERT): Likewise.
96295         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
96296         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
96297         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
96298         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
96299         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
96300         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
96301         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
96302         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
96303         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
96304         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
96305         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
96306         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
96307         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
96308         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
96309         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
96310         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
96311         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
96312         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
96313         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
96314         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
96315         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
96316         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
96317         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
96318         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
96319         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
96320         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
96321         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
96322         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
96323         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
96324         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
96325         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
96326         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96327         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96328         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96329         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96330         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96331         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96332         Reported by Eric Blake.
96334 2008-04-11  Bruno Haible  <bruno@clisp.org>
96336         * lib/wchar.in.h: Tweak comment.
96338 2008-04-11  Bruno Haible  <bruno@clisp.org>
96340         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96341         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96342         gl_COMMON.
96343         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96345 2008-04-11  Bruno Haible  <bruno@clisp.org>
96347         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96349 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96351         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96352         of attempting to use non-existing /dev/*random.  Based on patch
96353         from Adam Strzelecki <ono@java.pl> in
96354         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96356 2008-04-08  Bruno Haible  <bruno@clisp.org>
96358         Add tentative support for emx+gcc.
96359         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96360         * lib/fpurge.c (fpurge): Likewise.
96361         * lib/freadable.c (freadable): Likewise.
96362         * lib/freadahead.c (freadahead): Likewise.
96363         * lib/freading.c (freading): Likewise.
96364         * lib/freadptr.c (freadptr): Likewise.
96365         * lib/freadseek.c (freadptrinc): Likewise.
96366         * lib/fseeko.c (rpl_fseeko): Likewise.
96367         * lib/fseterr.c (fseterr): Likewise.
96368         * lib/fwritable.c (fwritable): Likewise.
96369         * lib/fwriting.c (fwriting): Likewise.
96370         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96372 2008-04-09  Eric Blake  <ebb9@byu.net>
96374         Avoid some autoconf warnings.
96375         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96376         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96377         * m4/afs.m4 (gl_AFS): Likewise.
96378         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96379         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96380         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96381         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96382         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96383         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96384         (AC_CHECK_DECLS_ONCE): Likewise.
96385         Rename file...
96386         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96387         gnulib-tool requires autoconf 2.59 or better.
96388         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96390 2008-04-08  Eric Blake  <ebb9@byu.net>
96392         Use 'git describe --match' if present (added in git 1.5.5).
96393         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96394         if possible.
96396 2008-04-08  Bruno Haible  <bruno@clisp.org>
96398         Add tentative support for OpenServer.
96399         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96400         _ptr, _cnt.
96401         * lib/fpurge.c (fpurge): Likewise.
96402         * lib/freadable.c (freadable): Likewise.
96403         * lib/freadahead.c (freadahead): Likewise.
96404         * lib/freading.c (freading): Likewise.
96405         * lib/freadptr.c (freadptr): Likewise.
96406         * lib/freadseek.c (freadptrinc): Likewise.
96407         * lib/fseeko.c (rpl_fseeko): Likewise.
96408         * lib/fseterr.c (fseterr): Likewise.
96409         * lib/fwritable.c (fwritable): Likewise.
96410         * lib/fwriting.c (fwriting): Likewise.
96411         Reported by Roger Cornelius <rac@tenzing.org> and
96412         Brian K. White <brian@aljex.com>.
96414 2008-04-06  Jim Meyering  <meyering@redhat.com>
96416         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96418 2008-04-06  Bruno Haible  <bruno@clisp.org>
96420         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96421         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96422         * tests/test-printf-posix.sh: Likewise.
96423         * tests/test-vfprintf-posix.sh: Likewise.
96424         * tests/test-vprintf-posix.sh: Likewise.
96425         * tests/test-xprintf-posix.sh: Likewise.
96427 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96429         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96430         hide error from 'ls', needed on OS/2.
96431         Report by Elbert Pol <elbert.pol@gmail.com>.
96433 2008-04-04  Eric Blake  <ebb9@byu.net>
96435         Make test-fseeko.c failures meaningful.
96436         * tests/test-fseeko.c: Print line number on failure.
96437         * tests/test-fseek.c: Likewise.
96438         Reported by Nelson H. F. Beebe.
96440         Improve strtod bug detection check.
96441         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96442         required for Solaris 10.
96443         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96445 2008-04-04  Bruno Haible  <bruno@clisp.org>
96447         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96448         by m4/setenv.m4.
96450 2008-04-03  Eric Blake  <ebb9@byu.net>
96452         Ensure sane .version contents.
96453         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96454         version string.
96455         * build-aux/git-version-gen: Improve documentation.
96457         Make GNU make output nicer.
96458         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96459         MAKECMDGOALS to enforce message for all command line targets.  Set
96460         srcdir for use in maint.mk.
96462         Another maintainer tweak.
96463         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96464         a target that regenerates version.
96466 2008-04-03  Jim Meyering  <meyering@redhat.com>
96468         vc-list-files: don't cause coreutils "make po-check" failure
96469         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96471 2008-04-03  Eric Blake  <ebb9@byu.net>
96473         Allow VPATH usage of vc-list-files.
96474         * build-aux/vc-list-files (scriptversion): Add timestamp.
96475         (options): Add --help, --version, -C.
96476         (CVS): Support installed cvsu.
96478 2008-04-02  Bruno Haible  <bruno@clisp.org>
96480         Avoid some "statement with no effect" warnings from gcc.
96481         * tests/test-wctype.c (main): Explicitly ignore unused values.
96482         Reported by Jim Meyering.
96484 2008-04-02  Jim Meyering  <meyering@redhat.com>
96486         Avoid some warnings from "gcc -Wshadow".
96487         * tests/test-frexp.c (exp): Define to a different identifier.
96488         * tests/test-frexpl.c (exp): Likewise.
96490 2008-04-03  Jim Meyering  <meyering@redhat.com>
96492         bootstrap: remove dangling *.[ch] symlinks from lib
96493         * build-aux/bootstrap [dangling symlink removal]: Move find's
96494         -depth option to precede all others, to avoid a warning.
96495         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96497 2008-04-02  Bruno Haible  <bruno@clisp.org>
96499         Avoid some warnings from "gcc -Wshadow".
96500         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96501         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96502         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96503         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96504         Reported by Jim Meyering.
96506 2008-04-01  Bruno Haible  <bruno@clisp.org>
96508         Fix test to work on IRIX 6.5 with cc.
96509         * tests/test-math.c (numeric_equal): New function.
96510         (main): Use it.
96512 2008-04-01  Bruno Haible  <bruno@clisp.org>
96514         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96516 2008-04-01  Bruno Haible  <bruno@clisp.org>
96518         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96519         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96520         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96521         (Depends-on): Remove math.
96523         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96524         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96525         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96526         (Depends-on): Remove math.
96528         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96529         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96530         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96531         (Depends-on): Remove math.
96532         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96533         (Depends-on): Remove math.
96535         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96536         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96537         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96538         (Depends-on): Remove math.
96539         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96540         (Depends-on): Remove math.
96542         * tests/test-round1.c: Include nan.h.
96543         (main): Use NaNd instead of NAN.
96544         * modules/round-tests (Files): Add tests/nan.h.
96546         * tests/test-trunc1.c: Include nan.h.
96547         (main): Use NaNd instead of NAN.
96548         * modules/trunc-tests (Files): Add tests/nan.h.
96550         * tests/test-roundf1.c: Include nan.h.
96551         (main): Use NaNf instead of NAN.
96552         * modules/roundf-tests (Files): Add tests/nan.h.
96554         * tests/test-truncf1.c: Include nan.h.
96555         (main): Use NaNf instead of NAN.
96556         * modules/truncf-tests (Files): Add tests/nan.h.
96558         * tests/test-ceilf1.c: Include nan.h.
96559         (main): Use NaNf instead of NAN.
96560         * modules/ceilf-tests (Files): Add tests/nan.h.
96562         * tests/test-floorf1.c: Include nan.h.
96563         (main): Use NaNf instead of NAN.
96564         * modules/floorf-tests (Files): Add tests/nan.h.
96566         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96567         (main): Use NaNf instead of NAN.
96568         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96570         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96571         (main): Use NaNd instead of NAN.
96572         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96574         * tests/test-frexp.c: Include nan.h.
96575         (main): Use NaNd instead of NAN.
96576         * modules/frexp-tests (Files): Add tests/nan.h.
96578         * lib/isnan.c: Don't include <math.h>.
96579         (FUNC): Don't use NAN macro.
96580         * modules/isnand-nolibm (Depends-on): Remove math.
96581         * modules/isnanf-nolibm (Depends-on): Remove math.
96582         * modules/isnanl (Depends-on): Remove math.
96583         * modules/isnanl-nolibm (Depends-on): Remove math.
96585         * tests/nan.h: New file.
96587 2008-04-01  Eric Blake  <ebb9@byu.net>
96589         Fix typos.
96590         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96591         values to be the right type.
96593         For now, cater to gnulib strtod inaccuracies.
96594         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96595         fractional results.  While not as nice from a QoI perspective, it
96596         is a quicker patch than correctly implementing decimal to binary
96597         rounding.
96599 2008-03-31  Eric Blake  <ebb9@byu.net>
96601         Guarantee a definition of NAN.
96602         * lib/math.in.h (NAN): Define if missing.
96603         * tests/test-math.c (main): Test it.
96604         * doc/posix-headers/math.texi (math.h): Document this.
96605         * lib/isnan.c (rpl_isnand): Use it.
96606         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96607         * tests/test-floorf1.c (NaN): Likewise.
96608         * tests/test-frexp.c (NaN): Likewise.
96609         * tests/test-isnand.c (NaN): Likewise.
96610         * tests/test-isnanf.c (NaN): Likewise.
96611         * tests/test-round1.c (NaN): Likewise.
96612         * tests/test-roundf1.c (NaN): Likewise.
96613         * tests/test-snprintf-posix.h (NaN): Likewise.
96614         * tests/test-sprintf-posix.h (NaN): Likewise.
96615         * tests/test-trunc1.c (NaN): Likewise.
96616         * tests/test-truncf1.c (NaN): Likewise.
96617         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96618         * tests/test-vasprintf-posix.c (NaN): Likewise.
96619         * modules/isnand-nolibm (Depends-on): Add math.
96620         * modules/isnanf-nolibm (Depends-on): Likewise.
96621         * modules/isnanl (Depends-on): Likewise.
96622         * modules/isnanl-nolibm (Depends-on): Likewise.
96623         * modules/snprintf-posix-tests (Depends-on): Likewise.
96624         * modules/sprintf-posix-tests (Depends-on): Likewise.
96625         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96626         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96627         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96628         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96630 2008-03-31  Bruno Haible  <bruno@clisp.org>
96632         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96633         * doc/posix-functions/strtod.texi: Likewise.
96635 2008-03-31  Bruno Haible  <bruno@clisp.org>
96637         * tests/test-strtod.c (main): Don't use C99 syntax.
96639 2008-03-31  Bruno Haible  <bruno@clisp.org>
96641         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96642         Reported by Eric Blake.
96644 2008-03-31  Jim Meyering  <meyering@redhat.com>
96646         Don't compare actual signbit return values.
96647         * tests/test-strtod.c (main): Rather, compare only their
96648         zero/non-zero nature.
96650 2008-03-31  Eric Blake  <ebb9@byu.net>
96652         More strtod documentation.
96653         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96654         failures as distinct bugs.
96656 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96658         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96659         Problem reported by Erik Benada in
96660         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96662 2008-03-30  Bruno Haible  <bruno@clisp.org>
96664         * tests/test-strtod.c: Add comments about which assertion fails on which
96665         platform.
96666         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96668 2008-03-30  Eric Blake  <ebb9@byu.net>
96670         Test signbit behavior on zeros.
96671         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96672         (test_signbitd, test_signbitl): Likewise.
96674         More strtod touchups.
96675         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96676         sign of negative underflow, for now.  Use .5, not .1.
96677         * doc/posix-functions/strtod.texi (strtod): Mention these
96678         limitations.
96679         Reported by Jim Meyering.
96681 2008-03-30  Bruno Haible  <bruno@clisp.org>
96683         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96684         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96686 2008-03-30  Bruno Haible  <bruno@clisp.org>
96688         Avoid failure when attempting to return empty iconv results on some
96689         platforms.
96690         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96691         allocation, don't report ENOMEM when the resulting string is empty.
96693 2008-03-30  Bruno Haible  <bruno@clisp.org>
96695         Fix buffer overrun.
96696         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96697         Don't consider the width for tmp_length. Check count against tmp_length
96698         before doing the padding. Ensure enough allocation during padding.
96700 2008-03-30  Eric Blake  <ebb9@byu.net>
96702         strtod touchups.
96703         * lib/strtod.c (strtod): Avoid compiler warnings.
96704         Reported by Jim Meyering.
96706 2008-03-30  Bruno Haible  <bruno@clisp.org>
96708         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96709         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96710         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96711         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96712         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96713         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96714         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96715         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96717         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96718         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96719         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96720         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96721         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96722         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96723         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96724         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96726         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96727         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96728         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96729         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96730         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96731         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96732         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96733         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96735         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96736         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96738         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96739         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96741         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96742         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96744         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96746         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96748         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96750         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96752         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96754         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96756         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96758         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96760         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96761         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96763         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96764         (Depends-on): Add EOVERFLOW.
96765         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96766         (Depends-on): Add EOVERFLOW.
96767         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96768         (Depends-on): Add EOVERFLOW.
96769         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96770         (Depends-on): Add EOVERFLOW.
96771         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96772         (Depends-on): Add EOVERFLOW.
96773         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96774         (Depends-on): Add EOVERFLOW.
96775         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96776         (Depends-on): Add EOVERFLOW.
96777         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96778         (Depends-on): Add EOVERFLOW.
96780         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96781         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96782         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96784         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96785         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96786         * modules/snprintf (Depends-on): Add EOVERFLOW.
96788         * lib/poll.c (EOVERFLOW): Remove fallback.
96789         * modules/poll (Depends-on): Add EOVERFLOW.
96791         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96792         * modules/getugroups (Depends-on): Add EOVERFLOW.
96794         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96795         * modules/getdelim (Depends-on): Add EOVERFLOW.
96797         * lib/ftell.c (EOVERFLOW): Remove fallback.
96798         * modules/ftell (Depends-on): Add EOVERFLOW.
96800         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96802         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96804         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96806         * modules/EOVERFLOW-tests: New file.
96807         * tests/test-EOVERFLOW.c: New file.
96809         * modules/EOVERFLOW: New file.
96810         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96812 2008-03-30  Bruno Haible  <bruno@clisp.org>
96814         Fix bug introduced on 2007-06-10.
96815         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96816         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96818 2008-03-30  Bruno Haible  <bruno@clisp.org>
96820         Improve freadseek's efficiency after ungetc.
96821         * lib/freadseek.c: Include freadahead.h.
96822         (freadptrinc): New function, extracted from freadseek.
96823         (freadseek): Use it in a loop. Use freadahead to determine the number
96824         of loop iterations.
96825         * modules/freadseek (Depends-on): Add freadahead.
96826         (configure.ac): Require AC_C_INLINE.
96828 2008-03-30  Bruno Haible  <bruno@clisp.org>
96830         * lib/freadseek.c (freadseek): Don't ignore the return value of
96831         freadptr.
96833 2008-03-29  Eric Blake  <ebb9@byu.net>
96835         Add hex float support.
96836         * modules/strtod (Depends-on): Add c-ctype.
96837         (Link): Mention POW_LIB.
96838         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96839         whitespace between 'e' and exponent.
96840         * tests/test-strtod.c (main): Enable hex float tests.
96841         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96842         now provides.
96844         Document various strtod bugs, with some fixes.
96845         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96846         "-0x", "inf", "nan", and hex constants.
96847         * doc/posix-functions/atof.texi (atof): Likewise.
96848         * modules/stdlib (Makefile.am): Support strtod.
96849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96850         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96851         detect additional strtod bugs.
96852         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96853         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96854         bool where appropriate.  Parse 'inf' and 'nan'.
96855         * tests/test-strtod.c: New file.
96856         * modules/strtod (Depends-on): Add stdbool, stdlib.
96857         (configure.ac): Turn on module indicator.
96858         * modules/strtod-tests: New module.
96860 2008-03-29  Eric Blake  <ebb9@byu.net>
96862         Fix ftell on mingw.
96863         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96864         * modules/ftell-tests (Depends-on): Add binary-io.
96865         * modules/ftello-tests (Depends-on): Likewise.
96866         * tests/test-ftell.c (main): Enhance test to cover behavior after
96867         ungetc.  Enforce binary mode.
96868         * tests/test-ftello.c (main): Likewise.
96870         Pass test-freadseek on cygwin.
96871         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96872         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96873         ungetc buffer.
96875         * tests/test-fflush2.c (main): Fix typo.
96877 2008-03-29  Bruno Haible  <bruno@clisp.org>
96879         * tests/test-fflush2.c (main): Temporarily disable the contents of
96880         this test.
96881         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96882         Reported by Eric Blake.
96884 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96886         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96887         (GC_SHA224_DIGEST_SIZE): Add.
96889         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96890         (gc_hash_digest_length): Likewise.
96891         (gc_hash_buffer): Likewise.
96893 2008-03-25  Bruno Haible  <bruno@clisp.org>
96895         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96896         detail which gettext release to use.
96897         Reported by Simon Josefsson.
96899 2008-03-26  Jim Meyering  <meyering@redhat.com>
96901         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96902         * modules/gnumakefile (clean-GNUmakefile): Also, use
96903         test ... && ... || : syntax rather than if-then ... fi.
96905         gnumakefile: Don't double-quote-expand $(VPATH) value.
96906         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96908 2008-03-24  Eric Blake  <ebb9@byu.net>
96910         Alter GNUmakefile to install into top directory.
96911         * modules/maintainer-makefile: Split, and add dependency...
96912         * modules/gnumakefile: to this new module.
96913         * build-aux/GNUmakefile: Move...
96914         * top/GNUmakefile: ...here.
96915         * build-aux/maint.mk: Move...
96916         * top/maint.mk: ...here.
96917         * MODULES.html.sh (Support for maintaining...): Document new
96918         module.
96920 2008-03-23  Bruno Haible  <bruno@clisp.org>
96922         * gnulib-tool: New options --vc-files, --no-vc-files.
96923         (func_usage): Document them.
96924         (vc_files): New variable.
96925         (func_import): Consider vc_files.
96926         (func_create_testdir): Set vc_files to empty.
96927         Suggested by Jim Meyering and Karl Berry.
96929 2008-03-23  Bruno Haible  <bruno@clisp.org>
96931         Fix regex compilation error on HP-UX 11.
96932         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96933         * modules/regex (Files): Add m4/mbstate_t.m4.
96934         Reported by Ton Voon <ton.voon@altinity.com>.
96936 2008-03-23  Bruno Haible  <bruno@clisp.org>
96938         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96940 2008-03-23  Eric Blake  <ebb9@byu.net>
96941             Bruno Haible  <bruno@clisp.org>
96943         Install files from top/ in the destination directory.
96944         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96945         augmentation also for the files from top/.
96946         (func_import, func_create_testdir): Rewrite file names:
96947         top/filename -> filename.
96949 2008-03-23  Bruno Haible  <bruno@clisp.org>
96951         Tweak "gnulib --version" output.
96952         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96954 2008-03-23  Bruno Haible  <bruno@clisp.org>
96956         Tweak "gnulib --version" output.
96957         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96958         rather than contents of ChangeLog, when possible.
96960 2008-03-21  Eric Blake  <ebb9@byu.net>
96962         More --version tweaks.
96963         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96964         date of last ChangeLog entry.
96966 2008-03-21  Jim Meyering  <meyering@redhat.com>
96968         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96970 2008-03-20  Eric Blake  <ebb9@byu.net>
96972         VPATH fix.
96973         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96975 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96977         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96978         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96980 2008-03-20  Eric Blake  <ebb9@byu.net>
96982         Sync GNUmakefile with coreutils.
96983         * build-aux/GNUmakefile (have-Makefile): Rename...
96984         (_have-Makefile): ...to this, for namespace consideration.
96985         (GNUmakefile.cfg): Include, if present.
96986         (_autoreconf): Define a default.
96987         (_is-dist-target): New rule for rebuilds to pick up intra-release
96988         version.
96989         (maint-cfg.mk): Rename...
96990         (cfg.mk): ...to this.
96992 2008-03-18  Jim Meyering  <meyering@redhat.com>
96994         New script and module: mktempd
96995         * MODULES.html.sh (maint+release support): Add mktempd.
96996         * build-aux/mktempd: New file.
96997         * modules/mktempd: New file.
96999 2008-03-15  Jim Meyering  <meyering@redhat.com>
97001         Undo last change.
97002         * lib/sha1.c, lib/md5.c: 63 != ~63.
97003         Reported by Andreas Schwab.
97005         sha1.c, md5.c: Hoist a redundant expression.
97006         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
97007         "ctx->buflen" only once, before calling *_process_block.
97008         * lib/md5.c (md5_process_bytes): Likewise.
97010 2008-03-14  Eric Blake  <ebb9@byu.net>
97012         Bump copyright year in files generated by gnulib-tool.
97013         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
97014         gnulib-tool, rather than hard-coding it.
97016         Fix 'gnulib-tool --version' output to work with git.
97017         * gnulib-tool (func_gnulib_dir): New function, extracted from...
97018         (startup): ...here.
97019         (func_version): Use it to invoke git-version-gen, rather than
97020         relying on CVS keyword expansion.  Modernize wording.
97021         (cvsdatestamp, last_checkin_date, version): Kill unused
97022         variables.
97024 2008-03-12  Jim Meyering  <meyering@redhat.com>
97026         Recognize optional cast of the argument to free.
97027         * build-aux/useless-if-before-free: Update regexps.
97029         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
97031 2008-03-11  Bruno Haible  <bruno@clisp.org>
97033         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
97034         by a single package.
97035         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
97036         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
97037         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
97038         Reported by Sam Steingold <sds@gnu.org>.
97040 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97042         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
97043         repositories.
97045 2008-03-11  Bruno Haible  <bruno@clisp.org>
97047         Avoid conflicts between local macro definitions.
97048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
97049         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
97051 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
97052             Bruno Haible  <bruno@clisp.org>
97054         Make va_copy work with some version of xlc on AIX 5.1.
97055         * lib/stdarg.in.h: New file.
97056         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
97057         On AIX, use a <stdarg.h> file substitute.
97058         * modules/stdarg (Files): Add lib/stdarg.in.h.
97059         (Depends-on): Add include_next.
97060         (Makefile.am): Build a stdarg.h substitute if requested.
97061         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
97063 2008-03-10  Bruno Haible  <bruno@clisp.org>
97065         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
97066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
97067         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97069 2008-03-10  Bruno Haible  <bruno@clisp.org>
97071         * modules/stdlib (Depends-on): Add include_next, remove
97072         absolute-header.
97074 2008-03-09  Bruno Haible  <bruno@clisp.org>
97076         * lib/freadahead.h (freadahead): Document more precisely.
97077         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
97078         the sum of both buffer sizes.
97079         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
97080         * NEWS: Document the change.
97082 2008-03-09  Bruno Haible  <bruno@clisp.org>
97084         Extend freadptr to return also the buffer size.
97085         * lib/freadptr.h (freadptr): Add sizep argument.
97086         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
97087         (freadptr): Add sizep argument. Determine buffer size like freadahead
97088         does.
97089         * tests/test-freadptr.c: Don't include freadahead.h.
97090         (main): Adapt for new calling convention of freadptr.
97091         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
97092         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
97093         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
97094         tests/test-freadptr2.sh.
97095         (Depends): Remove freadahead.
97096         (TESTS): Add test-freadptr2.sh.
97097         (check_PROGRAMS): Add test-freadptr2.
97099 2008-03-09  Bruno Haible  <bruno@clisp.org>
97101         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
97102         Report and solution by Simon Josefsson.
97104 2008-03-06  Bruno Haible  <bruno@clisp.org>
97106         Make fflush after ungetc work on BSD platforms.
97107         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
97108         * tests/test-fflush2.c: New file.
97109         * tests/test-fflush2.sh: New file.
97110         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
97111         tests/test-fflush2.c.
97112         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
97113         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
97115 2008-03-06  Eric Blake  <ebb9@byu.net>
97117         Likewise for ftello.
97118         * modules/ftello (Dependencies): Add extensions.
97119         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
97121 2008-03-06  Bruno Haible  <bruno@clisp.org>
97123         * modules/fseeko (Dependencies): Add extensions.
97124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
97125         Needed on glibc systems.
97127 2008-03-06  Bruno Haible  <bruno@clisp.org>
97129         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
97130         email address.
97131         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97133 2008-03-06  Bruno Haible  <bruno@clisp.org>
97135         * users.txt: Add libgnupdf.
97137 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
97139         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
97140         (Header File Substitutes, Function Substitutes,
97141         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
97142         (Build robot for gnulib): Fix typo.
97144 2008-03-06  Bruno Haible  <bruno@clisp.org>
97146         * doc/gnulib-tool.texi (VCS Issues): Small updates.
97147         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97149 2008-03-06  Bruno Haible  <bruno@clisp.org>
97151         * doc/func.texi: New file, extracted from doc/gnulib.texi.
97152         * doc/gnulib.texi: Include it.
97154 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97156         * modules/func (License): Change license to unlimited; there was
97157         no LGPL parts in the module anyway.
97159 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97161         * modules/__func__: Renamed to modules/func.
97162         * modules/__func__-tests: Renamed to modules/func-tests.
97163         * tests/test-__func__.c: Renamed to tests/test-func.c.
97164         * m4/__func__.m4: Renamed to m4/func.m4.
97165         * doc/gnulib.texi (__func__): Section renamed to func.
97166         Suggested by Eric Blake <ebb9@byu.net>.
97168 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97170         * doc/gnulib.texi (__func__): Use C99 terminology when talking
97171         about __func__.  Make example self-contained.  Suggested by Eric
97172         Blake <ebb9@byu.net>.
97174         * tests/test-__func__.c (main): Avoid extraneous () around __func.
97175         Suggested by Eric Blake <ebb9@byu.net>.
97177 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97179         * modules/__func__: New file.
97180         * modules/__func__-tests: New file.
97181         * tests/test-__func__.c: New file.
97182         * m4/__func__.m4: New file.
97183         * doc/gnulib.texi (__func__): Document __func__ module.
97185 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97187         * modules/byteswap (License): Re-license as LGPLv2+.
97189 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97191         * doc/Makefile: Add pdf target.
97193 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97195         * modules/inline (License): Use 'unlimited', since there are only
97196         *.m4 files in this module.
97198 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97199             Bruno Haible  <bruno@clisp.org>
97201         Add support for HP C 7.1 on OpenVMS 8.3.
97202         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
97204 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97206         Update VMS specifics.
97207         * lib/getopt.c [VMS]: Remove include of unixlib.h.
97209 2008-03-02  Jim Meyering  <meyering@redhat.com>
97211         Remove the last dependency on the "free" module.
97212         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
97213         Reported by Bob Proulx.
97215         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
97217         Remove useless "if" tests before free.  Deprecate "free" module.
97218         * doc/posix-functions/free.texi: Mention that this
97219         module is no longer useful.
97220         * modules/free (Notice): Say this module is obsolete.
97221         * modules/readutmp (Depends-on): Remove free.
97222         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
97223         * lib/putenv.c (putenv): Likewise.
97224         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
97225         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
97226         * tests/test-c-strcasestr.c (main): Likewise.
97227         * tests/test-c-strstr.c (main): Likewise.
97228         * tests/test-mbscasestr1.c (main): Likewise.
97229         * tests/test-mbscasestr2.c (main): Likewise.
97230         * tests/test-mbsstr1.c (main): Likewise.
97231         * tests/test-mbsstr2.c (main): Likewise.
97232         * tests/test-memmem.c (main): Likewise.
97233         * tests/test-strcasestr.c (main): Likewise.
97234         * tests/test-striconv.c (main): Likewise.
97235         * tests/test-striconveh.c (main): Likewise.
97236         * tests/test-striconveha.c (main): Likewise.
97237         * tests/test-strstr.c (main): Likewise.
97239         * build-aux/git-version-gen: Adjust a comment and the Usage string.
97241         bootstrap: sync from coreutils again
97242         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
97244 2008-03-01  Jim Meyering  <meyering@redhat.com>
97246         bootstrap: sync from coreutils
97247         * build-aux/bootstrap (update_po_files): Copy a .po file into place
97248         also when the target doesn't exist.
97250 2008-03-01  Eric Blake  <ebb9@byu.net>
97252         Fix bugs in last patch.
97253         * lib/memchr2.c (memchr2): Fix typo.
97254         * tests/test-memchr2.c: Test previous bug, and don't use GNU
97255         extension.
97256         Reported by Bruce Korb.
97258         New module 'memchr2'.
97259         * modules/memchr2: New file.
97260         * modules/memchr2-tests: Likewise.
97261         * lib/memchr2.h: Likewise.
97262         * lib/memchr2.c: Likewise, based on memchr.c.
97263         * tests/test-memchr2.c: New test.
97264         * MODULES.html.sh (String handling): Add memchr2.
97266 2008-02-29  Bruno Haible  <bruno@clisp.org>
97268         * modules/freadseek-tests: New file.
97269         * tests/test-freadseek.sh: New file.
97270         * tests/test-freadseek.c: New file.
97272         New module 'freadseek'.
97273         * modules/freadseek: New file.
97274         * lib/freadseek.h: New file.
97275         * lib/freadseek.c: New file.
97276         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
97278 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
97280         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
97281         wydawca.
97283         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
97284         program_invocation_name and program_invocation_short_name are
97285         present.
97287 2008-02-28  Bruno Haible  <bruno@clisp.org>
97289         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
97290         * tests/test-freadptr.sh: Also test non-seekable stdin.
97292 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
97294         * build-aux/bootstrap (source_base, m4_base)
97295         (doc_base, tests_base): New variables.
97296         (gnulib_tool_options): Do not hardcode base directories, use
97297         the above variables instead.
97299 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
97301         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
97303 2008-02-28  Bruno Haible  <bruno@clisp.org>
97305         * modules/freadptr-tests: New file.
97306         * tests/test-freadptr.sh: New file.
97307         * tests/test-freadptr.c: New file.
97309         New module 'freadptr'.
97310         * modules/freadptr: New file.
97311         * lib/freadptr.h: New file.
97312         * lib/freadptr.c: New file.
97313         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
97315 2008-02-26  Karl Berry  <karl@freefriends.org>
97317         Sync from Libtool:
97318         * libltdl/argz.c (argz_add, argz_count): New functions.
97319         * libltdl/argz.in.h: Declare them.
97320         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
97322 2008-02-22  Bruno Haible  <bruno@clisp.org>
97324         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
97325         is a pointer type.  Needed for HP-UX 10.
97326         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97327         * doc/posix-functions/gmtime_r.texi: Likewise.
97328         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97330 2008-02-24  Bruno Haible  <bruno@clisp.org>
97332         * modules/environ-tests: New file.
97333         * tests/test-environ.c: New file.
97335         New module 'environ'.
97336         * modules/environ: New file.
97337         * lib/unistd.in.h (environ): New declaration.
97338         * m4/environ.m4: New file.
97339         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97340         after use.
97341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97342         HAVE_DECL_ENVIRON.
97343         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97344         HAVE_DECL_ENVIRON.
97345         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97346         wrong claim that 'environ' is missing on some systems.
97347         * modules/execute (Depends-on): Add environ.
97348         * lib/execute.c (environ): Remove fallback declaration.
97349         * modules/pipe (Depends-on): Add environ.
97350         * lib/pipe.c (environ): Remove fallback declaration.
97351         * modules/setenv (Depends-on): Add environ.
97352         * lib/setenv.c (environ): Remove fallback declaration.
97353         * modules/unsetenv (Depends-on): Add environ.
97354         * lib/unsetenv.c (environ): Remove fallback declaration.
97355         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97356         m4/environ.m4.
97357         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97358         (gl_PREREQ_UNSETENV): Likewise.
97360 2008-02-24  Bruno Haible  <bruno@clisp.org>
97362         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97364 2008-02-20  Bob Proulx  <bob@proulx.com>
97366         Enable use of older two part flavor 'git describe'.
97367         * build-aux/git-version-gen: If using the older two part flavor of
97368         git version then recreate the third part now present in the
97369         newer three part flavor of git describe.
97371 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97373         * lib/fts.c (fts_build): Typo correction to comment.
97375 2008-02-17  Bruno Haible  <bruno@clisp.org>
97377         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97378         generating no-op conflicts.
97380 2008-02-17  Bruno Haible  <bruno@clisp.org>
97382         Speed up by 10%.
97383         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97384         result_entries, rather than an index-based loop.
97386 2008-02-17  Bruno Haible  <bruno@clisp.org>
97388         Speed up by 25%.
97389         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97390         'hashcode_cached'.
97391         (entry_create): New function.
97392         (entry_hashcode): Use the cached hashcode if possible.
97393         (read_changelog_file, try_split_merged_entry): Use entry_create.
97395 2008-02-17  Bruno Haible  <bruno@clisp.org>
97397         Speed up from O(n^2) to O(n) for long ChangeLog files.
97398         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97399         (read_changelog_file): Change implementation of entries_reversed list
97400         to rbtreehash.
97401         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97403 2008-02-17  Bruno Haible  <bruno@clisp.org>
97405         New option --split-merged-entry.
97406         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97407         (find_paragraph_end, try_split_merged_entry): New functions.
97408         (long_options): Add option --split-merged-entry.
97409         (usage): Document option --split-merged-entry.
97410         (main): Implement option --split-merged-entry.
97411         Reported by Eric Blake.
97413 2008-02-17  Bruno Haible  <bruno@clisp.org>
97415         * lib/git-merge-changelog.c: Include c-strstr.h.
97416         (main): Support the "git pull --rebase" situation.
97417         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97418         Reported by Eric Blake.
97420 2008-02-16  Eric Blake  <ebb9@byu.net>
97422         Avoid doubling \ in common case of "c-maybe" quoting style.
97423         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97424         eliding outer quotes.
97425         * lib/quotearg.h: Document this.
97426         * tests/test-quotearg.c (result_strings, inputs, results_g)
97427         (flag_results, locale_results): Test it by adding a new string to
97428         each test group.
97429         (compare_strings): Test new string.
97431 2008-02-13  Eric Blake  <ebb9@byu.net>
97433         Avoid trigraph quoting in default output.
97434         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97435         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97436         unless explicitly requested.
97437         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97439 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97441         Don't rely on signed integer overflowing to negative value.
97442         * lib/getugroups.c (getugroups): Include <limits.h>.
97443         Instead, compare against INT_MAX, and increment only if the test passes.
97445 2008-02-13  Jim Meyering  <meyering@redhat.com>
97446         and Eric Blake  <ebb9@byu.net>
97448         Avoid shadowing warning and compile errors on Linux.
97449         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97450         forwarding macros on Linux.
97451         (dcgettext): Define a stub, for Linux.
97452         (results_g, main): Avoid warnings.
97454 2008-02-12  Eric Blake  <ebb9@byu.net>
97456         Silence warning in last patch.
97457         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97459         Quotearg part 4: add tests, fix c-maybe colon quoting.
97460         * lib/quotearg.h: Improve documentation.
97461         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97462         escapes when adding outer quotes.  When quoting trigraphs, use
97463         valid C notation.  When quoting NUL, omit extra characters if next
97464         character is not digit.  Alter prototype.
97465         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97466         callers.
97467         * modules/quotearg-tests: New module.
97468         * tests/test-quotearg.c: New test.
97470 2008-02-07  Eric Blake  <ebb9@byu.net>
97472         Quotearg part 3: add flag to control outer quote elision.
97473         * lib/quotearg.h (c_maybe_quoting_style): New style.
97474         (enum quoting_flags): Better documentation of flags.
97475         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97476         c-maybe style.
97477         (quotearg_buffer_restyled): Handle new flag to elide outer
97478         quotes.
97480         Quotearg part 2: add flag that can control NUL elision.
97481         * lib/quotearg.h (set_quoting_flags): New prototype.
97482         * lib/quotearg.c (struct quoting_options): Add flag field.
97483         (set_quoting_flags): New function.
97484         (quotearg_buffer_restyled): Add flags parameter.
97485         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97486         (quotearg_n_options): Set the flag, since length cannot be
97487         returned.
97488         (quoting_options_from_style): Default flags correctly.
97490         Quotearg part 1: more wrappers, restore quotearg_char state.
97491         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97492         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97493         (quotearg_colon_mem): New wrappers.
97494         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97495         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97496         functions.
97497         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97498         (quotearg_colon_mem): New functions.
97500 2008-02-11  Bruno Haible  <bruno@clisp.org>
97502         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97503         library in the current directory: it does not work with parallel make.
97504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97506 2008-02-11  Bruno Haible  <bruno@clisp.org>
97508         * .gitattributes: New file.
97510 2008-02-11  Jim Meyering  <meyering@redhat.com>
97512         useless-if-before-free: Fix reversed exit values.
97513         * build-aux/useless-if-before-free: Use correct values
97514         for EXIT_MATCH and EXIT_NO_MATCH.
97516         * build-aux/useless-if-before-free: Close stdout carefully.
97518 2008-02-10  Bruno Haible  <bruno@clisp.org>
97520         New module 'git-merge-changelog'.
97521         * modules/git-merge-changelog: New file.
97522         * lib/git-merge-changelog.c: New file.
97524 2008-02-10  Jim Meyering  <meyering@redhat.com>
97526         useless-if-before-free: New option: --list (-l).
97528         useless-if-before-free: Don't exit immediately upon open failure.
97529         * build-aux/useless-if-before-free: Exit 2 for errors.
97530         Upon failure to open a file, don't exit immediately.
97531         Rather, just warn and continue with any remaining files.
97533 2008-02-10  Bruno Haible  <bruno@clisp.org>
97535         New abstract list operation 'node_set_value'.
97536         * lib/gl_list.h (gl_list_node_set_value): New function.
97537         (struct gl_list_implementation): New field node_set_value.
97538         * lib/gl_list.c (gl_list_node_set_value): New function.
97539         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97540         (gl_array_list_implementation): Update.
97541         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97542         (gl_carray_list_implementation): Update.
97543         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97544         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97545         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97546         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97547         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97548         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97549         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97550         Update.
97551         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97552         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97553         (gl_sublist_list_implementation): Update.
97555 2008-02-10  Bruno Haible  <bruno@clisp.org>
97557         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97558         Needed when ELEMENT is #defined to 'some_type *'.
97560 2008-02-10  Jim Meyering  <meyering@redhat.com>
97562         New script and module: useless-if-before-free
97563         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97564         * build-aux/useless-if-before-free: New file.
97565         * modules/useless-if-before-free: New file.
97567         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97569         xstrtol_error: Fix typo.
97570         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97571         s/exit_failure/exit_status/.
97573 2008-02-09  Jim Meyering  <meyering@redhat.com>
97575         New script and module: gitlog-to-changelog
97576         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97577         * modules/gitlog-to-changelog: New file.
97578         * build-aux/gitlog-to-changelog: New file.
97580 2008-02-08  Jim Meyering  <meyering@redhat.com>
97582         Avoid two "parameter unused" warnings.
97583         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97584         Mark "st" as used.
97586         Use "git COMMAND", not "git-COMMAND".
97587         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97588         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97589         * build-aux/git-version-gen: Use "git status", not "git-status".
97591 2008-02-07  Bruno Haible  <bruno@clisp.org>
97593         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97594         Avoids a crash on Windows Vista.
97595         Reported by Adam Strzelecki <ono@java.pl> via
97596         Simon Josefsson <simon@josefsson.org>.
97598 2008-02-06  Bruno Haible  <bruno@clisp.org>
97600         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97601         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97602         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97604         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97606         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97607         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97612         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97613         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97614         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97615         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97616         left-adjust flag.
97617         * tests/test-snprintf-posix.h (test_function): Likewise.
97618         * tests/test-sprintf-posix.h (test_function): Likewise.
97619         * tests/test-vasprintf-posix.c (test_function): Likewise.
97620         * doc/posix-functions/fprintf.texi: Update.
97621         * doc/posix-functions/printf.texi: Update.
97622         * doc/posix-functions/snprintf.texi: Update.
97623         * doc/posix-functions/sprintf.texi: Update.
97624         * doc/posix-functions/vfprintf.texi: Update.
97625         * doc/posix-functions/vprintf.texi: Update.
97626         * doc/posix-functions/vsnprintf.texi: Update.
97627         * doc/posix-functions/vsprintf.texi: Update.
97628         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97630 2008-02-06  Bruno Haible  <bruno@clisp.org>
97632         Fix bug introduced on 2008-01-26.
97633         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97635 2008-02-06  Bruno Haible  <bruno@clisp.org>
97637         Fix bug introduced on 2007-06-10.
97638         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97639         !NEED_PRINTF_FLAG_ZERO.
97641 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97643         getloadavg: use libperfstat on AIX5
97644         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97646 2008-02-03  Bruno Haible  <bruno@clisp.org>
97648         * lib/diffseq.h: Add comments about required #includes.
97649         Reported by Michael Biggs <gnulib@doubleplum.net>.
97651 2008-02-01  Bruno Haible  <bruno@clisp.org>
97653         * users.txt: Add gnuit.
97655 2008-01-31  Bruno Haible  <bruno@clisp.org>
97657         * lib/md4.c (set_uint32): Mark as inline.
97658         * lib/md5.c (set_uint32): Likewise.
97659         * lib/sha1.c (set_uint32): Likewise.
97660         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97661         * m4/md5.m4 (gl_MD5): Likewise.
97662         * m4/sha1.m4 (gl_SHA1): Likewise.
97664 2008-01-31  Jim Meyering  <meyering@redhat.com>
97666         Use "sizeof VAR", rather than a literal "4".
97667         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97668         * lib/md4.c (md4_read_ctx): Likewise.
97669         * lib/sha1.c (sha1_read_ctx): Likewise.
97671 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97673         * tests/test-sha1.c: New file, based on test-md5.c.
97675         * modules/crypto/sha1-tests: New file.
97677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97679         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97681 2008-01-31  Jim Meyering  <meyering@redhat.com>
97683         Prefer "sizeof v" over the equivalent "4".
97684         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97685         * lib/md5.c (set_uint32): Likewise.
97686         * lib/sha1.c (set_uint32): Likewise.
97688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97690         * lib/sha1.c (set_uint32): Mark function as static.
97692 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97694         md2: clarify comments to say that alignment is not required.
97695         * lib/md2.h: Remove warning about alignment in comment.
97696         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97697         never been required.
97699 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97701         md4: adapt alignment constraint fix from sha1.
97702         * lib/md4.c (set_uint32): New function, from sha1.c
97703         (md4_read_ctx): Use it.
97704         (md4_finish_ctx): Doc fix.
97705         * lib/md4.h: Doc fix.
97707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97709         md5: adapt alignment constraint fix from sha1.
97710         * lib/md5.c (set_uint32): New function, from sha1.c
97711         (md5_read_ctx): Use it.
97712         (md5_finish_ctx): Doc fix.
97713         * lib/md5.h: Doc fix.
97715 2008-01-30  Peter Palfrader  <weasel@debian.org>
97717         sha1: remove the result buffer alignment constraint
97718         * lib/sha1.c (set_uint32): New function.
97719         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97720         constraint.
97721         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97722         * lib/sha1.h: Likewise.
97724 2008-01-30  Andreas Schwab  <schwab@suse.de>
97725             Bruno Haible  <bruno@clisp.org>
97727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97728         correct definition of LDBL_MIN_EXP.
97730 2008-01-30  Karl Berry  <karl@gnu.org>
97732         * config/srclist-update: try to preserve x bit on updates.
97733         * config/srclistvars.sh: update for karl.
97735 2008-01-29  Jim Meyering  <meyering@redhat.com>
97737         vasnprintf.c: Avoid warning about unused label
97738         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97739         "overflow" label definition and associated code with the
97740         same cpp condition that guards the sole use of that label.
97742 2008-01-26  Bruno Haible  <bruno@clisp.org>
97744         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97745         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97746         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97747         * lib/isnanl-nolibm.h (isnanl): Likewise.
97748         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97750 2008-01-26  Bruno Haible  <bruno@clisp.org>
97752         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97753         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97755 2008-01-26  Bruno Haible  <bruno@clisp.org>
97757         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97758         GCC >= 4.0 built-in.
97759         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97761 2008-01-26  Bruno Haible  <bruno@clisp.org>
97763         Rename isnan, applicable to 'double' only, to isnand.
97764         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97765         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97766         (configure.ac): Update.
97767         (Include): Replace "isnan.h" with "isnand.h".
97768         * m4/isnand.m4: Renamed from m4/isnan.m4.
97769         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97770         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97771         instead of isnan.c.
97772         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97773         instead of HAVE_ISNAN_IN_LIBC.
97774         (isnand): Renamed from isnan.
97775         * lib/isnand.c: New file.
97776         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97777         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97778         (Makefile.am): Update.
97779         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97780         Include isnand.h instead of isnan.h.
97781         (main): Test isnand instead of isnan.
97782         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97783         isnan-nolibm.
97784         * modules/frexp (Depends-on): Likewise.
97785         * modules/frexp-tests (Depends-on): Likewise.
97786         * modules/frexp-nolibm (Depends-on): Likewise.
97787         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97788         * modules/isfinite (Depends-on): Likewise.
97789         * modules/round-tests (Depends-on): Likewise.
97790         * modules/signbit (Depends-on): Likewise.
97791         * modules/signbit-tests (Depends-on): Likewise.
97792         * modules/snprintf-posix (Depends-on): Likewise.
97793         * modules/sprintf-posix (Depends-on): Likewise.
97794         * modules/trunc-tests (Depends-on): Likewise.
97795         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97796         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97797         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97798         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97799         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97800         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97801         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97802         * modules/vasnprintf-posix (Depends-on): Likewise.
97803         * modules/vasprintf-posix (Depends-on): Likewise.
97804         * modules/vfprintf-posix (Depends-on): Likewise.
97805         * modules/vsnprintf-posix (Depends-on): Likewise.
97806         * modules/vsprintf-posix (Depends-on): Likewise.
97807         * lib/frexp.c: Include isnand.h instead of isnan.h.
97808         (ISNAN): Set to isnand instead of isnan.
97809         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97810         (gl_isfinited): Use isnand instead of isnan.
97811         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97812         (gl_signbitd): Use isnand instead of isnan.
97813         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97814         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97815         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97816         (main): Use isnand instead of isnan.
97817         * tests/test-round1.c: Include isnand.h.
97818         (main): Use isnand instead of isnan.
97819         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97820         (ISNAN): Set to isnand instead of isnan.
97821         * tests/test-trunc1.c: Include isnand.h.
97822         (main): Use isnand instead of isnan.
97823         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97824         (equal): Use isnand instead of isnan.
97825         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97826         isnand-nolibm.
97827         * NEWS: Mention the change.
97829 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97830             Bruno Haible  <bruno@clisp.org>
97832         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97833         the GCC builtins for signbits are present and set
97834         REPLACE_SIGNBIT_USING_GCC if so.
97835         * lib/math.in.h (signbit): Define using GCC builtins if
97836         REPLACE_SIGNBIT_USING_GCC is set.
97837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97838         REPLACE_SIGNBIT_USING_GCC.
97839         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97841 2008-01-25  Jim Meyering  <meyering@redhat.com>
97843         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97844         * lib/poll.c: Include <config.h>, not "config.h".
97845         * tests/test-getaddrinfo.c: Likewise.
97847 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97849         * modules/sockets-tests: New file.
97851 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97853         * modules/sockets: New module, can be used to call WSA_Startup and
97854         WSA_Cleanup when needed.
97856         * lib/sockets.h, lib/sockets.c: New files.
97858         * m4/sockets.m4: New file.
97860         * tests/test-sockets.c: New file.
97862 2008-01-19  Bruno Haible  <bruno@clisp.org>
97864         * doc/posix-headers: Renamed from doc/headers.
97865         * doc/posix-functions: Renamed from doc/functions.
97866         * doc/gnulib.texi: Update.
97868 2008-01-19  Bruno Haible  <bruno@clisp.org>
97870         * doc/glibc-functions/strcasestr.texi: Include contents of
97871         doc/functions/strcasestr.texi, fixing the list of platforms.
97872         * doc/functions/strcasestr.texi: Remove file.
97874 2008-01-19  Bruno Haible  <bruno@clisp.org>
97876         * doc/glibc-functions/memmem.texi: Include contents of
97877         doc/functions/memmem.texi.
97878         * doc/functions/memmem.texi: Remove file.
97880 2008-01-18  Bruno Haible  <bruno@clisp.org>
97882         * doc/glibc-functions/*.texi: New files.
97883         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97884         to use the new files.
97886 2008-01-17  Bruno Haible  <bruno@clisp.org>
97888         * tests/test-gethostname.c (main): Fix printf statement.
97890 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97892         * modules/gethostname-tests: New file.
97894         * tests/test-gethostname.c: New file.
97896 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97898         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97899         used by the UNAME case.  Reported by Bruno Haible
97900         <bruno@clisp.org>.
97902 2008-01-17  Eric Blake  <ebb9@byu.net>
97904         Convert c-strcasestr to be more efficient.
97905         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97906         (Depends-on): Add c-strcase, remove malloca, strnlen.
97907         * tests/test-c-strcasestr.c (main): Enhance test.
97908         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97910 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97912         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97913         Use it in creating po/Makevars.
97915 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97917         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97918         Applications that requires it should initialize libgcrypt
97919         manually.
97921 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97923         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97925 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97927         Fix problem with getdate on mingw32 reported by Simon Josefsson
97928         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97929         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97930         tzname", when deciding whether to declare tzname.
97931         * lib/strftime.c (tzname): Likewise.
97933 2008-01-15  Bruno Haible  <bruno@clisp.org>
97935         Work around a MacOS X 10.5 bug in frexpl().
97936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97937         * doc/functions/frexpl.texi: Document the bug.
97938         Reported by Elias Pipping <pipping@gentoo.org>.
97940 2008-01-14  Eric Blake  <ebb9@byu.net>
97942         Touch up previous patch.
97943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97944         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97946         Convert strcasestr module to use Two-Way algorithm.
97947         * modules/strcasestr-simple: New module, based on the old
97948         strcasestr, but with Two-Way rather than KMP.
97949         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97950         * lib/string.in.h (rpl_strcasestr): Declare.
97951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97952         performance.
97953         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97954         * modules/string (Makefile.am): Support strcasestr.
97955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97956         * modules/strcasestr-tests (Depends-on): Check for alarm.
97957         * tests/test-strcasestr.c: Augment test.
97958         * lib/str-two-way.h: Clean up stray macro.
97959         * NEWS: Document new module.
97960         * MODULES.html.sh (string handling): Likewise.
97961         * doc/functions/strcasestr.texi: New file.
97962         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97963         here, since it is not a POSIX function.
97965 2008-01-14  Colin Watson  <cjwatson@debian.org>
97966             Bruno Haible  <bruno@clisp.org>
97968         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97969         works fine; if not, set REPLACE_STRSIGNAL.
97970         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97972         REPLACE_STRSIGNAL.
97973         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97974         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97975         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97977 2008-01-14  Bruno Haible  <bruno@clisp.org>
97979         * modules/strsignal (Include): Change to <string.h>.
97981 2008-01-14  Colin Watson  <cjwatson@debian.org>
97983         * modules/argp (Notice): Add a notice recommending to change
97984         XGETTEXT_OPTIONS.
97985         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97987 2008-01-13  Colin Watson  <cjwatson@debian.org>
97989         * modules/strsignal-tests: New file.
97990         * tests/test-strsignal.c: New file.
97992         * lib/strsignal.c: New file, from glibc with modifications.
97993         * lib/siglist.h: New file, from glibc with modifications.
97994         * lib/string.in.h (strsignal): New declaration.
97995         * m4/strsignal.m4: New file.
97996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97997         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97998         * modules/strsignal: New file.
97999         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
98000         HAVE_DECL_STRSIGNAL.
98002 2008-01-13  Bruno Haible  <bruno@clisp.org>
98004         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
98005         locale encoding is not ASCII. Needed for OpenBSD 4.0.
98006         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98007         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98009 2008-01-13  Bruno Haible  <bruno@clisp.org>
98011         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
98012         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
98013         * lib/argp.h (__attribute__): Likewise.
98014         * lib/c-stack.c (__attribute__): Likewise.
98015         * lib/error.h (__attribute__): Likewise.
98016         * lib/fts.c (__attribute__): Likewise.
98017         * lib/openat.h (__attribute__): Likewise.
98018         * lib/stdio.in.h (__attribute__): Likewise.
98019         * lib/string.in.h (__attribute__): Likewise.
98020         * lib/utimens.c (__attribute__): Likewise.
98021         * lib/vasnprintf.h (__attribute__): Likewise.
98022         * lib/xalloc.h (__attribute__): Likewise.
98023         * lib/xprintf.h (__attribute__): Likewise.
98024         * lib/xstrtol.h (__attribute__): Likewise.
98025         * lib/xvasprintf.h (__attribute__): Likewise.
98027 2008-01-12  Bruno Haible  <bruno@clisp.org>
98029         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
98030         * doc/glibc-headers/a.out.texi: New file.
98031         * doc/glibc-headers/aliases.texi: New file.
98032         * doc/glibc-headers/alloca.texi: New file.
98033         * doc/glibc-headers/ar.texi: New file.
98034         * doc/glibc-headers/argp.texi: New file.
98035         * doc/glibc-headers/argz.texi: New file.
98036         * doc/glibc-headers/byteswap.texi: New file.
98037         * doc/glibc-headers/crypt.texi: New file.
98038         * doc/glibc-headers/endian.texi: New file.
98039         * doc/glibc-headers/envz.texi: New file.
98040         * doc/glibc-headers/err.texi: New file.
98041         * doc/glibc-headers/error.texi: New file.
98042         * doc/glibc-headers/execinfo.texi: New file.
98043         * doc/glibc-headers/fpu_control.texi: New file.
98044         * doc/glibc-headers/fstab.texi: New file.
98045         * doc/glibc-headers/fts.texi: New file.
98046         * doc/glibc-headers/getopt.texi: New file.
98047         * doc/glibc-headers/ieee754.texi: New file.
98048         * doc/glibc-headers/ifaddrs.texi: New file.
98049         * doc/glibc-headers/libintl.texi: New file.
98050         * doc/glibc-headers/mcheck.texi: New file.
98051         * doc/glibc-headers/mntent.texi: New file.
98052         * doc/glibc-headers/obstack.texi: New file.
98053         * doc/glibc-headers/paths.texi: New file.
98054         * doc/glibc-headers/printf.texi: New file.
98055         * doc/glibc-headers/pty.texi: New file.
98056         * doc/glibc-headers/resolv.texi: New file.
98057         * doc/glibc-headers/shadow.texi: New file.
98058         * doc/glibc-headers/sysexits.texi: New file.
98059         * doc/glibc-headers/ttyent.texi: New file.
98061 2008-01-12  Jim Meyering  <meyering@redhat.com>
98063         announce-gen: emit Gnulib's git-based version string.
98064         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
98065         New option --gnulib-version=V, where V is expected to be
98066         the output of running git describe in the gnulib directory.
98067         (get_tool_versions): Request feedback on xdelta.  I suspect it's
98068         not useful, and plan to stop publishing an xdelta file with each
98069         coreutils release.
98071         * build-aux/announce-gen: Also check for lzma-compressed files.
98073 2008-01-11  Bruno Haible  <bruno@clisp.org>
98075         * tests/test-memmem.c (main): Increase maximum allowed time.
98076         * tests/test-strstr.c (main): Likewise.
98078 2008-01-11  Bruno Haible  <bruno@clisp.org>
98080         * doc/functions/memmem.texi: Add more precisions about platforms.
98081         * doc/functions/strstr.texi: Likewise.
98083 2008-01-10  Eric Blake  <ebb9@byu.net>
98085         * m4/strstr.m4: Delete cruft from copy-n-paste.
98086         Reported by Bruno Haible.
98088 2008-01-10  Bruno Haible  <bruno@clisp.org>
98090         Make c-strstr rely on strstr.
98091         * lib/c-strstr.c: Don't include str-kmp.h.
98092         (c_strstr): Define in terms of strstr.
98093         * modules/c-strstr (Files): Remove lib/str-kmp.h.
98094         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
98096 2008-01-10  Bruno Haible  <bruno@clisp.org>
98098         * doc/gnulib.texi (String Functions in C Locale): New section.
98099         * doc/c-ctype.texi: New file.
98100         * doc/c-strcase.texi: New file.
98101         * doc/c-strcaseeq.texi: New file.
98102         * doc/c-strcasestr.texi: New file.
98103         * doc/c-strstr.texi: New file.
98104         * doc/c-strtod.texi: New file.
98105         * doc/c-strtold.texi: New file.
98107 2008-01-10  Eric Blake  <ebb9@byu.net>
98109         * lib/relocatable.h: Fix a comment.
98111 2008-01-10  Eric Blake  <ebb9@byu.net>
98113         Share two-way algorithm.
98114         * lib/str-two-way.h: New file, merged from...
98115         * lib/memmem.c: ...here...
98116         * lib/strstr.c: ...and here.
98117         * modules/memmem (Files): Use it.
98118         * modules/strstr (Files): Likewise.
98120         Avoid quadratic strstr implementations.
98121         * lib/strstr.c: New file.
98122         * m4/strstr.m4: Likewise.
98123         * modules/strstr: Likewise.
98124         * modules/strstr-tests: Likewise.
98125         * tests/test-strstr.c: Likewise.
98126         * lib/string.in.h (rpl_strstr): Declare.
98127         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
98128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
98129         * modules/string (Makefile.am): Likewise.
98130         * MODULES.html.sh (string handling): Mention new module.
98131         * doc/functions/strstr.texi (strstr): Document the bug.
98133 2008-01-10  Bruno Haible  <bruno@clisp.org>
98135         * lib/relocatable.h (relocate): State whether result is freshly
98136         allocated or not.
98137         * lib/relocatable.c (relocate): Return a freshly allocated string
98138         instead of a pointer to a privately held string.
98139         Reported by Sylvain Beucler <beuc@gnu.org>.
98141 2008-01-10  Colin Watson  <cjwatson@debian.org>
98143         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
98144         s/S_ISNLK/S_ISLNK/.
98146 2008-01-09  Bruno Haible  <bruno@clisp.org>
98148         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
98149         and other files.
98150         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
98151         if it's only a guess.
98152         * modules/memmem: Simplify by depending on memmem-simple.
98154 2008-01-09  Bruno Haible  <bruno@clisp.org>
98156         Work around OpenBSD 4.0 tdelete() bug.
98157         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
98158         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
98159         macros and don't redefine the enum values.
98160         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
98161         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
98162         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
98164 2008-01-09  Bruno Haible  <bruno@clisp.org>
98166         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
98167         (main): Don't perform the tests if setlocale did not install a UTF-8
98168         locale. Needed on OpenBSD 4.0.
98169         * modules/wcwidth-tests (Depends-on): Add localcharset.
98171 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98173         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
98174         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
98175         * NEWS: announce this.
98176         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
98178 2008-01-09  Simon Josefsson  <simon@josefsson.org>
98179         and Eric Blake  <ebb9@byu.net>
98181         Add memmem-simple module.
98182         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
98183         (gl_FUNC_MEMMEM): Separate performance from presence checks.
98184         * modules/memmem-simple: New file.
98185         * modules/memmem (Description): Tweak.
98186         * MODULES.html.sh (string handling): Mention new module.
98187         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
98188         addressed by memmem-simple.
98189         * NEWS: Document the difference.
98191 2008-01-09  Eric Blake  <ebb9@byu.net>
98193         Give gcc some memmem optimization hints.
98194         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
98195         (strcasestr): Declare as pure.
98196         * modules/memmem (Maintainer): Claim my implementation.
98198 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98200         Support AIX 6.1 and higher.
98201         * build-aux/config.libpath: Likewise.
98202         * build-aux/config.rpath: Likewise.
98204 2008-01-08  Jim Meyering  <meyering@redhat.com>
98205             Bruno Haible  <bruno@clisp.org>
98207         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
98208         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
98209         Reported by Peter Fales in
98210         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
98212 2008-01-08  Bruno Haible  <bruno@clisp.org>
98214         * modules/unictype/category-of (Depends-on): Add
98215         unictype/category-none.
98216         * modules/unictype/category-and-tests (Depends-on): Add
98217         unictype/category-{L,N,Lu,Nd}.
98218         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
98219         * modules/unictype/category-or-tests (Depends-on): Add
98220         unictype/category-{L,N}.
98221         * modules/unictype/category-name-tests (Depends-on): Add
98222         unictype/category-{Z,Nl}.
98223         Reported by Simon Josefsson.
98225 2008-01-08  Bruno Haible  <bruno@clisp.org>
98227         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
98228         convention better.
98229         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
98230         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
98231         Reported by Peter Miller <millerp@canb.auug.org.au>.
98233 2008-01-08  Eric Blake  <ebb9@byu.net>
98235         Rewrite memmem to guarantee linear complexity without malloc.
98236         * lib/memmem.c (memmem): Use Two-Way rather than
98237         Knuth-Morris-Pratt, to allow O(1) space usage.
98238         (critical_factorization, two_way_short_needle)
98239         (two_way_long_needle): New functions.
98240         (knuth_morris_pratt): Delete.
98241         * modules/memmem (Depends-on): No longer need malloca or stdbool.
98242         Add stdint.
98243         * tests/test-memmem.c (main): Add tests for periodic needle and
98244         sublinear performance.
98245         * doc/functions/memmem.texi (memmem): Document other deficiencies
98246         in cygwin and older glibc.
98248 2008-01-08  Bruno Haible  <bruno@clisp.org>
98250         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
98251         augmentation.
98253 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
98255         Add a configure time option: --disable-acl.
98256         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
98257         AC_ARG_ENABLE(acl).
98259 2008-01-06  Simon Josefsson  <simon@josefsson.org>
98261         * tests/test-localename.c: Don't include obsolete "setenv.h".
98263         * modules/localename-tests (Depends-on): Need unsetenv.
98265 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98267         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
98269 2008-01-06  Colin Watson  <cjwatson@debian.org>
98271         * users.txt: Add man-db.
98273 2008-01-07  Bruno Haible  <bruno@clisp.org>
98275         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
98276         previous section name.
98278 2008-01-07  Bruno Haible  <bruno@clisp.org>
98280         * lib/progname.c (set_program_name): Don't strip off a leading
98281         "lt-" prefix outside a .libs directory.
98282         Suggested by Paul Eggert.
98284 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
98285             Bruno Haible  <bruno@clisp.org>
98287         Improve memory cleanup in 'relocatable' module.
98288         * lib/relocatable.h (compute_curr_prefix): Change return type to
98289         'char *'.
98290         * lib/relocatable.c (compute_curr_prefix): Change return type to
98291         'char *'. Free curr_installdir after use.
98292         (relocate): Free curr_prefix_better after use.
98293         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
98295 2008-01-01  Bruno Haible  <bruno@clisp.org>
98297         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
98298         failure on older glibc systems.
98299         Reported by Peter Fales <psfales@alcatel-lucent.com>.
98301 2008-01-05  Eric Blake  <ebb9@byu.net>
98303         Avoid quadratic system memmem.
98304         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
98305         Reported by Ralf Wildenhues.
98307         Fix memmem test for mingw.
98308         * modules/memmem-tests (configure.ac): Check for alarm.
98309         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
98310         it.
98311         * doc/functions/memmem.texi: New file.
98312         * doc/gnulib.texi (Function Substitutes): Add memmem.
98313         Reported by Bruno Haible.
98315 2008-01-04  Bruno Haible  <bruno@clisp.org>
98317         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
98318         Require gl_HEADER_STRINGS_H_DEFAULTS, not
98319         gl_HEADER_STRING_H_DEFAULTS.
98321 2008-01-04  Eric Blake  <ebb9@byu.net>
98323         Shorten duration of memmem test.
98324         * tests/test-memmem.c (main): Use alarm to declare failure if test
98325         is taking too long.
98326         Reported by Ralf Wildenhues.
98328 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98330         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98331         string, needed by strerror.
98333 2008-01-03  Colin Watson  <cjwatson@debian.org>
98334             Bruno Haible  <bruno@clisp.org>
98336         * doc/gnulib-tool.texi (Localization): New section.
98338 2008-01-02  Bruno Haible  <bruno@clisp.org>
98340         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98341         variables to 'unsigned char *' type.
98342         Reported by Paul Eggert.
98344 2008-01-02  Jim Meyering  <jim@meyering.net>
98346         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98348 2007-12-31  Jim Meyering  <jim@meyering.net>
98350         Avoid use of private FTS type name.
98351         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98353 2007-12-30  Karl Berry  <karl@gnu.org>
98355         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98356         work around defect in Texinfo and/or the standalone Info browser.
98358 2007-12-30  Bruno Haible  <bruno@clisp.org>
98360         Unify 5 copies of the KMP code.
98361         * lib/str-kmp.h: New file.
98362         * lib/c-strcasestr.c: Include str-kmp.h.
98363         (knuth_morris_pratt): Remove function.
98364         (c_strcasestr): Update.
98365         * lib/c-strstr.c: Include str-kmp.h.
98366         (knuth_morris_pratt): Remove function.
98367         (c_strcasestr): Update.
98368         * lib/mbscasestr.c: Include str-kmp.h.
98369         (knuth_morris_pratt_unibyte): Remove function.
98370         * lib/mbsstr.c: Include str-kmp.h.
98371         (knuth_morris_pratt_unibyte): Remove function.
98372         * lib/strcasestr.c: Include str-kmp.h.
98373         (knuth_morris_pratt): Remove function.
98374         (strcasestr): Update.
98375         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98376         * modules/c-strstr (Files): Likewise.
98377         * modules/mbscasestr (Files): Likewise.
98378         * modules/mbsstr (Files): Likewise.
98379         * modules/strcasestr (Files): Likewise.
98380         Suggested by Paul Eggert.
98382 2007-12-30  Bruno Haible  <bruno@clisp.org>
98384         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98385         defined.
98387 2007-12-30  Bruno Haible  <bruno@clisp.org>
98389         * lib/xmalloca.h: Include xalloc.h.
98390         (xnmalloca): New macro.
98392 2007-12-30  Bruno Haible  <bruno@clisp.org>
98394         * lib/malloca.h (nmalloca): New macro.
98395         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98396         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98397         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98398         knuth_morris_pratt_multibyte): Likewise.
98399         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98400         knuth_morris_pratt_multibyte): Likewise.
98401         * lib/memmem.c (knuth_morris_pratt): Likewise.
98402         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98404 2007-12-25  Bruno Haible  <bruno@clisp.org>
98406         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98407         * lib/glob.c: Don't include openat.h.
98408         (link_exists2_p): Add back the code that deals with the
98409         !GLOB_ALTDIRFUNC case.
98410         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98411         let it do the filename concatenation.
98412         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98413         * modules/glob (Depends-on): Remove openat.
98415 2007-12-31  Bruno Haible  <bruno@clisp.org>
98417         * modules/dirfd (License): Change to LGPLv2+.
98418         Approved by Jim Meyering.
98420 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98422         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98423         when multiplying M by sizeof (size_t).
98425 2007-12-10  Martin Lambers  <marlam@marlam.de>
98427         Override getpagesize on mingw.
98428         * lib/getpagesize.c: New file.
98429         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98430         * modules/getpagesize (Files): Add lib/getpagesize.c.
98431         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98433         REPLACE_GETPAGESIZE.
98434         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98436 2007-12-25  Bruno Haible  <bruno@clisp.org>
98438         * modules/localcharset (Notice): New field.
98439         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98440         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98442 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98443             Bruno Haible  <bruno@clisp.org>
98445         Avoid using the syntax symbol() in formatted documentation.
98446         * MODULES.html.sh (func_module): When replacing symbol() with a
98447         hyperlink, remove the parentheses. Show an error if some remain.
98448         Recognize and render the '...' syntax.
98449         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98450         Rework. Add paragraph about GCC's inlining.
98451         * doc/alloca.texi: Likewise.
98452         * doc/error.texi: Remove parentheses from symbol reference.
98453         * doc/gnulib-intro.texi: Likewise.
98454         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98455         * modules/fnmatch (Description): Reword to say "the ... function".
98456         * modules/full-read (Description): Likewise.
98457         * modules/full-write (Description): Likewise.
98458         * modules/safe-read (Description): Likewise.
98459         * modules/safe-write (Description): Likewise.
98460         * modules/strchrnul (Description): Likewise.
98461         * modules/trim (Description): Likewise.
98462         * modules/error (Description): Remove parentheses from symbol
98463         references.
98464         * modules/verror (Description): Likewise.
98465         Reported by Karl Berry.
98467 2007-12-25  Bruno Haible  <bruno@clisp.org>
98469         Fixup after 2007-10-16 commit.
98470         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98472 2007-12-24  Bruno Haible  <bruno@clisp.org>
98474         Make --enable-relocatable work with DESTDIR.
98475         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98476         to compute installdir from destprog.
98477         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98478         also set the RELOC_DESTDIR variable.
98479         Reported by Левашев Иван <octagram@bluebottle.com>.
98481 2007-12-24  Bruno Haible  <bruno@clisp.org>
98483         Fix link error due to xalloc_die().
98484         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98485         of xreadlink.
98486         * lib/relocwrapper.c: Update comments.
98487         * build-aux/install-reloc: Remove xreadlink.c from file list.
98488         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98489         xreadlink.c.
98490         Reported by Левашев Иван <octagram@bluebottle.com>.
98492 2007-12-24  Bruno Haible  <bruno@clisp.org>
98494         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98495         * lib/setenv.h: Remove file.
98496         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98497         lib/setenv.h.
98498         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98499         (Depends-on): Add stdlib.
98500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98501         gl_FUNC_UNSETENV.
98502         (Include): Replace setenv.h with <stdlib.h>.
98503         * modules/unsetenv: New file.
98504         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98505         * lib/unsetenv.c: Include <stdlib.h> first.
98506         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98507         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98508         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98509         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98510         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98511         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98513         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98514         * doc/functions/unsetenv.texi: Update.
98515         * modules/xsetenv (Depends-on): Add unsetenv.
98516         * modules/getdate (Depends-on): Likewise.
98517         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98518         * lib/xsetenv.c: Don't include setenv.h.
98519         * lib/getdate.y: Likewise.
98520         * lib/relocwrapper.c: Likewise.
98521         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98522         (Depends-on): Add stdlib.
98523         * NEWS: Mention the changes.
98524         Reported by Левашев Иван <octagram@bluebottle.com>.
98526 2007-12-23  Bruno Haible  <bruno@clisp.org>
98528         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98529         indentation.
98531 2007-12-23  Bruno Haible  <bruno@clisp.org>
98533         * lib/c-strcasestr.c: Add more comments.
98534         * lib/c-strstr.c: Likewise.
98535         * lib/mbscasestr.c: Likewise.
98536         * lib/mbsstr.c: Likewise.
98537         * lib/strcasestr.c: Likewise.
98538         * lib/memmem.c: Likewise.
98540 2007-12-23  Bruno Haible  <bruno@clisp.org>
98542         * tests/test-memmem.c: Include <string.h> first.
98544 2007-12-22  Bruno Haible  <bruno@clisp.org>
98546         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98547         the contents of $testsbase.
98548         Reported by Ralf Wildenhues.
98550 2007-12-22  Bruno Haible  <bruno@clisp.org>
98552         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98553         two variables local_ldadd_before, local_ldadd_last.
98555 2007-12-20  Eric Blake  <ebb9@byu.net>
98557         Work around circular library issue when cross-compiling.
98558         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98559         that progname.o does not need to pull in rpl_memcmp.
98561 2007-12-19  Eric Blake  <ebb9@byu.net>
98563         Fix memmem to avoid O(n^2) worst-case complexity.
98564         * lib/memmem.c (knuth_morris_pratt): New function.
98565         (memmem): Use it if first few naive iterations fail.
98566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98567         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98568         * modules/memchr (License): Likewise.
98569         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98570         malloca.
98571         * tests/test-memmem.c: Rewrite, borrowing ideas from
98572         test-mbsstr1.c; the old version wouldn't even compile!
98573         * modules/memmem-tests: New file.
98574         * lib/string.in.h (rpl_memmem): Add declaration.
98575         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98577         REPLACE_MEMMEM.
98579 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98581         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98582         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98583         before any system include files, and undef after them all.  This
98584         should fix a problem on VMS reported by John E. Malmberg in
98585         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98587 2007-12-17  Eric Blake  <ebb9@byu.net>
98589         Revert addition of verify, for BSD/OS.
98590         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98591         can't handle large files, for the sake of obsolete platforms.
98592         * modules/fseeko (Depends-on): Remove verify.
98593         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98594         * doc/functions/ftello.texi (ftello): Likewise.
98595         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98596         Reported by Larry Jones.
98598 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98600         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98601         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98603 2007-12-17  Jim Meyering  <meyering@redhat.com>
98605         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98606         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98607         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98608         * modules/getcwd (Depends-on): Add openat.
98609         Reported by Petr Salinger.
98611 2007-12-17  Bruno Haible  <bruno@clisp.org>
98613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98614         avoid a segmentation fault of the configure test on x86_64 systems.
98616 2007-12-15  Jim Meyering  <meyering@redhat.com>
98618         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98620 2007-12-13  Eric Blake  <ebb9@byu.net>
98622         Another fseek test.
98623         * tests/test-fseek.c (main): Also test ungetc handling.
98624         * tests/test-fseeko.c (main): Likewise.
98625         * modules/fseeko (Depends-on): Add verify.
98626         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98627         large.
98628         Reported by Larry Jones.
98630         Fix fseeko on mingw.
98631         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98632         seek.
98634         Beef up fseek tests.
98635         * tests/test-fseek.c (main): Also test eof handling.
98636         * tests/test-fseeko.c (main): Likewise.
98637         Reported by Larry Jones.
98639 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98641         Fix fseeko on BSD-based platforms.
98642         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98643         successful seek.
98645 2007-12-12  Eric Blake  <ebb9@byu.net>
98647         Allow circular dependency of separate libtests.a
98648         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98649         when use_libtests.
98651 2007-12-11  Eric Blake  <ebb9@byu.net>
98653         Fix bug with -0.0L in previous patch.
98654         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98655         * tests/test-isnan.c (main): Also test on zeroes.
98656         * tests/test-isnanf.c (main): Likewise.
98657         * tests/test-isnanl.h (main): Likewise.
98659         Detect pseudo-denormals on x86 even when cross-compiling.
98660         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98661         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98662         invalid bit patterns that happen to satisfy ==.
98664         Avoid link failures with separate libtests.a.
98665         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98666         last, to satisfy circular dependencies.
98668 2007-12-11  Eric Blake  <ebb9@byu.net>
98669         and Bruno Haible  <bruno@clisp.org>
98671         Fix OpenBSD 4.0 <float.h> handling of long double.
98672         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98673         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98674         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98676 2007-12-11  Jim Meyering  <meyering@redhat.com>
98678         * users.txt: Add libvirt.
98680         Support versions of autoconf prior to 2.59c.
98681         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98682         if it is not already defined.
98684 2007-12-09  Bruno Haible  <bruno@clisp.org>
98686         Let 'gnulib-tool --import' collect sources needed for the tests in
98687         tests/ rather than in lib/.
98688         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98689         argument. If true, add rules to generate libtests.a, and put libtests.a
98690         into $(LDADD). Consider source files in subdirectories and set
98691         uses_subdirs.
98692         (func_emit_initmacro_start, func_emit_initmacro_end,
98693         func_emit_initmacro_done): Pass all arguments explicitly.
98694         (func_import): Determine two module lists main_modules,
98695         testsrelated_modules. Determine use_libtests. Determine two variables
98696         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98697         instead of just sed_transform_lib_file. Determine two variables
98698         main_files and testsrelated_files. Compute 'files' as the union of
98699         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98700         func_add_or_update. In the generated gnulib-comp.m4, collect the
98701         object files for tests/ in different variables than those for lib/.
98702         Substitute LIBTESTS_LIBDEPS.
98703         (func_create_testdir): Combine the uses_subdirs results from
98704         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98706 2007-12-09  Bruno Haible  <bruno@clisp.org>
98708         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98709         the build-aux directory.
98711 2007-12-09  Bruno Haible  <bruno@clisp.org>
98713         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98714         introduced on 2006-09-09.
98716 2007-12-07  Jim Meyering  <meyering@redhat.com>
98718         Let these macros work also with autoconf-2.59.
98719         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98720         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98721         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98723 2007-12-06  Jim Meyering  <meyering@redhat.com>
98725         Avoid a configure-time syntax error in gl_FUNC_ACL.
98726         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98727         function in each branch, before testing the cache variable.
98729 2007-12-04  Eric Blake  <ebb9@byu.net>
98731         Make scripts executable.
98732         * build-aux/config.guess: Add execute permissions.
98733         * build-aux/config.sub: Likewise.
98734         * build-aux/gendocs.sh: Likewise.
98736         Fix frexp on mingw.
98737         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98738         cross-compiling.
98739         * doc/functions/frexp.texi (frexp): Document the bug.
98741         Make cygwin fseeko check more reliable.
98742         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98743         version numbers, rather than unrelated feature check.
98744         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98745         * doc/functions/ftello.texi (ftello): Likewise.
98746         Reported by Bruno Haible.
98748         * m4/strerror.m4: Bump version number.
98750 2007-12-03  Bruno Haible  <bruno@clisp.org>
98752         * doc/functions/mprotect.texi: Mention the mingw problem.
98754 2007-12-03  Eric Blake  <ebb9@byu.net>
98756         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98757         REPLACE_STRERROR is initialized before this macro.
98759 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98761         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98762         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98763         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98764         put -lsec in even for programs other than 'ls'.  This fixes a problem
98765         for gettext reported by Bruno Haible in
98766         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98767         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98768         Add support for Solaris 10.  This isn't efficient, but should get the
98769         job done for now.
98771 2007-12-03  James Youngman  <jay@gnu.org>
98773         * doc/regexprops-generic.texi: change "an close-group" to "a
98774         close-group" and "illegal" to "not allowed".
98776 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98778         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98779         pr_byname.h. Needed for the rare case when the maintainer has done
98780         "make maintainer-clean" in the source directory and then attempts a
98781         build outside the source directory.
98782         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98783         scripts_byname.h.
98785 2007-12-02  Martin Lambers  <marlam@marlam.de>
98786             Bruno Haible  <bruno@clisp.org>
98788         * lib/getpagesize.h: Remove file.
98789         * lib/unistd.in.h: Include declaration of getpagesize here.
98790         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98791         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98792         HAVE_SYS_PARAM_H.
98793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98794         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98795         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98796         (Depends-on): Add unistd.
98797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98798         (Include): Use <unistd.h> instead of getpagesize.h.
98799         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98800         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98801         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98802         gl_GETPAGESIZE invocation, already handled by module dependency.
98803         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98805 2007-12-02  Bruno Haible  <bruno@clisp.org>
98807         * modules/strings-tests: New file.
98808         * tests/test-strings.c: New file.
98810         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98811         * lib/strings.in.h: New file.
98812         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98813         * m4/strings_h.m4: New file.
98814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98815         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98816         * modules/strings: New file.
98817         * modules/string (Makefile.am): Update.
98818         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98819         Reported by Karl Berry.
98821 2007-12-01  Eric Blake  <ebb9@byu.net>
98823         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98824         accommodate fix in cygwin 1.5.25.
98826 2007-12-01  Jim Meyering  <meyering@redhat.com>
98828         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98829         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98830         that would inhibit utf8-optimization of a regexp containing line-
98831         or buffer-anchors, e.g., `^', `$'.
98833 2007-11-30  Bruno Haible  <bruno@clisp.org>
98835         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98836         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98837         glthread_recursive_lock_init.
98838         * lib/lock.c (glthread_recursive_lock_init)
98839         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98840         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98842 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98844         New function qset_acl, like set_acl but with syscall semantics.
98845         * lib/acl.h (qset_acl): New decl.
98846         * lib/acl.c (qset_acl): New function.
98847         (set_acl): Use new function.  Use more-consistent diagnostics.
98849 2007-11-28  Jim Meyering  <meyering@redhat.com>
98851         * modules/physmem (License): Change from GPL to LGPLv2+.
98853 2007-11-26  Bruno Haible  <bruno@clisp.org>
98855         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98856         'long double' type has excess precision.
98857         Reported by Jim Meyering in
98858         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98860 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98862         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98863         Sync from <http://gnu.org/licenses>.
98864         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98865         with license text from same location.
98866         * doc/maintain.texi, doc/standards.texi:  Sync from
98867         <http://savannah.gnu.org/projects/gnustandards>.
98869 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98870         and Jim Meyering  <meyering@redhat.com>
98872         Adjust getdate' grammar to accept a slightly more regular language.
98873         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98874         Before, the former was rejected.
98875         * lib/getdate.y (digits_to_date_time): New function, factored
98876         out of ...
98877         (number): ...here.  Just call digits_to_date_time.
98878         (hybrid): New non-terminal to handle an <unsigned number,
98879         signed relative offset> sequence consistently.
98881 2007-11-18  Jim Meyering  <meyering@redhat.com>
98883         Pull my changes from coreutils:
98884         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98885         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98886         use of $gnulib_tool_option_extras, so that it's separated from the
98887         preceding argument.
98889         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98890         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98891         parent destination directories before copying a file into place.
98893 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98895         bootstrap: work also with 4-argument variant of AC_INIT
98896         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98898 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98900         Port test-getaddrinfo to Solaris.
98901         Problem reported by Bruno Haible in
98902         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98903         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98904         explanation of setting 'hints'.
98905         Don't reject an implementation merely because it returns EAI_SERVICE.
98906         (EAI_SERVICE): Define to 0 if not defined.
98908 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98910         The license of gnu-make and posix-shell is now "GPLed build tool".
98911         * modules/gnu-make (License): Likewise.
98912         * modules/posix-shell (License): Likewise.
98914         New module posix-shell, for determining a POSIX shell
98915         or perhaps something that is close enough to a POSIX shell.
98916         * m4/posix-shell.m4: New file.
98917         * modules/posix-shell: New file.
98919         * MODULES.html.sh: Mention new module.
98921         New module gnu-make, for determining whether we're using GNU Make.
98922         * m4/gnu-make.m4: New file.
98923         * modules/gnu-make: New file.
98924         * MODULES.html.sh: Mention new module.
98926 2007-11-14  Jim Meyering  <meyering@redhat.com>
98928         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98929         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98930         use this macro to create a function _definition_.
98931         Remove useless "#undef ARGMATCH_DIE".
98933 2007-11-14  Bruno Haible  <bruno@clisp.org>
98935         * lib/config.charset: Update for OpenBSD 4.1.
98936         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98938 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98940         Document 64-bit #if problems in stdint.texi.
98941         * doc/headers/stdint.texi (stdint.h): Mention problems with
98942         64-bit-#if, and how to work around them.
98944         Don't insist on 'long long int' support in the preprocessor.  It
98945         breaks too many things.  For example, PRIdMAX still uses a 'long
98946         long int' format with the latest Sun compiler, even though
98947         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98948         preprocessor problem.  This causes the latest coreutils to dump
98949         core on Solaris 10 sparc with the Sun C compiler.
98950         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98951         the troublesome expressions at configure-time, not at #if-time.
98952         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98953         preprocessor.
98954         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98955         compile-time C checks, done at 'configure'-time.
98956         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98957         * modules/inttypes (Makefile): Substitute the new symbols that
98958         gl_INTTYPES_H now generates.
98959         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98961 2007-11-12  Bruno Haible  <bruno@clisp.org>
98963         Tests for Unicode character classification functions.
98965         * modules/unictype/bidicategory-byname-tests: New file.
98966         * modules/unictype/bidicategory-name-tests: New file.
98967         * modules/unictype/bidicategory-of-tests: New file.
98968         * modules/unictype/bidicategory-test-tests: New file.
98969         * modules/unictype/block-list-tests: New file.
98970         * modules/unictype/block-of-tests: New file.
98971         * modules/unictype/block-test-tests: New file.
98972         * modules/unictype/category-C-tests: New file.
98973         * modules/unictype/category-Cc-tests: New file.
98974         * modules/unictype/category-Cf-tests: New file.
98975         * modules/unictype/category-Cn-tests: New file.
98976         * modules/unictype/category-Co-tests: New file.
98977         * modules/unictype/category-Cs-tests: New file.
98978         * modules/unictype/category-L-tests: New file.
98979         * modules/unictype/category-Ll-tests: New file.
98980         * modules/unictype/category-Lm-tests: New file.
98981         * modules/unictype/category-Lo-tests: New file.
98982         * modules/unictype/category-Lt-tests: New file.
98983         * modules/unictype/category-Lu-tests: New file.
98984         * modules/unictype/category-M-tests: New file.
98985         * modules/unictype/category-Mc-tests: New file.
98986         * modules/unictype/category-Me-tests: New file.
98987         * modules/unictype/category-Mn-tests: New file.
98988         * modules/unictype/category-N-tests: New file.
98989         * modules/unictype/category-Nd-tests: New file.
98990         * modules/unictype/category-Nl-tests: New file.
98991         * modules/unictype/category-No-tests: New file.
98992         * modules/unictype/category-P-tests: New file.
98993         * modules/unictype/category-Pc-tests: New file.
98994         * modules/unictype/category-Pd-tests: New file.
98995         * modules/unictype/category-Pe-tests: New file.
98996         * modules/unictype/category-Pf-tests: New file.
98997         * modules/unictype/category-Pi-tests: New file.
98998         * modules/unictype/category-Po-tests: New file.
98999         * modules/unictype/category-Ps-tests: New file.
99000         * modules/unictype/category-S-tests: New file.
99001         * modules/unictype/category-Sc-tests: New file.
99002         * modules/unictype/category-Sk-tests: New file.
99003         * modules/unictype/category-Sm-tests: New file.
99004         * modules/unictype/category-So-tests: New file.
99005         * modules/unictype/category-Z-tests: New file.
99006         * modules/unictype/category-Zl-tests: New file.
99007         * modules/unictype/category-Zp-tests: New file.
99008         * modules/unictype/category-Zs-tests: New file.
99009         * modules/unictype/category-and-not-tests: New file.
99010         * modules/unictype/category-and-tests: New file.
99011         * modules/unictype/category-byname-tests: New file.
99012         * modules/unictype/category-name-tests: New file.
99013         * modules/unictype/category-none-tests: New file.
99014         * modules/unictype/category-of-tests: New file.
99015         * modules/unictype/category-or-tests: New file.
99016         * modules/unictype/category-test-withtable-tests: New file.
99017         * modules/unictype/combining-class-tests: New file.
99018         * modules/unictype/ctype-alnum-tests: New file.
99019         * modules/unictype/ctype-alpha-tests: New file.
99020         * modules/unictype/ctype-blank-tests: New file.
99021         * modules/unictype/ctype-cntrl-tests: New file.
99022         * modules/unictype/ctype-digit-tests: New file.
99023         * modules/unictype/ctype-graph-tests: New file.
99024         * modules/unictype/ctype-lower-tests: New file.
99025         * modules/unictype/ctype-print-tests: New file.
99026         * modules/unictype/ctype-punct-tests: New file.
99027         * modules/unictype/ctype-space-tests: New file.
99028         * modules/unictype/ctype-upper-tests: New file.
99029         * modules/unictype/ctype-xdigit-tests: New file.
99030         * modules/unictype/decimal-digit-tests: New file.
99031         * modules/unictype/digit-tests: New file.
99032         * modules/unictype/mirror-tests: New file.
99033         * modules/unictype/numeric-tests: New file.
99034         * modules/unictype/property-alphabetic-tests: New file.
99035         * modules/unictype/property-ascii-hex-digit-tests: New file.
99036         * modules/unictype/property-bidi-arabic-digit-tests: New file.
99037         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
99038         * modules/unictype/property-bidi-block-separator-tests: New file.
99039         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
99040         * modules/unictype/property-bidi-common-separator-tests: New file.
99041         * modules/unictype/property-bidi-control-tests: New file.
99042         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
99043         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
99044         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
99045         * modules/unictype/property-bidi-european-digit-tests: New file.
99046         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
99047         * modules/unictype/property-bidi-left-to-right-tests: New file.
99048         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
99049         * modules/unictype/property-bidi-other-neutral-tests: New file.
99050         * modules/unictype/property-bidi-pdf-tests: New file.
99051         * modules/unictype/property-bidi-segment-separator-tests: New file.
99052         * modules/unictype/property-bidi-whitespace-tests: New file.
99053         * modules/unictype/property-byname-tests: New file.
99054         * modules/unictype/property-combining-tests: New file.
99055         * modules/unictype/property-composite-tests: New file.
99056         * modules/unictype/property-currency-symbol-tests: New file.
99057         * modules/unictype/property-dash-tests: New file.
99058         * modules/unictype/property-decimal-digit-tests: New file.
99059         * modules/unictype/property-default-ignorable-code-point-tests: New file.
99060         * modules/unictype/property-deprecated-tests: New file.
99061         * modules/unictype/property-diacritic-tests: New file.
99062         * modules/unictype/property-extender-tests: New file.
99063         * modules/unictype/property-format-control-tests: New file.
99064         * modules/unictype/property-grapheme-base-tests: New file.
99065         * modules/unictype/property-grapheme-extend-tests: New file.
99066         * modules/unictype/property-grapheme-link-tests: New file.
99067         * modules/unictype/property-hex-digit-tests: New file.
99068         * modules/unictype/property-hyphen-tests: New file.
99069         * modules/unictype/property-id-continue-tests: New file.
99070         * modules/unictype/property-id-start-tests: New file.
99071         * modules/unictype/property-ideographic-tests: New file.
99072         * modules/unictype/property-ids-binary-operator-tests: New file.
99073         * modules/unictype/property-ids-trinary-operator-tests: New file.
99074         * modules/unictype/property-ignorable-control-tests: New file.
99075         * modules/unictype/property-iso-control-tests: New file.
99076         * modules/unictype/property-join-control-tests: New file.
99077         * modules/unictype/property-left-of-pair-tests: New file.
99078         * modules/unictype/property-line-separator-tests: New file.
99079         * modules/unictype/property-logical-order-exception-tests: New file.
99080         * modules/unictype/property-lowercase-tests: New file.
99081         * modules/unictype/property-math-tests: New file.
99082         * modules/unictype/property-non-break-tests: New file.
99083         * modules/unictype/property-not-a-character-tests: New file.
99084         * modules/unictype/property-numeric-tests: New file.
99085         * modules/unictype/property-other-alphabetic-tests: New file.
99086         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
99087         * modules/unictype/property-other-grapheme-extend-tests: New file.
99088         * modules/unictype/property-other-id-continue-tests: New file.
99089         * modules/unictype/property-other-id-start-tests: New file.
99090         * modules/unictype/property-other-lowercase-tests: New file.
99091         * modules/unictype/property-other-math-tests: New file.
99092         * modules/unictype/property-other-uppercase-tests: New file.
99093         * modules/unictype/property-paired-punctuation-tests: New file.
99094         * modules/unictype/property-paragraph-separator-tests: New file.
99095         * modules/unictype/property-pattern-syntax-tests: New file.
99096         * modules/unictype/property-pattern-white-space-tests: New file.
99097         * modules/unictype/property-private-use-tests: New file.
99098         * modules/unictype/property-punctuation-tests: New file.
99099         * modules/unictype/property-quotation-mark-tests: New file.
99100         * modules/unictype/property-radical-tests: New file.
99101         * modules/unictype/property-sentence-terminal-tests: New file.
99102         * modules/unictype/property-soft-dotted-tests: New file.
99103         * modules/unictype/property-space-tests: New file.
99104         * modules/unictype/property-terminal-punctuation-tests: New file.
99105         * modules/unictype/property-test-tests: New file.
99106         * modules/unictype/property-titlecase-tests: New file.
99107         * modules/unictype/property-unassigned-code-value-tests: New file.
99108         * modules/unictype/property-unified-ideograph-tests: New file.
99109         * modules/unictype/property-uppercase-tests: New file.
99110         * modules/unictype/property-variation-selector-tests: New file.
99111         * modules/unictype/property-white-space-tests: New file.
99112         * modules/unictype/property-xid-continue-tests: New file.
99113         * modules/unictype/property-xid-start-tests: New file.
99114         * modules/unictype/property-zero-width-tests: New file.
99115         * modules/unictype/scripts-tests: New file.
99116         * modules/unictype/syntax-c-ident-tests: New file.
99117         * modules/unictype/syntax-c-whitespace-tests: New file.
99118         * modules/unictype/syntax-java-ident-tests: New file.
99119         * modules/unictype/syntax-java-whitespace-tests: New file.
99120         * tests/unictype/test-bidi_byname.c: New file.
99121         * tests/unictype/test-bidi_name.c: New file.
99122         * tests/unictype/test-bidi_of.c: New file.
99123         * tests/unictype/test-bidi_test.c: New file.
99124         * tests/unictype/test-block_list.c: New file.
99125         * tests/unictype/test-block_of.c: New file.
99126         * tests/unictype/test-block_test.c: New file.
99127         * tests/unictype/test-categ_and.c: New file.
99128         * tests/unictype/test-categ_and_not.c: New file.
99129         * tests/unictype/test-categ_byname.c: New file.
99130         * tests/unictype/test-categ_name.c: New file.
99131         * tests/unictype/test-categ_none.c: New file.
99132         * tests/unictype/test-categ_of.c: New file.
99133         * tests/unictype/test-categ_or.c: New file.
99134         * tests/unictype/test-categ_test_withtable.c: New file.
99135         * tests/unictype/test-combining.c: New file.
99136         * tests/unictype/test-decdigit.c: New file.
99137         * tests/unictype/test-digit.c: New file.
99138         * tests/unictype/test-mirror.c: New file.
99139         * tests/unictype/test-numeric.c: New file.
99140         * tests/unictype/test-pr_byname.c: New file.
99141         * tests/unictype/test-pr_test.c: New file.
99142         * tests/unictype/test-predicate-part1.h: New file.
99143         * tests/unictype/test-predicate-part2.h: New file.
99144         * tests/unictype/test-scripts.c: New file.
99145         * tests/unictype/test-sy_c_ident.c: New file.
99146         * tests/unictype/test-sy_java_ident.c: New file.
99148         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
99149         for Unicode 5.0.0.
99150         * tests/unictype/test-categ_Cc.c: Likewise.
99151         * tests/unictype/test-categ_Cf.c: Likewise.
99152         * tests/unictype/test-categ_Cn.c: Likewise.
99153         * tests/unictype/test-categ_Co.c: Likewise.
99154         * tests/unictype/test-categ_Cs.c: Likewise.
99155         * tests/unictype/test-categ_L.c: Likewise.
99156         * tests/unictype/test-categ_Ll.c: Likewise.
99157         * tests/unictype/test-categ_Lm.c: Likewise.
99158         * tests/unictype/test-categ_Lo.c: Likewise.
99159         * tests/unictype/test-categ_Lt.c: Likewise.
99160         * tests/unictype/test-categ_Lu.c: Likewise.
99161         * tests/unictype/test-categ_M.c: Likewise.
99162         * tests/unictype/test-categ_Mc.c: Likewise.
99163         * tests/unictype/test-categ_Me.c: Likewise.
99164         * tests/unictype/test-categ_Mn.c: Likewise.
99165         * tests/unictype/test-categ_N.c: Likewise.
99166         * tests/unictype/test-categ_Nd.c: Likewise.
99167         * tests/unictype/test-categ_Nl.c: Likewise.
99168         * tests/unictype/test-categ_No.c: Likewise.
99169         * tests/unictype/test-categ_P.c: Likewise.
99170         * tests/unictype/test-categ_Pc.c: Likewise.
99171         * tests/unictype/test-categ_Pd.c: Likewise.
99172         * tests/unictype/test-categ_Pe.c: Likewise.
99173         * tests/unictype/test-categ_Pf.c: Likewise.
99174         * tests/unictype/test-categ_Pi.c: Likewise.
99175         * tests/unictype/test-categ_Po.c: Likewise.
99176         * tests/unictype/test-categ_Ps.c: Likewise.
99177         * tests/unictype/test-categ_S.c: Likewise.
99178         * tests/unictype/test-categ_Sc.c: Likewise.
99179         * tests/unictype/test-categ_Sk.c: Likewise.
99180         * tests/unictype/test-categ_Sm.c: Likewise.
99181         * tests/unictype/test-categ_So.c: Likewise.
99182         * tests/unictype/test-categ_Z.c: Likewise.
99183         * tests/unictype/test-categ_Zl.c: Likewise.
99184         * tests/unictype/test-categ_Zp.c: Likewise.
99185         * tests/unictype/test-categ_Zs.c: Likewise.
99186         * tests/unictype/test-ctype_alnum.c: Likewise.
99187         * tests/unictype/test-ctype_alpha.c: Likewise.
99188         * tests/unictype/test-ctype_blank.c: Likewise.
99189         * tests/unictype/test-ctype_cntrl.c: Likewise.
99190         * tests/unictype/test-ctype_digit.c: Likewise.
99191         * tests/unictype/test-ctype_graph.c: Likewise.
99192         * tests/unictype/test-ctype_lower.c: Likewise.
99193         * tests/unictype/test-ctype_print.c: Likewise.
99194         * tests/unictype/test-ctype_punct.c: Likewise.
99195         * tests/unictype/test-ctype_space.c: Likewise.
99196         * tests/unictype/test-ctype_upper.c: Likewise.
99197         * tests/unictype/test-ctype_xdigit.c: Likewise.
99198         * tests/unictype/test-decdigit.h: Likewise.
99199         * tests/unictype/test-digit.h: Likewise.
99200         * tests/unictype/test-numeric.h: Likewise.
99201         * tests/unictype/test-pr_alphabetic.c: Likewise.
99202         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
99203         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
99204         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
99205         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
99206         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
99207         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
99208         * tests/unictype/test-pr_bidi_control.c: Likewise.
99209         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
99210         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
99211         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
99212         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
99213         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
99214         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
99215         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
99216         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
99217         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
99218         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
99219         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
99220         * tests/unictype/test-pr_combining.c: Likewise.
99221         * tests/unictype/test-pr_composite.c: Likewise.
99222         * tests/unictype/test-pr_currency_symbol.c: Likewise.
99223         * tests/unictype/test-pr_dash.c: Likewise.
99224         * tests/unictype/test-pr_decimal_digit.c: Likewise.
99225         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
99226         * tests/unictype/test-pr_deprecated.c: Likewise.
99227         * tests/unictype/test-pr_diacritic.c: Likewise.
99228         * tests/unictype/test-pr_extender.c: Likewise.
99229         * tests/unictype/test-pr_format_control.c: Likewise.
99230         * tests/unictype/test-pr_grapheme_base.c: Likewise.
99231         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
99232         * tests/unictype/test-pr_grapheme_link.c: Likewise.
99233         * tests/unictype/test-pr_hex_digit.c: Likewise.
99234         * tests/unictype/test-pr_hyphen.c: Likewise.
99235         * tests/unictype/test-pr_id_continue.c: Likewise.
99236         * tests/unictype/test-pr_id_start.c: Likewise.
99237         * tests/unictype/test-pr_ideographic.c: Likewise.
99238         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
99239         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
99240         * tests/unictype/test-pr_ignorable_control.c: Likewise.
99241         * tests/unictype/test-pr_iso_control.c: Likewise.
99242         * tests/unictype/test-pr_join_control.c: Likewise.
99243         * tests/unictype/test-pr_left_of_pair.c: Likewise.
99244         * tests/unictype/test-pr_line_separator.c: Likewise.
99245         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
99246         * tests/unictype/test-pr_lowercase.c: Likewise.
99247         * tests/unictype/test-pr_math.c: Likewise.
99248         * tests/unictype/test-pr_non_break.c: Likewise.
99249         * tests/unictype/test-pr_not_a_character.c: Likewise.
99250         * tests/unictype/test-pr_numeric.c: Likewise.
99251         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
99252         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
99253         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
99254         * tests/unictype/test-pr_other_id_continue.c: Likewise.
99255         * tests/unictype/test-pr_other_id_start.c: Likewise.
99256         * tests/unictype/test-pr_other_lowercase.c: Likewise.
99257         * tests/unictype/test-pr_other_math.c: Likewise.
99258         * tests/unictype/test-pr_other_uppercase.c: Likewise.
99259         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
99260         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
99261         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
99262         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
99263         * tests/unictype/test-pr_private_use.c: Likewise.
99264         * tests/unictype/test-pr_punctuation.c: Likewise.
99265         * tests/unictype/test-pr_quotation_mark.c: Likewise.
99266         * tests/unictype/test-pr_radical.c: Likewise.
99267         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
99268         * tests/unictype/test-pr_soft_dotted.c: Likewise.
99269         * tests/unictype/test-pr_space.c: Likewise.
99270         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
99271         * tests/unictype/test-pr_titlecase.c: Likewise.
99272         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
99273         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
99274         * tests/unictype/test-pr_uppercase.c: Likewise.
99275         * tests/unictype/test-pr_variation_selector.c: Likewise.
99276         * tests/unictype/test-pr_white_space.c: Likewise.
99277         * tests/unictype/test-pr_xid_continue.c: Likewise.
99278         * tests/unictype/test-pr_xid_start.c: Likewise.
99279         * tests/unictype/test-pr_zero_width.c: Likewise.
99280         * tests/unictype/test-sy_c_whitespace.c: Likewise.
99281         * tests/unictype/test-sy_java_whitespace.c: Likewise.
99283 2007-11-12  Bruno Haible  <bruno@clisp.org>
99285         Unicode character classification functions.
99286         * lib/unictype.h: New file.
99287         * modules/unictype/base: New file.
99288         * modules/unictype/category-L: New file.
99289         * modules/unictype/category-Lu: New file.
99290         * modules/unictype/category-Ll: New file.
99291         * modules/unictype/category-Lt: New file.
99292         * modules/unictype/category-Lm: New file.
99293         * modules/unictype/category-Lo: New file.
99294         * modules/unictype/category-M: New file.
99295         * modules/unictype/category-Mn: New file.
99296         * modules/unictype/category-Mc: New file.
99297         * modules/unictype/category-Me: New file.
99298         * modules/unictype/category-N: New file.
99299         * modules/unictype/category-Nd: New file.
99300         * modules/unictype/category-Nl: New file.
99301         * modules/unictype/category-No: New file.
99302         * modules/unictype/category-P: New file.
99303         * modules/unictype/category-Pc: New file.
99304         * modules/unictype/category-Pd: New file.
99305         * modules/unictype/category-Ps: New file.
99306         * modules/unictype/category-Pe: New file.
99307         * modules/unictype/category-Pi: New file.
99308         * modules/unictype/category-Pf: New file.
99309         * modules/unictype/category-Po: New file.
99310         * modules/unictype/category-S: New file.
99311         * modules/unictype/category-Sm: New file.
99312         * modules/unictype/category-Sc: New file.
99313         * modules/unictype/category-Sk: New file.
99314         * modules/unictype/category-So: New file.
99315         * modules/unictype/category-Z: New file.
99316         * modules/unictype/category-Zs: New file.
99317         * modules/unictype/category-Zl: New file.
99318         * modules/unictype/category-Zp: New file.
99319         * modules/unictype/category-C: New file.
99320         * modules/unictype/category-Cc: New file.
99321         * modules/unictype/category-Cf: New file.
99322         * modules/unictype/category-Cs: New file.
99323         * modules/unictype/category-Co: New file.
99324         * modules/unictype/category-Cn: New file.
99325         * modules/unictype/category-or: New file.
99326         * modules/unictype/category-of: New file.
99327         * modules/unictype/category-test: New file.
99328         * modules/unictype/category-test-withtable: New file.
99329         * modules/unictype/category-byname: New file.
99330         * modules/unictype/category-none: New file.
99331         * modules/unictype/category-and: New file.
99332         * modules/unictype/category-and-not: New file.
99333         * modules/unictype/category-name: New file.
99334         * modules/unictype/combining-class: New file.
99335         * modules/unictype/category-all: New file.
99336         * modules/unictype/bidicategory-all: New file.
99337         * modules/unictype/bidicategory-byname: New file.
99338         * modules/unictype/bidicategory-name: New file.
99339         * modules/unictype/bidicategory-of: New file.
99340         * modules/unictype/bidicategory-test: New file.
99341         * modules/unictype/decimal-digit: New file.
99342         * modules/unictype/digit: New file.
99343         * modules/unictype/numeric: New file.
99344         * modules/unictype/mirror: New file.
99345         * modules/unictype/property-white-space: New file.
99346         * modules/unictype/property-alphabetic: New file.
99347         * modules/unictype/property-other-alphabetic: New file.
99348         * modules/unictype/property-not-a-character: New file.
99349         * modules/unictype/property-default-ignorable-code-point: New file.
99350         * modules/unictype/property-other-default-ignorable-code-point: New
99351         file.
99352         * modules/unictype/property-deprecated: New file.
99353         * modules/unictype/property-logical-order-exception: New file.
99354         * modules/unictype/property-variation-selector: New file.
99355         * modules/unictype/property-private-use: New file.
99356         * modules/unictype/property-unassigned-code-value: New file.
99357         * modules/unictype/property-uppercase: New file.
99358         * modules/unictype/property-other-uppercase: New file.
99359         * modules/unictype/property-lowercase: New file.
99360         * modules/unictype/property-other-lowercase: New file.
99361         * modules/unictype/property-titlecase: New file.
99362         * modules/unictype/property-soft-dotted: New file.
99363         * modules/unictype/property-id-start: New file.
99364         * modules/unictype/property-other-id-start: New file.
99365         * modules/unictype/property-id-continue: New file.
99366         * modules/unictype/property-other-id-continue: New file.
99367         * modules/unictype/property-xid-start: New file.
99368         * modules/unictype/property-xid-continue: New file.
99369         * modules/unictype/property-pattern-white-space: New file.
99370         * modules/unictype/property-pattern-syntax: New file.
99371         * modules/unictype/property-join-control: New file.
99372         * modules/unictype/property-grapheme-base: New file.
99373         * modules/unictype/property-grapheme-extend: New file.
99374         * modules/unictype/property-other-grapheme-extend: New file.
99375         * modules/unictype/property-grapheme-link: New file.
99376         * modules/unictype/property-bidi-control: New file.
99377         * modules/unictype/property-bidi-left-to-right: New file.
99378         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99379         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99380         * modules/unictype/property-bidi-european-digit: New file.
99381         * modules/unictype/property-bidi-eur-num-separator: New file.
99382         * modules/unictype/property-bidi-eur-num-terminator: New file.
99383         * modules/unictype/property-bidi-arabic-digit: New file.
99384         * modules/unictype/property-bidi-common-separator: New file.
99385         * modules/unictype/property-bidi-block-separator: New file.
99386         * modules/unictype/property-bidi-segment-separator: New file.
99387         * modules/unictype/property-bidi-whitespace: New file.
99388         * modules/unictype/property-bidi-non-spacing-mark: New file.
99389         * modules/unictype/property-bidi-boundary-neutral: New file.
99390         * modules/unictype/property-bidi-pdf: New file.
99391         * modules/unictype/property-bidi-embedding-or-override: New file.
99392         * modules/unictype/property-bidi-other-neutral: New file.
99393         * modules/unictype/property-hex-digit: New file.
99394         * modules/unictype/property-ascii-hex-digit: New file.
99395         * modules/unictype/property-ideographic: New file.
99396         * modules/unictype/property-unified-ideograph: New file.
99397         * modules/unictype/property-radical: New file.
99398         * modules/unictype/property-ids-binary-operator: New file.
99399         * modules/unictype/property-ids-trinary-operator: New file.
99400         * modules/unictype/property-zero-width: New file.
99401         * modules/unictype/property-space: New file.
99402         * modules/unictype/property-non-break: New file.
99403         * modules/unictype/property-iso-control: New file.
99404         * modules/unictype/property-format-control: New file.
99405         * modules/unictype/property-dash: New file.
99406         * modules/unictype/property-hyphen: New file.
99407         * modules/unictype/property-punctuation: New file.
99408         * modules/unictype/property-line-separator: New file.
99409         * modules/unictype/property-paragraph-separator: New file.
99410         * modules/unictype/property-quotation-mark: New file.
99411         * modules/unictype/property-sentence-terminal: New file.
99412         * modules/unictype/property-terminal-punctuation: New file.
99413         * modules/unictype/property-currency-symbol: New file.
99414         * modules/unictype/property-math: New file.
99415         * modules/unictype/property-other-math: New file.
99416         * modules/unictype/property-paired-punctuation: New file.
99417         * modules/unictype/property-left-of-pair: New file.
99418         * modules/unictype/property-combining: New file.
99419         * modules/unictype/property-composite: New file.
99420         * modules/unictype/property-decimal-digit: New file.
99421         * modules/unictype/property-numeric: New file.
99422         * modules/unictype/property-diacritic: New file.
99423         * modules/unictype/property-extender: New file.
99424         * modules/unictype/property-ignorable-control: New file.
99425         * modules/unictype/property-test: New file.
99426         * modules/unictype/property-byname: New file.
99427         * modules/unictype/property-all: New file.
99428         * modules/unictype/scripts: New file.
99429         * modules/unictype/scripts-all: New file.
99430         * modules/unictype/block-of: New file.
99431         * modules/unictype/block-test: New file.
99432         * modules/unictype/block-list: New file.
99433         * modules/unictype/block-all: New file.
99434         * modules/unictype/syntax-c-whitespace: New file.
99435         * modules/unictype/syntax-java-whitespace: New file.
99436         * modules/unictype/syntax-c-ident: New file.
99437         * modules/unictype/syntax-java-ident: New file.
99438         * modules/unictype/ctype-alnum: New file.
99439         * modules/unictype/ctype-alpha: New file.
99440         * modules/unictype/ctype-cntrl: New file.
99441         * modules/unictype/ctype-digit: New file.
99442         * modules/unictype/ctype-graph: New file.
99443         * modules/unictype/ctype-lower: New file.
99444         * modules/unictype/ctype-print: New file.
99445         * modules/unictype/ctype-punct: New file.
99446         * modules/unictype/ctype-space: New file.
99447         * modules/unictype/ctype-upper: New file.
99448         * modules/unictype/ctype-xdigit: New file.
99449         * modules/unictype/ctype-blank: New file.
99450         * lib/unictype/bidi_byname.c: New file.
99451         * lib/unictype/bidi_name.c: New file.
99452         * lib/unictype/bidi_of.c: New file.
99453         * lib/unictype/bidi_test.c: New file.
99454         * lib/unictype/bitmap.h: New file.
99455         * lib/unictype/block_test.c: New file.
99456         * lib/unictype/blocks.c: New file.
99457         * lib/unictype/categ_C.c: New file.
99458         * lib/unictype/categ_Cc.c: New file.
99459         * lib/unictype/categ_Cf.c: New file.
99460         * lib/unictype/categ_Cn.c: New file.
99461         * lib/unictype/categ_Co.c: New file.
99462         * lib/unictype/categ_Cs.c: New file.
99463         * lib/unictype/categ_L.c: New file.
99464         * lib/unictype/categ_Ll.c: New file.
99465         * lib/unictype/categ_Lm.c: New file.
99466         * lib/unictype/categ_Lo.c: New file.
99467         * lib/unictype/categ_Lt.c: New file.
99468         * lib/unictype/categ_Lu.c: New file.
99469         * lib/unictype/categ_M.c: New file.
99470         * lib/unictype/categ_Mc.c: New file.
99471         * lib/unictype/categ_Me.c: New file.
99472         * lib/unictype/categ_Mn.c: New file.
99473         * lib/unictype/categ_N.c: New file.
99474         * lib/unictype/categ_Nd.c: New file.
99475         * lib/unictype/categ_Nl.c: New file.
99476         * lib/unictype/categ_No.c: New file.
99477         * lib/unictype/categ_P.c: New file.
99478         * lib/unictype/categ_Pc.c: New file.
99479         * lib/unictype/categ_Pd.c: New file.
99480         * lib/unictype/categ_Pe.c: New file.
99481         * lib/unictype/categ_Pf.c: New file.
99482         * lib/unictype/categ_Pi.c: New file.
99483         * lib/unictype/categ_Po.c: New file.
99484         * lib/unictype/categ_Ps.c: New file.
99485         * lib/unictype/categ_S.c: New file.
99486         * lib/unictype/categ_Sc.c: New file.
99487         * lib/unictype/categ_Sk.c: New file.
99488         * lib/unictype/categ_Sm.c: New file.
99489         * lib/unictype/categ_So.c: New file.
99490         * lib/unictype/categ_Z.c: New file.
99491         * lib/unictype/categ_Zl.c: New file.
99492         * lib/unictype/categ_Zp.c: New file.
99493         * lib/unictype/categ_Zs.c: New file.
99494         * lib/unictype/categ_and.c: New file.
99495         * lib/unictype/categ_and_not.c: New file.
99496         * lib/unictype/categ_byname.c: New file.
99497         * lib/unictype/categ_name.c: New file.
99498         * lib/unictype/categ_none.c: New file.
99499         * lib/unictype/categ_of.c: New file.
99500         * lib/unictype/categ_or.c: New file.
99501         * lib/unictype/categ_test.c: New file.
99502         * lib/unictype/combining.c: New file.
99503         * lib/unictype/ctype_alnum.c: New file.
99504         * lib/unictype/ctype_alpha.c: New file.
99505         * lib/unictype/ctype_blank.c: New file.
99506         * lib/unictype/ctype_cntrl.c: New file.
99507         * lib/unictype/ctype_digit.c: New file.
99508         * lib/unictype/ctype_graph.c: New file.
99509         * lib/unictype/ctype_lower.c: New file.
99510         * lib/unictype/ctype_print.c: New file.
99511         * lib/unictype/ctype_punct.c: New file.
99512         * lib/unictype/ctype_space.c: New file.
99513         * lib/unictype/ctype_upper.c: New file.
99514         * lib/unictype/ctype_xdigit.c: New file.
99515         * lib/unictype/decdigit.c: New file.
99516         * lib/unictype/digit.c: New file.
99517         * lib/unictype/identsyntaxmap.h: New file.
99518         * lib/unictype/mirror.c: New file.
99519         * lib/unictype/numeric.c: New file.
99520         * lib/unictype/pr_alphabetic.c: New file.
99521         * lib/unictype/pr_ascii_hex_digit.c: New file.
99522         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99523         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99524         * lib/unictype/pr_bidi_block_separator.c: New file.
99525         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99526         * lib/unictype/pr_bidi_common_separator.c: New file.
99527         * lib/unictype/pr_bidi_control.c: New file.
99528         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99529         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99530         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99531         * lib/unictype/pr_bidi_european_digit.c: New file.
99532         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99533         * lib/unictype/pr_bidi_left_to_right.c: New file.
99534         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99535         * lib/unictype/pr_bidi_other_neutral.c: New file.
99536         * lib/unictype/pr_bidi_pdf.c: New file.
99537         * lib/unictype/pr_bidi_segment_separator.c: New file.
99538         * lib/unictype/pr_bidi_whitespace.c: New file.
99539         * lib/unictype/pr_byname.c: New file.
99540         * lib/unictype/pr_byname.gperf: New file.
99541         * lib/unictype/pr_combining.c: New file.
99542         * lib/unictype/pr_composite.c: New file.
99543         * lib/unictype/pr_currency_symbol.c: New file.
99544         * lib/unictype/pr_dash.c: New file.
99545         * lib/unictype/pr_decimal_digit.c: New file.
99546         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99547         * lib/unictype/pr_deprecated.c: New file.
99548         * lib/unictype/pr_diacritic.c: New file.
99549         * lib/unictype/pr_extender.c: New file.
99550         * lib/unictype/pr_format_control.c: New file.
99551         * lib/unictype/pr_grapheme_base.c: New file.
99552         * lib/unictype/pr_grapheme_extend.c: New file.
99553         * lib/unictype/pr_grapheme_link.c: New file.
99554         * lib/unictype/pr_hex_digit.c: New file.
99555         * lib/unictype/pr_hyphen.c: New file.
99556         * lib/unictype/pr_id_continue.c: New file.
99557         * lib/unictype/pr_id_start.c: New file.
99558         * lib/unictype/pr_ideographic.c: New file.
99559         * lib/unictype/pr_ids_binary_operator.c: New file.
99560         * lib/unictype/pr_ids_trinary_operator.c: New file.
99561         * lib/unictype/pr_ignorable_control.c: New file.
99562         * lib/unictype/pr_iso_control.c: New file.
99563         * lib/unictype/pr_join_control.c: New file.
99564         * lib/unictype/pr_left_of_pair.c: New file.
99565         * lib/unictype/pr_line_separator.c: New file.
99566         * lib/unictype/pr_logical_order_exception.c: New file.
99567         * lib/unictype/pr_lowercase.c: New file.
99568         * lib/unictype/pr_math.c: New file.
99569         * lib/unictype/pr_non_break.c: New file.
99570         * lib/unictype/pr_not_a_character.c: New file.
99571         * lib/unictype/pr_numeric.c: New file.
99572         * lib/unictype/pr_other_alphabetic.c: New file.
99573         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99574         * lib/unictype/pr_other_grapheme_extend.c: New file.
99575         * lib/unictype/pr_other_id_continue.c: New file.
99576         * lib/unictype/pr_other_id_start.c: New file.
99577         * lib/unictype/pr_other_lowercase.c: New file.
99578         * lib/unictype/pr_other_math.c: New file.
99579         * lib/unictype/pr_other_uppercase.c: New file.
99580         * lib/unictype/pr_paired_punctuation.c: New file.
99581         * lib/unictype/pr_paragraph_separator.c: New file.
99582         * lib/unictype/pr_pattern_syntax.c: New file.
99583         * lib/unictype/pr_pattern_white_space.c: New file.
99584         * lib/unictype/pr_private_use.c: New file.
99585         * lib/unictype/pr_punctuation.c: New file.
99586         * lib/unictype/pr_quotation_mark.c: New file.
99587         * lib/unictype/pr_radical.c: New file.
99588         * lib/unictype/pr_sentence_terminal.c: New file.
99589         * lib/unictype/pr_soft_dotted.c: New file.
99590         * lib/unictype/pr_space.c: New file.
99591         * lib/unictype/pr_terminal_punctuation.c: New file.
99592         * lib/unictype/pr_test.c: New file.
99593         * lib/unictype/pr_titlecase.c: New file.
99594         * lib/unictype/pr_unassigned_code_value.c: New file.
99595         * lib/unictype/pr_unified_ideograph.c: New file.
99596         * lib/unictype/pr_uppercase.c: New file.
99597         * lib/unictype/pr_variation_selector.c: New file.
99598         * lib/unictype/pr_white_space.c: New file.
99599         * lib/unictype/pr_xid_continue.c: New file.
99600         * lib/unictype/pr_xid_start.c: New file.
99601         * lib/unictype/pr_zero_width.c: New file.
99602         * lib/unictype/scripts.c: New file.
99603         * lib/unictype/sy_c_ident.c: New file.
99604         * lib/unictype/sy_c_whitespace.c: New file.
99605         * lib/unictype/sy_java_ident.c: New file.
99606         * lib/unictype/sy_java_whitespace.c: New file.
99608         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99609         Unicode 5.0.0.
99610         * lib/unictype/blocks.h: Likewise.
99611         * lib/unictype/categ_C.h: Likewise.
99612         * lib/unictype/categ_Cc.h: Likewise.
99613         * lib/unictype/categ_Cf.h: Likewise.
99614         * lib/unictype/categ_Cn.h: Likewise.
99615         * lib/unictype/categ_Co.h: Likewise.
99616         * lib/unictype/categ_Cs.h: Likewise.
99617         * lib/unictype/categ_L.h: Likewise.
99618         * lib/unictype/categ_Ll.h: Likewise.
99619         * lib/unictype/categ_Lm.h: Likewise.
99620         * lib/unictype/categ_Lo.h: Likewise.
99621         * lib/unictype/categ_Lt.h: Likewise.
99622         * lib/unictype/categ_Lu.h: Likewise.
99623         * lib/unictype/categ_M.h: Likewise.
99624         * lib/unictype/categ_Mc.h: Likewise.
99625         * lib/unictype/categ_Me.h: Likewise.
99626         * lib/unictype/categ_Mn.h: Likewise.
99627         * lib/unictype/categ_N.h: Likewise.
99628         * lib/unictype/categ_Nd.h: Likewise.
99629         * lib/unictype/categ_Nl.h: Likewise.
99630         * lib/unictype/categ_No.h: Likewise.
99631         * lib/unictype/categ_P.h: Likewise.
99632         * lib/unictype/categ_Pc.h: Likewise.
99633         * lib/unictype/categ_Pd.h: Likewise.
99634         * lib/unictype/categ_Pe.h: Likewise.
99635         * lib/unictype/categ_Pf.h: Likewise.
99636         * lib/unictype/categ_Pi.h: Likewise.
99637         * lib/unictype/categ_Po.h: Likewise.
99638         * lib/unictype/categ_Ps.h: Likewise.
99639         * lib/unictype/categ_S.h: Likewise.
99640         * lib/unictype/categ_Sc.h: Likewise.
99641         * lib/unictype/categ_Sk.h: Likewise.
99642         * lib/unictype/categ_Sm.h: Likewise.
99643         * lib/unictype/categ_So.h: Likewise.
99644         * lib/unictype/categ_Z.h: Likewise.
99645         * lib/unictype/categ_Zl.h: Likewise.
99646         * lib/unictype/categ_Zp.h: Likewise.
99647         * lib/unictype/categ_Zs.h: Likewise.
99648         * lib/unictype/categ_of.h: Likewise.
99649         * lib/unictype/combining.h: Likewise.
99650         * lib/unictype/ctype_alnum.h: Likewise.
99651         * lib/unictype/ctype_alpha.h: Likewise.
99652         * lib/unictype/ctype_blank.h: Likewise.
99653         * lib/unictype/ctype_cntrl.h: Likewise.
99654         * lib/unictype/ctype_digit.h: Likewise.
99655         * lib/unictype/ctype_graph.h: Likewise.
99656         * lib/unictype/ctype_lower.h: Likewise.
99657         * lib/unictype/ctype_print.h: Likewise.
99658         * lib/unictype/ctype_punct.h: Likewise.
99659         * lib/unictype/ctype_space.h: Likewise.
99660         * lib/unictype/ctype_upper.h: Likewise.
99661         * lib/unictype/ctype_xdigit.h: Likewise.
99662         * lib/unictype/decdigit.h: Likewise.
99663         * lib/unictype/digit.h: Likewise.
99664         * lib/unictype/mirror.h: Likewise.
99665         * lib/unictype/numeric.h: Likewise.
99666         * lib/unictype/pr_alphabetic.h: Likewise.
99667         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99668         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99669         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99670         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99671         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99672         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99673         * lib/unictype/pr_bidi_control.h: Likewise.
99674         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99675         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99676         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99677         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99678         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99679         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99680         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99681         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99682         * lib/unictype/pr_bidi_pdf.h: Likewise.
99683         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99684         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99685         * lib/unictype/pr_combining.h: Likewise.
99686         * lib/unictype/pr_composite.h: Likewise.
99687         * lib/unictype/pr_currency_symbol.h: Likewise.
99688         * lib/unictype/pr_dash.h: Likewise.
99689         * lib/unictype/pr_decimal_digit.h: Likewise.
99690         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99691         * lib/unictype/pr_deprecated.h: Likewise.
99692         * lib/unictype/pr_diacritic.h: Likewise.
99693         * lib/unictype/pr_extender.h: Likewise.
99694         * lib/unictype/pr_format_control.h: Likewise.
99695         * lib/unictype/pr_grapheme_base.h: Likewise.
99696         * lib/unictype/pr_grapheme_extend.h: Likewise.
99697         * lib/unictype/pr_grapheme_link.h: Likewise.
99698         * lib/unictype/pr_hex_digit.h: Likewise.
99699         * lib/unictype/pr_hyphen.h: Likewise.
99700         * lib/unictype/pr_id_continue.h: Likewise.
99701         * lib/unictype/pr_id_start.h: Likewise.
99702         * lib/unictype/pr_ideographic.h: Likewise.
99703         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99704         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99705         * lib/unictype/pr_ignorable_control.h: Likewise.
99706         * lib/unictype/pr_iso_control.h: Likewise.
99707         * lib/unictype/pr_join_control.h: Likewise.
99708         * lib/unictype/pr_left_of_pair.h: Likewise.
99709         * lib/unictype/pr_line_separator.h: Likewise.
99710         * lib/unictype/pr_logical_order_exception.h: Likewise.
99711         * lib/unictype/pr_lowercase.h: Likewise.
99712         * lib/unictype/pr_math.h: Likewise.
99713         * lib/unictype/pr_non_break.h: Likewise.
99714         * lib/unictype/pr_not_a_character.h: Likewise.
99715         * lib/unictype/pr_numeric.h: Likewise.
99716         * lib/unictype/pr_other_alphabetic.h: Likewise.
99717         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99718         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99719         * lib/unictype/pr_other_id_continue.h: Likewise.
99720         * lib/unictype/pr_other_id_start.h: Likewise.
99721         * lib/unictype/pr_other_lowercase.h: Likewise.
99722         * lib/unictype/pr_other_math.h: Likewise.
99723         * lib/unictype/pr_other_uppercase.h: Likewise.
99724         * lib/unictype/pr_paired_punctuation.h: Likewise.
99725         * lib/unictype/pr_paragraph_separator.h: Likewise.
99726         * lib/unictype/pr_pattern_syntax.h: Likewise.
99727         * lib/unictype/pr_pattern_white_space.h: Likewise.
99728         * lib/unictype/pr_private_use.h: Likewise.
99729         * lib/unictype/pr_punctuation.h: Likewise.
99730         * lib/unictype/pr_quotation_mark.h: Likewise.
99731         * lib/unictype/pr_radical.h: Likewise.
99732         * lib/unictype/pr_sentence_terminal.h: Likewise.
99733         * lib/unictype/pr_soft_dotted.h: Likewise.
99734         * lib/unictype/pr_space.h: Likewise.
99735         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99736         * lib/unictype/pr_titlecase.h: Likewise.
99737         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99738         * lib/unictype/pr_unified_ideograph.h: Likewise.
99739         * lib/unictype/pr_uppercase.h: Likewise.
99740         * lib/unictype/pr_variation_selector.h: Likewise.
99741         * lib/unictype/pr_white_space.h: Likewise.
99742         * lib/unictype/pr_xid_continue.h: Likewise.
99743         * lib/unictype/pr_xid_start.h: Likewise.
99744         * lib/unictype/pr_zero_width.h: Likewise.
99745         * lib/unictype/scripts.h: Likewise.
99746         * lib/unictype/scripts_byname.gperf: Likewise.
99747         * lib/unictype/sy_c_ident.h: Likewise.
99748         * lib/unictype/sy_c_whitespace.h: Likewise.
99749         * lib/unictype/sy_java_ident.h: Likewise.
99750         * lib/unictype/sy_java_whitespace.h: Likewise.
99752         * lib/unictype/Makefile: New file.
99753         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99754         glibc.
99755         * lib/unictype/3level.h: New file, copied from glibc.
99756         * lib/unictype/3levelbit.h: New file.
99758 2007-11-11  Bruno Haible  <bruno@clisp.org>
99760         * modules/gperf: New file.
99761         * modules/iconv_open (Depends-on): Add it.
99762         (Makefile.am): Remove the GPERF definition.
99764 2007-11-11  Bruno Haible  <bruno@clisp.org>
99766         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99767         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99769 2007-11-11  Bruno Haible  <bruno@clisp.org>
99771         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99772         (usage): Remove function.
99774 2007-11-11  Bruno Haible  <bruno@clisp.org>
99776         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99777         gl_FUNC_CEILF_LIBS.
99778         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99779         gl_FUNC_CEIL_LIBS.
99780         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99781         gl_FUNC_CEILL_LIBS.
99782         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99783         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99784         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99786 2007-11-11  Bruno Haible  <bruno@clisp.org>
99788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99789         roundf were declared but do not exist on functions.
99790         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99791         roundl were declared but do not exist on functions.
99792         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99793         HAVE_FLOORL_AND_CEILL, respectively.
99794         Needed for Sun C on Solaris 10.
99796 2007-11-11  Bruno Haible  <bruno@clisp.org>
99798         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99799         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99800         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99801         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99802         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99803         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99804         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99805         HAVE_DECL_ROUNDF.
99806         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99807         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99809         of HAVE_DECL_ROUND*.
99810         * modules/math (Makefile.am): Update.
99812 2007-11-10  Bruno Haible  <bruno@clisp.org>
99814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99815         ptrdiff_t as m4/intl.m4.
99817 2007-11-10  Jim Meyering  <meyering@redhat.com>
99819         Avoid link failure for the argmatch test.
99820         * tests/test-argmatch.c (usage): Define function to avoid a link
99821         failure: argmatch_die requires a usage function.
99823 2007-11-09  Bruno Haible  <bruno@clisp.org>
99825         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99826         * doc/functions/vsnprintf.texi: Likewise.
99827         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99828         with a size argument < 2.
99830 2007-11-09  Bruno Haible  <bruno@clisp.org>
99832         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99833         buffer. Fixes an inefficiency introduced on 2007-11-03.
99835 2007-11-09  Bruno Haible  <bruno@clisp.org>
99837         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99838         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99840 2007-11-08  Jim Meyering  <meyering@redhat.com>
99842         Change cache variable name prefix "jm_" to "gl_" everywhere.
99843         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99844         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99845         * m4/uptime.m4: s/gl_/jm_/
99847 2007-11-07  Bruno Haible  <bruno@clisp.org>
99849         Update to GNU gettext 0.17.
99850         * m4/intl.m4: Update to GNU gettext 0.17.
99851         * m4/po.m4: Likewise.
99852         * modules/gettext (Files): Remove m4/ulonglong.m4.
99853         (configure.ac): Require gettext infrastructure from version 0.17.
99855 2007-11-06  Bruno Haible  <bruno@clisp.org>
99857         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99858         symbolic values are not defined in a public header.
99859         * lib/freadable.c (freadable) [QNX]: Likewise.
99860         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99861         * lib/freading.c (freading) [QNX]: Likewise.
99862         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99863         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99864         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99865         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99866         Reported by Alain Magloire.
99868         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99870 2007-11-05  Bruno Haible  <bruno@clisp.org>
99872         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99873         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99874         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99875         Reported by Eric Blake.
99877 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99878             Bruno Haible  <bruno@clisp.org>
99880         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99881         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99882         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99883         (malloc): Undefine also before including <stdlib.h>.
99884         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99885         Needed on OSF/1 4.0.
99887 2007-11-05  Jim Meyering  <meyering@redhat.com>
99889         git-version-gen: sync from coreutils.
99890         * build-aux/git-version-gen: Add comments.
99891         Change the first '-' to '.' in the snapshot version string,
99892         e.g., 6.9-377-08144 -> 6.9.377-08144
99893         Remove first parameter.
99894         Don't declare a version "-dirty" merely because a time
99895         stamp has changed.
99897 2007-11-04  Bruno Haible  <bruno@clisp.org>
99899         * lib/lock.h: Protect all macro definitions containing an 'if'
99900         statement through a "do { ... } while (0)".
99901         * lib/tls.h: Likewise.
99903 2007-11-04  Bruno Haible  <bruno@clisp.org>
99905         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99907 2007-11-04  Bruno Haible  <bruno@clisp.org>
99909         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99910         * modules/fprintf-posix (Depends-on): Add nocrash.
99911         * modules/snprintf-posix (Depends-on): Likewise.
99912         * modules/sprintf-posix (Depends-on): Likewise.
99913         * modules/vasnprintf-posix (Depends-on): Likewise.
99914         * modules/vasprintf-posix (Depends-on): Likewise.
99915         * modules/vfprintf-posix (Depends-on): Likewise.
99916         * modules/vsnprintf-posix (Depends-on): Likewise.
99917         * modules/vsprintf-posix (Depends-on): Likewise.
99918         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99919         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99920         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99921         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99922         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99923         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99924         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99926 2007-11-04  Bruno Haible  <bruno@clisp.org>
99928         * modules/nocrash: New file.
99929         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99930         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99932 2007-11-04  Bruno Haible  <bruno@clisp.org>
99934         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99935         precision handling.
99936         * tests/test-vasprintf-posix.c (test_function): Likewise.
99937         * tests/test-snprintf-posix.h (test_function): Likewise.
99938         * tests/test-sprintf-posix.h (test_function): Likewise.
99940         Fix *printf behaviour for large precisions on mingw and BeOS.
99941         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99942         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99944         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99945         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99946         gl_PRINTF_PRECISION and test its result. Invoke
99947         gl_PREREQ_VASNPRINTF_PRECISION.
99948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99953         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99954         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99955         * doc/functions/fprintf.texi: Update.
99956         * doc/functions/printf.texi: Update.
99957         * doc/functions/snprintf.texi: Update.
99958         * doc/functions/sprintf.texi: Update.
99959         * doc/functions/vfprintf.texi: Update.
99960         * doc/functions/vprintf.texi: Update.
99961         * doc/functions/vsnprintf.texi: Update.
99962         * doc/functions/vsprintf.texi: Update.
99964 2007-11-04  Bruno Haible  <bruno@clisp.org>
99966         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99968 2007-11-04  Bruno Haible  <bruno@clisp.org>
99970         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99971         Reported by Sylvain Beucler <beuc@gnu.org>.
99973 2007-11-03  Bruno Haible  <bruno@clisp.org>
99975         * tests/test-fprintf-posix2.sh: New file.
99976         * tests/test-fprintf-posix2.c: New file.
99977         * modules/fprintf-posix-tests (Files): Add them.
99978         (TESTS): Add test-fprintf-posix2.sh.
99979         (configure.ac): Check for getrlimit and setrlimit.
99980         (check_PROGRAMS): Add test-fprintf-posix2.
99982         * tests/test-printf-posix2.sh: New file.
99983         * tests/test-printf-posix2.c: New file.
99984         * modules/printf-posix-tests (Files): Add them.
99985         (TESTS): Add test-printf-posix2.sh.
99986         (configure.ac): Check for getrlimit and setrlimit.
99987         (check_PROGRAMS): Add test-printf-posix2.
99989         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99990         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99991         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99992         (decode_double): New function, copied from decode_long_double.
99993         (scale10_round_decimal_decoded): New function, extracted from
99994         scale10_round_decimal_long_double.
99995         (scale10_round_decimal_long_double): Use it.
99996         (scale10_round_decimal_double): New function.
99997         (floorlog10): New function.
99998         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
100000         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100001         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100002         gl_PRINTF_ENOMEM and test its result. Invoke
100003         gl_PREREQ_VASNPRINTF_ENOMEM.
100004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100005         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100008         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100010         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100011         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
100012         * modules/snprintf-posix (Depends-on): Likewise.
100013         * modules/sprintf-posix (Depends-on): Likewise.
100014         * modules/vasnprintf-posix (Depends-on): Likewise.
100015         * modules/vasprintf-posix (Depends-on): Likewise.
100016         * modules/vfprintf-posix (Depends-on): Likewise.
100017         * modules/vsnprintf-posix (Depends-on): Likewise.
100018         * modules/vsprintf-posix (Depends-on): Likewise.
100019         * doc/functions/fprintf.texi: Update.
100020         * doc/functions/printf.texi: Update.
100021         * doc/functions/snprintf.texi: Update.
100022         * doc/functions/sprintf.texi: Update.
100023         * doc/functions/vfprintf.texi: Update.
100024         * doc/functions/vprintf.texi: Update.
100025         * doc/functions/vsnprintf.texi: Update.
100026         * doc/functions/vsprintf.texi: Update.
100028 2007-11-03  Bruno Haible  <bruno@clisp.org>
100030         * modules/frexp-nolibm-tests: New file.
100032         * modules/frexp-nolibm: New file.
100033         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
100035 2007-11-03  Bruno Haible  <bruno@clisp.org>
100037         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
100038         value is C99 compliant.
100039         Needed for OSF/1 5.1.
100041 2007-11-03  Bruno Haible  <bruno@clisp.org>
100043         Fix out-of-memory handling of vasnprintf.
100044         * lib/printf-parse.c: Include <errno.h>.
100045         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
100046         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
100047         is already set.
100049 2007-11-02  Eric Blake  <ebb9@byu.net>
100051         Fix tests on cygwin.
100052         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
100054 2007-11-01  Bruno Haible  <bruno@clisp.org>
100056         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
100057         warning.
100058         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
100059         needed for POSIX compatibility.
100061 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100063         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
100064         for compatibility with GNU.
100066 2007-11-01  Bruno Haible  <bruno@clisp.org>
100068         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
100069         (putenv): Renamed from rpl_putenv. Change argument type from
100070         'const char *' to 'char *'.
100071         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
100072         of defining putenv in config.h, just set REPLACE_PUTENV.
100073         * modules/putenv (Depends-on): Add stdlib.
100074         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
100075         (Include): Use <stdlib.h>.
100076         * lib/stdlib.in.h (putenv): New declaration.
100077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
100078         REPLACE_PUTENV.
100079         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
100080         REPLACE_PUTENV.
100081         Needed for MacOS X 10.5.0.
100082         Reported by Peter O'Gorman <peter@pogma.com>.
100084 2007-11-01  Jim Meyering  <meyering@redhat.com>
100086         Treat an empty date string exactly like "0".
100087         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
100088         if the remaining date string (to be parsed) is empty, use "0".
100089         Reported by Mischa Molhoek and discussed in this thread:
100090         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
100092 2007-10-31  Bruno Haible  <bruno@clisp.org>
100094         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
100095         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
100096         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
100097         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
100098         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
100099         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
100101 2007-10-31  Bruno Haible  <bruno@clisp.org>
100103         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
100104         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
100105         (AC_TYPE_LONG_LONG_INT): Use it.
100106         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
100107         it as well.
100108         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
100109         to m4/longlong.m4.
100110         * modules/stdint (Files): Remove m4/ulonglong.m4.
100111         * modules/strtoull (Files): Use m4/longlong.m4 instead of
100112         m4/ulonglong.m4.
100113         * modules/strtoumax (Files): Likewise.
100115 2007-10-30  Bruno Haible  <bruno@clisp.org>
100117         * modules/xvasprintf-posix: New file.
100118         Suggested by Eric Blake.
100120 2007-10-30  Bruno Haible  <bruno@clisp.org>
100122         * modules/xprintf-posix-tests: New file.
100123         * tests/test-xprintf-posix.sh: New file.
100124         * tests/test-xprintf-posix.c: New file.
100125         * tests/test-xfprintf-posix.c: New file.
100127         * modules/xprintf-posix: New file.
100129 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100131         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
100132         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
100133         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
100135 2007-10-29  Bruno Haible  <bruno@clisp.org>
100137         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
100138         contain the special marker '_cv_'.
100139         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
100140         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
100141         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
100142         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
100143         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
100144         Reported by Ralf Wildenhues.
100146 2007-10-29  Bruno Haible  <bruno@clisp.org>
100148         * gnulib-tool (func_import): When --lgpl is not specified, set
100149         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
100150         GPLv3.
100151         Reported by Simon Josefsson.
100153 2007-10-28  Bruno Haible  <bruno@clisp.org>
100155         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
100156         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
100157         HAVE_DECL_ISFINITE.
100158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100159         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
100160         HAVE_DECL_ISFINITE.
100162 2007-10-28  Bruno Haible  <bruno@clisp.org>
100164         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
100165         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
100167 2007-10-28  Bruno Haible  <bruno@clisp.org>
100169         Fix link errors with Sun C 5.0 on Solaris 10.
100170         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
100171         function is declared but not present in the compiler's libm.
100172         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
100173         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
100174         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
100175         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
100176         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
100177         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
100178         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
100179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100180         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
100181         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
100182         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
100183         HAVE_DECL_FLOORL.
100185 2007-10-28  Bruno Haible  <bruno@clisp.org>
100187         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
100188         gl_FUNC_FLOORL. Cache the result.
100189         (gl_FUNC_FLOORL): Use it.
100190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
100191         gl_FUNC_CEILL. Cache the result.
100192         (gl_FUNC_CEILL): Use it.
100194         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
100195         gl_FUNC_FLOOR. Cache the result.
100196         (gl_FUNC_FLOOR): Use it.
100197         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
100198         gl_FUNC_CEIL. Cache the result.
100199         (gl_FUNC_CEIL): Use it.
100201         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
100202         gl_FUNC_FLOORF. Cache the result.
100203         (gl_FUNC_FLOORF): Use it.
100204         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
100205         gl_FUNC_CEILF. Cache the result.
100206         (gl_FUNC_CEILF): Use it.
100208 2007-10-28  Bruno Haible  <bruno@clisp.org>
100210         * gnulib-tool: Allow specifying the LGPL version number through
100211         --lgpl=2 or --lgpl=3.
100212         (func_usage): Document --lgpl with argument.
100213         Handle --lgpl=... arguments.
100214         (func_import): Recognize also gl_LGPL calls with an argument. When
100215         --lgpl=2 is used and the module's license is just LGPL, report an
100216         error. Set sed_transform_lib_file according to the lgpl variable. In
100217         the generated files, use --lgpl or gl_LGPL invocations with argument,
100218         if necessary.
100219         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
100220         an LGPv2+ license.
100221         * doc/gnulib-tool.texi (Modified imports): Update explanation of
100222         gl_LGPL macro.
100224 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100225             Bruno Haible  <bruno@clisp.org>
100227         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
100228         (u16_uctomb_aux): Likewise.
100229         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
100230         !HAVE_INLINE.
100231         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
100233 2007-10-28  Bruno Haible  <bruno@clisp.org>
100235         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
100236         Invoke AM_GETTEXT_OPTION if it exists.
100237         * modules/vasprintf: Likewise.
100238         * modules/verror: Likewise.
100239         * modules/xprintf: Likewise.
100240         * modules/xvasprintf: Likewise.
100242 2007-10-27  Ben Pfaff  <blp@gnu.org>
100244         * lib/math.in.h: Define isfinite macro and prototypes for
100245         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
100246         implementations.
100247         * m4/math_h.m4: New substitutions for isfinite module.
100248         * lib/isfinite.c: New file.
100249         * m4/isfinite.m4: New file.
100250         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
100251         * modules/isfinite: New file.
100252         * modules/isfinite-tests: New file.
100253         * tests/tests-isfinite.c: New file.
100254         * doc/functions/isfinite.texi: Mention isfinite module.
100255         * MODULES.html.sh: Mention new module.
100257 2007-10-27  Ben Pfaff  <blp@gnu.org>
100259         Ralf Wildenhues reported that Tru64 4.0D declares the round
100260         functions but does not have definitions.
100261         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
100262         cannot be found in any library, set the output variable to
100263         "missing" instead of "".
100264         * m4/round.m4: Also use our substitute if we cannot find round in
100265         any library, even if it is declared.
100266         * m4/roundf.m4: Likewise for roundf.
100267         * m4/roundl.m4: Likewise for roundl.
100268         * lib/math.in.h: Undefine roundf, round, roundl before defining
100269         their replacements, to allow for hypothetical systems where these
100270         may be defined as macros but not available in libraries.
100272 2007-10-27  Bruno Haible  <bruno@clisp.org>
100274         * doc/gnulib.texi: Invoke @firstparagraphindent.
100275         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
100276         changes in gnulib.
100277         (Source changes): New section.
100279 2007-10-26  Bruno Haible  <bruno@clisp.org>
100281         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
100282         borrowed from autoconf.
100284 2007-10-26  Bruno Haible  <bruno@clisp.org>
100286         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
100287         strerror returned the empty string. Needed on HP-UX 11.00.
100289 2007-10-24  Micah Cowan  <micah@cowan.name>
100291         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
100292         * build-aux/bootstrap: Remove support for now-unnecessary option,
100293         --cvs-user, and envvars CVS_USER, CVS_RSH.
100295 2007-10-24  Jim Meyering  <meyering@redhat.com>
100297         Avoid diagnostics from sha1sum when there is no cached checksum.
100298         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
100299         if the po.s1 file hasn't been created yet.
100301         * build-aux/bootstrap: Sync from coreutils:
100302         2007-10-24  Jim Meyering  <meyering@redhat.com>
100303         Get gnulib from the git repository, not from an obsolete cvs one.
100304         * build-aux/bootstrap: Suggestion from Micah Cowan.
100305         2007-10-04  Jim Meyering  <jim@meyering.net>
100306         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
100307         (update_po_files): Work also when there are no .po files in po/.
100309 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100311         * README: Append ".git" to git and cg examples.
100312         Problem reported by Benoit Sigoure.
100314 2007-10-23  Micah Cowan  <micah@cowan.name>
100316         * users.txt: Add wget.
100318 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100320         Fix linking of some unistdio tests on FreeBSD.
100321         * modules/unistdio/u16-vsnprintf-tests
100322         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
100323         * modules/unistdio/u16-vsprintf-tests
100324         (test_u16_vsnprintf1_LDADD): Likewise.
100325         * modules/unistdio/u32-vsnprintf-tests
100326         (test_u32_vsnprintf1_LDADD): Likewise.
100327         * modules/unistdio/u32-vsprintf-tests
100328         (test_u32_vsprintf1_LDADD): Likewise.
100329         * modules/unistdio/u8-vsnprintf-tests
100330         (test_u8_vsnprintf1_LDADD): Likewise.
100331         * modules/unistdio/u8-vsprintf-tests
100332         (test_u8_vsprintf1_LDADD): Likewise.
100333         * modules/unistdio/ulc-vsnprintf-tests
100334         (test_ulc_vsnprintf1_LDADD): Likewise.
100335         * modules/unistdio/ulc-vsprintf-tests
100336         (test_ulc_vsprintf1_LDADD): Likewise.
100338         Fix linking of some uniconv tests on FreeBSD.
100339         * modules/uniconv/u16-conv-from-enc-tests
100340         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100341         * modules/uniconv/u16-conv-to-enc-tests
100342         (test_u16_conv_to_enc_LDADD): Likewise.
100343         * modules/uniconv/u16-strconv-from-enc-tests
100344         (test_u16_strconv_from_enc_LDADD): Likewise.
100345         * modules/uniconv/u16-strconv-to-enc-tests
100346         (test_u16_strconv_to_enc_LDADD): Likewise.
100347         * modules/uniconv/u32-conv-from-enc-tests
100348         (test_u32_conv_from_enc_LDADD): Likewise.
100349         * modules/uniconv/u32-conv-to-enc-tests
100350         (test_u32_conv_to_enc_LDADD): Likewise.
100351         * modules/uniconv/u32-strconv-from-enc-tests
100352         (test_u32_strconv_from_enc_LDADD): Likewise.
100353         * modules/uniconv/u32-strconv-to-enc-tests
100354         (test_u32_strconv_to_enc_LDADD): Likewise.
100355         * modules/uniconv/u8-conv-from-enc-tests
100356         (test_u8_conv_from_enc_LDADD): Likewise.
100357         * modules/uniconv/u8-conv-to-enc-tests
100358         (test_u8_conv_to_enc_LDADD): Likewise.
100359         * modules/uniconv/u8-strconv-from-enc-tests
100360         (test_u8_strconv_from_enc_LDADD): Likewise.
100361         * modules/uniconv/u8-strconv-to-enc-tests
100362         (test_u8_strconv_to_enc_LDADD): Likewise.
100364 2007-10-22  Bruno Haible  <bruno@clisp.org>
100366         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100367         size.
100369 2007-10-22  Eric Blake  <ebb9@byu.net>
100371         Tweak x*printf documentation.
100372         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100373         variable name and comments.
100374         Suggested by Bruno Haible.
100376 2007-10-22  Bruno Haible  <bruno@clisp.org>
100378         * lib/acl.c (copy_acl): Fix file name in comment.
100380 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100382         Fix Tru64 problem with stdbool.h.
100383         * lib/stdbool.in.h (false, true):
100384         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100385         Don't declare as an enum in this situation; it runs afoul of Tru64.
100386         Problem reported by Steven M. Schweda in
100387         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100389 2007-10-22  Eric Blake  <ebb9@byu.net>
100391         Also wrap vf?printf.
100392         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100393         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100394         (xvprintf, xvfprintf): New functions.
100396 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100398         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100399         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100401         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100402         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100404 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100406         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100407         by Bruno Haible.
100409 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100411         * lib/getloadavg.c
100412         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100413         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100415         * tests/test-i-ring.c: Work for C89.
100417 2007-10-22  Bruno Haible  <bruno@clisp.org>
100419         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100420         -1u, in preprocessor expression, so that we don't test for the bug
100421         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100422         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100424 2007-10-22  Eric Blake  <ebb9@byu.net>
100426         * tests/test-yesno.sh: Silence stderr during test.
100428 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100430         * modules/crypto/gc-camellia: New file.
100432         * m4/gc-camellia.m4: New file.
100434         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100436         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100438 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100440         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100441         --help to stdout.  Reported by sms@antinode.org (Steven
100442         M. Schweda).
100444 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100446         * users.txt: Fix link to libksba.
100448 2007-10-21  Ben Pfaff  <blp@gnu.org>
100450         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100451         round.c roundf implementation that depends on floorf and ceilf to
100452         be tested unconditionally.
100454 2007-10-21  Ben Pfaff  <blp@gnu.org>
100456         * m4/check-libm-func.m4: Removed.
100457         * m4/check-math-lib.m4: New file.
100458         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100459         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100460         definition and lack of AC_LIBOBJ([roundf]).
100461         * m4/roundl.m4: Ditto, and similarly for roundl.
100462         * modules/round: Reference new m4 file.
100463         * modules/roundf: Ditto.
100464         * modules/roundl: Ditto.
100465         * tests/test-round2.c (main): Use ROUND instead of round.
100466         Bug report from Bruno Haible.
100468 2007-10-21  Bruno Haible  <bruno@clisp.org>
100470         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100471         context.
100473 2007-10-21  Bruno Haible  <bruno@clisp.org>
100475         * tests/test-wcwidth.c (main): Allow negative result for some control
100476         characters.
100478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100479         Needed on OSF/1 5.1.
100481 2007-10-21  Bruno Haible  <bruno@clisp.org>
100483         * tests/test-floorf1.c: Include isnanf.h.
100484         (main): Use isnanf() instead of isnan().
100485         * tests/test-ceilf1.c: Include isnanf.h.
100486         (main): Use isnanf() instead of isnan().
100487         * tests/test-truncf1.c: Include isnanf.h.
100488         (main): Use isnanf() instead of isnan().
100489         * tests/test-roundf1.c: Include isnanf.h.
100490         (main): Use isnanf() instead of isnan().
100492 2007-10-21  Eric Blake  <ebb9@byu.net>
100494         * users.txt: Update URL for m4.
100496 2007-10-21  Bruno Haible  <bruno@clisp.org>
100498         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100500 2007-10-21  Bruno Haible  <bruno@clisp.org>
100502         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100503         Git's management files if the CVS files are not present.
100505 2007-10-20  Bruno Haible  <bruno@clisp.org>
100507         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100508         gcc-3.4.x.
100510 2007-10-20  Ben Pfaff  <blp@gnu.org>
100512         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100513         implementations.
100514         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100515         * lib/round.c: New file.
100516         * lib/roundf.c: New file.
100517         * lib/roundl.c: New file.
100518         * m4/round.m4: New file.
100519         * m4/roundf.m4: New file.
100520         * m4/roundl.m4: New file.
100521         * m4/check-libm-func-m4: New file.
100522         * modules/math: Replace round, roundf, roundl related @VARS@ in
100523         math.in.h.
100524         * modules/round: New file.
100525         * modules/round-tests: New file.
100526         * modules/roundf: New file.
100527         * modules/roundf-tests: New file.
100528         * modules/roundl: New file.
100529         * modules/roundl-tests: New file.
100530         * tests/test-round1.c: New file.
100531         * tests/test-round2.c: New file.
100532         * tests/test-roundf1.c: New file.
100533         * tests/test-roundf2.c: New file.
100534         * tests/test-roundl.c: New file.
100535         * doc/functions/round.texi: Mention round module.
100536         * doc/functions/roundf.texi: Mention roundf module.
100537         * doc/functions/roundl.texi: Mention roundl module.
100538         * MODULES.html.sh: Mention new modules.
100539         Thanks to Bruno Haible for suggestions.
100541 2007-10-20  Jim Meyering  <meyering@redhat.com>
100543         * lib/xprintf.c: Include <config.h> unconditionally.
100545         Change xprintf's license to GPL.
100546         * modules/xprintf (License): s/LGPL/GPL/, since this module
100547         depends on modules (exit and exitfail) which are GPL.
100548         Suggestion from Bruno Haible.
100550         xprintf fixes.
100551         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100552         Use a clearer diagnostic.
100553         Patch from Bruno Haible.
100555 2007-10-20  Bruno Haible  <bruno@clisp.org>
100557         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100558         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100561 2007-10-20  Bruno Haible  <bruno@clisp.org>
100563         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100564         precision in the comparison result > x - 1 or similar.
100565         * tests/test-ceilf2.c (correct_result_p): Likewise.
100566         * tests/test-truncf2.c (correct_result_p): Likewise.
100567         * tests/test-trunc2.c (correct_result_p): Likewise.
100568         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100570 2007-10-20  Bruno Haible  <bruno@clisp.org>
100572         * modules/ceil: New file.
100573         * m4/ceil.m4: New file.
100574         * doc/functions/ceil.texi: Mention the 'ceil' module.
100576 2007-10-20  Bruno Haible  <bruno@clisp.org>
100578         * modules/floor: New file.
100579         * m4/floor.m4: New file.
100580         * doc/functions/floor.texi: Mention the 'floor' module.
100582 2007-10-20  Bruno Haible  <bruno@clisp.org>
100584         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100585         of %a.
100586         * modules/floorf-tests (Depends-on): Likewise.
100587         * modules/truncf-tests (Depends-on): Likewise.
100588         * modules/trunc-tests (Depends-on): Likewise.
100589         Reported by Ben Pfaff.
100591 2007-10-19  Jim Meyering  <meyering@redhat.com>
100593         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100594         Don't bother testing specific errno values.  Just test ferror.
100596         New module: xprintf
100597         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100599 2007-10-19  Bruno Haible  <bruno@clisp.org>
100601         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100602         syntax.
100603         * modules/javaexec (Makefile.am): Likewise.
100604         * modules/relocatable-prog (Makefile.am): Likewise.
100605         Suggested by Jim Meyering.
100607 2007-10-18  Bruno Haible  <bruno@clisp.org>
100609         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100610         Reported by Jim Meyering.
100612 2007-10-18  Eric Blake  <ebb9@byu.net>
100614         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100616 2007-10-18  Bruno Haible  <bruno@clisp.org>
100618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100619         the format string into writable memory. Needed in Fortify conditions.
100621 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100622             Bruno Haible  <bruno@clisp.org>
100624         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100625         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100626         * modules/trim (Depends-on): Add mbchar.
100627         (configure.ac): Add gl_FUNC_MBRTOWC.
100628         (Makefile.am): Augment lib_SOURCES.
100630 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100632         Modify glob.c to use fstatat and dirfd, to simplify it.
100633         Suggested by Eric Blake.
100634         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100635         Don't include <stdbool.h>; not used.
100636         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100637         (link_exists_p): Simplify implementation, since we can now assume
100638         dirfd and fstatat.
100639         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100641 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100643         * gnulib-tool (func_get_dependencies): Fix sed script to
100644         match only tests.
100646 2007-10-17  Bruno Haible  <bruno@clisp.org>
100648         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100649         allow locale names without encoding suffix.
100650         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100651         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100653 2007-10-16  Bruno Haible  <bruno@clisp.org>
100655         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100656         * lib/getgroups.c (getgroups): Likewise.
100657         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100659 2007-10-16  Bruno Haible  <bruno@clisp.org>
100661         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100662         * modules/malloc-posix (License): Likewise.
100663         * modules/realloc-posix (License): Likewise.
100664         * modules/calloc-posix (License): Likewise.
100665         * modules/intprops (License): Change from GPL to LGPL, with
100666         Paul Eggert's approval.
100668 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100670         Merge glibc changes into lib/glob.c.
100672         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100673         2007-10-15 04:59:03 UTC.  Here are the changes:
100675         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100677         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100679         * lib/glob.c: Add some branch prediction throughout.
100681         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100683         [BZ #5103]
100684         * lib/glob.c (glob): Recognize patterns starting \/.
100686         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100688         [BZ #3996]
100689         * lib/glob.c (attribute_hidden): Define if not defined.
100690         (glob): Unescape dirname, filename or username when needed and not
100691         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100692         is NULL.  Handle unescaped [ in pattern without closing ].
100693         Don't pass GLOB_CHECK down to recursive glob for directories.
100694         (__glob_pattern_type): New function.
100695         (__glob_pattern_p): Implement using __glob_pattern_type.
100696         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100697         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100698         Remove unreachable code.
100700         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100702         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100703         explain why there are no leaks.
100705         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100707         [BZ #3253]
100708         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100709         time, rather allocate increasingly bigger arrays of pointers, if
100710         possible with alloca, if too large with malloc.
100712 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100714         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100715         Problem reported by H.Merijn Brand in
100716         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100717         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100718         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100720 2007-10-15  Bruno Haible  <bruno@clisp.org>
100722         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100723         with explicit rpl_ prefix.
100724         * lib/fopen.c (fopen): Likewise.
100725         * lib/freopen.c (freopen): Likewise.
100726         * lib/iconv.c (iconv): Likewise.
100727         * lib/iconv_close.c (iconv_close): Likewise.
100729 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100731         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100733 2007-10-15  Bruno Haible  <bruno@clisp.org>
100735         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100736         <stddef.h> instead of <stdlib.h> since we only need NULL.
100737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100739 2007-10-15  Bruno Haible  <bruno@clisp.org>
100741         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100742         Replace paragraph talking about LIBOBJS.
100743         Reported by Colin Watson <cjwatson@debian.org>.
100745 2007-10-15  Bruno Haible  <bruno@clisp.org>
100747         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100748         <stdlib.h> before using NULL.
100750 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100752         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100753         Reported by Albert Chin <china@thewrittenword.com>.
100755 2007-10-14  Bruno Haible  <bruno@clisp.org>
100757         * modules/iconv_open-utf-tests: New file.
100758         * tests/test-iconv-utf.c: New file.
100760         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100761         * modules/iconv_open-utf: New file.
100762         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100763         (iconv, iconv_close): New declarations.
100764         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100765         be defined.
100766         (iconv_open): Add special handling of conversion between UTF-8 and
100767         UTF-{16,32}{BE,LE}.
100768         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100769         * lib/iconv_close.c: New file.
100770         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100771         gl_FUNC_ICONV_OPEN.
100772         (gl_FUNC_ICONV_OPEN): Use it.
100773         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100774         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100775         and REPLACE_ICONV_UTF.
100776         * modules/iconv_open (Depends-on): Add c-strcase.
100777         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100778         ICONV_CONST.
100779         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100781 2007-10-13  Albert Chin  <china@thewrittenword.com>
100782             Bruno Haible  <bruno@clisp.org>
100784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100785         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100787 2007-10-13  Bruno Haible  <bruno@clisp.org>
100789         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100790         defined, use the ISO C99 inline semantics.
100791         * lib/argp.h (ARGP_EI): Likewise.
100793 2007-10-13  Bruno Haible  <bruno@clisp.org>
100795         Handle 'inline' change in gcc 4.3.0.
100796         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100797         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100798         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100799         argp_fmtstream_point): Disable 'extern' declaration if the function
100800         definition is going to be provided inline.
100801         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100802         semantics, not the ISO C99 inline semantics.
100803         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100804         'extern' declaration if the function definition is going to be provided
100805         inline.
100806         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100807         the GNU C inline semantics, not the ISO C99 inline semantics. With
100808         GCC 4.2, avoid a warning.
100810 2007-10-13  Bruno Haible  <bruno@clisp.org>
100812         * lib/freading.h (freading): Enable the use of __freading for
100813         glibc >= 2.7.
100814         * lib/freading.c (freading): Likewise.
100816 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100818         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100819         "warning: C99 inline functions are not supported; using GNU89".
100821 2007-10-12  Bruno Haible  <bruno@clisp.org>
100823         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100824         of 2.
100825         * tests/test-ceilf2.c: New file.
100826         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100828         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100829         * modules/ceilf-tests: Update.
100831 2007-10-12  Bruno Haible  <bruno@clisp.org>
100833         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100834         of 2.
100835         * tests/test-floorf2.c: New file.
100836         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100838         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100839         * modules/floorf-tests: Update.
100841 2007-10-12  Bruno Haible  <bruno@clisp.org>
100843         * tests/test-trunc2.c: New file.
100844         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100846         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100847         * modules/trunc-tests: Update.
100849 2007-10-12  Bruno Haible  <bruno@clisp.org>
100851         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100852         of 2.
100853         * tests/test-truncf2.c: New file.
100854         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100856         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100857         * modules/truncf-tests: Update.
100859 2007-10-11  Eric Blake  <ebb9@byu.net>
100861         Don't claim strerror is broken on Interix.
100862         * doc/functions/strerror.texi (strerror): Known broken systems are
100863         now Solaris 8, and not Interix.
100864         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100865         Interix on cross-compile.
100866         Reported by Martin Koeppe in
100867         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100869 2007-10-11  Bruno Haible  <bruno@clisp.org>
100871         * modules/i-ring-tests: New file.
100872         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100873         instead of assert.
100875 2007-10-11  Bruno Haible  <bruno@clisp.org>
100877         * modules/filenamecat-tests: New file.
100878         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100879         * lib/filenamecat.c: Remove test code.
100881 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100883         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100885         * lib/strerror.c: Include <string.h> always, to test interface,
100886         and to remove the need for the dummy.
100887         Include intprops.h to compute width instead of doing it ourselves
100888         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100889         (strerror): Define it to return NULL if there's no system strerror.
100890         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100891         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100892         ancient pre-strerror Unix systems well any more.  Saying "unknown
100893         system error" is enough.
100894         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100895         simpler strerror.c implementation.
100896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100897         Simplify the tests to reflect the simpler strerror implementation.
100898         * modules/strerror (Depends-on): Add intprops.
100900 2007-10-09  Eric Blake  <ebb9@byu.net>
100902         Silence test-fpending.
100903         * modules/fpending-tests (Files): Add wrapper script.
100904         * tests/test-fpending.sh: New file.
100906 2007-10-09  Bruno Haible  <bruno@clisp.org>
100908         * MODULES.html.sh (func_module): Don't create a hyperlink for
100909         function names like 'printf_frexp'.
100910         (Misc): Add crc, memxor.
100911         (Characteristics of floating types): New section.
100912         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100913         isnanf-nolibm, signbit, trunc, truncf, truncl.
100914         (Enhancements for ISO C 99 functions): New subsection Input/output.
100915         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100916         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100917         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100918         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100919         (Enhancements for POSIX:2001 functions): Add chdir-long.
100920         (File system functions): Add areadlink, chdir-safer, read-file.
100921         Remove cycle-check.
100922         (File system as inode set): New section.
100923         (Date and time): Add gethrxtime.
100924         (Multithreading): Add openmp.
100925         (Internationalization functions): Add localename.
100926         (Unicode string functions): Add unistr/u*-mbsnlen.
100927         (Support for maintaining and releasing projects): Add git-version-gen.
100928         (Lone files): Remove directories.
100930 2007-10-08  Ben Pfaff  <blp@gnu.org>
100932         * lib/xmalloca.h: Fix typo in comment.
100934 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100936         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100937         when avoiding problems with integer overflow.  Use a portable test
100938         instead.
100940 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100942         * modules/dummy (License): Change to LGPLv2+.
100943         * modules/float (License): Likewise
100944         * modules/realloc (License): Likewise
100945         * modules/stdlib (License): Likewise
100947 2007-10-07  Bruno Haible  <bruno@clisp.org>
100949         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100950         * floor.c (TWO_MANT_DIG): Likewise.
100951         * ceil.c (TWO_MANT_DIG): Likewise.
100952         Reported by Ben Pfaff.
100954 2007-10-07  Bruno Haible  <bruno@clisp.org>
100956         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100957         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100958         * lib/frexp.c (FUNC): Likewise.
100959         * lib/printf-frexp.h (printf_frexp): Likewise.
100960         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100961         * lib/printf-frexp.c (FUNC): Likewise.
100962         Suggested by Jim Meyering.
100964 2007-10-07  Jim Meyering  <meyering@redhat.com>
100966         Make xnanosleep's integer overflow test more robust.
100967         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100968         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100970 2007-10-07  Bruno Haible  <bruno@clisp.org>
100972         * NEWS: Mention the license change.
100974         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100975         abbreviations in the modules files.
100977         Change copyright notice from GPLv2+ to GPLv3+.
100978         * README: Change copyright notice.
100979         * MODULES.html.sh: Likewise.
100980         * build-aux/bootstrap.conf: Likewise.
100981         * build-aux/config.libpath: Likewise.
100982         * build-aux/csharpcomp.sh.in: Likewise.
100983         * build-aux/csharpexec.sh.in: Likewise.
100984         * build-aux/install-reloc: Likewise.
100985         * build-aux/javacomp.sh.in: Likewise.
100986         * build-aux/javaexec.sh.in: Likewise.
100987         * build-aux/ldd.sh.in: Likewise.
100988         * build-aux/reloc-ldflags: Likewise.
100989         * build-aux/relocatable.sh.in: Likewise.
100990         * build-aux/x-to-1.in: Likewise.
100991         * check-module: Likewise.
100992         * config/srclistvars.sh: Likewise.
100993         * gnulib-tool: Likewise.
100994         * lib/acl-internal.h: Likewise.
100995         * lib/acl.c: Likewise.
100996         * lib/acl.h: Likewise.
100997         * lib/acl_entries.c: Likewise.
100998         * lib/areadlink-with-size.c: Likewise.
100999         * lib/areadlink.c: Likewise.
101000         * lib/areadlink.h: Likewise.
101001         * lib/argmatch.c: Likewise.
101002         * lib/argmatch.h: Likewise.
101003         * lib/argp-ba.c: Likewise.
101004         * lib/argp-eexst.c: Likewise.
101005         * lib/argp-fmtstream.c: Likewise.
101006         * lib/argp-fmtstream.h: Likewise.
101007         * lib/argp-fs-xinl.c: Likewise.
101008         * lib/argp-help.c: Likewise.
101009         * lib/argp-namefrob.h: Likewise.
101010         * lib/argp-parse.c: Likewise.
101011         * lib/argp-pin.c: Likewise.
101012         * lib/argp-pv.c: Likewise.
101013         * lib/argp-pvh.c: Likewise.
101014         * lib/argp-xinl.c: Likewise.
101015         * lib/argp.h: Likewise.
101016         * lib/at-func.c: Likewise.
101017         * lib/atanl.c: Likewise.
101018         * lib/backupfile.c: Likewise.
101019         * lib/backupfile.h: Likewise.
101020         * lib/basename.c: Likewise.
101021         * lib/binary-io.h: Likewise.
101022         * lib/byteswap.in.h: Likewise.
101023         * lib/c-stack.c: Likewise.
101024         * lib/c-stack.h: Likewise.
101025         * lib/c-strcasestr.c: Likewise.
101026         * lib/c-strcasestr.h: Likewise.
101027         * lib/c-strstr.c: Likewise.
101028         * lib/c-strstr.h: Likewise.
101029         * lib/c-strtod.c: Likewise.
101030         * lib/calloc.c: Likewise.
101031         * lib/canon-host.c: Likewise.
101032         * lib/canon-host.h: Likewise.
101033         * lib/canonicalize-lgpl.c: Likewise.
101034         * lib/canonicalize.c: Likewise.
101035         * lib/canonicalize.h: Likewise.
101036         * lib/ceil.c: Likewise.
101037         * lib/ceilf.c: Likewise.
101038         * lib/ceill.c: Likewise.
101039         * lib/chdir-long.c: Likewise.
101040         * lib/chdir-long.h: Likewise.
101041         * lib/chdir-safer.c: Likewise.
101042         * lib/chdir-safer.h: Likewise.
101043         * lib/chown.c: Likewise.
101044         * lib/classpath.c: Likewise.
101045         * lib/classpath.h: Likewise.
101046         * lib/clean-temp.c: Likewise.
101047         * lib/clean-temp.h: Likewise.
101048         * lib/cloexec.c: Likewise.
101049         * lib/close-stream.c: Likewise.
101050         * lib/closein.c: Likewise.
101051         * lib/closein.h: Likewise.
101052         * lib/closeout.c: Likewise.
101053         * lib/closeout.h: Likewise.
101054         * lib/concat-filename.c: Likewise.
101055         * lib/copy-file.c: Likewise.
101056         * lib/copy-file.h: Likewise.
101057         * lib/count-one-bits.h: Likewise.
101058         * lib/crc.c: Likewise.
101059         * lib/crc.h: Likewise.
101060         * lib/creat-safer.c: Likewise.
101061         * lib/csharpcomp.c: Likewise.
101062         * lib/csharpcomp.h: Likewise.
101063         * lib/csharpexec.c: Likewise.
101064         * lib/csharpexec.h: Likewise.
101065         * lib/cycle-check.c: Likewise.
101066         * lib/cycle-check.h: Likewise.
101067         * lib/diacrit.c: Likewise.
101068         * lib/diacrit.h: Likewise.
101069         * lib/diffseq.h: Likewise.
101070         * lib/dirchownmod.c: Likewise.
101071         * lib/dirent.in.h: Likewise.
101072         * lib/dirfd.c: Likewise.
101073         * lib/dirfd.h: Likewise.
101074         * lib/dirname.c: Likewise.
101075         * lib/dirname.h: Likewise.
101076         * lib/dummy.c: Likewise.
101077         * lib/dup-safer.c: Likewise.
101078         * lib/dup2.c: Likewise.
101079         * lib/eealloc.h: Likewise.
101080         * lib/error.c: Likewise.
101081         * lib/error.h: Likewise.
101082         * lib/euidaccess.c: Likewise.
101083         * lib/exclude.c: Likewise.
101084         * lib/exclude.h: Likewise.
101085         * lib/execute.c: Likewise.
101086         * lib/execute.h: Likewise.
101087         * lib/exitfail.c: Likewise.
101088         * lib/exitfail.h: Likewise.
101089         * lib/expl.c: Likewise.
101090         * lib/fatal-signal.c: Likewise.
101091         * lib/fatal-signal.h: Likewise.
101092         * lib/fbufmode.c: Likewise.
101093         * lib/fbufmode.h: Likewise.
101094         * lib/fchdir.c: Likewise.
101095         * lib/fchmodat.c: Likewise.
101096         * lib/fchownat.c: Likewise.
101097         * lib/fcntl--.h: Likewise.
101098         * lib/fcntl-safer.h: Likewise.
101099         * lib/fcntl.in.h: Likewise.
101100         * lib/fd-safer.c: Likewise.
101101         * lib/fflush.c: Likewise.
101102         * lib/file-has-acl.c: Likewise.
101103         * lib/file-set.c: Likewise.
101104         * lib/file-type.c: Likewise.
101105         * lib/file-type.h: Likewise.
101106         * lib/fileblocks.c: Likewise.
101107         * lib/filemode.c: Likewise.
101108         * lib/filemode.h: Likewise.
101109         * lib/filename.h: Likewise.
101110         * lib/filenamecat.c: Likewise.
101111         * lib/filenamecat.h: Likewise.
101112         * lib/findprog.c: Likewise.
101113         * lib/findprog.h: Likewise.
101114         * lib/float.in.h: Likewise.
101115         * lib/floor.c: Likewise.
101116         * lib/floorf.c: Likewise.
101117         * lib/floorl.c: Likewise.
101118         * lib/fopen-safer.c: Likewise.
101119         * lib/fopen.c: Likewise.
101120         * lib/fpending.c: Likewise.
101121         * lib/fpending.h: Likewise.
101122         * lib/fprintf.c: Likewise.
101123         * lib/fprintftime.h: Likewise.
101124         * lib/fpucw.h: Likewise.
101125         * lib/fpurge.c: Likewise.
101126         * lib/fpurge.h: Likewise.
101127         * lib/freadable.c: Likewise.
101128         * lib/freadable.h: Likewise.
101129         * lib/freadahead.c: Likewise.
101130         * lib/freadahead.h: Likewise.
101131         * lib/freading.c: Likewise.
101132         * lib/freading.h: Likewise.
101133         * lib/free.c: Likewise.
101134         * lib/freopen.c: Likewise.
101135         * lib/frexp.c: Likewise.
101136         * lib/frexpl.c: Likewise.
101137         * lib/fseek.c: Likewise.
101138         * lib/fseterr.c: Likewise.
101139         * lib/fseterr.h: Likewise.
101140         * lib/fstatat.c: Likewise.
101141         * lib/fstrcmp.c: Likewise.
101142         * lib/fstrcmp.h: Likewise.
101143         * lib/fsusage.c: Likewise.
101144         * lib/fsusage.h: Likewise.
101145         * lib/ftell.c: Likewise.
101146         * lib/ftello.c: Likewise.
101147         * lib/fts-cycle.c: Likewise.
101148         * lib/fts.c: Likewise.
101149         * lib/fts_.h: Likewise.
101150         * lib/full-read.c: Likewise.
101151         * lib/full-read.h: Likewise.
101152         * lib/full-write.c: Likewise.
101153         * lib/full-write.h: Likewise.
101154         * lib/fwritable.c: Likewise.
101155         * lib/fwritable.h: Likewise.
101156         * lib/fwriteerror.c: Likewise.
101157         * lib/fwriteerror.h: Likewise.
101158         * lib/fwriting.c: Likewise.
101159         * lib/fwriting.h: Likewise.
101160         * lib/gcd.c: Likewise.
101161         * lib/gcd.h: Likewise.
101162         * lib/getcwd.c: Likewise.
101163         * lib/getdate.h: Likewise.
101164         * lib/getdate.y: Likewise.
101165         * lib/getdomainname.c: Likewise.
101166         * lib/getdomainname.h: Likewise.
101167         * lib/getgroups.c: Likewise.
101168         * lib/gethostname.c: Likewise.
101169         * lib/gethrxtime.c: Likewise.
101170         * lib/gethrxtime.h: Likewise.
101171         * lib/getloadavg.c: Likewise.
101172         * lib/getndelim2.c: Likewise.
101173         * lib/getndelim2.h: Likewise.
101174         * lib/getnline.c: Likewise.
101175         * lib/getnline.h: Likewise.
101176         * lib/getopt.c: Likewise.
101177         * lib/getopt.in.h: Likewise.
101178         * lib/getopt1.c: Likewise.
101179         * lib/getopt_int.h: Likewise.
101180         * lib/getpagesize.h: Likewise.
101181         * lib/getsubopt.c: Likewise.
101182         * lib/gettime.c: Likewise.
101183         * lib/getugroups.c: Likewise.
101184         * lib/getugroups.h: Likewise.
101185         * lib/getusershell.c: Likewise.
101186         * lib/gl_anyavltree_list1.h: Likewise.
101187         * lib/gl_anyavltree_list2.h: Likewise.
101188         * lib/gl_anyhash_list1.h: Likewise.
101189         * lib/gl_anyhash_list2.h: Likewise.
101190         * lib/gl_anylinked_list1.h: Likewise.
101191         * lib/gl_anylinked_list2.h: Likewise.
101192         * lib/gl_anyrbtree_list1.h: Likewise.
101193         * lib/gl_anyrbtree_list2.h: Likewise.
101194         * lib/gl_anytree_list1.h: Likewise.
101195         * lib/gl_anytree_list2.h: Likewise.
101196         * lib/gl_anytree_oset.h: Likewise.
101197         * lib/gl_anytreehash_list1.h: Likewise.
101198         * lib/gl_anytreehash_list2.h: Likewise.
101199         * lib/gl_array_list.c: Likewise.
101200         * lib/gl_array_list.h: Likewise.
101201         * lib/gl_array_oset.c: Likewise.
101202         * lib/gl_array_oset.h: Likewise.
101203         * lib/gl_avltree_list.c: Likewise.
101204         * lib/gl_avltree_list.h: Likewise.
101205         * lib/gl_avltree_oset.c: Likewise.
101206         * lib/gl_avltree_oset.h: Likewise.
101207         * lib/gl_avltreehash_list.c: Likewise.
101208         * lib/gl_avltreehash_list.h: Likewise.
101209         * lib/gl_carray_list.c: Likewise.
101210         * lib/gl_carray_list.h: Likewise.
101211         * lib/gl_linked_list.c: Likewise.
101212         * lib/gl_linked_list.h: Likewise.
101213         * lib/gl_linkedhash_list.c: Likewise.
101214         * lib/gl_linkedhash_list.h: Likewise.
101215         * lib/gl_list.c: Likewise.
101216         * lib/gl_list.h: Likewise.
101217         * lib/gl_oset.c: Likewise.
101218         * lib/gl_oset.h: Likewise.
101219         * lib/gl_rbtree_list.c: Likewise.
101220         * lib/gl_rbtree_list.h: Likewise.
101221         * lib/gl_rbtree_oset.c: Likewise.
101222         * lib/gl_rbtree_oset.h: Likewise.
101223         * lib/gl_rbtreehash_list.c: Likewise.
101224         * lib/gl_rbtreehash_list.h: Likewise.
101225         * lib/gl_sublist.c: Likewise.
101226         * lib/gl_sublist.h: Likewise.
101227         * lib/group-member.c: Likewise.
101228         * lib/group-member.h: Likewise.
101229         * lib/hard-locale.c: Likewise.
101230         * lib/hard-locale.h: Likewise.
101231         * lib/hash-pjw.c: Likewise.
101232         * lib/hash-pjw.h: Likewise.
101233         * lib/hash-triple.c: Likewise.
101234         * lib/hash.c: Likewise.
101235         * lib/hash.h: Likewise.
101236         * lib/human.c: Likewise.
101237         * lib/human.h: Likewise.
101238         * lib/i-ring.c: Likewise.
101239         * lib/i-ring.h: Likewise.
101240         * lib/idcache.c: Likewise.
101241         * lib/imaxabs.c: Likewise.
101242         * lib/imaxdiv.c: Likewise.
101243         * lib/inet_pton.c: Likewise.
101244         * lib/inet_pton.h: Likewise.
101245         * lib/intprops.h: Likewise.
101246         * lib/inttostr.c: Likewise.
101247         * lib/inttostr.h: Likewise.
101248         * lib/inttypes.in.h: Likewise.
101249         * lib/isapipe.c: Likewise.
101250         * lib/isdir.c: Likewise.
101251         * lib/isnan.c: Likewise.
101252         * lib/isnan.h: Likewise.
101253         * lib/isnanf.c: Likewise.
101254         * lib/isnanf.h: Likewise.
101255         * lib/isnanl-nolibm.h: Likewise.
101256         * lib/isnanl.c: Likewise.
101257         * lib/isnanl.h: Likewise.
101258         * lib/javacomp.c: Likewise.
101259         * lib/javacomp.h: Likewise.
101260         * lib/javaexec.c: Likewise.
101261         * lib/javaexec.h: Likewise.
101262         * lib/javaversion.c: Likewise.
101263         * lib/javaversion.h: Likewise.
101264         * lib/javaversion.java: Likewise.
101265         * lib/lbrkprop.h: Likewise.
101266         * lib/lchmod.h: Likewise.
101267         * lib/lchown.c: Likewise.
101268         * lib/ldexpl.c: Likewise.
101269         * lib/linebreak.c: Likewise.
101270         * lib/linebreak.h: Likewise.
101271         * lib/linebuffer.c: Likewise.
101272         * lib/linebuffer.h: Likewise.
101273         * lib/locale.in.h: Likewise.
101274         * lib/logl.c: Likewise.
101275         * lib/long-options.c: Likewise.
101276         * lib/long-options.h: Likewise.
101277         * lib/lstat.c: Likewise.
101278         * lib/lstat.h: Likewise.
101279         * lib/math.in.h: Likewise.
101280         * lib/mbchar.c: Likewise.
101281         * lib/mbchar.h: Likewise.
101282         * lib/mbfile.h: Likewise.
101283         * lib/mbiter.h: Likewise.
101284         * lib/mbscasecmp.c: Likewise.
101285         * lib/mbscasestr.c: Likewise.
101286         * lib/mbschr.c: Likewise.
101287         * lib/mbscspn.c: Likewise.
101288         * lib/mbslen.c: Likewise.
101289         * lib/mbsncasecmp.c: Likewise.
101290         * lib/mbsnlen.c: Likewise.
101291         * lib/mbspbrk.c: Likewise.
101292         * lib/mbspcasecmp.c: Likewise.
101293         * lib/mbsrchr.c: Likewise.
101294         * lib/mbssep.c: Likewise.
101295         * lib/mbsspn.c: Likewise.
101296         * lib/mbsstr.c: Likewise.
101297         * lib/mbstok_r.c: Likewise.
101298         * lib/mbswidth.c: Likewise.
101299         * lib/mbswidth.h: Likewise.
101300         * lib/mbuiter.h: Likewise.
101301         * lib/memcasecmp.c: Likewise.
101302         * lib/memcasecmp.h: Likewise.
101303         * lib/memchr.c: Likewise.
101304         * lib/memcmp.c: Likewise.
101305         * lib/memcoll.c: Likewise.
101306         * lib/memcoll.h: Likewise.
101307         * lib/memcpy.c: Likewise.
101308         * lib/memrchr.c: Likewise.
101309         * lib/mkancesdirs.c: Likewise.
101310         * lib/mkdir-p.c: Likewise.
101311         * lib/mkdir-p.h: Likewise.
101312         * lib/mkdir.c: Likewise.
101313         * lib/mkdirat.c: Likewise.
101314         * lib/mkdtemp.c: Likewise.
101315         * lib/mkstemp-safer.c: Likewise.
101316         * lib/mkstemp.c: Likewise.
101317         * lib/modechange.c: Likewise.
101318         * lib/modechange.h: Likewise.
101319         * lib/mountlist.c: Likewise.
101320         * lib/mountlist.h: Likewise.
101321         * lib/mpsort.c: Likewise.
101322         * lib/nanosleep.c: Likewise.
101323         * lib/obstack.c: Likewise.
101324         * lib/obstack.h: Likewise.
101325         * lib/open-safer.c: Likewise.
101326         * lib/open.c: Likewise.
101327         * lib/openat-die.c: Likewise.
101328         * lib/openat-priv.h: Likewise.
101329         * lib/openat-proc.c: Likewise.
101330         * lib/openat.c: Likewise.
101331         * lib/openat.h: Likewise.
101332         * lib/pagealign_alloc.c: Likewise.
101333         * lib/pagealign_alloc.h: Likewise.
101334         * lib/physmem.c: Likewise.
101335         * lib/physmem.h: Likewise.
101336         * lib/pipe-safer.c: Likewise.
101337         * lib/pipe.c: Likewise.
101338         * lib/pipe.h: Likewise.
101339         * lib/posixtm.c: Likewise.
101340         * lib/posixtm.h: Likewise.
101341         * lib/posixver.c: Likewise.
101342         * lib/printf-frexp.c: Likewise.
101343         * lib/printf-frexp.h: Likewise.
101344         * lib/printf-frexpl.c: Likewise.
101345         * lib/printf-frexpl.h: Likewise.
101346         * lib/printf.c: Likewise.
101347         * lib/progname.c: Likewise.
101348         * lib/progname.h: Likewise.
101349         * lib/progreloc.c: Likewise.
101350         * lib/putenv.c: Likewise.
101351         * lib/quote.c: Likewise.
101352         * lib/quote.h: Likewise.
101353         * lib/quotearg.c: Likewise.
101354         * lib/quotearg.h: Likewise.
101355         * lib/raise.c: Likewise.
101356         * lib/readline.c: Likewise.
101357         * lib/readline.h: Likewise.
101358         * lib/readlink.c: Likewise.
101359         * lib/readtokens.c: Likewise.
101360         * lib/readtokens.h: Likewise.
101361         * lib/readtokens0.c: Likewise.
101362         * lib/readtokens0.h: Likewise.
101363         * lib/readutmp.c: Likewise.
101364         * lib/readutmp.h: Likewise.
101365         * lib/realloc.c: Likewise.
101366         * lib/relocwrapper.c: Likewise.
101367         * lib/rename-dest-slash.c: Likewise.
101368         * lib/rename.c: Likewise.
101369         * lib/rmdir.c: Likewise.
101370         * lib/rpmatch.c: Likewise.
101371         * lib/safe-read.c: Likewise.
101372         * lib/safe-read.h: Likewise.
101373         * lib/safe-write.c: Likewise.
101374         * lib/safe-write.h: Likewise.
101375         * lib/same-inode.h: Likewise.
101376         * lib/same.c: Likewise.
101377         * lib/same.h: Likewise.
101378         * lib/save-cwd.c: Likewise.
101379         * lib/save-cwd.h: Likewise.
101380         * lib/savedir.c: Likewise.
101381         * lib/savedir.h: Likewise.
101382         * lib/savewd.c: Likewise.
101383         * lib/savewd.h: Likewise.
101384         * lib/search.in.h: Likewise.
101385         * lib/setenv.c: Likewise.
101386         * lib/setenv.h: Likewise.
101387         * lib/settime.c: Likewise.
101388         * lib/sh-quote.c: Likewise.
101389         * lib/sh-quote.h: Likewise.
101390         * lib/sig2str.c: Likewise.
101391         * lib/sig2str.h: Likewise.
101392         * lib/signal.in.h: Likewise.
101393         * lib/signbitd.c: Likewise.
101394         * lib/signbitf.c: Likewise.
101395         * lib/signbitl.c: Likewise.
101396         * lib/sigprocmask.c: Likewise.
101397         * lib/sincosl.c: Likewise.
101398         * lib/sleep.c: Likewise.
101399         * lib/sprintf.c: Likewise.
101400         * lib/sqrtl.c: Likewise.
101401         * lib/stat-time.h: Likewise.
101402         * lib/stdio--.h: Likewise.
101403         * lib/stdio-safer.h: Likewise.
101404         * lib/stdlib--.h: Likewise.
101405         * lib/stdlib-safer.h: Likewise.
101406         * lib/stdlib.in.h: Likewise.
101407         * lib/stpcpy.c: Likewise.
101408         * lib/stpncpy.c: Likewise.
101409         * lib/strchrnul.c: Likewise.
101410         * lib/strcspn.c: Likewise.
101411         * lib/strerror.c: Likewise.
101412         * lib/strftime.c: Likewise.
101413         * lib/strftime.h: Likewise.
101414         * lib/striconveh.c: Likewise.
101415         * lib/striconveh.h: Likewise.
101416         * lib/striconveha.c: Likewise.
101417         * lib/striconveha.h: Likewise.
101418         * lib/stripslash.c: Likewise.
101419         * lib/strnlen1.c: Likewise.
101420         * lib/strnlen1.h: Likewise.
101421         * lib/strtod.c: Likewise.
101422         * lib/strtoimax.c: Likewise.
101423         * lib/strtok_r.c: Likewise.
101424         * lib/strtol.c: Likewise.
101425         * lib/strtoll.c: Likewise.
101426         * lib/strtoul.c: Likewise.
101427         * lib/strtoull.c: Likewise.
101428         * lib/sysexits.in.h: Likewise.
101429         * lib/tempname.c: Likewise.
101430         * lib/tempname.h: Likewise.
101431         * lib/timespec.h: Likewise.
101432         * lib/tls.c: Likewise.
101433         * lib/tls.h: Likewise.
101434         * lib/tmpdir.c: Likewise.
101435         * lib/tmpdir.h: Likewise.
101436         * lib/tmpfile-safer.c: Likewise.
101437         * lib/tmpfile.c: Likewise.
101438         * lib/trigl.c: Likewise.
101439         * lib/trigl.h: Likewise.
101440         * lib/trim.c: Likewise.
101441         * lib/trim.h: Likewise.
101442         * lib/trunc.c: Likewise.
101443         * lib/truncf.c: Likewise.
101444         * lib/truncl.c: Likewise.
101445         * lib/tsearch.c: Likewise.
101446         * lib/unicodeio.c: Likewise.
101447         * lib/unicodeio.h: Likewise.
101448         * lib/unistd--.h: Likewise.
101449         * lib/unistd-safer.h: Likewise.
101450         * lib/unistdio/ulc-fprintf.c: Likewise.
101451         * lib/unistdio/ulc-vfprintf.c: Likewise.
101452         * lib/unlinkdir.c: Likewise.
101453         * lib/unlinkdir.h: Likewise.
101454         * lib/unlocked-io.h: Likewise.
101455         * lib/unsetenv.c: Likewise.
101456         * lib/userspec.c: Likewise.
101457         * lib/utime.c: Likewise.
101458         * lib/utimecmp.c: Likewise.
101459         * lib/utimecmp.h: Likewise.
101460         * lib/utimens.c: Likewise.
101461         * lib/verify.h: Likewise.
101462         * lib/verror.c: Likewise.
101463         * lib/verror.h: Likewise.
101464         * lib/version-etc-fsf.c: Likewise.
101465         * lib/version-etc.c: Likewise.
101466         * lib/version-etc.h: Likewise.
101467         * lib/vfprintf.c: Likewise.
101468         * lib/vprintf.c: Likewise.
101469         * lib/vsprintf.c: Likewise.
101470         * lib/w32spawn.h: Likewise.
101471         * lib/wait-process.c: Likewise.
101472         * lib/wait-process.h: Likewise.
101473         * lib/wcwidth.c: Likewise.
101474         * lib/write-any-file.c: Likewise.
101475         * lib/xalloc-die.c: Likewise.
101476         * lib/xalloc.h: Likewise.
101477         * lib/xasprintf.c: Likewise.
101478         * lib/xgetcwd.c: Likewise.
101479         * lib/xgetcwd.h: Likewise.
101480         * lib/xgetdomainname.c: Likewise.
101481         * lib/xgetdomainname.h: Likewise.
101482         * lib/xgethostname.c: Likewise.
101483         * lib/xmalloc.c: Likewise.
101484         * lib/xmalloca.c: Likewise.
101485         * lib/xmalloca.h: Likewise.
101486         * lib/xmemcoll.c: Likewise.
101487         * lib/xnanosleep.c: Likewise.
101488         * lib/xreadlink.c: Likewise.
101489         * lib/xreadlink.h: Likewise.
101490         * lib/xsetenv.c: Likewise.
101491         * lib/xsetenv.h: Likewise.
101492         * lib/xstriconv.c: Likewise.
101493         * lib/xstriconv.h: Likewise.
101494         * lib/xstrndup.c: Likewise.
101495         * lib/xstrndup.h: Likewise.
101496         * lib/xstrtod.c: Likewise.
101497         * lib/xstrtod.h: Likewise.
101498         * lib/xstrtol-error.c: Likewise.
101499         * lib/xstrtol.c: Likewise.
101500         * lib/xstrtol.h: Likewise.
101501         * lib/xtime.h: Likewise.
101502         * lib/xvasprintf.c: Likewise.
101503         * lib/xvasprintf.h: Likewise.
101504         * lib/yesno.c: Likewise.
101505         * lib/yesno.h: Likewise.
101506         * posix-modules: Likewise.
101507         * tests/test-alloca-opt.c: Likewise.
101508         * tests/test-arcfour.c: Likewise.
101509         * tests/test-arctwo.c: Likewise.
101510         * tests/test-argmatch.c: Likewise.
101511         * tests/test-argp-2.sh: Likewise.
101512         * tests/test-argp.c: Likewise.
101513         * tests/test-arpa_inet.c: Likewise.
101514         * tests/test-array_list.c: Likewise.
101515         * tests/test-array_oset.c: Likewise.
101516         * tests/test-atexit.c: Likewise.
101517         * tests/test-avltree_list.c: Likewise.
101518         * tests/test-avltree_oset.c: Likewise.
101519         * tests/test-avltreehash_list.c: Likewise.
101520         * tests/test-base64.c: Likewise.
101521         * tests/test-binary-io.c: Likewise.
101522         * tests/test-byteswap.c: Likewise.
101523         * tests/test-c-ctype.c: Likewise.
101524         * tests/test-c-strcasecmp.c: Likewise.
101525         * tests/test-c-strcasestr.c: Likewise.
101526         * tests/test-c-strncasecmp.c: Likewise.
101527         * tests/test-c-strstr.c: Likewise.
101528         * tests/test-canonicalize-lgpl.c: Likewise.
101529         * tests/test-canonicalize.c: Likewise.
101530         * tests/test-carray_list.c: Likewise.
101531         * tests/test-ceilf.c: Likewise.
101532         * tests/test-ceill.c: Likewise.
101533         * tests/test-count-one-bits.c: Likewise.
101534         * tests/test-crc.c: Likewise.
101535         * tests/test-dirname.c: Likewise.
101536         * tests/test-fbufmode.c: Likewise.
101537         * tests/test-fcntl.c: Likewise.
101538         * tests/test-fflush.c: Likewise.
101539         * tests/test-floorf.c: Likewise.
101540         * tests/test-floorl.c: Likewise.
101541         * tests/test-fopen.c: Likewise.
101542         * tests/test-fprintf-posix.c: Likewise.
101543         * tests/test-fprintf-posix.h: Likewise.
101544         * tests/test-fpurge.c: Likewise.
101545         * tests/test-freadable.c: Likewise.
101546         * tests/test-freadahead.c: Likewise.
101547         * tests/test-freading.c: Likewise.
101548         * tests/test-freopen.c: Likewise.
101549         * tests/test-frexp.c: Likewise.
101550         * tests/test-frexpl.c: Likewise.
101551         * tests/test-fseek.c: Likewise.
101552         * tests/test-fseeko.c: Likewise.
101553         * tests/test-fseterr.c: Likewise.
101554         * tests/test-fstrcmp.c: Likewise.
101555         * tests/test-ftell.c: Likewise.
101556         * tests/test-ftello.c: Likewise.
101557         * tests/test-fwritable.c: Likewise.
101558         * tests/test-fwriting.c: Likewise.
101559         * tests/test-getaddrinfo.c: Likewise.
101560         * tests/test-getpass.c: Likewise.
101561         * tests/test-gettimeofday.c: Likewise.
101562         * tests/test-hmac-md5.c: Likewise.
101563         * tests/test-hmac-sha1.c: Likewise.
101564         * tests/test-iconv.c: Likewise.
101565         * tests/test-iconvme.c: Likewise.
101566         * tests/test-inttypes.c: Likewise.
101567         * tests/test-isnan.c: Likewise.
101568         * tests/test-isnanf.c: Likewise.
101569         * tests/test-isnanl-nolibm.c: Likewise.
101570         * tests/test-isnanl.c: Likewise.
101571         * tests/test-isnanl.h: Likewise.
101572         * tests/test-ldexpl.c: Likewise.
101573         * tests/test-linked_list.c: Likewise.
101574         * tests/test-linkedhash_list.c: Likewise.
101575         * tests/test-locale.c: Likewise.
101576         * tests/test-localename.c: Likewise.
101577         * tests/test-lock.c: Likewise.
101578         * tests/test-lseek.c: Likewise.
101579         * tests/test-malloca.c: Likewise.
101580         * tests/test-math.c: Likewise.
101581         * tests/test-mbscasecmp.c: Likewise.
101582         * tests/test-mbscasestr1.c: Likewise.
101583         * tests/test-mbscasestr2.c: Likewise.
101584         * tests/test-mbscasestr3.c: Likewise.
101585         * tests/test-mbscasestr4.c: Likewise.
101586         * tests/test-mbschr.c: Likewise.
101587         * tests/test-mbscspn.c: Likewise.
101588         * tests/test-mbsncasecmp.c: Likewise.
101589         * tests/test-mbspbrk.c: Likewise.
101590         * tests/test-mbspcasecmp.c: Likewise.
101591         * tests/test-mbsrchr.c: Likewise.
101592         * tests/test-mbsspn.c: Likewise.
101593         * tests/test-mbsstr1.c: Likewise.
101594         * tests/test-mbsstr2.c: Likewise.
101595         * tests/test-mbsstr3.c: Likewise.
101596         * tests/test-md5.c: Likewise.
101597         * tests/test-memmem.c: Likewise.
101598         * tests/test-netinet_in.c: Likewise.
101599         * tests/test-open.c: Likewise.
101600         * tests/test-printf-frexp.c: Likewise.
101601         * tests/test-printf-frexpl.c: Likewise.
101602         * tests/test-printf-posix.c: Likewise.
101603         * tests/test-printf-posix.h: Likewise.
101604         * tests/test-rbtree_list.c: Likewise.
101605         * tests/test-rbtree_oset.c: Likewise.
101606         * tests/test-rbtreehash_list.c: Likewise.
101607         * tests/test-read-file.c: Likewise.
101608         * tests/test-rijndael.c: Likewise.
101609         * tests/test-search.c: Likewise.
101610         * tests/test-signbit.c: Likewise.
101611         * tests/test-sleep.c: Likewise.
101612         * tests/test-snprintf-posix.c: Likewise.
101613         * tests/test-snprintf-posix.h: Likewise.
101614         * tests/test-snprintf.c: Likewise.
101615         * tests/test-sprintf-posix.c: Likewise.
101616         * tests/test-sprintf-posix.h: Likewise.
101617         * tests/test-stat-time.c: Likewise.
101618         * tests/test-stdbool.c: Likewise.
101619         * tests/test-stdint.c: Likewise.
101620         * tests/test-stdio.c: Likewise.
101621         * tests/test-stdlib.c: Likewise.
101622         * tests/test-stpncpy.c: Likewise.
101623         * tests/test-strcasestr.c: Likewise.
101624         * tests/test-striconv.c: Likewise.
101625         * tests/test-striconveh.c: Likewise.
101626         * tests/test-striconveha.c: Likewise.
101627         * tests/test-string.c: Likewise.
101628         * tests/test-sys_select.c: Likewise.
101629         * tests/test-sys_socket.c: Likewise.
101630         * tests/test-sys_stat.c: Likewise.
101631         * tests/test-sys_time.c: Likewise.
101632         * tests/test-sysexits.c: Likewise.
101633         * tests/test-time.c: Likewise.
101634         * tests/test-tls.c: Likewise.
101635         * tests/test-trunc.c: Likewise.
101636         * tests/test-truncf.c: Likewise.
101637         * tests/test-truncl.c: Likewise.
101638         * tests/test-unistd.c: Likewise.
101639         * tests/test-vasnprintf-posix.c: Likewise.
101640         * tests/test-vasnprintf-posix2.c: Likewise.
101641         * tests/test-vasnprintf.c: Likewise.
101642         * tests/test-vasprintf-posix.c: Likewise.
101643         * tests/test-vasprintf.c: Likewise.
101644         * tests/test-verify.c: Likewise.
101645         * tests/test-vfprintf-posix.c: Likewise.
101646         * tests/test-vprintf-posix.c: Likewise.
101647         * tests/test-vsnprintf-posix.c: Likewise.
101648         * tests/test-vsnprintf.c: Likewise.
101649         * tests/test-vsprintf-posix.c: Likewise.
101650         * tests/test-wchar.c: Likewise.
101651         * tests/test-wctype.c: Likewise.
101652         * tests/test-wcwidth.c: Likewise.
101653         * tests/test-xstrtol.c: Likewise.
101654         * tests/test-xvasprintf.c: Likewise.
101655         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101656         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101657         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101658         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101659         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101660         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101661         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101662         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101663         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101664         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101665         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101666         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101667         * tests/uniname/test-uninames.c: Likewise.
101668         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101669         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101670         * tests/unistdio/test-u16-printf1.h: Likewise.
101671         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101672         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101673         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101674         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101675         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101676         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101677         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101678         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101679         * tests/unistdio/test-u32-printf1.h: Likewise.
101680         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101681         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101682         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101683         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101684         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101685         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101686         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101687         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101688         * tests/unistdio/test-u8-printf1.h: Likewise.
101689         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101690         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101691         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101692         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101693         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101694         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101695         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101696         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101697         * tests/unistdio/test-ulc-printf1.h: Likewise.
101698         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101699         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101700         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101701         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101702         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101703         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101704         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101705         * tests/uniwidth/test-u16-width.c: Likewise.
101706         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101707         * tests/uniwidth/test-u32-width.c: Likewise.
101708         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101709         * tests/uniwidth/test-u8-width.c: Likewise.
101710         * tests/uniwidth/test-uc_width.c: Likewise.
101711         * config/srclist-update: Likewise.
101712         (fixlicense): Update to GPLv3+.
101714         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101715         * tests/test-tsearch.c: Change copyright notice.
101717         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101718         * lib/c-strcaseeq.h: Change copyright notice.
101719         * lib/streq.h: Likewise.
101720         * lib/uniconv.h: Likewise.
101721         * lib/uniconv/u-conv-from-enc.h: Likewise.
101722         * lib/uniconv/u-conv-to-enc.h: Likewise.
101723         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101724         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101725         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101726         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101727         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101728         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101729         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101730         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101731         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101732         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101733         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101734         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101735         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101736         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101737         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101738         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101739         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101740         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101741         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101742         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101743         * lib/uniname.h: Likewise.
101744         * lib/uniname/uniname.c: Likewise.
101745         * lib/unistdio.h: Likewise.
101746         * lib/unistdio/u-asnprintf.h: Likewise.
101747         * lib/unistdio/u-asprintf.h: Likewise.
101748         * lib/unistdio/u-printf-args.c: Likewise.
101749         * lib/unistdio/u-printf-args.h: Likewise.
101750         * lib/unistdio/u-printf-parse.h: Likewise.
101751         * lib/unistdio/u-snprintf.h: Likewise.
101752         * lib/unistdio/u-sprintf.h: Likewise.
101753         * lib/unistdio/u-vasprintf.h: Likewise.
101754         * lib/unistdio/u-vsnprintf.h: Likewise.
101755         * lib/unistdio/u-vsprintf.h: Likewise.
101756         * lib/unistdio/u16-asnprintf.c: Likewise.
101757         * lib/unistdio/u16-asprintf.c: Likewise.
101758         * lib/unistdio/u16-printf-parse.c: Likewise.
101759         * lib/unistdio/u16-snprintf.c: Likewise.
101760         * lib/unistdio/u16-sprintf.c: Likewise.
101761         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101762         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101763         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101764         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101765         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101766         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101767         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101768         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101769         * lib/unistdio/u16-vasnprintf.c: Likewise.
101770         * lib/unistdio/u16-vasprintf.c: Likewise.
101771         * lib/unistdio/u16-vsnprintf.c: Likewise.
101772         * lib/unistdio/u16-vsprintf.c: Likewise.
101773         * lib/unistdio/u32-asnprintf.c: Likewise.
101774         * lib/unistdio/u32-asprintf.c: Likewise.
101775         * lib/unistdio/u32-printf-parse.c: Likewise.
101776         * lib/unistdio/u32-snprintf.c: Likewise.
101777         * lib/unistdio/u32-sprintf.c: Likewise.
101778         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101779         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101780         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101781         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101782         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101783         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101784         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101785         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101786         * lib/unistdio/u32-vasnprintf.c: Likewise.
101787         * lib/unistdio/u32-vasprintf.c: Likewise.
101788         * lib/unistdio/u32-vsnprintf.c: Likewise.
101789         * lib/unistdio/u32-vsprintf.c: Likewise.
101790         * lib/unistdio/u8-asnprintf.c: Likewise.
101791         * lib/unistdio/u8-asprintf.c: Likewise.
101792         * lib/unistdio/u8-printf-parse.c: Likewise.
101793         * lib/unistdio/u8-snprintf.c: Likewise.
101794         * lib/unistdio/u8-sprintf.c: Likewise.
101795         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101796         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101797         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101798         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101799         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101800         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101801         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101802         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101803         * lib/unistdio/u8-vasnprintf.c: Likewise.
101804         * lib/unistdio/u8-vasprintf.c: Likewise.
101805         * lib/unistdio/u8-vsnprintf.c: Likewise.
101806         * lib/unistdio/u8-vsprintf.c: Likewise.
101807         * lib/unistdio/ulc-asnprintf.c: Likewise.
101808         * lib/unistdio/ulc-asprintf.c: Likewise.
101809         * lib/unistdio/ulc-printf-parse.c: Likewise.
101810         * lib/unistdio/ulc-snprintf.c: Likewise.
101811         * lib/unistdio/ulc-sprintf.c: Likewise.
101812         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101813         * lib/unistdio/ulc-vasprintf.c: Likewise.
101814         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101815         * lib/unistdio/ulc-vsprintf.c: Likewise.
101816         * lib/unistr.h: Likewise.
101817         * lib/unistr/u-cpy-alloc.h: Likewise.
101818         * lib/unistr/u-cpy.h: Likewise.
101819         * lib/unistr/u-endswith.h: Likewise.
101820         * lib/unistr/u-move.h: Likewise.
101821         * lib/unistr/u-set.h: Likewise.
101822         * lib/unistr/u-startswith.h: Likewise.
101823         * lib/unistr/u-stpcpy.h: Likewise.
101824         * lib/unistr/u-stpncpy.h: Likewise.
101825         * lib/unistr/u-strcat.h: Likewise.
101826         * lib/unistr/u-strcpy.h: Likewise.
101827         * lib/unistr/u-strcspn.h: Likewise.
101828         * lib/unistr/u-strdup.h: Likewise.
101829         * lib/unistr/u-strlen.h: Likewise.
101830         * lib/unistr/u-strncat.h: Likewise.
101831         * lib/unistr/u-strncpy.h: Likewise.
101832         * lib/unistr/u-strnlen.h: Likewise.
101833         * lib/unistr/u-strpbrk.h: Likewise.
101834         * lib/unistr/u-strspn.h: Likewise.
101835         * lib/unistr/u-strstr.h: Likewise.
101836         * lib/unistr/u-strtok.h: Likewise.
101837         * lib/unistr/u16-check.c: Likewise.
101838         * lib/unistr/u16-chr.c: Likewise.
101839         * lib/unistr/u16-cmp.c: Likewise.
101840         * lib/unistr/u16-cpy-alloc.c: Likewise.
101841         * lib/unistr/u16-cpy.c: Likewise.
101842         * lib/unistr/u16-endswith.c: Likewise.
101843         * lib/unistr/u16-mblen.c: Likewise.
101844         * lib/unistr/u16-mbsnlen.c: Likewise.
101845         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101846         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101847         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101848         * lib/unistr/u16-mbtouc.c: Likewise.
101849         * lib/unistr/u16-mbtoucr.c: Likewise.
101850         * lib/unistr/u16-move.c: Likewise.
101851         * lib/unistr/u16-next.c: Likewise.
101852         * lib/unistr/u16-prev.c: Likewise.
101853         * lib/unistr/u16-set.c: Likewise.
101854         * lib/unistr/u16-startswith.c: Likewise.
101855         * lib/unistr/u16-stpcpy.c: Likewise.
101856         * lib/unistr/u16-stpncpy.c: Likewise.
101857         * lib/unistr/u16-strcat.c: Likewise.
101858         * lib/unistr/u16-strchr.c: Likewise.
101859         * lib/unistr/u16-strcmp.c: Likewise.
101860         * lib/unistr/u16-strcpy.c: Likewise.
101861         * lib/unistr/u16-strcspn.c: Likewise.
101862         * lib/unistr/u16-strdup.c: Likewise.
101863         * lib/unistr/u16-strlen.c: Likewise.
101864         * lib/unistr/u16-strmblen.c: Likewise.
101865         * lib/unistr/u16-strmbtouc.c: Likewise.
101866         * lib/unistr/u16-strncat.c: Likewise.
101867         * lib/unistr/u16-strncmp.c: Likewise.
101868         * lib/unistr/u16-strncpy.c: Likewise.
101869         * lib/unistr/u16-strnlen.c: Likewise.
101870         * lib/unistr/u16-strpbrk.c: Likewise.
101871         * lib/unistr/u16-strrchr.c: Likewise.
101872         * lib/unistr/u16-strspn.c: Likewise.
101873         * lib/unistr/u16-strstr.c: Likewise.
101874         * lib/unistr/u16-strtok.c: Likewise.
101875         * lib/unistr/u16-to-u32.c: Likewise.
101876         * lib/unistr/u16-to-u8.c: Likewise.
101877         * lib/unistr/u16-uctomb-aux.c: Likewise.
101878         * lib/unistr/u16-uctomb.c: Likewise.
101879         * lib/unistr/u32-check.c: Likewise.
101880         * lib/unistr/u32-chr.c: Likewise.
101881         * lib/unistr/u32-cmp.c: Likewise.
101882         * lib/unistr/u32-cpy-alloc.c: Likewise.
101883         * lib/unistr/u32-cpy.c: Likewise.
101884         * lib/unistr/u32-endswith.c: Likewise.
101885         * lib/unistr/u32-mblen.c: Likewise.
101886         * lib/unistr/u32-mbsnlen.c: Likewise.
101887         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101888         * lib/unistr/u32-mbtouc.c: Likewise.
101889         * lib/unistr/u32-mbtoucr.c: Likewise.
101890         * lib/unistr/u32-move.c: Likewise.
101891         * lib/unistr/u32-next.c: Likewise.
101892         * lib/unistr/u32-prev.c: Likewise.
101893         * lib/unistr/u32-set.c: Likewise.
101894         * lib/unistr/u32-startswith.c: Likewise.
101895         * lib/unistr/u32-stpcpy.c: Likewise.
101896         * lib/unistr/u32-stpncpy.c: Likewise.
101897         * lib/unistr/u32-strcat.c: Likewise.
101898         * lib/unistr/u32-strchr.c: Likewise.
101899         * lib/unistr/u32-strcmp.c: Likewise.
101900         * lib/unistr/u32-strcpy.c: Likewise.
101901         * lib/unistr/u32-strcspn.c: Likewise.
101902         * lib/unistr/u32-strdup.c: Likewise.
101903         * lib/unistr/u32-strlen.c: Likewise.
101904         * lib/unistr/u32-strmblen.c: Likewise.
101905         * lib/unistr/u32-strmbtouc.c: Likewise.
101906         * lib/unistr/u32-strncat.c: Likewise.
101907         * lib/unistr/u32-strncmp.c: Likewise.
101908         * lib/unistr/u32-strncpy.c: Likewise.
101909         * lib/unistr/u32-strnlen.c: Likewise.
101910         * lib/unistr/u32-strpbrk.c: Likewise.
101911         * lib/unistr/u32-strrchr.c: Likewise.
101912         * lib/unistr/u32-strspn.c: Likewise.
101913         * lib/unistr/u32-strstr.c: Likewise.
101914         * lib/unistr/u32-strtok.c: Likewise.
101915         * lib/unistr/u32-to-u16.c: Likewise.
101916         * lib/unistr/u32-to-u8.c: Likewise.
101917         * lib/unistr/u32-uctomb.c: Likewise.
101918         * lib/unistr/u8-check.c: Likewise.
101919         * lib/unistr/u8-chr.c: Likewise.
101920         * lib/unistr/u8-cmp.c: Likewise.
101921         * lib/unistr/u8-cpy-alloc.c: Likewise.
101922         * lib/unistr/u8-cpy.c: Likewise.
101923         * lib/unistr/u8-endswith.c: Likewise.
101924         * lib/unistr/u8-mblen.c: Likewise.
101925         * lib/unistr/u8-mbsnlen.c: Likewise.
101926         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101927         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101928         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101929         * lib/unistr/u8-mbtouc.c: Likewise.
101930         * lib/unistr/u8-mbtoucr.c: Likewise.
101931         * lib/unistr/u8-move.c: Likewise.
101932         * lib/unistr/u8-next.c: Likewise.
101933         * lib/unistr/u8-prev.c: Likewise.
101934         * lib/unistr/u8-set.c: Likewise.
101935         * lib/unistr/u8-startswith.c: Likewise.
101936         * lib/unistr/u8-stpcpy.c: Likewise.
101937         * lib/unistr/u8-stpncpy.c: Likewise.
101938         * lib/unistr/u8-strcat.c: Likewise.
101939         * lib/unistr/u8-strchr.c: Likewise.
101940         * lib/unistr/u8-strcmp.c: Likewise.
101941         * lib/unistr/u8-strcpy.c: Likewise.
101942         * lib/unistr/u8-strcspn.c: Likewise.
101943         * lib/unistr/u8-strdup.c: Likewise.
101944         * lib/unistr/u8-strlen.c: Likewise.
101945         * lib/unistr/u8-strmblen.c: Likewise.
101946         * lib/unistr/u8-strmbtouc.c: Likewise.
101947         * lib/unistr/u8-strncat.c: Likewise.
101948         * lib/unistr/u8-strncmp.c: Likewise.
101949         * lib/unistr/u8-strncpy.c: Likewise.
101950         * lib/unistr/u8-strnlen.c: Likewise.
101951         * lib/unistr/u8-strpbrk.c: Likewise.
101952         * lib/unistr/u8-strrchr.c: Likewise.
101953         * lib/unistr/u8-strspn.c: Likewise.
101954         * lib/unistr/u8-strstr.c: Likewise.
101955         * lib/unistr/u8-strtok.c: Likewise.
101956         * lib/unistr/u8-to-u16.c: Likewise.
101957         * lib/unistr/u8-to-u32.c: Likewise.
101958         * lib/unistr/u8-uctomb-aux.c: Likewise.
101959         * lib/unistr/u8-uctomb.c: Likewise.
101960         * lib/unitypes.h: Likewise.
101961         * lib/uniwidth.h: Likewise.
101962         * lib/uniwidth/cjk.h: Likewise.
101963         * lib/uniwidth/u16-strwidth.c: Likewise.
101964         * lib/uniwidth/u16-width.c: Likewise.
101965         * lib/uniwidth/u32-strwidth.c: Likewise.
101966         * lib/uniwidth/u32-width.c: Likewise.
101967         * lib/uniwidth/u8-strwidth.c: Likewise.
101968         * lib/uniwidth/u8-width.c: Likewise.
101969         * lib/uniwidth/width.c: Likewise.
101971 2007-10-07  Bruno Haible  <bruno@clisp.org>
101973         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101974         The file is still under LGPL (see modules/inttypes).
101976 2007-10-06  Bruno Haible  <bruno@clisp.org>
101978         * modules/trunc (Dependencies): Add 'extensions'.
101979         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101980         Reported by Ben Pfaff <blp@gnu.org>.
101982 2007-10-06  Bruno Haible  <bruno@clisp.org>
101984         * modules/freopen-tests: New file.
101985         * tests/test-freopen.c: New file.
101987         * modules/fopen-tests: New file.
101988         * tests/test-fopen.c: New file.
101990         * modules/fopen: New file.
101991         * lib/fopen.c: New file.
101992         * m4/fopen.m4: New file.
101993         * modules/freopen: New file.
101994         * lib/freopen.c: New file.
101995         * m4/freopen.m4: New file.
101996         * lib/stdio.in.h (fopen, freopen): New declarations.
101997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101998         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101999         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
102000         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102001         * doc/functions/fopen.texi: Mention the 'fopen' module.
102002         * doc/functions/freopen.texi: Mention the 'freopen' module.
102004 2007-10-06  Bruno Haible  <bruno@clisp.org>
102006         * modules/open-tests: New file.
102007         * tests/test-open.c: New file.
102009         * modules/open: New file.
102010         * lib/open.c: New file.
102011         * m4/open.m4: New file.
102012         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
102013         lib/open.c does.
102014         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
102015         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
102016         macros.
102017         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
102018         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
102019         REPLACE_OPEN.
102020         * doc/functions/open.texi: Mention the 'open' module.
102022 2007-10-04  Bruno Haible  <bruno@clisp.org>
102024         * modules/ceill-tests: New file.
102025         * tests/test-ceill.c: New file.
102027         * modules/ceill: New file.
102028         * lib/ceill.c: Replace entire file.
102029         * m4/ceill.m4: New file.
102030         * lib/math.in.h (ceill): Replace declaration.
102031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
102032         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
102033         * doc/functions/ceill.texi: Mention the 'ceill' module.
102034         * modules/mathl (Files): Remove lib/ceill.c.
102035         (Depends-on): Add ceill.
102037 2007-10-04  Bruno Haible  <bruno@clisp.org>
102039         * modules/ceilf-tests: New file.
102040         * tests/test-ceilf.c: New file.
102042         * modules/ceilf: New file.
102043         * lib/ceil.c: New file.
102044         * lib/ceilf.c: New file.
102045         * m4/ceilf.m4: New file.
102046         * lib/math.in.h (ceilf): New declaration.
102047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
102048         HAVE_DECL_CEILF.
102049         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
102050         HAVE_DECL_CEILF.
102051         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
102053 2007-10-04  Bruno Haible  <bruno@clisp.org>
102055         * modules/floorl-tests: New file.
102056         * tests/test-floorl.c: New file.
102058         * modules/floorl: New file.
102059         * lib/floorl.c: Replace entire file.
102060         * m4/floorl.m4: New file.
102061         * lib/math.in.h (floorl): Replace declaration.
102062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
102063         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
102064         * doc/functions/floorl.texi: Mention the 'floorl' module.
102065         * modules/mathl (Files): Remove lib/floorl.c.
102066         (Depends-on): Add floorl.
102068 2007-10-04  Bruno Haible  <bruno@clisp.org>
102070         * modules/floorf-tests: New file.
102071         * tests/test-floorf.c: New file.
102073         * modules/floorf: New file.
102074         * lib/floor.c: New file.
102075         * lib/floorf.c: New file.
102076         * m4/floorf.m4: New file.
102077         * lib/math.in.h (floorf): New declaration.
102078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
102079         HAVE_DECL_FLOORF.
102080         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
102081         HAVE_DECL_FLOORF.
102082         * doc/functions/floorf.texi: Mention the 'floorf' module.
102084 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
102085             Bruno Haible  <bruno@clisp.org>
102087         Advertise for the Git server instead of the CVS server.
102088         * doc/gnulib-intro.texi (Steady Development): Mention the Git
102089         repository instead of the CVS one.
102090         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
102091         about all VCS systems generically.
102092         * doc/gnulib.texi (Introduction): Capitalize `Git'.
102094 2007-10-04  Bruno Haible  <bruno@clisp.org>
102096         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
102097         means.
102098         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
102100 2007-10-04  Bruno Haible  <bruno@clisp.org>
102102         * modules/truncl-tests: New file.
102103         * tests/test-truncl.c: New file.
102105         * modules/truncl: New file.
102106         * lib/truncl.c: New file.
102107         * m4/truncl.m4: New file.
102108         * lib/math.in.h (truncl): New declaration.
102109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
102110         HAVE_DECL_TRUNCL.
102111         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
102112         HAVE_DECL_TRUNCL.
102113         * doc/functions/truncl.texi: Mention the 'truncl' module.
102115 2007-10-04  Bruno Haible  <bruno@clisp.org>
102117         * modules/truncf-tests: New file.
102118         * tests/test-truncf.c: New file.
102120         * modules/truncf: New file.
102121         * lib/trunc.c: Make paramerizable through USE_* macros.
102122         * lib/truncf.c: New file.
102123         * m4/truncf.m4: New file.
102124         * lib/math.in.h (truncf): New declaration.
102125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
102126         HAVE_DECL_TRUNCF.
102127         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
102128         HAVE_DECL_TRUNCF.
102129         * doc/functions/truncf.texi: Mention the 'truncf' module.
102131 2007-10-03  Bruno Haible  <bruno@clisp.org>
102133         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
102134         augmentation also for tests modules.
102135         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
102136         * modules/atexit-tests (Makefile.am): Likewise.
102137         * modules/binary-io-tests (Makefile.am): Likewise.
102138         * modules/c-strcase-tests (Makefile.am): Likewise.
102139         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
102140         * modules/canonicalize-tests (Makefile.am): Likewise.
102141         * modules/closein-tests (Makefile.am): Likewise.
102142         * modules/fprintf-posix-tests (Makefile.am): Likewise.
102143         * modules/freadahead-tests (Makefile.am): Likewise.
102144         * modules/fseek-tests (Makefile.am): Likewise.
102145         * modules/fseeko-tests (Makefile.am): Likewise.
102146         * modules/ftell-tests (Makefile.am): Likewise.
102147         * modules/ftello-tests (Makefile.am): Likewise.
102148         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
102149         * modules/isnanl-tests (Makefile.am): Likewise.
102150         * modules/lseek-tests (Makefile.am): Likewise.
102151         * modules/mbscasecmp-tests (Makefile.am): Likewise.
102152         * modules/mbscasestr-tests (Makefile.am): Likewise.
102153         * modules/mbschr-tests (Makefile.am): Likewise.
102154         * modules/mbscspn-tests (Makefile.am): Likewise.
102155         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
102156         * modules/mbspbrk-tests (Makefile.am): Likewise.
102157         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
102158         * modules/mbsrchr-tests (Makefile.am): Likewise.
102159         * modules/mbsspn-tests (Makefile.am): Likewise.
102160         * modules/mbsstr-tests (Makefile.am): Likewise.
102161         * modules/printf-posix-tests (Makefile.am): Likewise.
102162         * modules/snprintf-posix-tests (Makefile.am): Likewise.
102163         * modules/sprintf-posix-tests (Makefile.am): Likewise.
102164         * modules/tsearch-tests (Makefile.am): Likewise.
102165         * modules/uniname/uniname-tests (Makefile.am): Likewise.
102166         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
102167         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
102168         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
102169         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
102170         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
102171         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
102172         * modules/vprintf-posix-tests (Makefile.am): Likewise.
102173         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
102174         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
102175         * modules/xstrtoimax-tests (Makefile.am): Likewise.
102176         * modules/xstrtol-tests (Makefile.am): Likewise.
102177         * modules/xstrtoumax-tests (Makefile.am): Likewise.
102178         * modules/yesno-tests (Makefile.am): Likewise.
102180 2007-10-03  Bruno Haible  <bruno@clisp.org>
102182         * modules/trunc-tests: New file.
102183         * tests/test-trunc.c: New file.
102185         * modules/trunc: New file.
102186         * lib/trunc.c: New file.
102187         * m4/trunc.m4: New file.
102188         * lib/math.in.h (trunc): New declaration.
102189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
102190         HAVE_DECL_TRUNC.
102191         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
102192         HAVE_DECL_TRUNC.
102193         * doc/functions/trunc.texi: Mention the 'trunc' module.
102195 2007-10-03  Bruno Haible  <bruno@clisp.org>
102197         * tests/test-fpending.c: New file, mostly copied
102198         from coreutils/lib/t-fpending.c.
102199         * modules/fpending-tests: New file.
102201 2007-10-03  Bruno Haible  <bruno@clisp.org>
102203         Port the stdio extensions to QNX (untested).
102204         * lib/fseterr.c (fseterr): Add support for QNX.
102205         * lib/fbufmode.c (fbufmode): Likewise.
102206         * lib/freadable.c (freadable): Likewise.
102207         * lib/fwritable.c (fwritable): Likewise.
102208         * lib/freading.c (freading): Likewise.
102209         * lib/fwriting.c (fwriting): Likewise.
102210         * lib/freadahead.c (freadahed): Likewise.
102211         * lib/fpurge.c (fpurge): Likewise.
102212         * lib/fseeko.c (rpl_fseeko): Likewise.
102214 2007-10-03  Bruno Haible  <bruno@clisp.org>
102215             Jim Meyering  <jim@meyering.net>
102216             Eric Blake  <ebb9@byu.net>
102218         * doc/relocatable.texi: Use @command instead of @program.
102220 2007-10-02  Jim Meyering  <jim@meyering.net>
102222         Perform one more "_.h" -> ".in.h" substitution.
102223         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
102224         instead of unistd_.h here, too.
102226 2007-10-01  Bruno Haible  <bruno@clisp.org>
102228         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
102229         Needed for the alloca-opt module.
102231 2007-09-30  Bruno Haible  <bruno@clisp.org>
102233         * lib/alloca.in.h: Renamed from lib/alloca_.h.
102234         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
102235         alloca_.h.
102236         * lib/argz.in.h: Renamed from lib/argz_.h.
102237         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
102238         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
102239         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
102240         byteswap_.h.
102241         * lib/dirent.in.h: Renamed from lib/dirent_.h.
102242         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
102243         dirent_.h.
102244         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
102245         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
102246         fcntl_.h.
102247         * lib/float.in.h: Renamed from lib/float_.h.
102248         * modules/float (Files, Makefile.am): Use float.in.h instead of
102249         float_.h.
102250         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
102251         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
102252         fnmatch_.h.
102253         * lib/getopt.in.h: Renamed from lib/getopt_.h.
102254         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
102255         getopt_.h.
102256         * lib/glob.in.h: Renamed from lib/glob_.h.
102257         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
102258         * lib/iconv.in.h: Renamed from lib/iconv_.h.
102259         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
102260         iconv_.h.
102261         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
102262         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
102263         inttypes_.h.
102264         * lib/locale.in.h: Renamed from lib/locale_.h.
102265         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
102266         locale_.h.
102267         * lib/math.in.h: Renamed from lib/math_.h.
102268         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
102269         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
102270         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
102271         of netinet_in_.h. Add dependency.
102272         * lib/poll.in.h: Renamed from lib/poll_.h.
102273         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
102274         * lib/search.in.h: Renamed from lib/search_.h.
102275         * modules/search (Files, Makefile.am): Use search.in.h instead of
102276         search_.h.
102277         * lib/signal.in.h: Renamed from lib/signal_.h.
102278         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
102279         _signal.h.
102280         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
102281         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
102282         stdbool_.h.
102283         * lib/stdint.in.h: Renamed from lib/stdint_.h.
102284         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
102285         stdint_.h.
102286         * lib/stdio.in.h: Renamed from lib/stdio_.h.
102287         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
102288         stdio_.h.
102289         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
102290         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
102291         stdlib_.h.
102292         * lib/string.in.h: Renamed from lib/string_.h.
102293         * modules/string (Files, Makefile.am): Use string.in.h instead of
102294         string_.h.
102295         * doc/gnulib-tool.texi (Initial import): Update.
102296         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
102297         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
102298         of sys_select_.h. Add dependency.
102299         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
102300         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102301         of sys_socket_.h.
102302         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
102303         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
102304         sys_stat_.h.
102305         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
102306         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
102307         sys_time_.h.
102308         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
102309         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
102310         sysexits_.h.
102311         * lib/time.in.h: Renamed from lib/time_.h.
102312         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
102313         * lib/unistd.in.h: Renamed from lib/unistd_.h.
102314         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
102315         unistd_.h.
102316         * lib/wchar.in.h: Renamed from lib/wchar_.h.
102317         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
102318         wchar_.h.
102319         * lib/wctype.in.h: Renamed from lib/wctype_.h.
102320         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
102321         wctype_.h.
102322         * build-aux/bootstrap (slurp): Update.
102323         * lib/.cppi-disable: Update.
102325 2007-09-30  Bruno Haible  <bruno@clisp.org>
102327         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102328         Needed on BeOS.
102330 2007-09-30  Bruno Haible  <bruno@clisp.org>
102332         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102334 2007-09-29  Bruno Haible  <bruno@clisp.org>
102336         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102338 2007-09-29  Bruno Haible  <bruno@clisp.org>
102340         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102341         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102342         * build-aux/install-reloc: Compile also areadlink.c.
102343         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102345 2007-09-29  Bruno Haible  <bruno@clisp.org>
102347         * gnulib-tool (func_emit_initmacro_done): Indentation.
102349 2007-09-29  Bruno Haible  <bruno@clisp.org>
102351         * README: Add CVS checkout update instructions.
102352         Info from Bob Proulx <bob@proulx.com>.
102354 2007-09-28  Eric Blake  <ebb9@byu.net>
102356         Provide move-if-change.
102357         * build-aux/move-if-change: New file, based on best practice
102358         rather than any canonical upstream location.
102360 2007-09-28  Jim Meyering  <jim@meyering.net>
102362         Fix canonicalize loop-detection corner case.
102363         Do not attempt to stat the symlink values stored via seen_triple.
102364         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102365         on linux-2.6.18, (but not 2.6.22).
102366         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102367         triple_compare.  The former compares dev,ino,filename, while the latter
102368         would actually stat dirname(filename) when dev and ino were equal.
102369         * lib/hash-triple.c: Install <string.h>.
102370         (STREQ): Define.
102371         (triple_compare_ino_str): New function.
102372         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102374 2007-09-28  Eric Blake  <ebb9@byu.net>
102376         Enforce that AC_REPLACE_FUNCS files exist.
102377         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102378         override check for typos.
102380         Fix test-closein on Solaris 10.
102381         * tests/test-closein.c (main): Don't assume stdin can be inherited
102382         closed on all systems.
102383         * tests/test-closein.sh: Likewise.
102384         Reported by Piotr Tarnowski.
102386 2007-09-28  Jim Meyering  <jim@meyering.net>
102388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102390 2007-09-27  Jim Meyering  <jim@meyering.net>
102392         canonicalize: Avoid a false-positive cycle failure.
102393         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102394         Sort.  Remove cycle-check.
102395         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102396         not cycle-check.h.
102397         (seen_triple): New function.
102398         (canonicalize_filename_mode): Use it instead of cycle-check.
102399         * tests/test-canonicalize.c: Add a test for this bug.
102400         * tests/test-canonicalize.sh: Set up and run the test.
102402         New module, file-set, from coreutils.
102403         * modules/file-set: Define it.
102404         * lib/file-set.c, lib/file-set.h: Implement.
102406         New module, hash-triple, from coreutils.
102407         * modules/hash-triple: Define it.
102408         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102410 2007-09-25  Eric Blake  <ebb9@byu.net>
102412         Fix strerror on Interix.
102413         * lib/string_.h (strerror): Declare replacement.
102414         * doc/functions/strerror.texi (strerror): Document the Interix
102415         shortcoming.
102416         * modules/string (Makefile.am): Support new hooks.
102417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102418         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102419         gl_FUNC_STRERROR_SEPARATE.
102420         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102421         * lib/strerror.c (rpl_strerror): Provide replacement.
102422         * modules/strerror (Depends-on): Add string.
102423         (configure.ac): Detect use of module.
102424         * tests/test-strerror.c: New file.
102425         * modules/strerror-tests: New test module.
102426         * modules/argp (Depends-on): Add strerror.
102427         * modules/error (Depends-on): Likewise.
102428         Reported by Martin Koeppe.
102430 2007-09-24  Bruno Haible  <bruno@clisp.org>
102432         * README: Update git instructions.
102434 2007-09-24  Eric Blake  <ebb9@byu.net>
102436         Revert fpending breakage from 2007-09-08.
102437         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102438         __fpending.c.
102440 2007-09-24  Jim Meyering  <jim@meyering.net>
102442         filenamecat.c: Add a test.
102443         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102444         showing how the function works when DIR is the empty string.
102446 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102448         * tests/test-canonicalize.sh: Turn on executable bit.
102450 2007-09-19  Eric Blake  <ebb9@byu.net>
102452         * README: Update CVS instructions.
102454 2007-09-18  Bruno Haible  <bruno@clisp.org>
102456         * modules/areadlink: New file.
102457         * lib/areadlink.h (areadlink): New declaration.
102458         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102460 2007-09-17  Jim Meyering  <jim@meyering.net>
102462         * lib/savewd.c (ESTALE) [!defined]: Define.
102463         Reported to be required on Interix by Martin Koeppe.
102465 2007-09-17  Bruno Haible  <bruno@clisp.org>
102467         * gnulib-tool (func_version): Use $version.
102469 2007-09-16  Bruno Haible  <bruno@clisp.org>
102471         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102472         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102473         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102474         Reported by Greg Schafer <gschafer@zip.com.au>.
102476 2007-09-15  Bruno Haible  <bruno@clisp.org>
102478         * gnulib-tool (sed): Try a little harder to make bash understand the
102479         alias.
102480         Reported by Bruce Korb <bruce.korb@gmail.com>.
102482 2007-09-13  Eric Blake  <ebb9@byu.net>
102484         * ChangeLog: Remove conflict markers.
102486 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102488         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102489         Reported by Bruno Haible <bruno@clisp.org>.
102491 2007-09-12  Bruno Haible  <bruno@clisp.org>
102493         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102494         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102495         is not defined.
102497 2007-09-12  Eric Blake  <ebb9@byu.net>
102499         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102501         Autoconf definition.
102502         * modules/euidaccess (Depends-on): Add extensions, for
102503         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102504         * modules/fnmatch (Depends-on): Likewise.
102505         * modules/getaddrinfo (Depends-on): Likewise.
102506         * modules/getdelim (Depends-on): Likewise.
102507         * modules/getline (Depends-on): Likewise.
102508         * modules/getsubopt (Depends-on): Likewise.
102509         * modules/gettext (Depends-on): Likewise.
102510         * modules/group-member (Depends-on): Likewise.
102511         * modules/mbchar (Depends-on): Likewise.
102512         * modules/memmem (Depends-on): Likewise.
102513         * modules/mempcpy (Depends-on): Likewise.
102514         * modules/memrchr (Depends-on): Likewise.
102515         * modules/pagealign_alloc (Depends-on): Likewise.
102516         * modules/readutmp (Depends-on): Likewise.
102517         * modules/stpcpy (Depends-on): Likewise.
102518         * modules/stpncpy (Depends-on): Likewise.
102519         * modules/strchrnul (Depends-on): Likewise.
102520         * modules/strndup (Depends-on): Likewise.
102521         * modules/strsep (Depends-on): Likewise.
102522         * modules/strverscmp (Depends-on): Likewise.
102523         * modules/vasprintf (Depends-on): Likewise.
102524         * modules/wcwidth (Depends-on): Likewise.
102525         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102526         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102527         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102529         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102530         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102531         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102532         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102533         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102534         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102535         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102536         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102537         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102538         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102539         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102540         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102541         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102542         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102544         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102545         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102546         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102547         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102548         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102549         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102551         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102552         so that lock.m4 can be used in gettext without extensions module.
102554 2007-09-11  Bruno Haible  <bruno@clisp.org>
102556         * m4/isc-posix.m4: Remove file.
102557         Suggested by Eric Blake.
102559 2007-09-11  Eric Blake  <ebb9@byu.net>
102561         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102563 2007-09-10  Bruno Haible  <bruno@clisp.org>
102565         * posix-modules: Fix typo in error message.
102566         Reported by Matt <mkraai@beckman.com>.
102568 2007-09-09  Bruno Haible  <bruno@clisp.org>
102570         * doc/functions/getdelim.texi: Update list of platforms lacking the
102571         function.
102572         * doc/functions/getline.texi: Likewise.
102574 2007-09-09  Jim Meyering  <jim@meyering.net>
102576         * lib/hash.c (hash_initialize): Detect calloc failure.
102577         Reported by Bruno Haible.
102579 2007-09-09  Bruno Haible  <bruno@clisp.org>
102581         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102582         malloc or realloc fails.
102584 2007-09-09  Bruno Haible  <bruno@clisp.org>
102586         * modules/getcwd (Depends-on): Add malloc-posix.
102587         * modules/glob (Depends-on): Likewise.
102588         * modules/putenv (Depends-on): Likewise.
102589         * modules/strdup (Depends-on): Likewise.
102590         * modules/getdelim (Depends-on): Add realloc-posix.
102591         * modules/read-file (Depends-on): Likewise.
102593 2007-09-09  Bruno Haible  <bruno@clisp.org>
102595         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102596         (gl_FUNC_MALLOC_POSIX): Require it.
102597         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102598         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102599         * modules/realloc (Files): Add m4/malloc.m4.
102600         * modules/calloc (Files): Likewise.
102602 2007-09-09  Bruno Haible  <bruno@clisp.org>
102604         * modules/malloc-posix: New file.
102605         * modules/malloc (Depends-on): Add malloc-posix.
102606         * lib/malloc.c: Include errno.h.
102607         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102608         and a POSIX-compatible malloc into a single function. Set ENOMEM
102609         when returning NULL.
102610         * m4/malloc.m4: New file.
102611         * doc/functions/malloc.texi: Mention the malloc-posix module.
102612         * lib/stdlib_.h (malloc): New declaration.
102613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102614         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102615         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102616         and HAVE_MALLOC_POSIX.
102618 2007-09-09  Bruno Haible  <bruno@clisp.org>
102620         * modules/realloc-posix: New file.
102621         * modules/realloc (Depends-on): Add realloc-posix.
102622         * lib/realloc.c: Include errno.h.
102623         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102624         and a POSIX-compatible realloc into a single function. Set ENOMEM
102625         when returning NULL.
102626         * m4/realloc.m4: New file.
102627         * doc/functions/realloc.texi: Mention the realloc-posix module.
102628         * lib/stdlib_.h (realloc): New declaration.
102629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102630         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102631         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102632         and HAVE_REALLOC_POSIX.
102634 2007-09-09  Bruno Haible  <bruno@clisp.org>
102636         * modules/calloc-posix: New file.
102637         * modules/calloc (Depends-on): Add calloc-posix.
102638         * lib/calloc.c: Include errno.h.
102639         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102640         and a POSIX-compatible calloc into a single function. Set ENOMEM
102641         when returning NULL.
102642         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102643         * doc/functions/calloc.texi: Mention the calloc-posix module.
102644         * lib/stdlib_.h (calloc): New declaration.
102645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102646         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102647         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102648         and HAVE_CALLOC_POSIX.
102650 2007-09-09  Bruno Haible  <bruno@clisp.org>
102652         Allow for modules to show an arbitrary notice.
102653         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102654         * gnulib-tool: New option --extract-notice.
102655         (func_usage): Document it.
102656         (sed_extract_prog): Update.
102657         (func_get_notice): New function.
102658         (func_modules_notice): New function.
102659         (func_import, func_create_testdir): Invoke it.
102660         Suggested by Jim Meyering.
102662 2007-09-09  Bruno Haible  <bruno@clisp.org>
102664         * gnulib-tool: New options --verbose, --quiet.
102665         (func_usage): Document them.
102666         (verbose): New variable.
102667         (func_execute_command): New function.
102668         (func_import): Don't show the module list and the file list if
102669         $verbose < 0.
102670         (func_create_testdir): Likewise. Use func_execute_command.
102671         (func_create_megatestdir): Use func_execute_command.
102673 2007-09-08  Bruno Haible  <bruno@clisp.org>
102675         * gnulib-tool (func_import): Prefer rsync over wget when available,
102676         for fetching the PO files.
102678 2007-09-08  Bruno Haible  <bruno@clisp.org>
102680         * posix-modules: New file. Portions copied from gnulib-tool.
102681         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102683 2007-09-08  Jim Meyering  <jim@meyering.net>
102685         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102686         * lib/fpending.h: Rename from __fpending.h.
102687         * lib/fpending.c: Rename from __fpending.c.
102688         Include "fpending.h", not "__fpending.h".
102689         * lib/__fpending.h, lib/__fpending.c: Remove files.
102690         * modules/fpending (Files): Reflect new file names.
102691         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102693 2007-09-08  Bruno Haible  <bruno@clisp.org>
102695         * m4/inttypes-h.m4: Remove stub file.
102697 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102699         * doc/headers/stdint.texi: Discuss #include_next issue.
102701 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102703         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102705 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102707         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102708         in variable name.
102710 2007-09-03  Jim Meyering  <jim@meyering.net>
102712         New module: git-version-gen.
102713         * modules/git-version-gen: New file.
102715         Import changes from coreutils for bootstrap script.
102717         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102719         bootstrap: uses rsync to download the .po files
102720         * build-aux/bootstrap (po_download_command_format): New global.
102721         (download_po_files): Use rsync.
102722         (update_po_files): Don't remove .po files after download,
102723         so future rsync runs can take advantage of the copies.
102725         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102727         Solve the unnecessary-.po-file-regeneration problem once and for all.
102728         * build-aux/bootstrap (download_po_files): New function, renamed from
102729         get_translations.  Now, downloads, but doesn't update LINGUAS.
102730         (update_po_files): New function.
102732         bootstrap: Ignore more.
102733         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102734         uniwidth to e.g., lib/.gitignore.
102735         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102737         * build-aux/bootstrap: New setting: vc_ignore.
102738         (insert_sorted_if_absent): Create $file if absent.
102739         Adapt to new, possibly empty, list: $vc_ignore.
102741         bootstrap: generate more ignorable names
102742         * build-aux/bootstrap (slurp): When generating ignorable names,
102743         also map .sin to .sed, .gperf to .c, and .y to .c.
102745 2007-09-03  Jim Meyering  <jim@meyering.net>
102747         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102748         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102750 2007-09-02  Bruno Haible  <bruno@clisp.org>
102752         Fix mis-recognition of 'mcs' on QNX 6.
102753         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102754         output contains the string "Mono".
102755         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102756         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102758 2007-09-01  Bruno Haible  <bruno@clisp.org>
102760         Fix collision between uniwidth/* and linebreak modules.
102761         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102762         u32_width): Remove declarations.
102763         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102764         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102765         streq3, streq2, streq1, streq0): Remove functions.
102766         (STREQ): Remove macro.
102767         (is_cjk_encoding): Remove function.
102768         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102769         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102770         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102771         * NEWS: Document the change.
102773 2007-09-01  Bruno Haible  <bruno@clisp.org>
102775         * lib/streq.h: Add double-inclusion guard.
102777 2007-09-01  Karl Berry  <karl@gnu.org>
102779         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102781 2007-08-28  Jim Meyering  <jim@meyering.net>
102783         Rename mreadlink_with_size to areadlink_with_size.
102784         * NEWS: Document the change.
102785         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102786         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102787         * lib/mreadlink.h: Rename this to...
102788         * lib/areadlink.h: ...this.
102789         * modules/mreadlink-with-size: Rename this to...
102790         * modules/areadlink-with-size: ...this.
102791         * lib/canonicalize.c: Reflect the renaming.
102792         * modules/canonicalize: Likewise.
102794 2007-08-26  Bruno Haible  <bruno@clisp.org>
102796         * gnulib-tool (func_import): When deciding which files to remove,
102797         consider also dangling symbolic links.
102798         Reported by Eric Blake.
102800 2007-08-26  Bruno Haible  <bruno@clisp.org>
102802         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102804 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102806         * lib/readline.c: Don't include getline.h, the prototype is now
102807         found in stdio.h.
102809 2007-08-23  Jim Meyering  <jim@meyering.net>
102811         Getdelim touchup.
102812         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102813         around the funlockfile call, since funlockfile never sets errno.
102814         Don't set errno upon failed realloc.
102816 2007-08-22  Eric Blake  <ebb9@byu.net>
102818         Getline touchups.
102819         * lib/getdelim.c (getdelim): Revert regression that required *n to
102820         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102822         getdelim, rather than whether implementation is missing.
102823         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102824         * lib/stdio_.h (getline): Also declare if replacement is
102825         required.
102826         * doc/functions/getdelim.texi: New file.
102827         * doc/functions/getline.texi: Likewise.
102828         * doc/gnulib.texi (Function Substitutes): Add new files.
102829         Reported by Bruno Haible.
102831 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102833         * users.txt: Add Guile.
102835 2007-08-22  Eric Blake  <ebb9@byu.net>
102837         * tests/test-getdelim.c (main): Use remove, not unlink.
102838         * tests/test-getline.c (main): Likewise.
102840         Move getline and getdelim into stdio.h, per POSIX 200x.
102841         * modules/getline (Files): Remove getline.h.
102842         (Depends-on): Add stdio.
102843         (configure.ac): Add module indicator.
102844         * modules/getdelim (Files): Remove getdelim.h.
102845         (Depends-on): Add stdio.
102846         (configure.ac): Add module indicator.
102847         * modules/stdio (Makefile.am): Work with new indicators.
102848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102849         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102850         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102851         * lib/getdelim.h: Delete.
102852         * lib/getline.h: Delete.
102853         * lib/stdio_.h (getdelim, getline): Declare.
102854         * modules/getdelim-tests: New module.
102855         * modules/getline-tests: Likewise.
102856         * tests/test-getdelim.c: New file.
102857         * tests/test-getline.c: Likewise.
102858         * NEWS: Document the change.
102859         * lib/getline.c: Update choice of header.
102860         * lib/csharpcomp.c: Likewise.
102861         * lib/getpass.c: Likewise.
102862         * lib/javacomp.c: Likewise.
102863         * lib/javaversion.c: Likewise.
102864         * lib/yesno.c: Likewise.
102865         * lib/getdelim.c: Likewise.
102866         (getdelim): Set errno on failure, and avoid memory leak.
102868 2007-08-19  Bruno Haible  <bruno@clisp.org>
102870         * modules/closein (Depends-on): Add freadahead.
102871         * lib/closein.c: Include freadahead.h.
102872         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102873         is zero.
102875 2007-08-19  Bruno Haible  <bruno@clisp.org>
102877         * modules/freadahead-tests: New file.
102878         * tests/test-freadahead.sh: New file.
102879         * tests/test-freadahead.c: New file.
102881         * modules/freadahead: New file.
102882         * lib/freadahead.h: New file.
102883         * lib/freadahead.c: New file.
102884         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102885         fbufmode, fpurge, freadable, fwritable.
102887 2007-08-19  Eric Blake  <ebb9@byu.net>
102889         Test yesno in combination with closein.
102890         * lib/yesno.c (yesno): Document use of stdin.
102891         * modules/yesno-tests (Files): New module.
102892         * tests/test-yesno.c (main): New file.
102893         * tests/test-yesno.sh: Likewise.
102895 2007-08-19  Bruno Haible  <bruno@clisp.org>
102897         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102898         * lib/fseeko.c (rpl_fseeko): Likewise.
102899         * lib/fseterr.c (fseterr): Likewise.
102901 2007-08-19  Bruno Haible  <bruno@clisp.org>
102903         * tests/test-lseek.c (main): Disable a test for BeOS.
102904         * doc/functions/lseek.texi: Document the BeOS bug.
102906 2007-08-19  Bruno Haible  <bruno@clisp.org>
102907             Eric Blake  <ebb9@byu.net>
102909         * lib/lseek.c: Include <sys/stat.h>.
102910         (rpl_lseek): Add workaround code also for Unix platforms.
102911         Needed for BeOS.
102912         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102913         * doc/functions/lseek.texi: Document BeOS definiency.
102915 2007-08-18  Bruno Haible  <bruno@clisp.org>
102917         * modules/fstrcmp-tests: New file.
102918         * tests/test-fstrcmp.c: New file.
102920 2007-08-18  Bruno Haible  <bruno@clisp.org>
102922         * modules/fstrcmp: New file, from GNU gettext with modifications.
102923         * lib/fstrcmp.h: New file, from GNU gettext.
102924         * lib/fstrcmp.c: New file, from GNU gettext.
102925         * MODULES.html.sh (String handling): Add fstrcmp.
102927 2007-08-18  Bruno Haible  <bruno@clisp.org>
102929         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102930         'bool'.
102931         (diag, compareseq): Remove const from the ctxt argument.
102932         (USE_HEURISTIC): Undefine at the end.
102934 2007-08-18  Jim Meyering  <jim@meyering.net>
102936         New file: lib/idcache.h
102937         * NEWS: Mention the addition.
102938         * modules/idcache (Files): Add lib/idcache.h
102939         * lib/idcache.c: Include "idcache.h".
102940         Don't include <sys/types.h>.
102941         Add a FIXME comment.
102942         Move file-scoped "static" declarations to the top.
102943         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102945 2007-08-17  Bruno Haible  <bruno@clisp.org>
102946         and Paul Eggert  <eggert@cs.ucla.edu>
102948         * MODULES.html.sh: Add diffseq.
102949         * modules/diffseq: New file.
102950         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102951         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102953 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102955         Import changes from coreutils for bootstrap script.
102957         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102959         * build-aux/bootstrap (slurp): Work even in environments where
102960         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102961         current code does not slurp files whose names start with ".", and
102962         this looks like it might be a troublesome area.
102964         2007-07-11  Jim Meyering  <jim@meyering.net>
102966         If there's a GPL vN copyright comment, require that N == 3.
102968         2007-07-08  Jim Meyering  <jim@meyering.net>
102970         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102971         * build-aux/bootstrap (mam_template): Move definition out of loop.
102973         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102975         * build-aux/bootstrap (symlink_to_dir): Rename function from
102976         symlink_to_gnulib.  Add a directory parameter.  Update all
102977         callers.
102978         (cp_mark_as_generated): Also check for -- and link to -- files in
102979         gl/.
102981         2007-07-08  Jim Meyering  <jim@meyering.net>
102983         Adapt to deeper hierarchy in gnulib.
102984         * build-aux/bootstrap (symlink_to_dir): If the destination
102985         directory doesn't exist, create it. This is required at least for
102986         "lib/uniwidth/cjk.h".
102988         2007-05-15  Jim Meyering  <jim@meyering.net>
102990         * build-aux/bootstrap: Now that generated Makefile.am files
102991         are no longer under version control, they must be created at
102992         bootstrap time.
102994 2007-08-14  Ben Pfaff  <blp@gnu.org>
102996         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102998 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103000         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
103001         given the changes below.
103002         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
103003         even on hosts that have padding bits beyond the supported 64.
103005 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103007         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
103008         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
103009         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
103010         depends on it.
103011         (xstrtol_error): Remove.
103012         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
103013         but with a different signature.
103014         (ATTRIBUTE_NORETURN, __attribute__): New macros.
103015         * lib/xstrtol-error.c: Include exitfail.h.
103016         (xstrtol_fatal): New function, with a different signature from the
103017         old xstrtol_error, so that the caller need not worry about passing
103018         in an exit status, or about storage management of the option argument.
103019         (xstrtol_error): Now a static function.  Redo signature to
103020         implement xstrtol_fatal.  Output the correct number of hyphens in
103021         front of the option so that the caller need not worry about
103022         storage management.
103023         (N_): New macro.
103024         (_): Remove; not used now.
103025         * modules/xstrtol: Depend on getopt.
103026         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
103027         of old STRTOL_FATAL_ERROR macro.
103028         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
103029         of test program.
103030         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
103031         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
103033 2007-08-08  Eric Blake  <ebb9@byu.net>
103035         * lib/xstrtol-error.c: Add missing include.
103037         Move xstrtol messages into gnulib domain, when --pobase is used.
103038         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
103039         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
103040         * modules/xstrtol (Files): Distribute new file.
103041         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
103042         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
103043         * tests/test-xstrtol.c: ...into new file.
103044         * tests/test-xstrtoul.c: Also test xstrtoul.
103045         * tests/test-xstrtoimax.c: Also test xstrtoimax.
103046         * tests/test-xstrtoumax.c: Also test xstrtoumax.
103047         * tests/test-xstrtol.sh: Drive the tests.
103048         * tests/test-xstrtoimax.sh: Likewise.
103049         * tests/test-xstrtoumax.sh: Likewise.
103050         * modules/xstrtol-tests: New module.
103051         * modules/xstrtoimax-tests: Likewise.
103052         * modules/xstrtoumax-tests: Likewise.
103054 2007-08-08  Jim Meyering  <jim@meyering.net>
103056         New function: mfile_name_concat.
103057         * lib/filenamecat.c (mfile_name_concat): New function, just like
103058         file_name_concat, but return NULL upon failure rather than exiting
103059         with a diagnostic.
103060         * lib/filenamecat.h: Declare it.
103062 2007-08-07  Bruno Haible  <bruno@clisp.org>
103064         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
103065         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
103066         warning from gcc.
103067         Reported by Eric Blake.
103069 2007-08-07  Simon Josefsson  <simon@josefsson.org>
103071         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
103072         * modules/crypto/arcfour (License): Likewise.
103073         * modules/crypto/des-tests (License): Likewise.
103074         * modules/crypto/gc-arctwo-tests (License): Likewise.
103075         * modules/crypto/gc-des-tests (License): Likewise.
103076         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
103077         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
103078         * modules/crypto/gc-md2-tests (License): Likewise.
103079         * modules/crypto/gc-md4-tests (License): Likewise.
103080         * modules/crypto/gc-md5-tests (License): Likewise.
103081         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
103082         * modules/crypto/gc-rijndael-tests (License): Likewise.
103083         * modules/crypto/gc-sha1-tests (License): Likewise.
103084         * modules/crypto/gc-tests (License): Likewise.
103085         * modules/crypto/hmac-md5 (License): Likewise.
103086         * modules/crypto/hmac-sha1 (License): Likewise.
103087         * modules/crypto/md2-tests (License): Likewise.
103088         * modules/crypto/md4-tests (License): Likewise.
103089         * modules/crypto/md5 (License): Likewise.
103090         * modules/crypto/rijndael (License): Likewise.
103091         * modules/crypto/sha1 (License): Likewise.
103092         * modules/memxor (License): Likewise.
103094 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103095         and Bruno Haible  <bruno@clisp.org>
103097         * NEWS: Describe interface changes to human, xstrtol.
103098         * lib/human.h: Include <xstrtol.h>.
103099         (human_options): Return enum strtol_error, not int.  Remove
103100         bool arg; take int * instead.
103101         * lib/human.c: Don't include "gettext.h".
103102         (_): Remove; no longer used.
103103         Don't include <xstrtol.h>, since human.h does it.
103104         (human_options): Adjust to abovementioned interface changes.
103105         Do not report error to stderr; that's now the caller's
103106         responsibility.
103107         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
103108         interface change.
103109         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
103110         Str, Argument_type_string.  All uses changed.  Put " argument"
103111         in diagnostics to make them clearer.  Change wording of suffix
103112         message for clarity.
103113         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
103114         Argument_type_string.
103115         (STRTOL_FATAL_WARN): Remove; no longer used.
103116         * modules/human (Depends-on): Remove gettext-h.
103118 2007-08-06  Simon Josefsson  <simon@josefsson.org>
103120         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
103122 2007-07-31  Bruno Haible  <bruno@clisp.org>
103124         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
103125         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
103126         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
103128 2007-07-31  Bruno Haible  <bruno@clisp.org>
103130         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
103131         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
103133 2007-07-30  Bruno Haible  <bruno@clisp.org>
103135         * modules/base64 (License): Use the synonymous term "LGPLv2+".
103136         * modules/c-ctype (License): Likewise.
103137         * modules/c-strcase (License): Likewise.
103138         * modules/check-version (License): Likewise.
103139         * modules/iconv (License): Likewise.
103140         * modules/iconv_open (License): Likewise.
103141         * modules/read-file (License): Likewise.
103142         * modules/striconv (License): Likewise.
103143         * modules/strverscmp (License): Likewise.
103144         * modules/vasprintf (License): Likewise.
103145         * modules/crypto/des (License): Likewise.
103146         * modules/crypto/gc (License): Likewise.
103147         * modules/crypto/gc-arcfour (License): Likewise.
103148         * modules/crypto/gc-arctwo (License): Likewise.
103149         * modules/crypto/gc-des (License): Likewise.
103150         * modules/crypto/gc-hmac-md5 (License): Likewise.
103151         * modules/crypto/gc-hmac-sha1 (License): Likewise.
103152         * modules/crypto/gc-md2 (License): Likewise.
103153         * modules/crypto/gc-md4 (License): Likewise.
103154         * modules/crypto/gc-md5 (License): Likewise.
103155         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
103156         * modules/crypto/gc-random (License): Likewise.
103157         * modules/crypto/gc-rijndael (License): Likewise.
103158         * modules/crypto/gc-sha1 (License): Likewise.
103159         * modules/crypto/md2 (License): Likewise.
103160         * modules/crypto/md4 (License): Likewise.
103162 2007-07-30  Jim Meyering  <jim@meyering.net>
103164         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
103165         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
103166         it has valid stat data.  This bug would cause du not to count the
103167         sizes of inaccessible directories.
103168         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
103169         in <http://bugzilla.redhat.com/250077>.
103171 2007-07-25  Peter O'Gorman  <peter@pogma.com>
103172             Bruno Haible  <bruno@clisp.org>
103174         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
103175         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
103176         #include_next, gives a diagnostic about it, but reports no error in
103177         the exit code.
103178         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
103180 2007-07-24  Ben Pfaff  <blp@gnu.org>
103182         Improve name: "count-one-bits" is better than "popcount".
103183         * MODULES.html.sh: Update name.
103184         * lib/popcount.h: Renamed lib/count-one-bits.h.
103185         (popcount): Renamed count_one_bits.
103186         (popcountl): Renamed count_one_bits_l.
103187         (popcountll): Renamed count_one_bits_ll.
103188         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
103189         * modules/popcount: Renamed module/count-one-bits.
103190         * modules/popcount-tests: Renamed module/count-one-bits-tests.
103191         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
103193 2007-07-23  Ben Pfaff  <blp@gnu.org>
103195         * lib/popcount.h (popcount32): Reduce size of constants, to allow
103196         better code generation, and add U to large constants to avoid
103197         warnings, in non-GCC case.
103198         Suggested by Bruno Haible.
103200 2007-07-23  Ben Pfaff  <blp@gnu.org>
103202         * lib/popcount.h: Use verify_true instead of if...abort.
103203         * modules/popcount: Depend on verify module.
103204         Suggested by Jim Meyering.
103206 2007-07-23  Bruno Haible  <bruno@clisp.org>
103208         * gnulib-tool (func_import): Create a .cvsignore file also when the
103209         directory is not yet in CVS but the toplevel directory is. When
103210         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
103211         Reported by Karl Berry.
103213 2007-07-22  Ben Pfaff  <blp@gnu.org>
103215         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
103216         case.
103217         Suggested by Eric Blake.
103219 2007-07-22  Ben Pfaff  <blp@gnu.org>
103221         New module: popcount.
103222         * MODULES.html.sh: Add popcount.
103223         * modules/popcount: New file.
103224         * modules/popcount-tests: New file.
103225         * tests/test-popcount.c: New file.
103226         * lib/popcount.h: New file.
103227         * m4/popcount.m4: New file.
103229 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
103231         * build-aux/announce-gen: Update to GPLv3.
103233         * build-aux/config.guess: Update from config.
103235 2007-07-21  Bruno Haible  <bruno@clisp.org>
103237         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
103238         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
103240 2007-07-20  Jim Meyering  <jim@meyering.net>
103242         * check-module: Diagnose a self-dependency.
103244 2007-07-19  Bruno Haible  <bruno@clisp.org>
103246         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
103247         empty.
103248         Reported by Eric Blake.
103250 2007-07-18  Bruno Haible  <bruno@clisp.org>
103252         * gnulib-tool: New options --po-base, --po-domain.
103253         (func_usage): Document them.
103254         (pobase, po_domain): New variables.
103255         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
103256         DEFAULT_TEXT_DOMAIN.
103257         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
103258         (func_import): Consider pobase and po_domain. Create a po/ directory.
103259         (func_create_testdir): Set pobase and po_domain to empty.
103260         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
103261         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
103263 2007-07-18  Bruno Haible  <bruno@clisp.org>
103265         * gnulib-tool (func_get_automake_snippet): Synthesize also an
103266         EXTRA_DIST augmentation for files in build-aux/.
103268 2007-07-16  Bruno Haible  <bruno@clisp.org>
103270         * modules/lseek (License): Use the synonymous term "LGPLv2+".
103271         * modules/getdelim (License): Likewise.
103273 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103275         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
103276         * modules/d-type (License): Likewise.
103277         * modules/extensions (License): Likewise.
103278         * modules/fnmatch (License): Likewise.
103279         * modules/fseeko (License): Likewise.
103280         * modules/getaddrinfo (License): Likewise.
103281         * modules/getline (License): Likewise.
103282         * modules/getlogin_r (License): Likewise.
103283         * modules/getpass (License): Likewise.
103284         * modules/gettimeofday (License): Likewise.
103285         * modules/glob (License): Likewise.
103286         * modules/inet_ntop (License): Likewise.
103287         * modules/malloc (License): Likewise.
103288         * modules/malloca (License): Likewise.
103289         * modules/memmem (License): Likewise.
103290         * modules/mempcpy (License): Likewise.
103291         * modules/memset (License): Likewise.
103292         * modules/minmax (License): Likewise.
103293         * modules/mktime (License): Likewise.
103294         * modules/netinet_in (License): Likewise.
103295         * modules/pathmax (License): Likewise.
103296         * modules/poll (License): Likewise.
103297         * modules/regex (License): Likewise.
103298         * modules/snprintf (License): Likewise.
103299         * modules/stdbool (License): Likewise.
103300         * modules/stdint (License): Likewise.
103301         * modules/stdio (License): Likewise.
103302         * modules/strcase (License): Likewise.
103303         * modules/strcasestr (License): Likewise.
103304         * modules/strdup (License): Likewise.
103305         * modules/string (License): Likewise.
103306         * modules/strndup (License): Likewise.
103307         * modules/strnlen (License): Likewise.
103308         * modules/strpbrk (License): Likewise.
103309         * modules/strptime (License): Likewise.
103310         * modules/strsep (License): Likewise.
103311         * modules/sys_select (License): Likewise.
103312         * modules/sys_socket (License): Likewise.
103313         * modules/sys_stat (License): Likewise.
103314         * modules/sys_time (License): Likewise.
103315         * modules/time (License): Likewise.
103316         * modules/time_r (License): Likewise.
103317         * modules/timegm (License): Likewise.
103318         * modules/unistd (License): Likewise.
103319         * modules/vsnprintf (License): Likewise.
103320         * modules/wctype (License): Likewise.
103322 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103324         * modules/argz (License): LGPLv2+.
103326 2007-07-15  Karl Berry  <karl@gnu.org>
103328         * doc/gnulib.texi: revise node structure per new fdl.texi.
103330 2007-07-14  Bruno Haible  <bruno@clisp.org>
103332         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103333         the output file.
103334         * lib/uniname/uninames.h: Regenerated.
103336 2007-07-14  Karl Berry  <karl@gnu.org>
103338         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103339         omitting sectioning and index commands.
103341 2007-07-13  Bruno Haible  <bruno@clisp.org>
103343         New gnulib-tool option --more-symlinks.
103344         * gnulib-tool (func_usage): Document --more-symlinks.
103345         (do_copyrights): New variable.
103346         Recognize option --more-symlinks.
103347         (func_import): Don't add a copyright notice transform to
103348         sed_transform_lib_file if do_copyrights is empty.
103350 2007-07-13  Bruno Haible  <bruno@clisp.org>
103352         * lib/vasnprintf.c (decimal_point_char): Define also if
103353         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103354         && !NEED_PRINTF_DIRECTIVE_A.
103355         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103356         Gary V. Vaughan <gary@gnu.org>.
103358 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103360         * lib/inttypes_.h: Undo previous change, since it was fixed
103361         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103363 2007-07-13  Bruno Haible  <bruno@clisp.org>
103365         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103366         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103368 2007-07-13  Jim Meyering  <jim@meyering.net>
103370         df: Don't fail for Tru64's "file-on-file mount".
103371         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103372         so we fall through and use statfs instead.  Details here:
103373         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103374         Reported by Albert Chin.
103376 2007-07-13  Bruno Haible  <bruno@clisp.org>
103378         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103379         * modules/configmake (License): Likewise.
103380         * modules/gettext (License): Likewise.
103381         * modules/gettext-h (License): Likewise.
103382         * modules/include_next (License): Likewise.
103383         * modules/link-warning (License): Likewise.
103384         * modules/localcharset (License): Likewise.
103385         * modules/localename (License): Likewise.
103386         * modules/lock (License): Likewise.
103387         * modules/relocatable-lib-lgpl (License): Likewise.
103388         * modules/size_max (License): Likewise.
103389         * modules/vasnprintf (License): Likewise.
103390         * modules/wchar (License): Likewise.
103391         * modules/xsize (License): Likewise.
103393 2007-07-13  Bruno Haible  <bruno@clisp.org>
103395         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103396         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103398 2007-07-12  Bruno Haible  <bruno@clisp.org>
103400         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103401         in the modules files.
103403 2007-07-11  Karl Berry  <karl@gnu.org>
103405         * MODULES.html.sh (func_module): use
103406          sed -e '\|^'"${includefile}"'$|d'
103407          instead of /.../d, to avoid errors on $includefile's containing /.
103409 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103411         * gnulib-tool (func_import): Avoid duplication of --avoid
103412         statements
103413         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103414         names to `_' in variable names.
103416 2007-07-10  Eric Blake  <ebb9@byu.net>
103418         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103419         * NEWS: Document this change.
103421 2007-07-08  Bruno Haible  <bruno@clisp.org>
103423         Update to Unicode 5.0.
103424         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103425         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103426         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103427         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103428         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103429         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103430         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103431         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103432         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103433         U+10A3F, U+1D242..U+1D244.
103434         (nonspacing_table_ind): Update.
103435         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103436         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103438 2007-07-08  Bruno Haible  <bruno@clisp.org>
103440         Update to Unicode 5.0.
103441         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103442         code transform. Extend the name index field of unicode_name_to_code and
103443         unicode_code_to_name from 16 to 24 bits.
103444         * lib/uniname/uniname.c (unicode_character_name,
103445         unicode_name_character): Add the range 0x12xxx to the code transform.
103446         * lib/uniname/uninames.h: Regenerated.
103447         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103449 2007-07-07  Bruno Haible  <bruno@clisp.org>
103451         * modules/wcwidth-tests: New file.
103452         * tests/test-wcwidth.c: New file.
103454         Work around MacOS X wcwidth() bug.
103455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103456         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103457         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103458         original wcwidth in non-UTF-8 locales.
103459         * modules/wcwidth (Depends-on): Add localcharset, streq,
103460         uniwidth/width.
103461         * doc/functions/wcwidth.texi: Update.
103463 2007-07-07  Bruno Haible  <bruno@clisp.org>
103465         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103466         (wcwidth): New declaration.
103467         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103468         macros.
103469         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103470         here. Prepare for creating <wchar.h> unconditionally.
103471         * modules/wchar (Depends-on): Add link-warning.
103472         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103473         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103474         * lib/wcwidth.h: Remove file.
103475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103476         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103477         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103478         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103479         (Include): Replace wcwidth.h with <wchar.h>.
103480         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103481         * lib/mbchar.h: Don't include wcwidth.h.
103482         * lib/mbswidth.c: Likewise.
103483         * NEWS: Mention the change.
103485 2007-07-07  Bruno Haible  <bruno@clisp.org>
103487         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103488         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103489         definition with an external declaration.
103490         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103491         defined as a function. Remove AC_C_INLINE requirement.
103492         * modules/wcwidth (Files): Add lib/wcwidth.c.
103493         (Makefile.am): Remove redundant statement.
103495 2007-07-07  Bruno Haible  <bruno@clisp.org>
103497         * MODULES.html.sh (Unicode string functions): Add the new modules.
103499         * tests/uniwidth/test-u32-strwidth.c: New file.
103500         * modules/uniwidth/u32-strwidth-tests: New file.
103502         * lib/uniwidth/u32-strwidth.c: New file.
103503         * modules/uniwidth/u32-strwidth: New file.
103505         * tests/uniwidth/test-u16-strwidth.c: New file.
103506         * modules/uniwidth/u16-strwidth-tests: New file.
103508         * lib/uniwidth/u16-strwidth.c: New file.
103509         * modules/uniwidth/u16-strwidth: New file.
103511         * tests/uniwidth/test-u8-strwidth.c: New file.
103512         * modules/uniwidth/u8-strwidth-tests: New file.
103514         * lib/uniwidth/u8-strwidth.c: New file.
103515         * modules/uniwidth/u8-strwidth: New file.
103517         * tests/uniwidth/test-u32-width.c: New file.
103518         * modules/uniwidth/u32-width-tests: New file.
103520         * lib/uniwidth/u32-width.c: New file.
103521         * modules/uniwidth/u32-width: New file.
103523         * tests/uniwidth/test-u16-width.c: New file.
103524         * modules/uniwidth/u16-width-tests: New file.
103526         * lib/uniwidth/u16-width.c: New file.
103527         * modules/uniwidth/u16-width: New file.
103529         * tests/uniwidth/test-u8-width.c: New file.
103530         * modules/uniwidth/u8-width-tests: New file.
103532         * lib/uniwidth/u8-width.c: New file.
103533         * modules/uniwidth/u8-width: New file.
103535         * tests/uniwidth/test-uc_width.c: New file.
103536         * modules/uniwidth/width-tests: New file.
103538         * lib/uniwidth/width.c: New file, from GNU libiconv.
103539         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103540         * modules/uniwidth/width: New file.
103542         * lib/uniwidth.h: New file, from GNU libiconv.
103543         * modules/uniwidth/base: New file.
103545 2007-07-07  Bruno Haible  <bruno@clisp.org>
103547         * lib/uniname.h: New file, from GNU gettext.
103548         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103549         * lib/uniname/uninames.h: New file, from GNU gettext.
103550         * lib/uniname/uniname.c: New file, from GNU gettext.
103551         * tests/uniname/test-uninames.sh: New file.
103552         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103553         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103554         * modules/uniname/base: New file.
103555         * modules/uniname/uniname: New file.
103556         * modules/uniname/uniname-tests: New file.
103557         * MODULES.html.sh (Unicode string functions): Add the new modules.
103559 2007-07-06  Bruno Haible  <bruno@clisp.org>
103561         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103563 2007-07-06  Bruno Haible  <bruno@clisp.org>
103565         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103566         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103567         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103568         include <sys/time.h>.
103569         Reported by Eric Blake.
103571 2007-07-06  Eric Blake  <ebb9@byu.net>
103573         Fix testing canonicalize on cygwin.
103574         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103575         Revert patch from 2007-06-19.
103576         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103577         canonicalize module is also in use.
103578         * tests/test-canonicalize.c: New file.
103579         * tests/test-canonicalize.sh: Likewise.
103580         * modules/canonicalize-tests: Likewise.
103582 2007-07-06  Jim Meyering  <jim@meyering.net>
103584         * lib/getugroups.c (getugroups): Detect getgrent failure.
103585         Adjust comment to reflect reality: this function may return -1.
103587 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103589         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103590         the new TP address.
103591         (usage): Fix typo
103592         (gnulib_mk): New variable.
103594 2007-07-05  Jim Meyering  <jim@meyering.net>
103596         Don't let endgrent clobber errno, no matter how improbable.
103597         * lib/getugroups.c (getugroups): Save and restore errno around
103598         endgrent call.
103600         Close the group DB even when failing with 2^31 or more members.
103601         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103603 2007-07-04  Jim Meyering  <jim@meyering.net>
103605         * lib/getugroups.h: New file.
103606         * lib/getugroups.c: Include "getugroups.h".
103607         Remove uses of "register" keyword.
103608         Move local variable, "cp", down into scope where used.
103609         Give "username" parameter the "const" attribute.
103610         * modules/getugroups (Files): Add lib/getugroups.h
103612 2007-07-04  Karl Berry  <karl@gnu.org>
103614         * MODULES.html.sh (func_all_modules): Complete rename of
103615         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103617 2007-07-02  Bruno Haible  <bruno@clisp.org>
103619         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103620         mode, when inttypes.h comes from gnulib.
103621         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103623 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103625         * NEWS: Mention lgpl module name change.
103627         * modules/lgpl-2.1: Renamed from lgpl.
103629         * NEWS: Mention gpl module name change.
103631         * modules/gpl-3.0: New file, based on gpl-2.0.
103633         * modules/gpl-2.0: Renamed from gpl.
103635         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103636         doc/gpl-2.0.texi.
103638 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103640         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103641         #define __STDC_LIMIT_MACROS temporarily while including
103642         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103643         Problem reported by Joel E. Denny in
103644         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103646 2007-07-01  Bruno Haible  <bruno@clisp.org>
103648         * lib/unistdio.h: New file.
103649         * lib/unistdio/u-asnprintf.h: New file.
103650         * lib/unistdio/u-asprintf.h: New file.
103651         * lib/unistdio/u-printf-args.c: New file.
103652         * lib/unistdio/u-printf-args.h: New file.
103653         * lib/unistdio/u-printf-parse.h: New file.
103654         * lib/unistdio/u-snprintf.h: New file.
103655         * lib/unistdio/u-sprintf.h: New file.
103656         * lib/unistdio/u-vasprintf.h: New file.
103657         * lib/unistdio/u-vsnprintf.h: New file.
103658         * lib/unistdio/u-vsprintf.h: New file.
103659         * lib/unistdio/ulc-asnprintf.c: New file.
103660         * lib/unistdio/ulc-asprintf.c: New file.
103661         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103662         * lib/unistdio/ulc-printf-parse.c: New file.
103663         * lib/unistdio/ulc-snprintf.c: New file.
103664         * lib/unistdio/ulc-sprintf.c: New file.
103665         * lib/unistdio/ulc-vasnprintf.c: New file.
103666         * lib/unistdio/ulc-vasprintf.c: New file.
103667         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103668         * lib/unistdio/ulc-vsnprintf.c: New file.
103669         * lib/unistdio/ulc-vsprintf.c: New file.
103670         * lib/unistdio/u8-asnprintf.c: New file.
103671         * lib/unistdio/u8-asprintf.c: New file.
103672         * lib/unistdio/u8-printf-parse.c: New file.
103673         * lib/unistdio/u8-snprintf.c: New file.
103674         * lib/unistdio/u8-sprintf.c: New file.
103675         * lib/unistdio/u8-vasnprintf.c: New file.
103676         * lib/unistdio/u8-vasprintf.c: New file.
103677         * lib/unistdio/u8-vsnprintf.c: New file.
103678         * lib/unistdio/u8-vsprintf.c: New file.
103679         * lib/unistdio/u8-u8-asnprintf.c: New file.
103680         * lib/unistdio/u8-u8-asprintf.c: New file.
103681         * lib/unistdio/u8-u8-snprintf.c: New file.
103682         * lib/unistdio/u8-u8-sprintf.c: New file.
103683         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103684         * lib/unistdio/u8-u8-vasprintf.c: New file.
103685         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103686         * lib/unistdio/u8-u8-vsprintf.c: New file.
103687         * lib/unistdio/u16-asnprintf.c: New file.
103688         * lib/unistdio/u16-asprintf.c: New file.
103689         * lib/unistdio/u16-printf-parse.c: New file.
103690         * lib/unistdio/u16-snprintf.c: New file.
103691         * lib/unistdio/u16-sprintf.c: New file.
103692         * lib/unistdio/u16-vasnprintf.c: New file.
103693         * lib/unistdio/u16-vasprintf.c: New file.
103694         * lib/unistdio/u16-vsnprintf.c: New file.
103695         * lib/unistdio/u16-vsprintf.c: New file.
103696         * lib/unistdio/u16-u16-asnprintf.c: New file.
103697         * lib/unistdio/u16-u16-asprintf.c: New file.
103698         * lib/unistdio/u16-u16-snprintf.c: New file.
103699         * lib/unistdio/u16-u16-sprintf.c: New file.
103700         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103701         * lib/unistdio/u16-u16-vasprintf.c: New file.
103702         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103703         * lib/unistdio/u16-u16-vsprintf.c: New file.
103704         * lib/unistdio/u32-asnprintf.c: New file.
103705         * lib/unistdio/u32-asprintf.c: New file.
103706         * lib/unistdio/u32-printf-parse.c: New file.
103707         * lib/unistdio/u32-snprintf.c: New file.
103708         * lib/unistdio/u32-sprintf.c: New file.
103709         * lib/unistdio/u32-vasnprintf.c: New file.
103710         * lib/unistdio/u32-vasprintf.c: New file.
103711         * lib/unistdio/u32-vsnprintf.c: New file.
103712         * lib/unistdio/u32-vsprintf.c: New file.
103713         * lib/unistdio/u32-u32-asnprintf.c: New file.
103714         * lib/unistdio/u32-u32-asprintf.c: New file.
103715         * lib/unistdio/u32-u32-snprintf.c: New file.
103716         * lib/unistdio/u32-u32-sprintf.c: New file.
103717         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103718         * lib/unistdio/u32-u32-vasprintf.c: New file.
103719         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103720         * lib/unistdio/u32-u32-vsprintf.c: New file.
103721         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103722         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103723         * tests/unistdio/test-ulc-printf1.h: New file.
103724         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103725         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103726         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103727         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103728         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103729         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103730         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103731         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103732         * tests/unistdio/test-u8-asnprintf1.c: New file.
103733         * tests/unistdio/test-u8-asnprintf1.h: New file.
103734         * tests/unistdio/test-u8-printf1.h: New file.
103735         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103736         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103737         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103738         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103739         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103740         * tests/unistdio/test-u8-vasprintf1.c: New file.
103741         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103742         * tests/unistdio/test-u8-vsprintf1.c: New file.
103743         * tests/unistdio/test-u16-asnprintf1.c: New file.
103744         * tests/unistdio/test-u16-asnprintf1.h: New file.
103745         * tests/unistdio/test-u16-printf1.h: New file.
103746         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103747         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103748         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103749         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103750         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103751         * tests/unistdio/test-u16-vasprintf1.c: New file.
103752         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103753         * tests/unistdio/test-u16-vsprintf1.c: New file.
103754         * tests/unistdio/test-u32-asnprintf1.c: New file.
103755         * tests/unistdio/test-u32-asnprintf1.h: New file.
103756         * tests/unistdio/test-u32-printf1.h: New file.
103757         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103758         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103759         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103760         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103761         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103762         * tests/unistdio/test-u32-vasprintf1.c: New file.
103763         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103764         * tests/unistdio/test-u32-vsprintf1.c: New file.
103765         * modules/unistdio/base: New file.
103766         * modules/unistdio/u-printf-args: New file.
103767         * modules/unistdio/ulc-asnprintf: New file.
103768         * modules/unistdio/ulc-asprintf: New file.
103769         * modules/unistdio/ulc-fprintf: New file.
103770         * modules/unistdio/ulc-printf-parse: New file.
103771         * modules/unistdio/ulc-snprintf: New file.
103772         * modules/unistdio/ulc-sprintf: New file.
103773         * modules/unistdio/ulc-vasnprintf: New file.
103774         * modules/unistdio/ulc-vasprintf: New file.
103775         * modules/unistdio/ulc-vfprintf: New file.
103776         * modules/unistdio/ulc-vsnprintf: New file.
103777         * modules/unistdio/ulc-vsprintf: New file.
103778         * modules/unistdio/u8-asnprintf: New file.
103779         * modules/unistdio/u8-asprintf: New file.
103780         * modules/unistdio/u8-printf-parse: New file.
103781         * modules/unistdio/u8-snprintf: New file.
103782         * modules/unistdio/u8-sprintf: New file.
103783         * modules/unistdio/u8-vasnprintf: New file.
103784         * modules/unistdio/u8-vasprintf: New file.
103785         * modules/unistdio/u8-vsnprintf: New file.
103786         * modules/unistdio/u8-vsprintf: New file.
103787         * modules/unistdio/u8-u8-asnprintf: New file.
103788         * modules/unistdio/u8-u8-asprintf: New file.
103789         * modules/unistdio/u8-u8-snprintf: New file.
103790         * modules/unistdio/u8-u8-sprintf: New file.
103791         * modules/unistdio/u8-u8-vasnprintf: New file.
103792         * modules/unistdio/u8-u8-vasprintf: New file.
103793         * modules/unistdio/u8-u8-vsnprintf: New file.
103794         * modules/unistdio/u8-u8-vsprintf: New file.
103795         * modules/unistdio/u16-asnprintf: New file.
103796         * modules/unistdio/u16-asprintf: New file.
103797         * modules/unistdio/u16-printf-parse: New file.
103798         * modules/unistdio/u16-snprintf: New file.
103799         * modules/unistdio/u16-sprintf: New file.
103800         * modules/unistdio/u16-vasnprintf: New file.
103801         * modules/unistdio/u16-vasprintf: New file.
103802         * modules/unistdio/u16-vsnprintf: New file.
103803         * modules/unistdio/u16-vsprintf: New file.
103804         * modules/unistdio/u16-u16-asnprintf: New file.
103805         * modules/unistdio/u16-u16-asprintf: New file.
103806         * modules/unistdio/u16-u16-snprintf: New file.
103807         * modules/unistdio/u16-u16-sprintf: New file.
103808         * modules/unistdio/u16-u16-vasnprintf: New file.
103809         * modules/unistdio/u16-u16-vasprintf: New file.
103810         * modules/unistdio/u16-u16-vsnprintf: New file.
103811         * modules/unistdio/u16-u16-vsprintf: New file.
103812         * modules/unistdio/u32-asnprintf: New file.
103813         * modules/unistdio/u32-asprintf: New file.
103814         * modules/unistdio/u32-printf-parse: New file.
103815         * modules/unistdio/u32-snprintf: New file.
103816         * modules/unistdio/u32-sprintf: New file.
103817         * modules/unistdio/u32-vasnprintf: New file.
103818         * modules/unistdio/u32-vasprintf: New file.
103819         * modules/unistdio/u32-vsnprintf: New file.
103820         * modules/unistdio/u32-vsprintf: New file.
103821         * modules/unistdio/u32-u32-asnprintf: New file.
103822         * modules/unistdio/u32-u32-asprintf: New file.
103823         * modules/unistdio/u32-u32-snprintf: New file.
103824         * modules/unistdio/u32-u32-sprintf: New file.
103825         * modules/unistdio/u32-u32-vasnprintf: New file.
103826         * modules/unistdio/u32-u32-vasprintf: New file.
103827         * modules/unistdio/u32-u32-vsnprintf: New file.
103828         * modules/unistdio/u32-u32-vsprintf: New file.
103829         * modules/unistdio/ulc-asnprintf-tests: New file.
103830         * modules/unistdio/ulc-vasnprintf-tests: New file.
103831         * modules/unistdio/ulc-vasprintf-tests: New file.
103832         * modules/unistdio/ulc-vsnprintf-tests: New file.
103833         * modules/unistdio/ulc-vsprintf-tests: New file.
103834         * modules/unistdio/u8-asnprintf-tests: New file.
103835         * modules/unistdio/u8-vasnprintf-tests: New file.
103836         * modules/unistdio/u8-vasprintf-tests: New file.
103837         * modules/unistdio/u8-vsnprintf-tests: New file.
103838         * modules/unistdio/u8-vsprintf-tests: New file.
103839         * modules/unistdio/u16-asnprintf-tests: New file.
103840         * modules/unistdio/u16-vasnprintf-tests: New file.
103841         * modules/unistdio/u16-vasprintf-tests: New file.
103842         * modules/unistdio/u16-vsnprintf-tests: New file.
103843         * modules/unistdio/u16-vsprintf-tests: New file.
103844         * modules/unistdio/u32-asnprintf-tests: New file.
103845         * modules/unistdio/u32-vasnprintf-tests: New file.
103846         * modules/unistdio/u32-vasprintf-tests: New file.
103847         * modules/unistdio/u32-vsnprintf-tests: New file.
103848         * modules/unistdio/u32-vsprintf-tests: New file.
103849         * MODULES.html.sh (Unicode string functions): Add the new modules.
103851 2007-07-01  Bruno Haible  <bruno@clisp.org>
103853         * lib/sprintf.c (sprintf): Limit the available length estimation,
103854         to avoid address wraparound.
103855         * lib/vsprintf.c (vsprintf): Likewise.
103856         * modules/sprintf-posix (Dependencies): Add stdint.
103857         * modules/vsprintf-posix (Dependencies): Likewise.
103859 2007-07-01  Bruno Haible  <bruno@clisp.org>
103861         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103862         Windows PATH as well. Conservative double-quoting. Comments.
103864 2007-07-01  Bruno Haible  <bruno@clisp.org>
103865             Eric Blake  <ebb9@byu.net>
103866             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103868         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103869         empty components in $PATH, denoting '.'.
103871 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103873         * gnulib-tool: Fix indentation.
103874         (func_create_megatestdir): Likewise.
103875         Report by Bruno Haible.
103877 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103879         Sync from Automake.
103880         * build-aux/gnupload: Fix shell portability issues with for loops.
103881         Report by Karl Berry.
103883 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103885         * build-aux/maint.mk (POURL): Use translationproject.org.
103887 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103888             Bruno Haible  <bruno@clisp.org>
103890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103891         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103892         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103893         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103894         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103896 2007-06-27  Bruno Haible  <bruno@clisp.org>
103898         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103899         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103901 2007-06-26  Karl Berry  <karl@gnu.org>
103903         * MODULES.html.sh: remove xreadlink-with-size.
103905 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103907         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103908         method that I hope also handles the double-include problem noted
103909         by Bruno Haible in
103910         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103912 2007-06-23  Bruno Haible  <bruno@clisp.org>
103914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103915         Don't let the 'mostlyclean' target fail if the last subdirectory could
103916         not be removed.
103917         Reported by Karl Berry.
103919 2007-06-23  Bruno Haible  <bruno@clisp.org>
103921         * gnulib-tool (echo): Add a speedier workaround for ksh.
103922         * tests/test-echo.sh: Likewise.
103924 2007-06-23  Bruno Haible  <bruno@clisp.org>
103926         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103927         * tests/test-echo.sh: Likewise.
103929 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103931         * gnulib-tool (IFS): Initialize early, so we don't set it to
103932         empty later.
103933         (self_abspathname): Rewrite algorithm to set it, reindent.
103934         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103935         (func_create_megatestdir): Merge some sed scripts.
103937 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103939         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103940         exposed by Sun Studio 11 cc on Solaris 8.
103942 2007-06-22  Bruno Haible  <bruno@clisp.org>
103944         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103945         backslashes.
103946         * tests/test-echo.sh: New file.
103948 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103950         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103951         simplify `sed_replace_build_aux' scripts, they are portable but
103952         echoing them with `echo' is not.
103953         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103955 2007-06-21  Karl Berry  <karl@gnu.org>
103957         * config/srclist.txt: guess we can't handle the licenses via
103958         srclist at the moment.
103960 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103962         * MODULES.html.sh: Add include_next.
103963         * modules/include_next: New file.
103965 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103967         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103968         INCLUDE_NEXT.
103969         (gl_CHECK_NEXT_HEADERS): New macro.
103970         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103971         the obsolescent gl_ABSOLUTE_HEADER.
103972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103973         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103974         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103976         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103977         * m4/math_h.m4 (gl_MATH_H): Likewise.
103978         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103979         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103980         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103981         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103982         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103983         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103989         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103990         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103991         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103992         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103993         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103994         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103995         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103996         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103997         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103998         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103999         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
104000         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
104001         * lib/float_.h: Likewise.
104002         * lib/inttypes_.h: Likewise.
104003         * lib/math_.h: Likewise.
104004         * lib/search_.h: Likewise.
104005         * lib/signal_.h: Likewise.
104006         * lib/stdint_.h: Likewise.
104007         * lib/stdio_.h: Likewise.
104008         * lib/stdlib_.h: Likewise.
104009         * lib/string_.h: Likewise.
104010         * lib/sys_stat_.h: Likewise.
104011         * lib/sys_time_.h: Likewise.
104012         * lib/time_.h: Likewise.
104013         * lib/unistd_.h: Likewise.
104014         * lib/wchar_.h: Likewise.
104015         * lib/wctype_.h: Likewise.
104016         * lib/dirent_.h: Likewise.
104017         * lib/iconv_.h: Likewise.
104018         * lib/locale_.h: Likewise.
104019         * lib/netinet_in_.h: Likewise.
104020         * lib/sys_select_.h: Likewise.
104021         * lib/sys_socket_.h: Likewise.
104022         * lib/sysexits_.h: Likewise.
104023         * modules/fcntl (Depends-on): Depend on include_next, not
104024         absolute_header.
104025         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
104026         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
104027         * modules/fchdir: Likewise.
104028         * modules/float: Likewise.
104029         * modules/iconv_open: Likewise.
104030         * modules/inttypes: Likewise.
104031         * modules/locale: Likewise.
104032         * modules/math: Likewise.
104033         * modules/netinet_in: Likewise.
104034         * modules/search: Likewise.
104035         * modules/signal: Likewise.
104036         * modules/stdint: Likewise.
104037         * modules/stdio: Likewise.
104038         * modules/stdlib: Likewise.
104039         * modules/string: Likewise.
104040         * modules/sys_select: Likewise.
104041         * modules/sys_socket: Likewise.
104042         * modules/sys_stat: Likewise.
104043         * modules/sys_time: Likewise.
104044         * modules/sysexits: Likewise.
104045         * modules/time: Likewise.
104046         * modules/unistd: Likewise.
104047         * modules/wchar: Likewise.
104048         * modules/wctype: Likewise.
104049         * modules/sys_stat: Change maintainer to "all".
104050         * modules/unistd: Likewise.
104052 2007-06-20  Karl Berry  <karl@gnu.org>
104054         * config/srclist.txt: track www changes in license files.
104056 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
104058         * build-aux/bootstrap: Remove stray dot.
104059         Make sure build_aux settings are honored when linking
104060         gnulib_extra_files.
104062 2007-06-19  Eric Blake  <ebb9@byu.net>
104064         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
104065         Allow compilation on cygwin.
104067 2007-06-19  Jim Meyering  <jim@meyering.net>
104069         xreadlink-with-size: Remove module.  No longer used.
104070         Ex-callers now use xreadlink or mreadlink-with-size.
104071         * modules/xreadlink-with-size: Remove module.
104072         * lib/xreadlink-with-size.c: Remove file.
104073         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
104074         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
104075         just before the function definition *is* accurate.
104077         Eliminate one way canonicalize_filename_mode could exit.
104078         * lib/canonicalize.c (canonicalize_filename_mode):
104079         Use mreadlink_with_size, not xreadlink_with_size.
104081 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
104083         Detect porting problems to FreeBSD/arm, which has time_t wider than
104084         long int.  Original problem reported for GNU diff by Xin Li in
104085         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
104086         * modules/getdate (Depends-on): Add intprops, verify.
104087         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
104088         is an integer type no wider than long int.
104090 2007-06-18  Jim Meyering  <jim@meyering.net>
104092         New module: mreadlink-with-size.
104093         * MODULES.html.sh: Add mreadlink-with-size.
104094         * modules/mreadlink-with-size: New module
104095         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
104096         not xreadlink-with-size.
104097         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
104099 2007-06-16  Bruno Haible  <bruno@clisp.org>
104101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
104102         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
104103         Reported by Gary V. Vaughan <gary@gnu.org>.
104105 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
104107         Revamp lchown so that it lives in unistd.h where it belongs.
104108         * lib/lchown.h: Remove.
104109         * lib/dirchownmod.c: Don't include lib/lchown.h.
104110         * lib/fchownat.c: Likewise.
104111         * lib/openat.c: Likewise.
104112         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
104113         does not follow symlinks.
104114         (EOPNOTSUPP): Define if not defined.
104115         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
104116         is defined to 0.
104117         (lchown): New decl.
104118         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
104119         Do not check for lchown decl.
104120         Set REPLACE_LCHOWN.
104121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
104122         REPLACE_LCHOWN.
104123         * modules/chown: Make it clear it follows symlinks.
104124         * modules/lchown: Make it clear it doesn't follow symlinks.
104125         (Files): Remove lib/lchown.h
104126         (Depends-on): Add unistd.
104127         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
104128         (Include): Include <unistd.h>, not "lchown.h".
104129         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
104130         REPLACE_LCHOWN.
104132 2007-06-15  Jim Meyering  <jim@meyering.net>
104134         Change license (GPL to LGPL) of fsusage and dependents.
104135         * modules/fsusage (License): Change to LGPL.
104136         * modules/full-read (License): Likewise.
104137         * modules/full-write (License): Likewise.
104138         * modules/safe-read (License): Likewise.
104139         * modules/safe-write (License): Likewise.
104141 2007-06-14  Ben Pfaff  <blp@gnu.org>
104143         Missing part of allocsa -> malloca transition.
104144         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
104145         gl_MALLOCA.
104147 2007-06-12  Bruno Haible  <bruno@clisp.org>
104149         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
104150         to ia64, x86_64, i386.
104151         Reported by Eric Blake.
104153 2007-06-12  Bruno Haible  <bruno@clisp.org>
104155         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
104156         cross-compiling to x86_64.
104158 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
104160         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
104161         glitch reported by Ralf Wildenhues in
104162         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
104164         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
104165         Vin Shelton.
104167 2007-06-11  Bruno Haible  <bruno@clisp.org>
104169         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
104170         replacement string.
104171         Reported by Eric Blake.
104173 2007-06-10  Bruno Haible  <bruno@clisp.org>
104175         Prepare vasnprintf code for use with Unicode strings.
104176         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
104177         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
104178         TYPE_U32_STRING.
104179         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
104180         a_u32_string variants.
104181         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104182         * lib/printf-args.c: Don't include config.h and the specification
104183         header if PRINTF_FETCHARGS is already defined.
104184         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104185         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
104186         TYPE_U16_STRING, TYPE_U32_STRING.
104187         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
104188         u16_directive, u16_directives, u32_directive, u32_directives): New
104189         types.
104190         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
104191         New declarations.
104192         * lib/printf-parse.c: Don't include config.h and the specification
104193         header if PRINTF_PARSE is already defined. Eliminate the set of
104194         parameters for WIDE_CHAR_VERSION; the user of this file must provide
104195         them now. Include c-ctype.h.
104196         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
104197         directive and CHAR_T_ONLY_ASCII.
104198         * lib/vasnprintf.c: Don't include config.h and the specification header
104199         if VASNPRINTF is already defined.
104200         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
104201         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
104202         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
104203         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
104204         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
104205         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
104206         code accordingly.
104207         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
104208         pad_ourselves also in this case, with the 'c' and 's' directives, and
104209         with a different notion of "width".
104210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
104212 2007-06-10  Bruno Haible  <bruno@clisp.org>
104214         * modules/unistr/u32-mbsnlen: New file.
104215         * lib/unistr/u32-mbsnlen.c: New file.
104217         * modules/unistr/u16-mbsnlen: New file.
104218         * lib/unistr/u16-mbsnlen.c: New file.
104220         * modules/unistr/u8-mbsnlen: New file.
104221         * lib/unistr/u8-mbsnlen.c: New file.
104223         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
104224         declarations.
104226 2007-06-10  Bruno Haible  <bruno@clisp.org>
104228         * lib/string_.h (mbsnlen): New declaration.
104229         * lib/mbsnlen.c: New file.
104230         * m4/mbsnlen.m4: New file.
104231         * modules/mbsnlen: New file.
104232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
104233         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
104234         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
104236 2007-06-10  Bruno Haible  <bruno@clisp.org>
104238         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
104240 2007-06-10  Bruno Haible  <bruno@clisp.org>
104242         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
104243         * lib/mbuiter.h: Likewise.
104245 2007-06-10  Bruno Haible  <bruno@clisp.org>
104247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
104248         declaration.
104250 2007-06-10  Karl Berry  <karl@gnu.org>
104252         * config/srclist.txt: remove gettext entries, Bruno prefers
104253         to update individually.
104255 2007-06-10  Bruno Haible  <bruno@clisp.org>
104257         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
104258         'maxlen'. Ensure only length + width bytes are allocated, not
104259         length + 1 + width.
104261 2007-06-09  Bruno Haible  <bruno@clisp.org>
104263         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
104264         (CHAR_T): Remove macro.
104265         (VASNPRINTF): Update.
104267 2007-06-09  Bruno Haible  <bruno@clisp.org>
104269         * MODULES.html.sh (Unicode string functions): Add the new modules.
104271         * modules/uniconv/u32-conv-to-enc: New file.
104272         * lib/uniconv/u32-conv-to-enc.c: New file.
104273         * modules/uniconv/u32-conv-to-enc-tests: New file.
104274         * tests/uniconv/test-u32-conv-to-enc.c: New file.
104276         * modules/uniconv/u16-conv-to-enc: New file.
104277         * lib/uniconv/u16-conv-to-enc.c: New file.
104278         * lib/uniconv/u-conv-to-enc.h: New file.
104279         * modules/uniconv/u16-conv-to-enc-tests: New file.
104280         * tests/uniconv/test-u16-conv-to-enc.c: New file.
104282         * modules/uniconv/u8-conv-to-enc: New file.
104283         * lib/uniconv/u8-conv-to-enc.c: New file.
104284         * modules/uniconv/u8-conv-to-enc-tests: New file.
104285         * tests/uniconv/test-u8-conv-to-enc.c: New file.
104287         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
104288         u32_conv_to_encoding): New declarations.
104290 2007-06-09  Bruno Haible  <bruno@clisp.org>
104292         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
104294 2007-06-09  Bruno Haible  <bruno@clisp.org>
104296         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
104297         * modules/malloca: Renamed from modules/allocsa, updated.
104298         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
104299         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
104300         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
104301         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
104302         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
104303         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
104304         * modules/xmalloca: Renamed from modules/xallocsa, updated.
104305         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
104306         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
104307         * modules/c-strcasestr (Depends-on): Update.
104308         * lib/c-strcasestr.c: Update.
104309         * modules/c-strstr (Depends-on): Update.
104310         * lib/c-strstr.c: Update.
104311         * modules/canonicalize-lgpl (Depends-on): Update.
104312         * lib/canonicalize-lgpl.c: Update.
104313         * modules/clean-temp (Depends-on): Update.
104314         * lib/clean-temp.c: Update.
104315         * modules/csharpcomp (Depends-on): Update.
104316         * lib/csharpcomp.c: Update.
104317         * modules/csharpexec (Depends-on): Update.
104318         * lib/csharpexec.c: Update.
104319         * modules/javacomp (Depends-on): Update.
104320         * lib/javacomp.c: Update.
104321         * modules/javaexec (Depends-on): Update.
104322         * lib/javaexec.c: Update.
104323         * modules/mbscasestr (Depends-on): Update.
104324         * lib/mbscasestr.c: Update.
104325         * modules/mbsstr (Depends-on): Update.
104326         * lib/mbsstr.c: Update.
104327         * modules/setenv (Depends-on): Update.
104328         * lib/setenv.c: Update.
104329         * modules/strcasestr (Depends-on): Update.
104330         * lib/strcasestr.c: Update.
104331         * modules/striconveha (Depends-on): Update.
104332         * lib/striconveha.c: Update.
104333         * modules/relocatable-prog-wrapper (Files): Update.
104334         * lib/relocwrapper.c: Update.
104335         * build-aux/install-reloc: Update.
104336         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104338 2007-06-08  Bruno Haible  <bruno@clisp.org>
104340         Port to uClibc.
104341         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104342         * lib/fpurge.c (fpurge): Likewise.
104343         * lib/freading.c (freading): Likewise.
104344         * lib/fseeko.c (rpl_fseeko): Likewise.
104345         * lib/fseterr.c (fseterr): Likewise.
104346         * lib/fwriting.c (fwriting): Likewise.
104347         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104349 2007-06-08  Bruno Haible  <bruno@clisp.org>
104351         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104352         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104353         * modules/gettext (Files): Add m4/intlmacosx.m4.
104355 2007-06-07  Bruno Haible  <bruno@clisp.org>
104357         * modules/localename-tests: New file.
104358         * tests/test-localename.c: New file.
104360         New module 'localename'.
104361         * lib/localename.h: New file.
104362         * lib/localename.c: New file, from GNU gettext.
104363         * m4/localename.m4: New file.
104364         * modules/localename: New file.
104366 2007-06-07  Bruno Haible  <bruno@clisp.org>
104368         Work around the lack of <wchar.h> on some builds of uClibc.
104369         * doc/headers/wchar.texi: Update.
104370         * lib/wchar_.h: Include <wchar.h> only if it exists.
104371         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104372         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104373         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104374         doesn't exist.
104375         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104376         * modules/mbfile (Depends-on): Add wchar.
104377         * modules/mbiter (Depends-on): Likewise.
104378         * modules/mbuiter (Depends-on): Likewise.
104379         Reported by Simon Josefsson.
104381 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104383         Work around problem reported by Steven M. Schweda in
104384         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104385         Tru64 5.1B with the Compaq compiler environment installed declares
104386         an 'isblank' function but does not define it in the C library.
104387         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104388         * lib/regex_internal.h (isblank): Likewise.
104389         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104390         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104392 2007-06-05  Bruno Haible  <bruno@clisp.org>
104394         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104395         ia64.
104396         * modules/printf-safe: New file.
104397         * modules/fprintf-posix (Depends-on): Add printf-safe.
104398         * modules/printf-posix (Depends-on): Likewise.
104399         * modules/snprintf-posix (Depends-on): Likewise.
104400         * modules/sprintf-posix (Depends-on): Likewise.
104401         * modules/vasnprintf-posix (Depends-on): Likewise.
104402         * modules/vasprintf-posix (Depends-on): Likewise.
104403         * modules/vfprintf-posix (Depends-on): Likewise.
104404         * modules/vprintf-posix (Depends-on): Likewise.
104405         * modules/vsnprintf-posix (Depends-on): Likewise.
104406         * modules/vsprintf-posix (Depends-on): Likewise.
104407         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104408         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104409         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104410         "no" on i386, x86_64, ia64.
104411         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104412         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104413         on i386, x86_64, ia64.
104414         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104415         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104416         on i386, x86_64, ia64.
104417         * tests/test-vasnprintf-posix.c: Include float.h.
104418         (LDBL80_WORDS): New macro.
104419         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104420         on i386, x86_64, ia64.
104421         * tests/test-vasprintf-posix.c: Include float.h.
104422         (LDBL80_WORDS): New macro.
104423         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104424         on i386, x86_64, ia64.
104425         * tests/test-snprintf-posix.c: Include float.h.
104426         * tests/test-sprintf-posix.c: Likewise.
104427         * tests/test-vsnprintf-posix.c: Likewise.
104428         * tests/test-vsprintf-posix.c: Likewise.
104430 2007-06-05  Bruno Haible  <bruno@clisp.org>
104432         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104433         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104434         non-IEEE numbers on i386, x86_64, ia64.
104435         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104436         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104437         * tests/test-isnanl.h: Include float.h.
104438         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104440 2007-06-05  Bruno Haible  <bruno@clisp.org>
104442         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104443         also the %a / %A. Handle the %a / %A code before this extra handling.
104445 2007-06-05  Bruno Haible  <bruno@clisp.org>
104447         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104448         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104450 2007-06-05  Bruno Haible  <bruno@clisp.org>
104452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104453         typo in variable name.
104455 2007-06-05  Eric Blake  <ebb9@byu.net>
104457         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104458         Reported by Simon Josefsson.
104460 2007-06-04  Bruno Haible  <bruno@clisp.org>
104462         Avoid test failures on some PowerPC platforms.
104463         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104464         Define differently for PowerPC.
104465         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104466         Reported by Gary V. Vaughan <gary@gnu.org>.
104468 2007-06-02  Bruno Haible  <bruno@clisp.org>
104470         Fix test-stdint failure on FreeBSD/ia64.
104471         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104472         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104473         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104474         * doc/headers/stdint.texi: Update.
104476 2007-06-01  Bruno Haible  <bruno@clisp.org>
104478         * tests/test-binary-io.c (main): Pass a third argument to open().
104479         Reported by Gary V. Vaughan <gary@gnu.org>.
104481 2007-06-01  Bruno Haible  <bruno@clisp.org>
104483         * doc/functions/frexpl.texi: Update for mingw.
104485 2007-06-01  Bruno Haible  <bruno@clisp.org>
104487         * tests/test-lseek.c (main): Disable test of errno for invalid third
104488         argument.
104489         * doc/functions/lseek.texi: Update.
104490         Reported by Gary V. Vaughan <gary@gnu.org>.
104492 2007-05-28  Bruno Haible  <bruno@clisp.org>
104494         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104496 2007-05-31  Eric Blake  <ebb9@byu.net>
104498         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104499         cross compiling.
104501 2007-05-30  Eric Blake  <ebb9@byu.net>
104502         and Bruno Haible  <bruno@clisp.org>
104504         Work around mingw test failures exposed by m4-1.4.9b.
104505         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104506         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104507         moment.
104509 2007-05-30  Bruno Haible  <bruno@clisp.org>
104511         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104512         assuming that they are closed. Needed on HP-UX 11.
104514 2007-05-29  Bruno Haible  <bruno@clisp.org>
104516         Fix a problem with #include_next.
104517         * lib/dirent_.h: Split the double-inclusion guard.
104518         * lib/fcntl_.h: Likewise.
104519         * lib/float_.h: Likewise.
104520         * lib/iconv_.h: Likewise.
104521         * lib/inttypes_.h: Likewise.
104522         * lib/locale_.h: Likewise.
104523         * lib/math_.h: Likewise.
104524         * lib/netinet_in_.h: Likewise.
104525         * lib/search_.h: Likewise.
104526         * lib/signal_.h: Likewise.
104527         * lib/stdint_.h: Likewise.
104528         * lib/stdio_.h: Likewise.
104529         * lib/stdlib_.h: Likewise.
104530         * lib/string_.h: Likewise.
104531         * lib/sys_select_.h: Likewise.
104532         * lib/sys_socket_.h: Likewise.
104533         * lib/sys_stat_.h: Likewise.
104534         * lib/sys_time_.h: Likewise.
104535         * lib/sysexits_.h: Likewise.
104536         * lib/time_.h: Likewise.
104537         * lib/unistd_.h: Likewise.
104538         * lib/wchar_.h: Likewise.
104539         * lib/wctype_.h: Likewise.
104541 2007-05-29  Bruno Haible  <bruno@clisp.org>
104543         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104544         for the moment.
104546 2007-05-29  Bruno Haible  <bruno@clisp.org>
104548         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104549         invocation.
104550         Reported by Eric Blake.
104552 2007-05-29  Bruno Haible  <bruno@clisp.org>
104554         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104555         compiling case.
104557 2007-05-29  Eric Blake  <ebb9@byu.net>
104558             Bruno Haible  <bruno@clisp.org>
104560         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104561         cross compiles.
104563 2007-05-28  Eric Blake  <ebb9@byu.net>
104565         * modules/closein-tests (test_closein_LDADD): Support test on
104566         cygwin with libtool.
104568 2007-05-28  Bruno Haible  <bruno@clisp.org>
104570         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104571         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104572         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104573         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104574         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104575         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104577         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104578         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104580 2007-05-28  Eric Blake  <ebb9@byu.net>
104582         Unconditionally include <config.h> in unit tests.
104583         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104584         * tests/test-allocsa.c, tests/test-arcfour.c,
104585         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104586         tests/test-array_list.c, tests/test-array_oset.c,
104587         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104588         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104589         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104590         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104591         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104592         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104593         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104594         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104595         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104596         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104597         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104598         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104599         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104600         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104601         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104602         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104603         test-md5.c, test-memmem.c, test-printf-posix.c,
104604         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104605         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104606         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104607         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104608         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104609         test-vasnprintf-posix2.c, test-vasnprintf.c,
104610         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104611         test-vfprintf-posix.c, test-vprintf-posix.c,
104612         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104613         test-xvasprintf.c: Likewise.
104615 2007-05-28  Bruno Haible  <bruno@clisp.org>
104617         * gnulib-tool (func_import): Remember the --with-tests command-line
104618         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104619         Reported by Eric Blake.
104621 2007-05-28  Bruno Haible  <bruno@clisp.org>
104623         * modules/ftell-tests: New file.
104624         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104625         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104627         * lib/ftell.c: New file.
104628         * modules/ftell: New file.
104629         * m4/ftell.m4: New file.
104630         * doc/functions/ftell.texi: Update.
104631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104632         REPLACE_FTELL.
104633         * lib/stdio_.h (rpl_ftell): New declaration.
104634         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104635         REPLACE_FTELL.
104637 2007-05-28  Eric Blake  <ebb9@byu.net>
104639         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104641 2007-05-28  Bruno Haible  <bruno@clisp.org>
104643         * modules/fseek-tests: New file.
104644         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104645         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104647         * lib/fseek.c: New file.
104648         * modules/fseek: New file.
104649         * m4/fseek.m4: New file.
104650         * doc/functions/fseek.texi: Update.
104651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104652         REPLACE_FSEEK.
104653         * lib/stdio_.h (rpl_fseek): New declaration.
104654         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104655         REPLACE_FSEEK.
104657 2007-05-28  Bruno Haible  <bruno@clisp.org>
104659         * lib/stdio_.h (fflush): More comments.
104661 2007-05-28  Bruno Haible  <bruno@clisp.org>
104663         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104664         runtime test.
104666 2007-05-28  Eric Blake  <ebb9@byu.net>
104668         Improve lseek module.
104669         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104670         * lib/unistd_.h (lseek): Scale back link warning message.
104671         * tests/test-lseek.c: Beef up test.
104672         * tests/test-lseek.sh: Exercise more facets of lseek.
104673         Reported by Bruno Haible.
104675 2007-05-28  Bruno Haible  <bruno@clisp.org>
104677         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104678         to define.
104680 2007-05-27  Bruno Haible  <bruno@clisp.org>
104682         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104684 2007-05-27  Bruno Haible  <bruno@clisp.org>
104686         * modules/openmp: New file.
104687         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104688         Noah Misch.
104690 2007-05-26  Bruno Haible  <bruno@clisp.org>
104692         * modules/chdir-long (Depends-on): Add fchdir.
104693         * modules/chdir-safer (Depends-on): Likewise.
104694         * modules/fts (Depends-on): Likewise.
104695         * modules/fts-lgpl (Depends-on): Likewise.
104696         * modules/openat (Depends-on): Likewise.
104697         * modules/savewd (Depends-on): Likewise.
104699 2007-05-24  Eric Blake  <ebb9@byu.net>
104701         Fix lseek on mingw.
104702         * modules/lseek: New module.
104703         * m4/lseek.m4: New file.
104704         * lib/lseek.c: New file.
104705         * modules/lseek-tests: New file.
104706         * tests/test-lseek.c: New file.
104707         * tests/test-lseek.sh: New file.
104708         * MODULES.html.sh: Document lseek module.
104709         * modules/fflush (Depends-on): Add lseek, fseeko.
104710         * modules/fseeko (Depends-on): Likewise.
104711         * modules/ftello (Depends-on): Likewise.
104712         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104713         broken.
104714         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104715         broken.
104716         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104717         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104718         * lib/ftello.c (rpl_ftello): Likewise.
104719         * tests/test-fseeko.c (main): Test this.
104720         * tests/test-fseeko.sh: Likewise.
104721         * tests/test-ftello.c (main): Likewise.
104722         * tests/test-ftello.sh: Likewise.
104723         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104724         implies replacing fseek.
104725         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104726         HAVE_FTELLO.
104727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104728         * modules/unistd (Makefile.am): Likewise.
104729         * lib/unistd_.h (lseek): Declare a replacement.
104730         * doc/functions/lseek.texi (lseek): Document this fix.
104731         * doc/functions/fseek.texi (fseek): Likewise.
104732         * doc/functions/ftell.texi (ftell): Likewise.
104734 2007-05-24  Bruno Haible  <bruno@clisp.org>
104736         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104737         in the printed representation of a NaN.
104738         * tests/test-vasprintf-posix.c (test_function): Likewise.
104739         * tests/test-snprintf-posix.h (test_function): Likewise.
104740         * tests/test-sprintf-posix.h (test_function): Likewise.
104741         Reported by Eric Blake.
104743 2007-05-23  Eric Blake  <ebb9@byu.net>
104745         Fix fseeko/ftello on cygwin 1.5.24.
104746         * doc/functions/fseeko.texi (fseeko): Document the fix.
104747         * doc/functions/ftello.texi (ftello): Document the fix.
104748         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104749         * doc/functions/stdout.text (stdout): New file.
104750         * doc/functions/stderr.text (stderr): New file.
104751         * doc/gnulib.texi (Function Substitutes): Use new files.
104752         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104753         prior to 1.7.0.
104754         * tests/test-ftello.c (main): Likewise for ftello.
104755         * tests/test-fseeko.sh: New file.
104756         * tests/test-ftello.sh: New file.
104757         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104758         with seekable stdin.
104759         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104760         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104761         (gl_REPLACE_FSEEKO): New macro.
104762         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104763         * modules/fseeko (Files): Distribute fseeko.c.
104764         * modules/ftello (Files): Distribute ftello.c.
104765         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104766         mode.
104767         * lib/ftello.c (rpl_ftello): New file.
104768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104769         fseeko, ftello.
104770         (gl_STDIN_LARGE_OFFSET): New macro.
104771         * modules/stdio (Makefile.am): Perform the replacement.
104772         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104774 2007-05-23  Bruno Haible  <bruno@clisp.org>
104776         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104777         GNULIB_POSIXCHECK is defined.
104779 2007-05-21  Bruno Haible  <bruno@clisp.org>
104781         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104782         Check also the output for NaN arguments. When cross-compiling, guess
104783         no on IRIX.
104784         * lib/vasnprintf.c: Update comments.
104785         * tests/test-vasnprintf-posix.c (strisnan): New function.
104786         (test_function): Use it.
104787         * tests/test-vasprintf-posix.c (strisnan): New function.
104788         (test_function): Use it.
104789         * tests/test-snprintf-posix.h (strisnan): New function.
104790         (test_function): Use it.
104791         * tests/test-sprintf-posix.h (strisnan): New function.
104792         (test_function): Use it.
104793         Reported by Eric Blake.
104795 2007-05-20  Bruno Haible  <bruno@clisp.org>
104797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104798         numbers that fails on BeOS.
104799         * doc/functions/frexpl.texi: Update.
104801 2007-05-20  Jim Meyering  <jim@meyering.net>
104803         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104804         forced upon us by glibc-2.6.
104806 2007-05-20  Bruno Haible  <bruno@clisp.org>
104808         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104809         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104810         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104811         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104812         NEED_PRINTF_INFINITE.
104813         (is_infinitel): New function.
104814         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104816         gl_PREREQ_VASNPRINTF_INFINITE.
104817         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104819         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104820         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104821         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104822         gl_PREREQ_VASNPRINTF_INFINITE.
104823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104830         * doc/functions/fprintf.texi: Update.
104831         * doc/functions/printf.texi: Update.
104832         * doc/functions/snprintf.texi: Update.
104833         * doc/functions/sprintf.texi: Update.
104834         * doc/functions/vfprintf.texi: Update.
104835         * doc/functions/vprintf.texi: Update.
104836         * doc/functions/vsnprintf.texi: Update.
104837         * doc/functions/vsprintf.texi: Update.
104839 2007-05-20  Bruno Haible  <bruno@clisp.org>
104841         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104842         was not found in libc.
104843         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104845 2007-05-20  Bruno Haible  <bruno@clisp.org>
104847         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104848         printed as "-nan" instead of "nan".
104849         * tests/test-vasprintf-posix.c (test_function): Likewise.
104850         * tests/test-snprintf-posix.h (test_function): Likewise.
104851         * tests/test-sprintf-posix.h (test_function): Likewise.
104852         Needed for HP-UX 11.
104854 2007-05-20  Jim Meyering  <jim@meyering.net>
104856         Fix buggy test for the fchownat-deref bug.
104857         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104858         symlink required for the run-test.  Without it, this test would
104859         always declare that fchownat doesn't work, and client code would
104860         unnecessarily use the replacement function with fixed libc.
104861         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104862         Reported by Greg Schafer.
104864 2007-05-19  Bruno Haible  <bruno@clisp.org>
104866         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104867         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104868         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104869         Needed for IRIX 6.5 and Solaris 2.5.1.
104871 2007-05-19  Bruno Haible  <bruno@clisp.org>
104873         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104874         (test_function): Skip tests involving -0.0 on platforms where
104875         -0.0 = 0.0.
104876         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104877         (test_function): Skip tests involving -0.0 on platforms where
104878         -0.0 = 0.0.
104879         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104880         (test_function): Skip tests involving -0.0 on platforms where
104881         -0.0 = 0.0.
104882         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104883         (test_function): Skip tests involving -0.0 on platforms where
104884         -0.0 = 0.0.
104885         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104886         tests.
104887         * tests/test-printf-posix.h (test_function): Likewise.
104888         * tests/test-printf-posix.output: Remove all -0.0 related results.
104889         Needed for IRIX 6.5.
104891 2007-05-19  Bruno Haible  <bruno@clisp.org>
104893         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104894         printed as "nan0x7fffffff" instead of "nan".
104895         * tests/test-vasprintf-posix.c (test_function): Likewise.
104896         * tests/test-snprintf-posix.h (test_function): Likewise.
104897         * tests/test-sprintf-posix.h (test_function): Likewise.
104898         * tests/test-fprintf-posix.h (NaN): Remove macro.
104899         (test_function): Remove all NaN related tests.
104900         * tests/test-printf-posix.h (NaN): Remove macro.
104901         (test_function): Remove all NaN related tests.
104902         * tests/test-printf-posix.output: Remove all NaN related results.
104903         Needed for IRIX 6.5.
104905 2007-05-19  Bruno Haible  <bruno@clisp.org>
104907         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104910 2007-05-19  Bruno Haible  <bruno@clisp.org>
104912         * lib/float_.h: New file.
104913         * m4/float_h.m4: New file.
104914         * modules/float: New file.
104915         * modules/isnanl (Dependencies): Add float.
104916         * modules/isnanl-nolibm (Dependencies): Likewise.
104917         * modules/mathl (Dependencies): Likewise.
104918         * modules/printf-frexpl (Dependencies): Likewise.
104919         * modules/signbit (Dependencies): Likewise.
104920         * modules/vasnprintf (Dependencies): Likewise.
104921         * doc/headers/float.texi: Update.
104923 2007-05-19  Jim Meyering  <jim@meyering.net>
104925         * lib/utimens.c (gl_futimens): Rename from futimens,
104926         now that glibc-2.6 declares futimens.
104927         * lib/utimens.h: Likewise.
104929 2007-05-19  Bruno Haible  <bruno@clisp.org>
104931         Avoid test failures on mingw.
104932         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104933         * tests/test-printf-posix.sh: Likewise.
104934         * tests/test-vfprintf-posix.sh: Likewise.
104935         * tests/test-vprintf-posix.sh: Likewise.
104937 2007-05-19  Bruno Haible  <bruno@clisp.org>
104939         Fix *printf result for NaN, Inf, -0.0 on mingw.
104940         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104941         * lib/vasnprintf.c: Include math.h and isnan.h.
104942         (is_infinite_or_zero): New function.
104943         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104944         values in the %f, %F, %e, %E, %g, %G directives.
104945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104947         gl_PRINTF_INFINITE and test its result. Invoke
104948         gl_PREREQ_VASNPRINTF_INFINITE.
104949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104950         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104956         * doc/functions/fprintf.texi: Update.
104957         * doc/functions/printf.texi: Update.
104958         * doc/functions/snprintf.texi: Update.
104959         * doc/functions/sprintf.texi: Update.
104960         * doc/functions/vfprintf.texi: Update.
104961         * doc/functions/vprintf.texi: Update.
104962         * doc/functions/vsnprintf.texi: Update.
104963         * doc/functions/vsprintf.texi: Update.
104965 2007-05-19  Bruno Haible  <bruno@clisp.org>
104967         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104968         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104969         Instead of multiplying with 10^k, set extra_zeroes to k.
104970         (scale10_round_long_double): Remove function.
104972 2007-05-18  Bruno Haible  <bruno@clisp.org>
104974         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104975         introduced on 2007-05-06.
104977 2007-05-18  Bruno Haible  <bruno@clisp.org>
104979         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104980         %g directives.
104981         * tests/test-vasprintf-posix.c (test_function): Likewise.
104982         * tests/test-snprintf-posix.h (test_function): Likewise.
104983         * tests/test-sprintf-posix.h (test_function): Likewise.
104985 2007-05-18  Bruno Haible  <bruno@clisp.org>
104987         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104988         (strmatch): New function.
104989         (test_function): Test the %f directive on numbers of various exponents.
104990         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104991         (strmatch): New function.
104992         (test_function): Test the %f directive on numbers of various exponents.
104993         * tests/test-snprintf-posix.h (strmatch): New function.
104994         (test_function): Test the %f directive on numbers of various exponents.
104995         * tests/test-sprintf-posix.h (strmatch): New function.
104996         (test_function): Test the %f directive on numbers of various exponents.
104997         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104998         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104999         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
105000         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
105002 2007-05-18  Bruno Haible  <bruno@clisp.org>
105004         Add support for 'long double' number output.
105005         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
105006         * lib/vasnprintf.c: Include math.h and float+.h.
105007         (mp_limb_t): New type.
105008         (GMP_LIMB_BITS): New macro.
105009         (mp_twolimb_t): New type.
105010         (GMP_TWOLIMB_BITS): New macro.
105011         (mpn_t): New type.
105012         (multiply, divide, convert_to_decimal, decode_long_double,
105013         scale10_round_long_double, scale10_round_decimal_long_double,
105014         floorlog10l): New functions.
105015         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
105016         for the %f, %F, %e, %E, %g, %G directives.
105017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
105018         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105019         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
105020         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
105021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105028         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
105029         * modules/snprintf-posix (Depends-on): Likewise.
105030         * modules/sprintf-posix (Depends-on): Likewise.
105031         * modules/vasnprintf-posix (Depends-on): Likewise.
105032         * modules/vasprintf-posix (Depends-on): Likewise.
105033         * modules/vfprintf-posix (Depends-on): Likewise.
105034         * modules/vsnprintf-posix (Depends-on): Likewise.
105035         * modules/vsprintf-posix (Depends-on): Likewise.
105036         * modules/vasnprintf (Files): Add lib/float+.h.
105037         * doc/functions/fprintf.texi: Update.
105038         * doc/functions/printf.texi: Update.
105039         * doc/functions/snprintf.texi: Update.
105040         * doc/functions/sprintf.texi: Update.
105041         * doc/functions/vfprintf.texi: Update.
105042         * doc/functions/vprintf.texi: Update.
105043         * doc/functions/vsnprintf.texi: Update.
105044         * doc/functions/vsprintf.texi: Update.
105046 2007-05-18  Bruno Haible  <bruno@clisp.org>
105048         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
105050 2007-05-18  Bruno Haible  <bruno@clisp.org>
105052         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
105053         for printing 64-bit integers. Needed for mingw.
105055 2007-05-18  Bruno Haible  <bruno@clisp.org>
105057         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105058         gl_FUNC_FREXPL_WORKS.
105059         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
105061 2007-05-18  Bruno Haible  <bruno@clisp.org>
105063         * modules/frexpl-nolibm-tests: New file.
105065         * modules/frexpl-nolibm: New file.
105066         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
105068 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105070         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
105071         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105072         GCC 4.2, which otherwise issues a lot of warnings.
105073         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
105074         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
105075         Likewise.
105076         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
105077         * modules/iconv_open (iconv.h): Likewise.
105078         * modules/locale (locale.h): Likewise.
105079         * modules/netinet_in (netinet/in.h): Likewise.
105080         * modules/sys_select (sys_select.h): Likewise.
105081         * modules/sys_socket (sys/socket.h): Likewise.
105082         * modules/sys_stat (sys/stat.h): Likewise.
105083         * modules/sysexits (sysexits.h): Likewise.
105084         * modules/unistd (unistd.h): Likewise.
105086 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105088         * modules/closein-tests (Makefile.am): Distribute
105089         `test-closein.sh'.
105091 2007-05-17  Bruno Haible  <bruno@clisp.org>
105093         * tests/test-printf-posix.output: Renamed from
105094         tests/test-fprintf-posix.out.
105095         * modules/fprintf-posix-tests: Update.
105096         * modules/printf-posix-tests: Update.
105097         * modules/vfprintf-posix-tests: Update.
105098         * modules/vprintf-posix-tests: Update.
105099         * tests/test-fprintf-posix.sh: Update.
105100         * tests/test-printf-posix.sh: Update.
105101         * tests/test-vfprintf-posix.sh: Update.
105102         * tests/test-vprintf-posix.sh: Update.
105103         Reported by Ralf Wildenhues.
105105 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105107         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
105108         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105109         GCC 4.2, which otherwise issues a lot of warnings.
105110         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
105111         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
105112         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
105113         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
105114         it should no longer be needed.
105115         * lib/string_.h: Likewise.
105116         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
105117         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
105118         * modules/inttypes (inttypes.h): Likewise.
105119         * modules/math (math.h): Likewise.
105120         * modules/search (search.h): Likewise.
105121         * modules/signal (signal.h): Likewise.
105122         * modules/stdint (stdint.h): Likewise.
105123         * modules/stdio (stdio.h): Likewise.
105124         * modules/stdlib (stdlib.h): Likewise.
105125         * modules/string (string.h): Likewise.
105126         * modules/sys_time (sys/time.h): Likewise.
105127         * modules/time (time.h): Likewise.
105128         * modules/wchar (wchar.h): Likewise.
105129         * modules/wctype (wtype.h): Likewise.
105131 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
105133         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
105135 2007-05-13  Bruno Haible  <bruno@clisp.org>
105137         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
105138         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105139         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
105140         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105141         (gl_PREREQ_STRTOK_R): Don't require it here.
105143 2007-05-13  Bruno Haible  <bruno@clisp.org>
105145         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
105146         when used in C++ mode.
105148 2007-05-12  Bruno Haible  <bruno@clisp.org>
105150         * lib/linebuffer.h: Tweak doc.
105151         * lib/linebuffer.c: Likewise.
105153 2007-05-12  James Youngman  <jay@gnu.org>
105155         * lib/linebuffer.c (readlinebuffer_delim): New function,
105156         like readlinebuffer, but use a caller-specified delimiter.
105157         (readlinebuffer): Just call readlinebuffer_delim with '\n'
105158         as the delimiter.
105159         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
105161 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105163         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
105164         * modules/openat (Files): Remove openat-die.c.
105165         (Depends-on): Add openat-die.
105166         * modules/openat-die: New module.
105168 2007-05-06  Bruno Haible  <bruno@clisp.org>
105170         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
105171         Update with info about Cygwin.
105172         * doc/functions/fprintf.texi: Update.
105173         * doc/functions/printf.texi: Update.
105174         * doc/functions/snprintf.texi: Update.
105175         * doc/functions/sprintf.texi: Update.
105176         * doc/functions/vfprintf.texi: Update.
105177         * doc/functions/vprintf.texi: Update.
105178         * doc/functions/vsnprintf.texi: Update.
105179         * doc/functions/vsprintf.texi: Update.
105180         Reported by Eric Blake.
105182 2007-05-06  Bruno Haible  <bruno@clisp.org>
105184         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
105185         padding ourselves for the floating-point directives.
105186         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
105187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
105188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105189         gl_PRINTF_FLAG_ZERO and test its result. Invoke
105190         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
105191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105198         * tests/test-snprintf-posix.h (test_function): Also check the width
105199         and some flags in the %f directive.
105200         * tests/test-sprintf-posix.h (test_function): Likewise.
105201         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105202         * tests/test-vasprintf-posix.c (test_function): Likewise.
105203         * doc/functions/fprintf.texi: Update.
105204         * doc/functions/printf.texi: Update.
105205         * doc/functions/snprintf.texi: Update.
105206         * doc/functions/sprintf.texi: Update.
105207         * doc/functions/vfprintf.texi: Update.
105208         * doc/functions/vprintf.texi: Update.
105209         * doc/functions/vsnprintf.texi: Update.
105210         * doc/functions/vsprintf.texi: Update.
105212 2007-05-06  Bruno Haible  <bruno@clisp.org>
105214         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
105215         pass the ' flag character to sprintf or snprintf.
105216         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
105217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
105218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105219         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
105220         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
105221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105228         * tests/test-snprintf-posix.h (test_function): Also check the grouping
105229         flag.
105230         * tests/test-sprintf-posix.h (test_function): Likewise.
105231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105232         * tests/test-vasprintf-posix.c (test_function): Likewise.
105233         * doc/functions/fprintf.texi: Update.
105234         * doc/functions/printf.texi: Update.
105235         * doc/functions/snprintf.texi: Update.
105236         * doc/functions/sprintf.texi: Update.
105237         * doc/functions/vfprintf.texi: Update.
105238         * doc/functions/vprintf.texi: Update.
105239         * doc/functions/vsnprintf.texi: Update.
105240         * doc/functions/vsprintf.texi: Update.
105242 2007-05-01  Bruno Haible  <bruno@clisp.org>
105244         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
105246 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
105248         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
105249         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
105251 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105253         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
105254         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
105255         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
105257 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
105259         * lib/argp-help.c (struct hol_entry): New member `ord'.
105260         (HOL_ENTRY_PTRCMP): Use ord for comparison
105261         (hol_sort): Initialize ord.
105263 2007-05-01  Bruno Haible  <bruno@clisp.org>
105265         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
105266         Reported by Eric Blake.
105267         * doc/gnulib.texi (Function Substitutes): Update.
105269 2007-05-01  Bruno Haible  <bruno@clisp.org>
105271         * doc/functions.texi: Remove file, now redundant through
105272         doc/functions/*.texi.
105274 2007-05-01  Bruno Haible  <bruno@clisp.org>
105276         * modules/argp (Depends-on): Add sleep.
105278 2007-05-01  Bruno Haible  <bruno@clisp.org>
105280         * modules/sleep-tests: New file.
105281         * tests/test-sleep.c: New file.
105283         * modules/sleep: New file.
105284         * lib/sleep.c: New file.
105285         * m4/sleep.m4: New file.
105286         * lib/unistd_.h (sleep): New declaration.
105287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
105288         HAVE_SLEEP.
105289         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
105290         * doc/functions/sleep.texi: Document the sleep module.
105292 2007-05-01  Bruno Haible  <bruno@clisp.org>
105294         * lib/sigprocmask.h: Remove file.
105295         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
105296         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
105297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
105298         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
105299         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
105300         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
105301         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
105302         HAVE_SIGSET_T as a shell variable.
105303         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
105304         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
105305         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
105306         (Depends-on): Add signal. Remove verify.
105307         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
105308         (Include): Mention <signal.h> instead of sigprocmask.h.
105309         * NEWS: Mention the change.
105310         * lib/fatal-signal.c: Don't include sigprocmask.h.
105312 2007-05-01  Bruno Haible  <bruno@clisp.org>
105314         * modules/signal: New file.
105315         * lib/signal_.h: New file.
105316         * m4/signal_h.m4: New file.
105318 2007-05-01  Bruno Haible  <bruno@clisp.org>
105320         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
105321         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
105322         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
105323         HAVE_WCTYPE_CTMP_BUG into wctype.h.
105325 2007-05-01  Bruno Haible  <bruno@clisp.org>
105327         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105328         configure time.
105329         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105330         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105331         * modules/sys_stat (Makefile.am): Substitute their values into
105332         sys/stat.h.
105334 2007-05-01  Bruno Haible  <bruno@clisp.org>
105336         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105337         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105338         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105340 2007-05-01  Bruno Haible  <bruno@clisp.org>
105342         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105343         'assert' module here.
105345 2007-05-01  Bruno Haible  <bruno@clisp.org>
105347         * doc/functions/*.texi: New files.
105348         * doc/functions/google-ranking.txt: New file.
105349         * doc/gnulib.texi (Function Substitutes): New chapter.
105350         (ctime, inet_ntoa): Remove sections.
105351         * doc/ctime.texi: Remove file.
105352         * doc/inet_ntoa.texi: Remove file.
105353         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105354         dependencies.
105355         (%.info): New rule, specifying a --reference-limit.
105357 2007-05-01  Bruno Haible  <bruno@clisp.org>
105359         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105361 2007-05-01  Bruno Haible  <bruno@clisp.org>
105363         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105364         the portability of 'mkdir' to mingw systems.
105366 2007-05-01  Bruno Haible  <bruno@clisp.org>
105368         * doc/headers/google-ranking.txt: New file.
105370 2007-04-30  Eric Blake  <ebb9@byu.net>
105372         Prefer fseeko to fseek.
105373         * modules/getpass (Depends-on): Add fseeko.
105374         * lib/getpass.c (getpass): Use fseeko, not fseek.
105376 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105378         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105379         assumes the sorting is stable, while most qsort implementations
105380         are not.  Use argument addresses to ensure they never compare as
105381         equal.
105383         * tests/test-argp-2.sh (usage-indent test): Fix output
105384         (func_compare): Restore diff options
105385         * tests/test-argp.c: Restore #include "progname.h"
105387 2007-04-29  Bruno Haible  <bruno@clisp.org>
105389         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105391         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105393         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105394         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105395         (TESTS, check_PROGRAMS): Add test-snprintf.
105396         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105397         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105398         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105399         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105400         assertions that fail on HP-UX, OSF/1, or IRIX.
105401         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105403 2007-04-29  Bruno Haible  <bruno@clisp.org>
105405         * MODULES.html.sh (posix_functions): Remove 'contents'.
105407 2007-04-29  Karl Berry  <karl@gnu.org>
105409         * config/srclist.txt (gendocs_template_min): new entry.
105411 2007-04-29  Bruno Haible  <bruno@clisp.org>
105413         Work around fpurge bug on BSD systems.
105414         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105415         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105416         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105417         fpurge to rpl_fpurge if the system already has this function.
105418         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105419         the case where the system already has this function. Correct invariants
105420         on BSD systems.
105421         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105422         BSD systems.
105424 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105426         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105427         proposed by Sven Verdoolaege.
105429         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105430         options.
105431         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105432         (usage and help tests): Update
105434 2007-04-29  Bruno Haible  <bruno@clisp.org>
105436         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105437         Print more information in case of failure. Disable a test on BeOS.
105439 2007-04-29  Bruno Haible  <bruno@clisp.org>
105441         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105442         This helps debugging on systems on which no gdb is available.
105444 2007-04-29  Bruno Haible  <bruno@clisp.org>
105446         * lib/freading.h: Improve comments.
105447         * lib/fwriting.h: Likewise.
105448         * tests/test-freading.c (main): Don't check freading immediately after
105449         repositioning. Needed for glibc.
105451 2007-04-29  Bruno Haible  <bruno@clisp.org>
105453         * lib/freading.c (freading): Trivial simplification.
105455 2007-04-28  Bruno Haible  <bruno@clisp.org>
105457         * tests/test-fwriting.c (main): Also test the interaction between
105458         fflush and fwriting.
105459         * modules/fwriting-tests (Depends-on): Add fflush.
105461         * tests/test-freading.c (main): Also test the interaction between
105462         fflush and freading.
105463         * modules/freading-tests (Depends-on): Add fflush.
105465 2007-04-28  Bruno Haible  <bruno@clisp.org>
105467         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105468         fseeko and ftello.
105469         Suggested by Eric Blake.
105471 2007-04-28  Jim Meyering  <jim@meyering.net>
105473         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105474         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105475         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105477 2007-04-27  Eric Blake  <ebb9@byu.net>
105479         * doc/headers/assert.texi (assert.h): Document assert module use.
105481 2007-04-27  Bruno Haible  <bruno@clisp.org>
105483         * doc/headers/*.texi: New files.
105484         * doc/gnulib.texi (Header File Substitutes): New chapter.
105485         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105486         dependencies.
105487         (standards.info ,standards.html, standards.dvi): Update dependencies.
105488         (mostlyclean, clean): New targets.
105490 2007-04-27  Bruno Haible  <bruno@clisp.org>
105492         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105493         * modules/sysexits (Files, Makefile.am): Update.
105495         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105496         * modules/sys_socket (Files, Makefile.am): Update.
105498         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105499         * modules/sys_stat (Files, Makefile.am): Update.
105501 2007-04-27  Eric Blake  <ebb9@byu.net>
105503         * lib/freading.h: Improve comments.
105504         * lib/fwriting.h: Likewise.
105505         * lib/fflush.c: Likewise.
105507         Fix closein for mingw.
105508         * modules/closein-tests: Add tests for closein.
105509         * tests/test-closein.c: New file.
105510         * tests/test-closein.sh: Likewise.
105511         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105512         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105514 2007-04-27  Bruno Haible  <bruno@clisp.org>
105516         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105517         version is < 6.
105518         * lib/math_.h [__DECC]: Likewise.
105519         * lib/stdio_.h [__DECC]: Likewise.
105520         * lib/stdlib_.h [__DECC]: Likewise.
105521         * lib/string_.h [__DECC]: Likewise.
105522         * lib/time_.h [__DECC]: Likewise.
105523         * lib/wchar_.h [__DECC]: Likewise.
105524         * lib/wctype_.h [__DECC]: Likewise.
105526 2007-04-27  Bruno Haible  <bruno@clisp.org>
105528         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105530 2007-04-27  Bruno Haible  <bruno@clisp.org>
105532         * lib/fflush.c: Add comments.
105533         * modules/fpurge-tests (Depends-on): Add fflush.
105534         * modules/freadable-tests (Depends-on): Likewise.
105535         * modules/fwritable-tests (Depends-on): Likewise.
105537 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105539         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105540         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105541         Report by Bruno Haible <bruno@clisp.org>.
105543 2007-04-26  Eric Blake  <ebb9@byu.net>
105545         Fix fflush on mingw.
105546         * modules/fflush (Depends-on): Add freading.
105547         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105548         but unread data.
105550 2007-04-26  Eric Blake  <ebb9@byu.net>
105551         and Bruno Haible  <bruno@clisp.org>
105553         Implement freading and fwriting.
105554         * lib/freading.c: New file.
105555         * lib/freading.h: Likewise.
105556         * m4/freading.m4: Likewise.
105557         * modules/freading: Likewise.
105558         * modules/freading-tests: Likewise.
105559         * tests/test-freading.c: Likewise.
105560         * lib/fwriting.c: New file.
105561         * lib/fwriting.h: Likewise.
105562         * m4/fwriting.m4: Likewise.
105563         * modules/fwriting: Likewise.
105564         * modules/fwriting-tests: Likewise.
105565         * tests/test-fwriting.c: Likewise.
105566         * MODULES.html.sh (File stream based Input/Output): Mention them.
105568 2007-04-26  Bruno Haible  <bruno@clisp.org>
105570         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105571         'long' when we assume it.
105572         Suggested by Eric Blake.
105574 2007-04-26  Bruno Haible  <bruno@clisp.org>
105576         Ensure fseeko, ftello are declared on glibc systems.
105577         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105578         * modules/fseeko (configure.ac-early): Likewise.
105579         * modules/ftello (configure.ac-early): Likewise.
105580         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105581         AC_FUNC_FSEEKO for this.
105582         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105583         (gl_CHECK_FSEEKO): Remove macro.
105585 2007-04-26  Bruno Haible  <bruno@clisp.org>
105587         * tests/test-fflush.c (main): Also check the ftell result after
105588         fflush and fseek/fseeko.
105589         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105590         file descriptor position cache in the stream.
105591         * lib/fseeko.c (rpl_fseeko): Likewise.
105593 2007-04-26  Bruno Haible  <bruno@clisp.org>
105595         * modules/fflush-tests (Depends-on): Add fseeko.
105597 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105598             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105600         * lib/argz_.h: ensure error_t definition is obtained in same
105601         mechanism system argz.h would have.
105602         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105603         argz facilities are known bad.  Err on the side of caution if
105604         cross-compiling.
105606 2007-04-25  Eric Blake  <ebb9@byu.net>
105608         * lib/fpurge.c (includes): Use stdlib.h for free.
105609         * tests/test-fflush.c (main): Also test fflush-fseeko.
105611 2007-04-25  Bruno Haible  <bruno@clisp.org>
105613         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105614         * lib/fseeko.c: New file.
105615         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105616         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105617         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105618         gl_FUNC_FSEEKO.
105619         (gl_FUNC_FSEEKO): Invoke it.
105620         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105621         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105622         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105624 2007-04-25  Bruno Haible  <bruno@clisp.org>
105626         * modules/fflush (Depends-on): Add ftello.
105628 2007-04-25  Bruno Haible  <bruno@clisp.org>
105630         * modules/ftello-tests: New file.
105631         * tests/test-ftello.c: New file.
105633         * modules/ftello: New file.
105634         * m4/ftello.m4: New file.
105635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105636         HAVE_FTELLO.
105637         * lib/stdio_.h (ftello): New declaration.
105638         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105639         HAVE_FTELLO.
105641 2007-04-25  Bruno Haible  <bruno@clisp.org>
105643         * modules/fseeko-tests: New file.
105644         * tests/test-fseeko.c: New file.
105646         * modules/fseeko: New file.
105647         * m4/fseeko.m4: New file.
105648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105649         HAVE_FSEEKO.
105650         * lib/stdio_.h (fseeko): New declaration.
105651         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105652         HAVE_FSEEKO.
105654 2007-04-25  Bruno Haible  <bruno@clisp.org>
105656         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105658 2007-04-25  Bruno Haible  <bruno@clisp.org>
105660         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105661         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105662         * tests/test-unistd.c: Likewise.
105663         * tests/test-fcntl.c: Likewise.
105665 2007-04-23  Eric Blake  <ebb9@byu.net>
105667         * lib/fflush.c: Fix missing include.
105668         Reported by Bruno Haible.
105670 2007-04-23  Bruno Haible  <bruno@clisp.org>
105672         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105673         Reported by Eric Blake.
105675 2007-04-23  Bruno Haible  <bruno@clisp.org>
105677         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105679 2007-04-23  Bruno Haible  <bruno@clisp.org>
105681         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105683 2007-04-23  Bruno Haible  <bruno@clisp.org>
105685         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105686         Needed on HP-UX 11.
105688 2007-04-16  Eric Blake  <ebb9@byu.net>
105690         Make fflush rely on fpurge.
105691         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105692         open coding all variants.
105693         * modules/fflush (Depends-on): Add fpurge and unistd.
105694         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105695         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105697         Fix --with-tests compilation on cygwin.
105698         * modules/argmatch-tests (Makefile.am): List gnulib library first
105699         in LDADD.
105700         * modules/argp-tests (Makefile.am): Likewise.
105701         * modules/array-list-tests (Makefile.am): Likewise.
105702         * modules/array-oset-tests (Makefile.am): Likewise.
105703         * modules/avltree-list-tests (Makefile.am): Likewise.
105704         * modules/avltree-oset-tests (Makefile.am): Likewise.
105705         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105706         * modules/carray-list-tests (Makefile.am): Likewise.
105707         * modules/dirname-tests (Makefile.am): Likewise.
105708         * modules/frexp-tests (Makefile.am): Likewise.
105709         * modules/isnanl-tests (Makefile.am): Likewise.
105710         * modules/linked-list-tests (Makefile.am): Likewise.
105711         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105712         * modules/lock-tests (Makefile.am): Likewise.
105713         * modules/rbtree-list-tests (Makefile.am): Likewise.
105714         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105715         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105716         * modules/tls-tests (Makefile.am): Likewise.
105717         * modules/tsearch-tests (Makefile.am): Likewise.
105718         * modules/xvasprintf-tests (Makefile.am): Likewise.
105720         Fix fpurge for cygwin.
105721         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105722         value.
105723         * modules/fpurge-tests (Depends-on): Clean up trash.
105725 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105727         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105729         * m4/autobuild.m4: Re-indent.
105731 2007-04-13  Bruno Haible  <bruno@clisp.org>
105733         * modules/fpurge-tests: New file.
105734         * tests/test-fpurge.c: New file.
105736         * modules/fpurge: New file.
105737         * lib/fpurge.h: New file.
105738         * lib/fpurge.c: New file.
105739         * m4/fpurge.m4: New file.
105741 2007-04-13  Bruno Haible  <bruno@clisp.org>
105743         * modules/fbufmode-tests: New file.
105744         * tests/test-fbufmode.c: New file.
105746         * modules/fbufmode: New file.
105747         * lib/fbufmode.h: New file.
105748         * lib/fbufmode.c: New file.
105749         * m4/fbufmode.m4: New file.
105751 2007-04-13  Bruno Haible  <bruno@clisp.org>
105753         * modules/fwritable-tests: New file.
105754         * tests/test-fwritable.c: New file.
105756         * modules/fwritable: New file.
105757         * lib/fwritable.h: New file.
105758         * lib/fwritable.c: New file.
105759         * m4/fwritable.m4: New file.
105761 2007-04-13  Bruno Haible  <bruno@clisp.org>
105763         * modules/freadable-tests: New file.
105764         * tests/test-freadable.c: New file.
105766         * modules/freadable: New file.
105767         * lib/freadable.h: New file.
105768         * lib/freadable.c: New file.
105769         * m4/freadable.m4: New file.
105771 2007-04-13  Bruno Haible  <bruno@clisp.org>
105773         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105774         MOSTLYCLEANFILES.
105776 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105778         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105779         gzip bootstrap.conf to avoid dragging in i18n machinery.
105780         (gnulib_tool_option): Use it.
105782 2007-04-13  Bruno Haible  <bruno@clisp.org>
105784         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105785         %F directives.
105786         * tests/test-vasprintf-posix.c (test_function): Likewise.
105787         * tests/test-snprintf-posix.h (test_function): Likewise.
105788         * tests/test-sprintf-posix.h (test_function): Likewise.
105789         * tests/test-fprintf-posix.h (test_function): Likewise.
105790         * tests/test-printf-posix.h (test_function): Likewise.
105791         * tests/test-fprintf-posix.out: Likewise.
105793 2007-04-13  Bruno Haible  <bruno@clisp.org>
105795         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105796         * modules/tls-tests (configure.ac): Likewise.
105797         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105799 2007-04-13  Bruno Haible  <bruno@clisp.org>
105801         * lib/tls.c (glthread_tls_get): Fix return type.
105802         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105804 2007-04-12  Eric Blake  <ebb9@byu.net>
105806         * modules/gettime (Depends-on): Remove gettime.
105807         Reported by Dmitry V. Levin.
105809 2007-04-12  Bruno Haible  <bruno@clisp.org>
105811         * modules/fflush (Include): Mention <stdio.h>.
105812         * modules/strtoimax (Include): Mention <inttypes.h>.
105813         * modules/strtoumax (Include): Likewise.
105815 2007-04-12  Eric Blake  <ebb9@byu.net>
105817         * .cvsignore: New file.
105818         * .gitignore: Likewise.
105820 2007-04-12  Bruno Haible  <bruno@clisp.org>
105822         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105823         not before, since $(LDADD) often contains libgnu.a.
105824         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105825         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105826         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105827         Needed on Cygwin.
105829 2007-04-12  Eric Blake  <ebb9@byu.net>
105831         Work around glibc's failure to flush stdin on fclose.
105832         * lib/closein.c (close_stdin): Flush stdin before closing.
105834         Work around glibc's failure to reset seekable stdin on exit.
105835         * modules/closein: New module.
105836         * lib/closein.c: New file.
105837         * lib/closein.h: Likewise.
105838         * m4/closein.m4: Likewise.
105839         * MODULES.html.sh (File stream based Input/Output): Document it.
105841 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105843         * gnulib-tool: Rename generated 'autobuild' script to
105844         'do-autobuild' in --create-megatestdir output.
105846         * doc/gnulib.texi (Build robot for gnulib): Fix.
105848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105850         * modules/sysexits (Depends-on): Add absolute-header.
105852 2007-04-12  Eric Blake  <ebb9@byu.net>
105854         No need to preserve errno on success.
105855         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105856         Reported by Bruno Haible.
105858 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105860         * MODULES.html.sh (Support for maintaining and releasing
105861         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105863 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105865         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105867 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105869         * modules/autobuild: New module.
105871         * m4/autobuild.m4: New file.
105873 2007-04-11  Bruno Haible  <bruno@clisp.org>
105875         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105876         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105877         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105879         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105880         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105881         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105883         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105884         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105886         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105887         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105903         Reported by Eric Blake.
105905 2007-04-11  Bruno Haible  <bruno@clisp.org>
105907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105909 2007-04-10  Bruno Haible  <bruno@clisp.org>
105911         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105912         for NaN and Infinity. Needed on FreeBSD 6.1.
105913         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105914         regarding results for "%010a" of Infinity and NaN.
105915         * tests/test-vasprintf-posix.c (test_function): Likewise.
105916         * tests/test-snprintf-posix.h (test_function): Likewise.
105917         * tests/test-sprintf-posix.h (test_function): Likewise.
105918         * tests/test-fprintf-posix.h (test_function): Likewise.
105919         * tests/test-printf-posix.h (test_function): Likewise.
105920         * tests/test-fprintf-posix.out: Likewise.
105922 2007-04-10  Bruno Haible  <bruno@clisp.org>
105924         * modules/locale-tests: New file.
105925         * tests/test-locale.c: New file.
105927         * modules/locale: New file.
105928         * lib/locale_.h: New file.
105929         * m4/locale_h.m4: New file.
105931 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105932             Bruno Haible  <bruno@clisp.org>
105934         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105935         be determined, test for availability of the copysignf, copysign,
105936         copysignl functions.
105937         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105938         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105939         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105941 2007-04-09  Eric Blake  <ebb9@byu.net>
105943         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105944         * modules/stdio (Makefile.am): Support fflush.
105945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105946         * modules/fflush: New file.
105947         * lib/fflush.c: Likewise.
105948         * m4/fflush.m4: Likewise.
105949         * modules/fflush-tests: New test.
105950         * tests/test-fflush.c: Likewise.
105951         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105953 2007-04-06  Bruno Haible  <bruno@clisp.org>
105955         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105956         (VASNPRINTF): Use signbit for faster determination whether to print a
105957         minus sign.
105958         * modules/vasnprintf (Files): Remove lib/float+.h.
105959         * modules/fprintf-posix (Depends-on): Add signbit.
105960         * modules/snprintf-posix (Depends-on): Likewise.
105961         * modules/sprintf-posix (Depends-on): Likewise.
105962         * modules/vasnprintf-posix (Depends-on): Likewise.
105963         * modules/vasprintf-posix (Depends-on): Likewise.
105964         * modules/vfprintf-posix (Depends-on): Likewise.
105965         * modules/vsnprintf-posix (Depends-on): Likewise.
105966         * modules/vsprintf-posix (Depends-on): Likewise.
105968 2007-04-06  Bruno Haible  <bruno@clisp.org>
105970         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105971         * tests/test-frexpl.c (main): Likewise.
105972         * tests/test-ldexpl.c (main): Likewise.
105973         * modules/frexp-tests (Depends-on): Add signbit.
105974         * modules/frexpl-tests (Depdends-on): Likewise.
105975         * modules/ldexpl-tests (Depdends-on): Likewise.
105977 2007-04-06  Bruno Haible  <bruno@clisp.org>
105979         * modules/signbit-tests: New file.
105980         * tests/test-signbit.c: New file.
105982         * modules/signbit: New file.
105983         * lib/signbitf.c: New file.
105984         * lib/signbitd.c: New file.
105985         * lib/signbitl.c: New file.
105986         * m4/signbit.m4: New file.
105987         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105988         (signbit): New macro.
105989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105990         REPLACE_SIGNBIT.
105991         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105992         REPLACE_FREXPL into math.h.
105994 2007-04-06  Bruno Haible  <bruno@clisp.org>
105996         * modules/isnanf-nolibm-tests: New file.
105997         * tests/test-isnanf.c: New file.
105999         * modules/isnanf-nolibm: New file.
106000         * lib/isnanf.h: New file.
106001         * lib/isnanf.c: New file.
106002         * lib/isnan.c: Consider the USE_FLOAT macro.
106003         * m4/isnanf.m4: New file.
106005 2007-04-06  Bruno Haible  <bruno@clisp.org>
106007         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
106008         (Link): New section.
106010         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
106012 2007-04-06  Bruno Haible  <bruno@clisp.org>
106014         Assume the 'long double' type.
106015         * m4/longdouble.m4: Remove file.
106016         * config/srclist.txt: Don't mention longdouble.m4.
106017         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
106018         * lib/float+.h: Likewise.
106019         * lib/frexp.c: Likewise.
106020         * lib/printf-args.h: Likewise.
106021         * lib/printf-args.c: Likewise.
106022         * lib/printf-frexp.c: Likewise.
106023         * lib/printf-parse.c: Likewise.
106024         * lib/vasnprintf.c: Likewise.
106025         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
106026         * m4/intl.m4: Likewise.
106027         * m4/isnanl.m4: Likewise.
106028         * m4/printf.m4: Likewise.
106029         * m4/printf-frexpl.m4: Likewise.
106030         * m4/vasnprintf.m4: Likewise.
106031         * modules/allocsa (Files): Remove m4/longdouble.m4.
106032         * modules/gettext (Files): Likewise.
106033         * modules/relocatable-prog-wrapper (Files): Likewise.
106034         * modules/vasnprintf (Files): Likewise.
106035         * modules/isnanl (Files): Likewise.
106036         (Include): Simplify.
106037         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
106038         (Include): Simplify.
106039         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
106040         (Include): Simplify.
106041         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
106042         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106043         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
106044         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106045         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106046         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106047         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
106048         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106049         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106050         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106051         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
106052         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106053         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
106054         * tests/test-isnanl.c: Likewise.
106055         * tests/test-snprintf-posix.h: Likewise.
106056         * tests/test-sprintf-posix.h: Likewise.
106057         * tests/test-vasnprintf-posix.c: Likewise.
106058         * tests/test-vasnprintf-posix2.c: Likewise.
106059         * tests/test-vasprintf-posix.c: Likewise.
106061 2007-04-06  Bruno Haible  <bruno@clisp.org>
106063         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
106064         * lib/math_.h [__DECC]: Include the overridden include file through
106065         #include_next, outside the double-inclusion guard.
106066         * lib/stdio_.h [__DECC]: Likewise.
106067         * lib/stdlib_.h [__DECC]: Likewise.
106068         * lib/string_.h [__DECC]: Likewise.
106069         * lib/time_.h [__DECC]: Likewise.
106070         * lib/wchar_.h [__DECC]: Likewise.
106071         * lib/wctype_.h [__DECC]: Likewise.
106072         * lib/inttypes_.h [__DECC]: Likewise.
106073         Reported by Albert Chin <china@thewrittenword.com> in
106074         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
106076 2007-04-04  Eric Blake  <ebb9@byu.net>
106078         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
106079         1.5.x.
106081 2007-04-04  Bruno Haible  <bruno@clisp.org>
106083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
106084         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
106086 2007-04-04  Bruno Haible  <bruno@clisp.org>
106088         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
106089         results for "%010a" of Infinity and NaN.
106090         * tests/test-vasprintf-posix.c (test_function): Likewise.
106091         * tests/test-snprintf-posix.h (test_function): Likewise.
106092         * tests/test-sprintf-posix.h (test_function): Likewise.
106093         * tests/test-fprintf-posix.h (test_function): Remove these tests.
106094         * tests/test-printf-posix.h (test_function): Likewise.
106095         * tests/test-fprintf-posix.out: Update.
106096         Needed for FreeBSD 6.1.
106098 2007-04-04  Bruno Haible  <bruno@clisp.org>
106100         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
106101         directly used by the gnulib modules nor by gnulib-tool.
106103 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106105         * DEPENDENCIES: Give overall description of version dependency
106106         desirability.  Use more-typical names for apps.
106107         Add shell, coreutils, diffutils, grep, tar, gzip.
106109 2007-04-04  Simon Josefsson  <simon@josefsson.org>
106111         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
106113 2007-04-04  Karl Berry  <karl@gnu.org>
106115         * MODULES.html.sh (func_module): missing '.
106117 2007-04-03  Bruno Haible  <bruno@clisp.org>
106119         * modules/argmatch-tests (Makefile.am): New variable
106120         test_argmatch_LDADD.
106121         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
106122         * modules/array-list-tests (Makefile.am): New variable
106123         test_array_list_LDADD.
106124         * modules/array-oset-tests (Makefile.am): New variable
106125         test_array_oset_LDADD.
106126         * modules/avltree-list-tests (Makefile.am): New variable
106127         test_avltree_list_LDADD.
106128         * modules/avltree-oset-tests (Makefile.am): New variable
106129         test_avltree_oset_LDADD.
106130         * modules/avltreehash-list-tests (Makefile.am): New variable
106131         test_avltreehash_list_LDADD.
106132         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
106133         test_canonicalize_lgpl_LDADD.
106134         * modules/carray-list-tests (Makefile.am): New variable
106135         test_carray_list_LDADD.
106136         * modules/dirname-tests (Makefile.am): New variable
106137         test_dirname_LDADD.
106138         * modules/linked-list-tests (Makefile.am): New variable
106139         test_linked_list_LDADD.
106140         * modules/linkedhash-list-tests (Makefile.am): New variable
106141         test_linkedhash_list_LDADD.
106142         * modules/rbtree-list-tests (Makefile.am): New variable
106143         test_rbtree_list_LDADD.
106144         * modules/rbtree-oset-tests (Makefile.am): New variable
106145         test_rbtree_oset_LDADD.
106146         * modules/rbtreehash-list-tests (Makefile.am): New variable
106147         test_rbtreehash_list_LDADD.
106148         * modules/xvasprintf-tests (Makefile.am): New variable
106149         test_xvasprintf_LDADD.
106150         Reported by Eric Blake.
106152 2007-04-03  Eric Blake  <ebb9@byu.net>
106154         * DEPENDENCIES: Weaken m4 requirements.
106156 2007-04-03  Bruno Haible  <bruno@clisp.org>
106158         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
106159         * modules/isnanl-tests (configure.ac): Likewise.
106161 2007-04-03  Ben Pfaff  <blp@gnu.org>
106163         * modules/iconv_open: Add $(srcdir)/ to source directory
106164         references in Makefile fragments that call gperf, to fix VPATH
106165         builds.
106167 2007-04-03  Bruno Haible  <bruno@clisp.org>
106169         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
106170         * lib/ldexpl.c: Undo last change.
106172 2007-04-03  Bruno Haible  <bruno@clisp.org>
106174         * modules/printf-frexpl (Depends-on): Undo last change.
106175         (Files): Add m4/ldexpl.m4.
106177 2007-04-03  Bruno Haible  <bruno@clisp.org>
106179         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
106180         * modules/isnanl (Link): New section.
106182         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
106183         * modules/frexp (Link): New section.
106185         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
106186         * modules/frexpl (Link): New section.
106188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
106189         * modules/ldexpl (Link): New section.
106191 2007-04-03  Bruno Haible  <bruno@clisp.org>
106193         * modules/TEMPLATE-EXTENDED: New file.
106194         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
106196 2007-04-03  Bruno Haible  <bruno@clisp.org>
106198         * DEPENDENCIES: New file.
106199         Suggested by Simon Josefsson.
106201 2007-04-03  Bruno Haible  <bruno@clisp.org>
106203         * doc/gnulib.texi: Escape @.
106205 2007-04-03  James Youngman  <jay@gnu.org>
106206         and Paul Eggert  <eggert@cs.ucla.edu>
106208         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
106209         birthtime on all systems that have birthtime, not just those which
106210         use st_birthtimensec rather than st_birthtim.  Putting zero in
106211         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
106212         that the birth time is not available for files on an NFS mount.
106214 2007-04-03  Simon Josefsson  <simon@josefsson.org>
106216         * modules/memxor: Move back from crypto/, suggested by Bruno.
106217         * modules/crypto/hmac-sha1: Fix memxor dependency.
106219         * modules/crypto/gc: Moved from ../.
106221 2007-04-02  Eric Blake  <ebb9@byu.net>
106223         * lib/ldexpl.c (includes): Avoid libm.
106225         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
106227 2007-04-02  Bruno Haible  <bruno@clisp.org>
106229         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
106230         on IRIX.
106232 2007-04-02  Bruno Haible  <bruno@clisp.org>
106234         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
106235         x86 or x86_64 platforms running MacOS X.
106236         Reported by Ryan Schmidt <@ryandesign.com>.
106238 2007-04-02  Bruno Haible  <bruno@clisp.org>
106240         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
106241         i386.
106243 2007-04-01  Simon Josefsson  <simon@josefsson.org>
106245         * modules/crypto/arcfour: Moved from ../.
106246         * modules/crypto/arcfour-tests: Moved from ../.
106247         * modules/crypto/arctwo: Moved from ../.
106248         * modules/crypto/arctwo-tests: Moved from ../.
106249         * modules/crypto/des: Moved from ../.
106250         * modules/crypto/des-tests: Moved from ../.
106251         * modules/crypto/gc-arcfour: Moved from ../.
106252         * modules/crypto/gc-arcfour-tests: Moved from ../.
106253         * modules/crypto/gc-arctwo: Moved from ../.
106254         * modules/crypto/gc-arctwo-tests: Moved from ../.
106255         * modules/crypto/gc-des: Moved from ../.
106256         * modules/crypto/gc-des-tests: Moved from ../.
106257         * modules/crypto/gc-hmac-md5: Moved from ../.
106258         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
106259         * modules/crypto/gc-hmac-sha1: Moved from ../.
106260         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
106261         * modules/crypto/gc-md2: Moved from ../.
106262         * modules/crypto/gc-md2-tests: Moved from ../.
106263         * modules/crypto/gc-md4: Moved from ../.
106264         * modules/crypto/gc-md4-tests: Moved from ../.
106265         * modules/crypto/gc-md5: Moved from ../.
106266         * modules/crypto/gc-md5-tests: Moved from ../.
106267         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
106268         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
106269         * modules/crypto/gc-random: Moved from ../.
106270         * modules/crypto/gc-rijndael: Moved from ../.
106271         * modules/crypto/gc-rijndael-tests: Moved from ../.
106272         * modules/crypto/gc-sha1: Moved from ../.
106273         * modules/crypto/gc-sha1-tests: Moved from ../.
106274         * modules/crypto/gc-tests: Moved from ../.
106275         * modules/crypto/hmac-md5: Moved from ../.
106276         * modules/crypto/hmac-md5-tests: Moved from ../.
106277         * modules/crypto/hmac-sha1: Moved from ../.
106278         * modules/crypto/hmac-sha1-tests: Moved from ../.
106279         * modules/crypto/md2: Moved from ../.
106280         * modules/crypto/md2-tests: Moved from ../.
106281         * modules/crypto/md4: Moved from ../.
106282         * modules/crypto/md4-tests: Moved from ../.
106283         * modules/crypto/md5: Moved from ../.
106284         * modules/crypto/md5-tests: Moved from ../.
106285         * modules/crypto/memxor: Moved from ../.
106286         * modules/crypto/rijndael: Moved from ../.
106287         * modules/crypto/rijndael-tests: Moved from ../.
106288         * modules/crypto/sha1: Moved from ../.
106290 2007-03-30  James Youngman  <jay@gnu.org>
106292         * tests/test-stat-time.c (prepare_test): use chmod() rather than
106293         rename() to change the ctime of a file (because ctime is unaffected
106294         by rename on jfs2 on AIX 5.1).
106295         (main): Start by doing cleanup, in case a previous run failed leaving
106296         test files behind.
106298 2007-03-31  Bruno Haible  <bruno@clisp.org>
106300         Support old proprietary implementations of iconv.
106301         * modules/iconv_open: New file.
106302         * lib/iconv_.h: New file.
106303         * m4/iconv_h.m4: New file.
106304         * lib/iconv_open.c: New file.
106305         * lib/iconv_open-aix.gperf: New file.
106306         * lib/iconv_open-hpux.gperf: New file.
106307         * lib/iconv_open-irix.gperf: New file.
106308         * lib/iconv_open-osf.gperf: New file.
106309         * m4/iconv_open.m4: New file.
106310         * modules/linebreak (Depends-on): Add iconv_open.
106311         * modules/striconv (Depends-on): Likewise.
106312         * modules/striconveh (Depends-on): Likewise.
106313         * modules/unicodeio (Depends-on): Likewise.
106314         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
106315         (iconv_t)(-1).
106316         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
106317         conversion if cd is (iconv_t)(-1).
106318         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
106319         is not possible.
106321 2007-03-31  Bruno Haible  <bruno@clisp.org>
106323         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106324         work on Solaris either. Protect also second use of "autodetect_jp".
106326 2007-03-31  Bruno Haible  <bruno@clisp.org>
106328         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106329         the function is not present.
106331 2007-03-31  Bruno Haible  <bruno@clisp.org>
106333         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106334         the function is not present.
106336 2007-03-31  Bruno Haible  <bruno@clisp.org>
106338         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106339         a bug in HP-UX iconv_open().
106341 2007-03-31  Bruno Haible  <bruno@clisp.org>
106343         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106344         (Mathematics <math.h>): New section, add fpieee.
106345         (Input/output <stdio.h>): Add fseterr.
106346         (Mathematics <math.h>): New section, add printf-frexp.
106347         (Container data structures): Add sublist.
106348         (Core language properties): Add fpucw, inline.
106349         (Functions for greatest-width integer types <inttypes.h>): Add
106350         imaxabs, imaxdiv, inttypes.
106351         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106352         isnanl-nolibm, ldexp.
106353         (Mathematics <math.h>): New section, add printf-frexpl.
106354         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106355         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106356         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106357         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106358         (Unicode string functions): Add unistr/u*-mbtoucr.
106359         (Java): Add javacomp-script, javaexec-script.
106360         (C#): Add csharpcomp-script, csharpexec-script.
106361         (Support for building libraries and executables): Add havelib,
106362         relocatable-*.
106363         (Support for maintaining and releasing projects): Renamed from
106364         'Support for maintaining and release projects'. Add announce-gen.
106366 2007-03-31  Bruno Haible  <bruno@clisp.org>
106368         * README: Talk primarily about git.
106369         (git and CVS): Renamed from CVS.
106370         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106371         gnulib is available through git.
106372         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106374 2007-03-30  Bruno Haible  <bruno@clisp.org>
106376         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106377         * lib/poll_.h: Likewise.
106378         * lib/stat_.h: Likewise.
106379         * lib/sys_time_.h: Likewise.
106380         * lib/sysexit_.h: Likewise.
106381         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106382         * lib/stdbool_.h: Likewise.
106383         * lib/byteswap_.h: Add double-inclusion guard.
106385 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106387         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106389 2007-03-30  Karl Berry  <karl@gnu.org>
106391         * config/srclist-update: double space after USA in the license
106392         substitution, since that's how it's usually (?) written.
106394 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106396         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106397         reported by Bruno Haible.
106399 2007-03-29  Bruno Haible  <bruno@clisp.org>
106401         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106402         a bug in AIX iconv().
106404 2007-03-29  Bruno Haible  <bruno@clisp.org>
106406         * modules/ldexpl-tests: New file.
106407         * tests/test-ldexpl.c: New file.
106409 2007-03-29  Bruno Haible  <bruno@clisp.org>
106411         * lib/ldexpl.c: Include fpucw.h.
106412         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106413         multiplication.
106414         * modules/ldexpl (Depends-on): Add fpucw.
106416 2007-03-29  Bruno Haible  <bruno@clisp.org>
106418         * modules/ldexpl: New file.
106419         * m4/ldexpl.m4: New file.
106420         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106421         set.
106422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106423         REPLACE_LDEXPL.
106424         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106425         REPLACE_LDEXPL.
106426         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106427         gl_FUNC_LDEXPL_WORKS.
106428         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106429         * modules/mathl (Files): Remove lib/ldexpl.c.
106430         (Depends-on): Add ldexpl.
106432 2007-03-29  Bruno Haible  <bruno@clisp.org>
106434         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106436 2007-03-29  Bruno Haible  <bruno@clisp.org>
106438         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106439         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106440         and possibly also HP-UX.
106441         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106442         work on AIX, IRIX, HP-UX, OSF/1.
106443         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106444         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106445         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106446         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106447         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106448         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106450 2007-03-29  Bruno Haible  <bruno@clisp.org>
106452         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106454 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106456         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106457         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106459 2007-03-29  Eric Blake  <ebb9@byu.net>
106461         * lib/acl-internal.h: Remove redundant include.
106462         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106463         Cygwin when a file is locked.
106465 2007-03-29  Bruno Haible  <bruno@clisp.org>
106467         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106468         file.
106469         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106471 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106474         try to remove a parent directory if the child couldn't be removed
106475         (except for the first rmdir, which could fail because the child
106476         doesn't exist).  Problem reported by Jeff Blaine in
106477         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106479 2007-03-28  Bruno Haible  <bruno@clisp.org>
106481         * lib/striconveh.c (utf8conv_carefully): New function.
106482         (mem_cd_iconveh_internal): Invoke it.
106484 2007-03-28  Bruno Haible  <bruno@clisp.org>
106486         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106487         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106488         input.
106489         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106490         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106491         unistr/u8-uctomb.
106493 2007-03-28  Bruno Haible  <bruno@clisp.org>
106495         * modules/unistr/u8-mbtoucr: New file.
106496         * lib/unistr/u8-mbtoucr.c: New file.
106497         * modules/unistr/u16-mbtoucr: New file.
106498         * lib/unistr/u16-mbtoucr.c: New file.
106499         * modules/unistr/u16-mbtoucr: New file.
106500         * lib/unistr/u16-mbtoucr.c: New file.
106501         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106503 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106504             Bruno Haible  <bruno@clisp.org>
106506         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106507         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106508         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106510         * m4/stdio_h.m4: Add stubs for vasprintf too.
106512         * modules/stdio: Support vasprintf in sed command.
106514         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106515         vasprintf.h.  Add stdio module indicator.
106517         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106518         vasprintf.h.
106520         * lib/vasprintf.h: File removed.
106522         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106523         * lib/vasprintf.c: Ditto.
106524         * lib/xvasprintf.c: Ditto.
106525         * tests/test-vasprintf-posix.c: Ditto.
106526         * tests/test-vasprintf.c: Ditto.
106528 2007-03-27  Bruno Haible  <bruno@clisp.org>
106530         Make vasnprintf multithread-safe.
106531         * lib/vasnprintf.c (decimal_point_char): New function.
106532         (VASNPRINTF): Use it.
106533         Suggested by Simon Josefsson.
106535 2007-03-27  Eric Blake  <ebb9@byu.net>
106537         Support sub-second birthtime on cygwin.
106538         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106539         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106540         (get_stat_birthtime): Also work with st_birthtim.
106542 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106544         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106545         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106546         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106547         (get_stat_birthtime_ns): Simplify compile-time tests.
106548         (get_stat_birthtime): Change the API to look like
106549         get_stat_mtime etc., except return a negative tv_nsec on error.
106550         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106551         Don't check for "spare" fields.
106552         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106553         or for struct stat.st_birthtime, as these tests aren't used.
106554         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106556 2007-03-27  Bruno Haible  <bruno@clisp.org>
106558         * lib/stat-time.h: Include <sys/stat.h>.
106560 2007-03-27  James Youngman  <jay@gnu.org>
106562         * lib/stat-time.h (get_stat_birthtime): New function for
106563           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106564         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106565           and its variants.
106566         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106567         * modules/stat-time-test: New file.
106568         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106570 2007-03-26  Bruno Haible  <bruno@clisp.org>
106572         Better support of signalling NaNs.
106573         * lib/atanl.c: Include isnanl.h.
106574         (atanl): Perform test for NaN at the beginning of the function and
106575         through a call to isnanl.
106576         * lib/cosl.c: Include isnanl.h.
106577         (cosl): Perform test for NaN at the beginning of the function and
106578         through a call to isnanl.
106579         * lib/ldexpl.c: Include isnanl.h.
106580         (ldexpl): Perform test for NaN through a call to isnanl.
106581         * lib/logl.c: Include isnanl.h.
106582         (logl): Perform test for NaN at the beginning of the function and
106583         through a call to isnanl.
106584         * lib/sinl.c: Include isnanl.h.
106585         (sinl): Perform test for NaN at the beginning of the function and
106586         through a call to isnanl.
106587         * lib/sqrtl.c: Include isnanl.h.
106588         (sqrtl): Perform test for NaN at the beginning of the function and
106589         through a call to isnanl.
106590         * lib/tanl.c: Include isnanl.h.
106591         (tanl): Perform test for NaN at the beginning of the function and
106592         through a call to isnanl.
106593         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106594         * modules/mathl (Depends-on): Add isnanl.
106596 2007-03-26  Eric Blake  <ebb9@byu.net>
106598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106599         regression in logic sense of previous patch.
106601 2007-03-26  Bruno Haible  <bruno@clisp.org>
106603         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106604         unportable shell command "if ! ...".
106605         Reported by Ralf Wildenhues.
106607 2007-03-25  Bruno Haible  <bruno@clisp.org>
106609         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106610         <sysexits.h> file, and only add EX_CONFIG.
106611         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106612         absolute file name and whether it is sufficient. Substitute also
106613         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106614         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106615         ABSOLUTE_SYSEXITS_H into sysexits.h.
106617 2007-03-25  Bruno Haible  <bruno@clisp.org>
106619         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106620         hints is NULL.
106622 2007-03-25  Bruno Haible  <bruno@clisp.org>
106624         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106625         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106627 2007-03-25  Bruno Haible  <bruno@clisp.org>
106629         * lib/vasnprintf.c: Include langinfo.h.
106630         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106631         multithread-safe.
106632         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106641         Reported by Simon Josefsson.
106643 2007-03-25  Bruno Haible  <bruno@clisp.org>
106645         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106646         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106647         * modules/vasnprintf (Depends-on): Add stdint.
106649 2007-03-25  Bruno Haible  <bruno@clisp.org>
106651         * modules/fpieee: New file.
106652         * m4/fpieee.m4: New file.
106653         * modules/isnan-nolibm (Depends-on): Add fpieee.
106654         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106655         * modules/isnanl (Depends-on): Add fpieee.
106657 2007-03-25  Bruno Haible  <bruno@clisp.org>
106659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106661 2007-03-25  Bruno Haible  <bruno@clisp.org>
106663         Avoid test failures on IRIX 6.5.
106664         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106665         (main): Use it.
106666         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106667         macros.
106668         (main): Use them.
106670 2007-03-25  Bruno Haible  <bruno@clisp.org>
106672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106673         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106674         exists but doesn't work.
106675         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106676         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106678         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106679         math.h.
106681 2007-03-25  Bruno Haible  <bruno@clisp.org>
106683         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106684         returns inf. Needed on IRIX 6.5.
106686 2007-03-25  Bruno Haible  <bruno@clisp.org>
106688         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106689         (main): Use isnanl instead of x != x idiom.
106690         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106692         * tests/test-frexp.c: Include isnan.h.
106693         (main): Use isnan instead of x != x idiom.
106694         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106696 2007-03-25  Bruno Haible  <bruno@clisp.org>
106698         * tests/test-frexp.c (NaN): New function/macro.
106699         (main): Use it instead of 0.0 / 0.0.
106700         * tests/test-isnan.c (NaN): New function/macro.
106701         (main): Use it instead of 0.0 / 0.0.
106702         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106703         (test_function): Use it instead of 0.0 / 0.0.
106704         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106705         (test_function): Use it instead of 0.0 / 0.0.
106706         * tests/test-snprintf-posix.h (NaN): New function/macro.
106707         (test_function): Use it instead of 0.0 / 0.0.
106708         * tests/test-sprintf-posix.h (NaN): New function/macro.
106709         (test_function): Use it instead of 0.0 / 0.0.
106710         * tests/test-fprintf-posix.h (NaN): New function/macro.
106711         (test_function): Use it instead of 0.0 / 0.0.
106712         * tests/test-printf-posix.h (NaN): New function/macro.
106713         (test_function): Use it instead of 0.0 / 0.0.
106715         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106717 2007-03-25  Bruno Haible  <bruno@clisp.org>
106719         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106721 2007-03-25  Bruno Haible  <bruno@clisp.org>
106723         * lib/regexec.c (merge_state_with_log): Make static.
106725 2007-03-25  Bruno Haible  <bruno@clisp.org>
106727         * lib/trigl.c (kernel_rem_pio2): Make static.
106729 2007-03-25  Bruno Haible  <bruno@clisp.org>
106731         * lib/sincosl.c (sincosl_table): Make static.
106733 2007-03-25  Bruno Haible  <bruno@clisp.org>
106735         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106736         if the compiler does not support C99.
106738 2007-03-25  Bruno Haible  <bruno@clisp.org>
106740         * modules/time (Makefile.am): Ensure all rule action lines start with a
106741         tab.
106743 2007-03-24  Bruno Haible  <bruno@clisp.org>
106745         * modules/tsearch-tests: New file.
106746         * tests/test-tsearch.sh: New file.
106747         * tests/test-tsearch.c: New file, mostly copied from glibc.
106749         * modules/search-tests: New file.
106750         * tests/test-search.c: New file.
106752         * modules/search: New file.
106753         * lib/search_.h: New file, incorporating lib/tsearch.h.
106754         * m4/search_h.m4: New file.
106755         * lib/tsearch.h: Remove file.
106756         * lib/tsearch.c: Include search.h instead of tsearch.h.
106757         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106758         HAVE_TSEARCH.
106759         * modules/tsearch (Files): Remove lib/tsearch.h.
106760         (Depends-on): Add search.
106761         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106762         (Include): Change tsearch.h into search.h.
106764 2007-03-24  Bruno Haible  <bruno@clisp.org>
106766         * modules/fpucw: New file.
106767         * lib/fpucw.h: New file.
106768         * lib/frexp.c: Include fpucw.h.
106769         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106770         (FUNC): Use them.
106771         * lib/printf-frexp.c: Include fpucw.h.
106772         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106773         (FUNC): Use them.
106774         * lib/vasnprintf.c: Include fpucw.h.
106775         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106776         'long double' calculations.
106777         * tests/test-frexpl.c: Include fpucw.h.
106778         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106779         * tests/test-printf-frexpl.c: Include fpucw.h.
106780         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106781         * modules/frexpl (Depends-on): Add fpucw.
106782         * modules/printf-frexpl (Depends-on): Likewise.
106783         * modules/fprintf-posix (Depends-on): Likewise.
106784         * modules/snprintf-posix (Depends-on): Likewise.
106785         * modules/sprintf-posix (Depends-on): Likewise.
106786         * modules/vasnprintf-posix (Depends-on): Likewise.
106787         * modules/vasprintf-posix (Depends-on): Likewise.
106788         * modules/vfprintf-posix (Depends-on): Likewise.
106789         * modules/vsnprintf-posix (Depends-on): Likewise.
106790         * modules/vsprintf-posix (Depends-on): Likewise.
106791         * modules/frexpl-tests (Depends-on): Likewise.
106792         * modules/printf-frexpl-tests (Depends-on): Likewise.
106794 2007-03-24  Bruno Haible  <bruno@clisp.org>
106796         * lib/float+.h: New file.
106797         * lib/isnan.c: Include float+.h.
106798         (SIZE): New macro.
106799         (FUNC): Compare only SIZE bytes of the value.
106800         * lib/vasnprintf.c: Include float+.h.
106801         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106802         SIZEOF_LDBL or SIZEOF_DBL bytes.
106803         * modules/isnan-nolibm (Files): Add lib/float+.h.
106804         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106805         * modules/isnanl (Files): Add lib/float+.h.
106806         * modules/vasnprintf (Files): Add lib/float+.h.
106808 2007-03-24  Bruno Haible  <bruno@clisp.org>
106810         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106811         include isnanl-nolibm.h.
106813 2007-03-24  Bruno Haible  <bruno@clisp.org>
106815         * tests/test-read-file.c (main): Don't produce spurious output for
106816         expected situations. Make the test fail if it encountered unexpected
106817         results.
106819 2007-03-24  Bruno Haible  <bruno@clisp.org>
106821         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106822         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106824 2007-03-24  Bruno Haible  <bruno@clisp.org>
106826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106828 2007-03-24  Bruno Haible  <bruno@clisp.org>
106830         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106831         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106833         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106834         * modules/utf8-ucs4: Turn into a symbolic link to module
106835         unistr/u8-mbtouc.
106837         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106838         utf8-ucs4-unsafe.
106839         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106840         unistr/u8-mbtouc-unsafe.
106842         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106843         * modules/utf16-ucs4: Turn into a symbolic link to module
106844         unistr/u16-mbtouc.
106846         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106847         utf16-ucs4-unsafe.
106848         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106849         unistr/u16-mbtouc-unsafe.
106851         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106852         * modules/ucs4-utf8: Turn into a symbolic link to module
106853         unistr/u8-ubtomb.
106855         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106856         * modules/ucs4-utf16: Turn into a symbolic link to module
106857         unistr/u16-ubtomb.
106859 2007-03-24  Bruno Haible  <bruno@clisp.org>
106861         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106862         Enable the function only if HAVE_INLINE.
106863         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106864         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106865         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106866         Enable the function only if HAVE_INLINE.
106867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106868         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106869         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106870         Enable the function only if HAVE_INLINE.
106871         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106872         Enable the function only if HAVE_INLINE.
106873         * modules/utf8-ucs4: Update.
106874         * modules/utf8-ucs4-unsafe: Update.
106875         * modules/utf16-ucs4: Update.
106876         * modules/utf16-ucs4-unsafe: Update.
106877         * modules/ucs4-utf8: Update.
106878         * modules/ucs4-utf16: Update.
106880 2007-03-24  Bruno Haible  <bruno@clisp.org>
106882         * lib/utf8-ucs4.h: Remove file.
106883         * lib/utf8-ucs4-unsafe.h: Remove file.
106884         * lib/utf16-ucs4.h: Remove file.
106885         * lib/utf16-ucs4-unsafe.h: Remove file.
106886         * lib/ucs4-utf8.h: Remove file.
106887         * lib/ucs4-utf16.h: Remove file.
106888         * lib/unistr.h: Include their previous contents.
106889         * m4/utf-ucs4.m4: Remove file.
106890         * m4/ucs4-utf.m4: Remove file.
106891         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106892         (Depends-on): Add unistr/base.
106893         (configure.ac): Remove gl_UTF_UCS4.
106894         (Makefile.am): Update.
106895         (Include): Change to unistr.h.
106896         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106897         (Depends-on): Add unistr/base.
106898         (configure.ac): Remove gl_UTF_UCS4.
106899         (Makefile.am): Update.
106900         (Include): Change to unistr.h.
106901         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106902         (Depends-on): Add unistr/base.
106903         (configure.ac): Remove gl_UTF_UCS4.
106904         (Makefile.am): Update.
106905         (Include): Change to unistr.h.
106906         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106907         (Depends-on): Add unistr/base.
106908         (configure.ac): Remove gl_UTF_UCS4.
106909         (Makefile.am): Update.
106910         (Include): Change to unistr.h.
106911         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106912         (Depends-on): Add unistr/base.
106913         (configure.ac): Remove gl_UCS4_UTF.
106914         (Makefile.am): Update.
106915         (Include): Change to unistr.h.
106916         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106917         (Depends-on): Add unistr/base.
106918         (configure.ac): Remove gl_UCS4_UTF.
106919         (Makefile.am): Update.
106920         (Include): Change to unistr.h.
106921         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106922         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106923         utf8-ucs4-unsafe.h.
106924         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106925         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106926         utf16-ucs4-unsafe.h.
106927         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106928         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106929         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106930         * lib/unistr/u8-strchr.c: Likewise.
106931         * lib/unistr/u8-strrchr.c: Likewise.
106932         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106933         * lib/unistr/u16-strchr.c: Likewise.
106934         * lib/unistr/u16-strrchr.c: Likewise.
106935         * lib/striconveh.c: Update.
106936         * lib/linebreak.c: Update.
106938 2007-03-24  Bruno Haible  <bruno@clisp.org>
106940         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106941         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106943 2007-03-22  Bruno Haible  <bruno@clisp.org>
106945         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106947 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106949         * MODULES.html.sh (File system functions): New module write-any-file.
106950         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106951         * m4/write-any-file.m4: New files.
106953 2007-03-23  Eric Blake  <ebb9@byu.net>
106955         * gnulib-tool: Rearrange space-tab sequences, since some editors
106956         like to eat them.
106958 2007-03-23  Eric Blake  <ebb9@byu.net>
106960         * lib/version-etc.c (version_etc_va): Update license wording to
106961         be more concise.  Recommended by Richard Stallman.
106963 2007-03-22  Bruno Haible  <bruno@clisp.org>
106965         * lib/poll.c (MSG_PEEK): New fallback definition.
106967 2007-03-22  Bruno Haible  <bruno@clisp.org>
106969         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106970         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106971         (main): Update.
106972         Fixes a compilation error on BeOS.
106974 2007-03-22  Bruno Haible  <bruno@clisp.org>
106976         * modules/frexpl-tests: New file.
106977         * tests/test-frexpl.c: New file.
106979         * modules/frexpl: New file.
106980         * m4/frexpl.m4: New file.
106981         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106982         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106984         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106985         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106986         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106988 2007-03-22  Bruno Haible  <bruno@clisp.org>
106990         * lib/frexpl.c: Share code with lib/frexp.c.
106991         * modules/mathl (Files): Add lib/frexp.c.
106992         (Depends-on): Add isnanl-nolibm.
106994 2007-03-22  Bruno Haible  <bruno@clisp.org>
106996         * modules/printf-frexp (Files): Add m4/frexp.m4.
106997         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106998         only if the found frexp function actually works.
107000 2007-03-22  Bruno Haible  <bruno@clisp.org>
107002         * lib/frexp.c: Remove older implementation that uses divisions.
107004 2007-03-21  Bruno Haible  <bruno@clisp.org>
107006         * modules/frexp-tests: New file.
107007         * tests/test-frexp.c: New file.
107009         * modules/frexp: New file.
107010         * lib/frexp.c: New file.
107011         * m4/frexp.m4: New file.
107012         * lib/math_.h (frexp): New declaration.
107013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
107014         REPLACE_FREXP.
107015         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
107017 2007-03-21  Bruno Haible  <bruno@clisp.org>
107019         * modules/isnanl-tests: New file.
107020         * tests/test-isnanl.c: New file.
107022         * modules/isnanl: New file.
107023         * lib/isnanl.h: New file.
107024         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
107025         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
107026         gl_FUNC_ISNANL_WORKS.
107027         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
107028         New macros.
107030 2007-03-21  Bruno Haible  <bruno@clisp.org>
107032         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
107033         lib/isnanl.h.
107034         (Include): Update.
107035         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
107036         * lib/vasnprintf.c: Update.
107037         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
107038         tests/test-isnanl.h, remove tests/test-isnanl.c.
107039         (Makefile.am): Update.
107040         * tests/test-isnanl-nolibm.c: New file.
107041         * tests/test-isnanl.h: New file.
107042         * tests/test-isnanl.c: Remove file.
107044 2007-03-21  Jim Meyering  <jim@meyering.net>
107046         When trying to open ".", treat ESTALE like EACCES.
107047         * lib/savewd.c (savewd_save): Resort to forking not just upon
107048         failure with EACCES, but also when errno is ESTALE.
107050 2007-03-20  Bruno Haible  <bruno@clisp.org>
107052         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
107053         Needed on AIX 5.1. Reported by Matthew Woehlke.
107055 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107057         Suggestions by Bruno Haible:
107058         * lib/acl-internal.h: Include "gettext.h" rather than rolling
107059         our own.
107060         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
107061         * modules/acl (Depends-on): Add gettext.
107063 2007-03-19  Bruno Haible  <bruno@clisp.org>
107065         * modules/iconvme: Remove file.
107066         * lib/iconvme.h: Remove file.
107067         * lib/iconvme.c: Remove file.
107068         * m4/iconvme.m4: Remove file.
107070 2007-03-19  Bruno Haible  <bruno@clisp.org>
107072         * doc/relocatable-maint.texi: Break long shell script line.
107073         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107075 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107077         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
107078         handle file_has_acl.
107079         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
107080         * lib/acl.c: Move header inclusions and related macro defns into
107081         lib/acl-internal.h.
107082         (S_ISLNK): Remove defn, since that's now done for us.
107083         (file_has_acl): Move to lib/file-has-acl.c.
107084         Call acl_trivial if available.  This is the crucial part of the fix.
107085         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
107086         shared within the library.  Rewrite a bit, partly to make it compatible
107087         with the GNU coding style.
107088         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
107089         Remove unnecessary double-quotes.
107090         Don't test for acl_to_text; the build will catch that.
107091         Replace acl_entries if it doesn't exist and it is needed.
107092         Check for -lsec and acl_trivial (as used on Solaris 10).
107093         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
107094         lib/file-has-acl.c.
107095         (Depends-on): Add sys_stat, for S_ISLNK.
107097 2007-03-19  Ben Pfaff  <blp@gnu.org>
107099         * doc/gnulib.texi: Fix typos.
107100         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107102 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107104         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
107105         If size is zero here, buf must be zero.
107107 2007-03-19  Simon Josefsson  <simon@josefsson.org>
107109         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
107110         <bruno@clisp.org>.
107112 2007-03-18  Bruno Haible  <bruno@clisp.org>
107114         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
107115         Suggested by Eric Blake.
107117 2007-03-18  Ben Pfaff  <blp@gnu.org>
107119         * doc/relocatable.texi: Recommend using as prefix a directory
107120         that does not exist and will never be created.  Based on
107121         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
107122         and others.
107124 2007-03-17  Bruno Haible  <bruno@clisp.org>
107126         * lib/fchownat.c: Include lchown.h.
107128 2007-03-17  Bruno Haible  <bruno@clisp.org>
107130         Fix endless loop when the given allocated size was > INT_MAX.
107131         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
107132         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
107133         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
107134         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
107135         * lib/sprintf.c (sprintf): Likewise.
107137 2007-03-17  Bruno Haible  <bruno@clisp.org>
107139         * tests/test-argp-2.sh (func_compare): Output a context diff.
107141 2007-03-17  Bruno Haible  <bruno@clisp.org>
107143         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
107144         locale's decimal-point character.
107146 2007-03-17  Bruno Haible  <bruno@clisp.org>
107148         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
107149         before comparing it. Needed because on some platforms (e.g. x86) a
107150         'long double' occupies less bytes than sizeof (long double).
107152 2007-03-17  Bruno Haible  <bruno@clisp.org>
107154         * tests/test-crc.c (main): Make printf statements 64-bit clean.
107155         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
107156         * tests/test-getaddrinfo.c (simple): Likewise.
107157         * tests/test-read-file.c (main): Likewise.
107159 2007-03-17  Bruno Haible  <bruno@clisp.org>
107161         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
107163 2007-03-17  Bruno Haible  <bruno@clisp.org>
107165         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
107166         unused variable.
107168 2007-03-17  Bruno Haible  <bruno@clisp.org>
107170         * tests/test-c-strcasecmp.c: Include c-strcase.h.
107171         * tests/test-c-strncasecmp.c: Likewise.
107173 2007-03-17  Bruno Haible  <bruno@clisp.org>
107175         * modules/stdlib (Depends-on): Add unistd.
107176         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
107177         Needed for MacOS X 10.3.
107179 2007-03-17  Bruno Haible  <bruno@clisp.org>
107181         * lib/unistr/u-strdup.h: Include <stdlib.h>.
107183 2007-03-17  Bruno Haible  <bruno@clisp.org>
107185         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
107187 2007-03-17  Bruno Haible  <bruno@clisp.org>
107189         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
107190         to reflect files copied from gnulib (with or without modifications).
107191         Suggested by Jim Meyering.
107193 2007-03-17  Eric Blake  <ebb9@byu.net>
107195         * NEWS: Document stdlib change from 2007-02-18.
107197 2007-03-17  Jim Meyering  <jim@meyering.net>
107199         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
107200         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
107201         someone uses a name containing shell meta-characters.
107202         Reported by Alfred M. Szmidt.
107204         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
107206 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107208         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
107209         and copy gettext configuration files only if configure.ac contains
107210         a use of AM_GNU_GETTEXT_VERSION.
107212 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107214         * build-aux/bootstrap (gnulib_name): New variable.
107215         (gnulib_tool_options): Use it.
107217 2007-03-13  Simon Josefsson  <simon@josefsson.org>
107219         * tests/test-des.c: Use new namespace.
107221 2007-03-15  Bruno Haible  <bruno@clisp.org>
107223         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
107224         Reported by James Youngman <jay@gnu.org>.
107226 2007-03-15  Bruno Haible  <bruno@clisp.org>
107228         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
107229         declared prototype. Needed with cc on OSF/1 5.1.
107231 2007-03-15  Bruno Haible  <bruno@clisp.org>
107233         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
107234         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
107235         (struct gl_list_implementation): Add dispose_fn argument to the
107236         'create_empty', 'create' methods.
107237         (struct gl_list_impl_base): Add field 'dispose_fn'.
107238         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
107239         argument.
107240         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
107241         dispose_fn argument.
107242         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
107243         dispose_fn on the dropped values.
107244         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
107245         dispose_fn argument.
107246         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
107247         dropped values.
107248         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
107249         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107250         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
107251         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107252         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
107253         argument.
107254         (gl_tree_list_free): Call dispose_fn on the dropped values.
107255         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
107256         the dropped values.
107257         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107258         Add dispose_fn argument.
107259         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
107260         Call dispose_fn on the dropped values.
107261         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
107262         Add dispose_fn argument.
107263         (gl_sublist_create): Initialize the 'dispose_fn' field.
107264         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
107265         * tests/test-array_list.c (main): Update.
107266         * tests/test-carray_list.c (main): Update.
107267         * tests/test-avltree_list.c (main): Update.
107268         * tests/test-rbtree_list.c (main): Update.
107269         * tests/test-avltreehash_list.c (main): Update.
107270         * tests/test-rbtreehash_list.c (main): Update.
107271         * tests/test-linked_list.c (main): Update.
107272         * tests/test-linkedhash_list.c (main): Update.
107273         * tests/test-array_oset.c (main): Update.
107275 2007-03-15  Bruno Haible  <bruno@clisp.org>
107277         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
107278         (gl_oset_create_empty): Add dispose_fn argument.
107279         (struct gl_oset_implementation): Add dispose_fn argument to
107280         'create_empty' method.
107281         (struct gl_oset_impl_base): Add dispose_fn field.
107282         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
107283         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
107284         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
107285         values.
107286         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
107287         (gl_tree_oset_free): Call dispose_fn on the dropped values.
107288         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107289         dropped value.
107290         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107291         dropped value.
107292         * tests/test-array_oset.c (main): Update.
107293         * tests/test-avltree_oset.c (main): Update.
107294         * tests/test-rbtree_oset.c (main): Update.
107295         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
107297 2007-03-13  Bruno Haible  <bruno@clisp.org>
107299         * tests/test-stdbool.c (i): Update after last patch.
107301 2007-03-12  Bruno Haible  <bruno@clisp.org>
107303         * lib/quotearg.c: Include <wctype.h> early, before the definition of
107304         the iswprint macro. Needed on Solaris 2.5.1.
107306 2007-03-12  Bruno Haible  <bruno@clisp.org>
107308         * tests/test-printf-frexp.c (main): Declare x as volatile.
107310 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107312         * doc/gnulib.texi (Build robot for gnulib): New section.
107314 2007-03-12  Jim Meyering  <jim@meyering.net>
107316         * build-aux/bootstrap: New file.
107317         * build-aux/bootstrap.conf: New file, from coreutils.
107319 2007-03-11  Bruno Haible  <bruno@clisp.org>
107321         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
107323 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107325         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
107326         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107327         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107329 2007-03-11  Bruno Haible  <bruno@clisp.org>
107331         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107332         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107334 2007-03-11  Bruno Haible  <bruno@clisp.org>
107336         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107337         formula. Needed for SunPRO C 5.0.
107339 2007-03-11  Bruno Haible  <bruno@clisp.org>
107341         * modules/long-options (Depends-on): Add getopt.
107343 2007-03-11  Bruno Haible  <bruno@clisp.org>
107345         * modules/modechange (Depends-on): Add stdbool.
107347 2007-03-11  Bruno Haible  <bruno@clisp.org>
107349         * modules/i-ring (Depends-on): Add stdbool.
107351 2007-03-11  Bruno Haible  <bruno@clisp.org>
107353         * modules/gc-des (Depends-on): Add stdbool.
107355 2007-03-11  Bruno Haible  <bruno@clisp.org>
107357         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107359 2007-03-11  Bruno Haible  <bruno@clisp.org>
107361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107363 2007-03-11  Bruno Haible  <bruno@clisp.org>
107365         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107367 2007-03-11  Bruno Haible  <bruno@clisp.org>
107369         * lib/vasnprintf.c (sprintf): Undefine.
107371 2007-03-11  Bruno Haible  <bruno@clisp.org>
107373         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107374         initializers in SunPRO C and Compaq C compilers.
107376 2007-03-11  Bruno Haible  <bruno@clisp.org>
107378         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107379         decrementing code ANSI C compliant.
107381 2007-03-11  Bruno Haible  <bruno@clisp.org>
107383         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107384         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107386 2007-03-11  Bruno Haible  <bruno@clisp.org>
107388         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107389         <stdbool.h> substitute doesn't pass.
107391 2007-03-11  Bruno Haible  <bruno@clisp.org>
107393         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107395 2007-03-11  Bruno Haible  <bruno@clisp.org>
107397         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107398         script, for submission to autobuild.josefsson.org.
107400 2007-03-10  Bruno Haible  <bruno@clisp.org>
107402         * modules/canonicalize-lgpl-tests: New file.
107403         * tests/test-canonicalize-lgpl.sh: New file.
107404         * tests/test-canonicalize-lgpl.c: New file.
107406         * modules/c-strcase-tests: New file.
107407         * tests/test-c-strcase.sh: New file.
107408         * tests/test-c-strcasecmp.c: New file.
107409         * tests/test-c-strncasecmp.c: New file.
107411         * modules/atexit-tests: New file.
107412         * tests/test-atexit.sh: New file.
107413         * tests/test-atexit.c: New file.
107415 2007-03-10  Bruno Haible  <bruno@clisp.org>
107417         * tests/test-binary-io.sh: Use temporary filenames that are not so
107418         likely to clash with those of other tests (in a parallel make).
107419         * tests/test-binary-io.c: Likewise.
107421 2007-03-10  Bruno Haible  <bruno@clisp.org>
107423         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107424         fallback; use #error instead.
107425         Suggested by Simon Josefsson.
107427 2007-03-10  Bruno Haible  <bruno@clisp.org>
107429         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107430         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107431         first and the last.
107433 2007-03-10  Bruno Haible  <bruno@clisp.org>
107435         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107437 2007-03-10  Bruno Haible  <bruno@clisp.org>
107439         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107440         "make distcheck".
107441         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107442         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107443         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107445 2007-03-10  Bruno Haible  <bruno@clisp.org>
107447         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107448         variable.
107449         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107450         variable.
107452 2007-03-09  Eric Blake  <ebb9@byu.net>
107453         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107455         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107456         types are not being provided by gnulib.
107457         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107458         types are supported.
107460 2007-03-10  Bruno Haible  <bruno@clisp.org>
107462         * lib/stdio_.h (__attribute__): New macro.
107463         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107464         vsprintf): Specify __attribute__ __format__ for GCC.
107465         Suggested by Eric Blake.
107467 2007-03-09  Bruno Haible  <bruno@clisp.org>
107469         * modules/printf-posix-tests: New file.
107470         * tests/test-printf-posix.sh: New file.
107471         * tests/test-printf-posix.c: New file.
107473         * modules/printf-posix: New file.
107474         * lib/printf.c: New file.
107475         * m4/printf-posix-rpl.m4: New file.
107476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107477         REPLACE_PRINTF.
107478         * lib/stdio_.h (printf): New declaration.
107479         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107480         ____strfmon____): New macros.
107481         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107482         REPLACE_PRINTF.
107484 2007-03-09  Bruno Haible  <bruno@clisp.org>
107486         * tests/test-vasnprintf-posix2.sh: New file.
107487         * tests/test-vasnprintf-posix2.c: New file.
107488         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107489         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107490         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107492         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107493         a locale dependent decimal point, rather than always '.'.
107495 2007-03-09  Eric Blake  <ebb9@byu.net>
107497         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107498         spite of platforms like Tandem/NSK that define it to -1.
107500 2007-03-08  Bruno Haible  <bruno@clisp.org>
107502         * modules/vprintf-posix-tests: New file.
107503         * tests/test-vprintf-posix.sh: New file.
107504         * tests/test-vprintf-posix.c: New file.
107505         * tests/test-printf-posix.h: New file.
107507         * modules/vprintf-posix: New file.
107508         * lib/vprintf.c: New file.
107509         * m4/vprintf-posix.m4: New file.
107510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107511         REPLACE_VPRINTF.
107512         * lib/stdio_.h (vprintf): New declaration.
107513         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107514         REPLACE_VPRINTF.
107516 2007-03-08  Bruno Haible  <bruno@clisp.org>
107518         * modules/fprintf-posix-tests: New file.
107519         * tests/test-fprintf-posix.sh: New file.
107520         * tests/test-fprintf-posix.c: New file.
107522         * modules/fprintf-posix: New file.
107523         * lib/fprintf.c: New file.
107524         * m4/fprintf-posix.m4: New file.
107525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107526         REPLACE_FPRINTF.
107527         * lib/stdio_.h (fprintf): New declaration.
107528         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107529         REPLACE_FPRINTF.
107531 2007-03-08  Bruno Haible  <bruno@clisp.org>
107533         * modules/vfprintf-posix-tests: New file.
107534         * tests/test-vfprintf-posix.sh: New file.
107535         * tests/test-vfprintf-posix.c: New file.
107536         * tests/test-fprintf-posix.h: New file.
107537         * tests/test-fprintf-posix.out: New file.
107539         * modules/vfprintf-posix: New file.
107540         * lib/vfprintf.c: New file.
107541         * m4/vfprintf-posix.m4: New file.
107542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107543         REPLACE_VFPRINTF.
107544         * lib/stdio_.h (vfprintf): New declaration.
107545         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107546         REPLACE_VFPRINTF.
107548 2007-03-08  Bruno Haible  <bruno@clisp.org>
107550         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107552 2007-03-08  Bruno Haible  <bruno@clisp.org>
107554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107555         instead of 'expr' invocations.
107556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107561         Suggested by Paul Eggert.
107563 2007-03-08  Bruno Haible  <bruno@clisp.org>
107565         * modules/fseterr-tests: New file.
107566         * tests/test-fseterr.c: New file.
107568         * modules/fseterr: New file.
107569         * lib/fseterr.h: New file.
107570         * lib/fseterr.c: New file.
107572 2007-03-08  Bruno Haible  <bruno@clisp.org>
107574         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107575         * lib/getopt_.h: Likewise.
107576         * lib/mbswidth.h: Likewise.
107577         * lib/setenv.h: Likewise.
107578         * lib/vasnprintf.h: Likewise.
107579         * lib/vasprintf.h: Likewise.
107580         * lib/verror.h: Likewise.
107581         * lib/xsetenv.h: Likewise.
107582         * lib/xvasprintf.h: Likewise.
107584 2007-03-08  Jim Meyering  <jim@meyering.net>
107586         * users.txt: Add parted.
107588         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107590 2007-03-07  Bruno Haible  <bruno@clisp.org>
107592         * m4/printf.m4: Make the shell script snippets copy&pastable.
107594 2007-03-02  Bruno Haible  <bruno@clisp.org>
107596         * lib/netinet_in_.h: New file.
107597         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107598         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107599         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107600         (Depends-on): Add absolute-header.
107601         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107602         into netinet/in.h.
107604 2007-03-03  Bruno Haible  <bruno@clisp.org>
107606         * lib/sys_select_.h: New file.
107607         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107608         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107609         * modules/sys_select (Files): Add lib/sys_select_.h.
107610         (Depends-on): Add absolute-header.
107611         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107612         into sys/select.h.
107614 2007-03-02  Bruno Haible  <bruno@clisp.org>
107616         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107617         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107618         values.
107619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107620         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107621         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107622         * modules/sys_socket (Depends-on): Add absolute-header.
107623         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107624         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107625         (Include): Remove requirement of inclusion of <sys/types.h>.
107627 2007-03-02  Bruno Haible  <bruno@clisp.org>
107629         * lib/byteswap_.h (bswap_32): Fix formula.
107631 2007-03-06  Bruno Haible  <bruno@clisp.org>
107633         * modules/sprintf-posix-tests: New file.
107634         * tests/test-sprintf-posix.c: New file.
107636         * modules/sprintf-posix: New file.
107637         * lib/sprintf.c: New file.
107638         * m4/sprintf-posix.m4: New file.
107639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107640         REPLACE_SPRINTF.
107641         * lib/stdio_.h (sprintf): New declaration.
107642         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107643         REPLACE_SPRINTF.
107645 2007-03-06  Bruno Haible  <bruno@clisp.org>
107647         * modules/vsprintf-posix-tests: New file.
107648         * tests/test-vsprintf-posix.c: New file.
107649         * tests/test-sprintf-posix.h: New file.
107651         * modules/vsprintf-posix: New file.
107652         * lib/vsprintf.c: New file.
107653         * m4/vsprintf-posix.m4: New file.
107654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107655         REPLACE_VSPRINTF.
107656         * lib/stdio_.h (vsprintf): New declaration.
107657         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107658         REPLACE_VSPRINTF.
107660 2007-03-06  Bruno Haible  <bruno@clisp.org>
107662         * modules/vsnprintf (Depend-on): Remove minmax.
107664 2007-03-06  Bruno Haible  <bruno@clisp.org>
107666         * modules/snprintf-posix-tests: New file.
107667         * tests/test-snprintf-posix.c: New file.
107669         * modules/snprintf-posix: New file.
107670         * m4/snprintf-posix.m4: New file.
107671         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107672         gl_FUNC_SNPRINTF.
107673         (gl_FUNC_SNPRINTF): Invoke it.
107674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107675         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107676         is set.
107677         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107679 2007-03-06  Bruno Haible  <bruno@clisp.org>
107681         * modules/vsnprintf-posix-tests: New file.
107682         * tests/test-vsnprintf-posix.c: New file.
107683         * tests/test-snprintf-posix.h: New file.
107685         * modules/vsnprintf-posix: New file.
107686         * m4/vsnprintf-posix.m4: New file.
107687         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107688         gl_FUNC_VSNPRINTF.
107689         (gl_FUNC_VSNPRINTF): Invoke it.
107690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107691         * lib/stdio_.h (vsnprintf): Define as a replacement if
107692         REPLACE_VSNPRINTF is set.
107693         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107695 2007-03-06  Bruno Haible  <bruno@clisp.org>
107697         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107700 2007-03-06  Bruno Haible  <bruno@clisp.org>
107702         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107703         (asinl): Declare also if HAVE_DECL_ASINL is set.
107704         (atanl): Declare also if HAVE_DECL_ATANL is set.
107705         (ceill): Declare also if HAVE_DECL_CEILL is set.
107706         (cosl): Declare also if HAVE_DECL_COSL is set.
107707         (expl): Declare also if HAVE_DECL_EXPL is set.
107708         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107709         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107710         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107711         (logl): Declare also if HAVE_DECL_LOGL is set.
107712         (sinl): Declare also if HAVE_DECL_SINL is set.
107713         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107714         (tanl): Declare also if HAVE_DECL_TANL is set.
107715         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107717         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107718         declaration of frexpl, ldexpl.
107719         * modules/printf-frexpl (Depends-on): Add math.
107720         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107722 2007-03-05  Bruno Haible  <bruno@clisp.org>
107724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107725         frexpl and ldexpl are declared.
107726         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107728 2007-03-05  Bruno Haible  <bruno@clisp.org>
107730         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107731         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107733 2007-03-05  Bruno Haible  <bruno@clisp.org>
107735         * lib/stdio_.h: Include <stddef.h>.
107737 2007-03-05  Bruno Haible  <bruno@clisp.org>
107739         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107741 2007-03-05  Bruno Haible  <bruno@clisp.org>
107743         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107744         NetBSD 4, from Ralf Wildenhues.
107746 2007-03-04  Bruno Haible  <bruno@clisp.org>
107748         * lib/vasprintf.h: Update #if logic for the case when the functions
107749         exist but are overridden.
107751 2007-03-04  Bruno Haible  <bruno@clisp.org>
107753         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107754         implementations: glibc-2.4 and MacOS X 10.3.
107755         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107756         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107757         * tests/test-vasprintf-posix.c (test_function): Likewise.
107759 2007-03-04  Bruno Haible  <bruno@clisp.org>
107761         * modules/vasprintf-posix-tests: New file.
107762         * tests/test-vasprintf-posix.c: New file.
107764         * modules/vasprintf-posix: New file.
107765         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107766         defined.
107767         * m4/vasprintf-posix.m4: New file.
107768         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107769         gl_FUNC_VASPRINTF.
107770         (gl_FUNC_VASPRINTF): Invoke it.
107771         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107772         here.
107773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107775 2007-03-04  Bruno Haible  <bruno@clisp.org>
107777         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107778         REPLACE_GETTIMEOFDAY.
107779         * modules/sys_time (Makefile.am): Likewise.
107780         * m4/sys_time_h.m4: Likewise.
107781         * m4/gettimeofday.m4: Likewise.
107783 2007-03-04  Bruno Haible  <bruno@clisp.org>
107785         * modules/vasnprintf-posix-tests: New file.
107786         * tests/test-vasnprintf-posix.c: New file.
107788         * modules/vasnprintf-posix: New file.
107789         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107790         printf-frexpl.h.
107791         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107792         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107793         REPLACE_VASNPRINTF is defined.
107794         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107795         gl_FUNC_VASNPRINTF.
107796         (gl_FUNC_VASNPRINTF): Invoke it.
107797         * m4/vasnprintf-posix.m4: New file.
107798         * m4/printf.m4: New file.
107800 2007-03-04  Bruno Haible  <bruno@clisp.org>
107802         Compile progreloc.c only if --enable-relocatable is specified.
107803         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107804         if --enable-relocatable was specified.
107805         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107806         lib_SOURCES.
107808 2007-03-04  Jim Meyering  <jim@meyering.net>
107810         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107811         Use it consistently, rather than enumerating errno constants.
107813 2007-03-04  Bruno Haible  <bruno@clisp.org>
107815         * modules/xvasprintf-tests: New file.
107816         * tests/test-xvasprintf.c: New file.
107818         * modules/vasprintf-tests: New file.
107819         * tests/test-vasprintf.c: New file.
107821         * modules/vasnprintf-tests: New file.
107822         * tests/test-vasnprintf.c: New file.
107824         * modules/vsnprintf-tests: New file.
107825         * tests/test-vsnprintf.c: New file.
107827         * modules/snprintf-tests: New file.
107828         * tests/test-snprintf.c: New file.
107830 2007-03-04  Bruno Haible  <bruno@clisp.org>
107832         Compile relocatable.c only if --enable-relocatable is specified.
107833         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107834         gl_RELOCATABLE_LIBRARY.
107835         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107836         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107837         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107838         gl_RELOCATABLE_LIBRARY.
107839         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107840         (Makefile.am): Remove lib_SOURCES.
107841         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107842         gl_RELOCATABLE_LIBRARY.
107843         (Makefile.am): Remove lib_SOURCES.
107844         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107845         always.
107846         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107847         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107849 2007-03-04  Bruno Haible  <bruno@clisp.org>
107851         * modules/argmatch-tests: New file.
107852         * tests/test-argmatch.c: New file.
107854         * tests/test-allocsa.c (main): Halve the number of loop runs.
107856         * modules/alloca-opt-tests: New file.
107857         * tests/test-alloca-opt.c: New file.
107859 2007-03-04  Jim Meyering  <jim@meyering.net>
107861         Work around difference between Linux ACLs and Solaris 10 ZFS.
107862         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107863         for EINVAL.
107865 2007-03-03  Bruno Haible  <bruno@clisp.org>
107867         * modules/relocatable-prog (Depends-on): Add back progreloc's
107868         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107870 2007-03-03  Bruno Haible  <bruno@clisp.org>
107872         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107873         * modules/relocatable-lib: New file.
107875 2007-03-03  Bruno Haible  <bruno@clisp.org>
107877         * modules/relocatable-prog: Renamed from modules/relocatable.
107878         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107880 2007-03-03  Bruno Haible  <bruno@clisp.org>
107882         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107883         m4/relocatable-lib.m4.
107884         (Depends-on): Remove 'relocatable'.
107885         (configure.ac): Add gl_RELOCATABLE_NOP.
107887 2007-03-03  Bruno Haible  <bruno@clisp.org>
107889         * modules/relocatable-prog-wrapper: New file.
107890         * modules/relocatable (Depends-on): Add it. Remove all other
107891         dependencies except progname.
107892         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107894         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107895         (gl_FUNC_STRERROR): Nop.
107896         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107899         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107901         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107902         (gl_FUNC_READLINK): Update.
107904         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107906 2007-03-03  Bruno Haible  <bruno@clisp.org>
107908         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107909         * modules/xreadlink (Depends-on): Add unistd.
107910         * modules/xreadlink-with-size (Depends-on): Likewise.
107912 2007-03-03  Bruno Haible  <bruno@clisp.org>
107914         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107915         extracted from gt_FUNC_SETENV.
107916         (gt_FUNC_SETENV): Remove macro.
107917         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107918         remove gt_FUNC_SETENV.
107920 2007-03-03  Bruno Haible  <bruno@clisp.org>
107922         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107923         ENABLE_RELOCATABLE here.
107924         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107926 2007-03-03  Bruno Haible  <bruno@clisp.org>
107928         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107929         * tests/test-rbtreehash_list.c: Include progname.h.
107930         (main): Call set_program_name.
107932         * modules/rbtree-oset-tests (Depends-on): Add progname.
107933         * tests/test-rbtree_oset.c: Include progname.h.
107934         (main): Call set_program_name.
107936         * modules/rbtree-list-tests (Depends-on): Add progname.
107937         * tests/test-rbtree_list.c: Include progname.h.
107938         (main): Call set_program_name.
107940         * modules/linked-list-tests (Depends-on): Add progname.
107941         * tests/test-linked_list.c: Include progname.h.
107942         (main): Call set_program_name.
107944 2007-03-03  Bruno Haible  <bruno@clisp.org>
107946         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107947         All uses of __restrict changed to _Restrict_.
107948         * lib/glob_.h (__restrict): Remove macro.
107950 2007-03-02  Bruno Haible  <bruno@clisp.org>
107952         * modules/gettext (configure.ac): Require gettext infrastructure
107953         from version 0.16.1.
107955 2007-03-02  Bruno Haible  <bruno@clisp.org>
107957         * modules/linkedhash-list-tests (Depends-on): Add progname.
107958         * tests/test-linkedhash_list.c: Include progname.h.
107959         (main): Call set_program_name.
107961         * modules/carray-list-tests (Depends-on): Add progname.
107962         * tests/test-carray_list.c: Include progname.h.
107963         (main): Call set_program_name.
107965         * modules/avltreehash-list-tests (Depends-on): Add progname.
107966         * tests/test-avltreehash_list.c: Include progname.h.
107967         (main): Call set_program_name.
107969         * modules/avltree-oset-tests (Depends-on): Add progname.
107970         * tests/test-avltree_oset.c: Include progname.h.
107971         (main): Call set_program_name.
107973         * modules/avltree-list-tests (Depends-on): Add progname.
107974         * tests/test-avltree_list.c: Include progname.h.
107975         (main): Call set_program_name.
107977         * modules/array-oset-tests (Depends-on): Add progname.
107978         * tests/test-array_oset.c: Include progname.h.
107979         (main): Call set_program_name.
107981         * modules/array-list-tests (Depends-on): Add progname.
107982         * tests/test-array_list.c: Include progname.h.
107983         (main): Call set_program_name.
107985         * modules/argp-tests (Depends-on): Add progname.
107986         * tests/test-argp.c: Include argp.h first. Include progname.h.
107987         (main): Call set_program_name.
107989 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107991         * doc/gnulib-tool.texi (Initial import): Reword description of
107992         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107993         limited effect even if defined after the first system include.
107995 2007-03-01  Bruno Haible  <bruno@clisp.org>
107997         * build-aux/config.libpath: Update to libtool-1.5.22.
107998         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
108000 2007-03-01  Bruno Haible  <bruno@clisp.org>
108002         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
108003         foo_CFLAGS.
108004         Reported by Ralf Wildenhues.
108006 2007-03-01  Bruno Haible  <bruno@clisp.org>
108008         * build-aux/install-reloc: Remove object files left over by some
108009         compilers.
108010         Reported by Ralf Wildenhues.
108012 2007-03-01  Bruno Haible  <bruno@clisp.org>
108014         * build-aux/install-reloc: Break long lines.
108016 2007-03-01  Bruno Haible  <bruno@clisp.org>
108018         * doc/relocatable.texi: Document that it may not work on OpenBSD.
108019         Reported by Ralf Wildenhues.
108021 2007-03-01  Bruno Haible  <bruno@clisp.org>
108023         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
108024         include ordering constraints.
108026 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108028         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
108029         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
108030         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
108031         as another example.
108032         * lib/time_.h: Fix misspelling.
108033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108034         Require gl_HEADER_TIME_H_DEFAULTS.
108035         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
108036         * m4/time_r.m4 (gl_TIME_R): Likewise.
108037         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
108039 2007-03-01  Bruno Haible  <bruno@clisp.org>
108041         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
108042         * m4/utimens.m4 (gl_UTIMENS): Likewise.
108044 2007-03-01  Jim Meyering  <jim@meyering.net>
108046         * modules/xreadlink (Maintainer): Add my name.
108047         * modules/xreadlink-with-size (Depends-on): Alphabetize.
108049 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
108050             Bruno Haible  <bruno@clisp.org>
108052         * build-aux/install-reloc: Compile also c-ctype.c.
108053         * build-aux/relocatable.sh.in: New file.
108054         * doc/relocatable.texi: New file.
108055         * doc/relocatable-maint.texi: New file.
108056         * doc/gnulib.texi: Include relocatable-maint.texi.
108057         * lib/progreloc.c: Include unistd.h unconditionally.
108058         * lib/relocwrapper.c: Include unistd.h unconditionally.
108059         Include c-ctype.h.
108060         (add_dotbin): Use c_tolower.
108061         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
108062         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
108063         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
108064         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
108065         to m4/relocatable-lib.m4.
108066         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
108067         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
108068         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
108069         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
108070         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
108071         * modules/relocatable: New file.
108072         * modules/relocatable-lib: New file.
108073         * modules/relocatable-script: New file.
108075 2007-02-28  Bruno Haible  <bruno@clisp.org>
108077         Import --enable-relocatable infrastructure.
108078         * build-aux/config.libpath: New file, from GNU gettext.
108079         * build-aux/install-reloc: New file, from GNU gettext.
108080         * build-aux/reloc-ldflags: New file, from GNU gettext.
108081         * lib/relocatable.h: New file, from GNU gettext.
108082         * lib/relocatable.c: New file, from GNU gettext.
108083         * lib/relocwrapper.c: New file, from GNU gettext.
108084         * m4/relocatable.m4: New file, from GNU gettext.
108086 2007-02-28  Bruno Haible  <bruno@clisp.org>
108088         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
108090         * modules/xreadlink: New file, from GNU gettext with modifications.
108091         * lib/xreadlink.c: New file, from GNU gettext.
108092         * lib/xreadlink.h: Add comments.
108093         (xreadlink): New declaration.
108095         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
108096         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
108097         lib/xreadlink-with-size.c.
108098         (configure.ac): Remove gl_XREADLINK invocation.
108099         (Makefile.am): Augment lib_SOURCES.
108100         * m4/xreadlink.m4: Remove file.
108101         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
108102         (xreadlink_with_size): Renamed from xreadink.
108103         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
108104         * modules/canonicalize (Depends-on): Replace xreadlink with
108105         xreadlink-with-size.
108106         * lib/canonicalize.c (canonicalize_filename_mode): Update.
108108 2007-02-25  Jim Meyering  <jim@meyering.net>
108110         * build-aux/announce-gen: When complaining about excess arguments,
108111         list them.
108113 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
108115         * README: Document signed integer overflow situation more
108116         accurately.
108118 2007-02-25  Bruno Haible  <bruno@clisp.org>
108120         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
108121         'a' or 'A' conversion.
108123 2007-02-25  Bruno Haible  <bruno@clisp.org>
108125         * modules/filename: Renamed from modules/pathname.
108126         (Files): Replace lib/pathname.h with lib/filename.h. Replace
108127         lib/concatpath.c with lib/concat-filename.c.
108128         (Makefile.am): Update.
108129         (Include): Replace pathname.h with filename.h.
108130         * lib/filename.h: Renamed from lib/pathname.h.
108131         (concatenated_filename): Renamed from concatenated_pathname.
108132         * lib/concat-filename.c: Renamed from lib/concatpath.c.
108133         (concatenated_filename): Renamed from concatenated_pathname.
108134         * lib/findprog.c: Include filename.h instead of pathname.h.
108135         (find_in_path): Update.
108136         * lib/javacomp.c: Include filename.h instead of pathname.h.
108137         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
108138         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
108139         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
108140         is_oldgcj_14_13_usable, is_javac_usable): Update.
108141         * lib/javaexec.c: Include filename.h instead of pathname.h.
108142         (execute_java_class): Update.
108143         * modules/findprog: Update.
108144         * modules/javacomp: Update.
108145         * modules/javaexec: Update.
108146         * MODULES.html.sh (File system functions): Add 'filename', remove
108147         'pathname'.
108149 2007-02-25  Bruno Haible  <bruno@clisp.org>
108151         * modules/printf-frexpl-tests: New file.
108152         * tests/test-printf-frexpl.c: New file.
108154         * modules/printf-frexpl: New file.
108155         * lib/printf-frexpl.h: New file.
108156         * lib/printf-frexpl.c: New file.
108157         * m4/printf-frexpl.m4: New file.
108159 2007-02-25  Bruno Haible  <bruno@clisp.org>
108161         * modules/printf-frexp-tests: New file.
108162         * tests/test-printf-frexp.c: New file.
108164         * modules/printf-frexp: New file.
108165         * lib/printf-frexp.h: New file.
108166         * lib/printf-frexp.c: New file.
108167         * m4/printf-frexp.m4: New file.
108169 2007-02-25  Bruno Haible  <bruno@clisp.org>
108171         Assume automake >= 1.10 for the tests.
108172         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
108173         * modules/arctwo-tests: Likewise.
108174         * modules/argp-tests: Likewise.
108175         * modules/avltree-list-tests: Likewise.
108176         * modules/avltree-oset-tests: Likewise.
108177         * modules/avltreehash-list-tests: Likewise.
108178         * modules/carray-list-tests: Likewise.
108179         * modules/crc-tests: Likewise.
108180         * modules/des-tests: Likewise.
108181         * modules/gc-arcfour-tests: Likewise.
108182         * modules/gc-arctwo-tests: Likewise.
108183         * modules/gc-des-tests: Likewise.
108184         * modules/gc-hmac-md5-tests: Likewise.
108185         * modules/gc-hmac-sha1-tests: Likewise.
108186         * modules/gc-md2-tests: Likewise.
108187         * modules/gc-md4-tests: Likewise.
108188         * modules/gc-md5-tests: Likewise.
108189         * modules/gc-pbkdf2-sha1-tests: Likewise.
108190         * modules/gc-rijndael-tests: Likewise.
108191         * modules/gc-sha1-tests: Likewise.
108192         * modules/gc-tests: Likewise.
108193         * modules/getaddrinfo-tests: Likewise.
108194         * modules/hmac-md5-tests: Likewise.
108195         * modules/hmac-sha1-tests: Likewise.
108196         * modules/linked-list-tests: Likewise.
108197         * modules/linkedhash-list-tests: Likewise.
108198         * modules/lock-tests: Likewise.
108199         * modules/md2-tests: Likewise.
108200         * modules/md4-tests: Likewise.
108201         * modules/md5-tests: Likewise.
108202         * modules/rbtree-list-tests: Likewise.
108203         * modules/rbtree-oset-tests: Likewise.
108204         * modules/rbtreehash-list-tests: Likewise.
108205         * modules/read-file-tests: Likewise.
108206         * modules/rijndael-tests: Likewise.
108207         * modules/stdint-tests: Likewise.
108208         * modules/tls-tests: Likewise.
108210 2007-02-24  Bruno Haible  <bruno@clisp.org>
108212         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
108213         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
108214         function; instead check whether isnan with a double argument links.
108215         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
108216         function; instead check whether isnan with a 'long double' argument
108217         links.
108218         Reported by Eric Blake <ebb9@byu.net>.
108220 2007-02-24  Bruno Haible  <bruno@clisp.org>
108222         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
108223         defined.
108224         * lib/isnanl.c: Remove all code. Just include isnan.c.
108225         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
108227 2007-02-25  Jim Meyering  <jim@meyering.net>
108229         Avoid conflicting types for 'unsetenv' on FreeBSD.
108230         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
108231         conflicting with FreeBSD's (5.0 and 6.1) function declaration
108232         in stdlib.h.
108234 2007-02-24  Bruno Haible  <bruno@clisp.org>
108236         * modules/isnanl-nolibm-tests: New file.
108237         * tests/test-isnanl.c: New file.
108239         * modules/isnanl-nolibm: New file.
108240         * lib/isnanl.h: New file.
108241         * lib/isnanl.c: New file.
108242         * m4/isnanl.m4: New file.
108244 2007-02-24  Bruno Haible  <bruno@clisp.org>
108246         * modules/isnan-nolibm-tests: New file.
108247         * tests/test-isnan.c: New file.
108249         * modules/isnan-nolibm: New file.
108250         * lib/isnan.h: New file.
108251         * lib/isnan.c: New file.
108252         * m4/isnan.m4: New file.
108254 2007-02-24  Bruno Haible  <bruno@clisp.org>
108256         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
108257         assume that an exponent fits in 20 bits.
108259 2007-02-24  Jim Meyering  <jim@meyering.net>
108261         * m4/regex.m4: Update the description of the configure-time option,
108262         --without-included-regex, to state accurately what the defaults are,
108263         and perhaps to give people an idea why using this option is risky.
108265 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
108268         loops on small arguments.  This attempts to avoid the problem
108269         Bruno Haible reported for AIX 4.3.2 in
108270         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
108272 2007-02-23  Bruno Haible  <bruno@clisp.org>
108274         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
108275         Needed for help2man.
108277 2007-02-23  Karl Berry  <karl@gnu.org>
108279         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
108280         exists, foo.h should be cvs-ignored, not committed.
108282 2007-02-23  Eric Blake  <ebb9@byu.net>
108284         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
108285         * lib/stat-time.h (includes): Likewise.
108286         * lib/utimecmp.c (includes): Likewise.
108287         * lib/utimens.h (includes): Likewise.
108288         * lib/getdate.y (includes): Also include "timespec.h" for use
108289         internal to the module.
108290         * modules/utimens (Depends-on): Revert yesterday's patch.
108291         * modules/nanosleep (Depends-on): Add missing dependency.
108293 2007-02-22  Bruno Haible  <bruno@clisp.org>
108295         * lib/glob.c: Don't include getlogin_r.h.
108297 2007-02-22  Jim Meyering  <jim@meyering.net>
108299         * modules/utimens (Depends-on): Add timespec, required for
108300         utimens.h's inclusion of timespec.h.
108302 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
108304         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
108305         long unreadable paths in GNU/Linux.  Problem reported by Andreas
108306         Schwab in
108307         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
108308         I'll try to think of a better way to fix the Solaris problem.
108310         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
108311         like glibc; on Solaris 10, it fails with errno == EINVAL.
108312         POSIX says the behavior is unspecified if the first argument is NULL,
108313         so play it safe and never pass NULL to the system getcwd.
108315 2007-02-21  Jim Meyering  <jim@meyering.net>
108317         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
108318         of gettimeofday.  It would conflict with the one now always
108319         provided via sys_time_.h.  Reported by Matthew Woehlke, as
108320         an IRIX 6.5 build failure.
108322 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108324         Minor fixups to port to Solaris 10 with Sun C 5.8.
108325         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
108326         * modules/getcwd (Depends-on): Add dirfd.
108327         * lib/putenv.c (putenv): #undef it.
108328         (rpl_putenv): New decl.
108329         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108331 2007-02-20  Bruno Haible  <bruno@clisp.org>
108333         * modules/stdio-tests: New file.
108334         * tests/test-stdio.c: New file.
108336         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108337         (Depends-on): Add stdio.
108338         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108339         (Include): Use <stdio.h> instead of vsnprintf.h.
108340         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108341         HAVE_DECL_VSNPRINTF.
108342         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108344         * modules/snprintf (Files): Remove lib/snprintf.h.
108345         (Depends-on): Add stdio.
108346         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108347         (Include): Use <stdio.h> instead of snprintf.h.
108348         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108349         HAVE_DECL_SNPRINTF.
108350         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108351         * lib/getaddrinfo.c: Likewise.
108353         * modules/stdio: New file.
108354         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108355         * lib/snprintf.h: Remove file.
108356         * lib/vsnprintf.h: Remove file.
108357         * lib/.cppi-disable: Remove snprintf.h.
108358         * m4/stdio_h.m4: New file.
108359         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108361 2007-02-20  Jim Meyering  <jim@meyering.net>
108363         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108364         used by e.g., mingw.  From Bruno Haible.
108366 2007-02-19  Bruno Haible  <bruno@clisp.org>
108368         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108369         warnings.
108370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108372 2007-02-19  Bruno Haible  <bruno@clisp.org>
108374         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108375         from mingw users.
108377 2007-02-19  Bruno Haible  <bruno@clisp.org>
108379         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108380         warnings.
108381         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108383 2007-02-19  Jim Meyering  <jim@meyering.net>
108385         Don't use FD after a successful "fdopendir (fd)".
108386         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108387         Reset it by calling dirfd on the just-obtained DIR*.
108389         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108390         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108392 2007-02-18  Bruno Haible  <bruno@clisp.org>
108394         * lib/readlink.c: Include <unistd.h>.
108395         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108396         HAVE_READLINK.
108397         * modules/readlink (Depends-on): Add unistd.
108398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108399         (Include): Add <unistd.h>.
108401         * lib/getlogin_r.h: Remove file.
108402         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108403         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108404         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108405         HAVE_DECL_GETLOGIN_R.
108406         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108408         (Include): Use <unistd.h> instead of getlogin_r.h.
108410         * lib/getcwd.h: Remove file.
108411         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108412         * lib/xgetcwd.c: Likewise.
108413         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108414         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108415         * modules/getcwd (Files): Remove lib/getcwd.h.
108416         (Depends-on): Add unistd.
108417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108418         (Include): Use <unistd.h> instad of getcwd.h.
108420         * lib/ftruncate.c: Include <unistd.h> first.
108421         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108422         Set HAVE_FTRUNCATE.
108423         * modules/ftruncate (Depends-on): Add unistd.
108424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108426         * lib/fchdir.c: Include <unistd.h> first.
108427         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108428         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108429         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108430         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108431         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108433         * lib/dup2.c: Include <unistd.h> first.
108434         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108435         HAVE_DUP2.
108436         * modules/dup2 (Depends-on): Add unistd.
108437         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108439         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108440         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108441         REPLACE_CHOWN. Don't define chown as a macro here.
108442         * modules/chown (Depends-on): Add unistd.
108443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108445         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108446         Add definition for GL_LINK_WARNING.
108447         (chown, dup2): New declarations.
108448         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108449         link warning.
108450         (ftruncate): New declaration.
108451         (getcwd): New declaration, taken from old getcwd.h.
108452         (getlogin_r): New declaration, taken from old getlogin_r.h.
108453         (readlink): New declaration.
108454         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108455         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108456         (gl_PREREQ_UNISTD): Remove macro.
108457         (gl_UNISTD_MODULE_INDICATOR): New macro.
108458         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108459         many new variables. Don't set UNISTD_H.
108460         * modules/unistd (Description): Change.
108461         (Depends-on): Add link-warning.
108462         (configure.ac): Update.
108463         (Makefile.am): Create unistd.h always. Substitute many new variables
108464         into it.
108466 2007-02-18  Bruno Haible  <bruno@clisp.org>
108468         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108469         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108470         HAVE_GETSUBOPT.
108471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108472         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108473         * lib/getsubopt.h: Remove file.
108474         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108475         (Depends-on): Add stdlib.
108476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108477         (Includes): Use <stdlib.h> instead of getsubopt.h.
108478         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108479         Set HAVE_GETSUBOPT.
108480         * lib/getsubopt.c: Don't include getsubopt.h.
108482 2007-02-18  Bruno Haible  <bruno@clisp.org>
108484         * modules/fchdir (Depends-on): Add dup2.
108486 2007-02-18  Bruno Haible  <bruno@clisp.org>
108488         * lib/stdlib_.h: Handle glibc's special invocation convention
108489         specially.
108491 2007-02-18  Bruno Haible  <bruno@clisp.org>
108493         * modules/stdlib-tests: New file.
108494         * tests/test-stdlib.c: New file.
108496         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108497         (Depends-on): Add stdlib.
108498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108499         (Includes): Use <stdlib.h> instead of mkstemp.h.
108500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108501         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108502         * lib/mkstemp.c: Don't include mkstemp.h.
108503         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108504         * lib/stdlib--.h: Don't include mkstemp.h.
108506         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108507         (Depends-on): Add stdlib.
108508         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108509         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108510         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108511         HAVE_MKDTEMP.
108512         * lib/mkdtemp.c: Don't include mkdtemp.h.
108513         * lib/clean-temp.c: Don't include mkdtemp.h.
108515         * modules/exit (Files): Remove lib/exit.h.
108516         (Depends-on): Add stdlib.
108517         (Makefile.am): Remove lib_SOURCES.
108518         (Include): Use <stdlib.h> instead of exit.h.
108519         * lib/argmatch.c: Don't include exit.h.
108520         * lib/execute.c: Likewise.
108521         * lib/pagealign_alloc.c: Likewise.
108522         * lib/pipe.c: Likewise.
108523         * lib/wait-process.c: Likewise.
108524         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108525         * lib/exitfail.c: Likewise.
108526         * lib/savewd.c: Likewise.
108527         * lib/xsetenv.c: Likewise.
108529         * modules/stdlib: New file.
108530         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108531         and extra comments about mkstemp().
108532         * lib/exit.h: Remove file.
108533         * lib/mkdtemp.h: Remove file.
108534         * lib/mkstemp.h: Remove file.
108535         * m4/stdlib_h.m4: New file.
108536         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108538 2007-02-18  Bruno Haible  <bruno@clisp.org>
108540         * modules/math-tests: New file.
108541         * tests/test-math.c: New file.
108543         * modules/math: New file.
108544         * modules/mathl (Files): Remove lib/mathl.h.
108545         (Depends-on): Add math.
108546         (Makefile.am): Don't mention mathl.h.
108547         (Include): Use <math.h> instead of mathl.h.
108548         * lib/math_.h: New file.
108549         * lib/mathl.h: Remove file.
108550         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108551         mathl.h.
108552         * lib/asinl.c: Likewise.
108553         * lib/atanl.c: Likewise.
108554         * lib/ceill.c: Likewise.
108555         * lib/cosl.c: Likewise.
108556         * lib/expl.c: Likewise.
108557         * lib/floorl.c: Likewise.
108558         * lib/frexpl.c: Likewise.
108559         * lib/ldexpl.c: Likewise.
108560         * lib/logl.c: Likewise.
108561         * lib/sincosl.c: Likewise.
108562         * lib/sinl.c: Likewise.
108563         * lib/sqrtl.c: Likewise.
108564         * lib/tanl.c: Likewise.
108565         * lib/trigl.c: Likewise.
108566         * m4/math_h.m4: New file.
108567         * MODULES.html.sh (Mathematics): Add math.
108569 2007-02-17  Bruno Haible  <bruno@clisp.org>
108571         * modules/wctype-tests: New file.
108572         * tests/test-wctype.c: New file.
108574         * modules/wchar-tests: New file.
108575         * tests/test-wchar.c: New file.
108577         * modules/unistd-tests: New file.
108578         * tests/test-unistd.c: New file.
108580         * modules/time-tests: New file.
108581         * tests/test-time.c: New file.
108583         * modules/sysexits-tests: New file.
108584         * tests/test-sysexits.c: New file.
108586         * modules/sys_time-tests: New file.
108587         * tests/test-sys_time.c: New file.
108589         * modules/sys_stat-tests: New file.
108590         * tests/test-sys_stat.c: New file.
108592         * modules/sys_socket-tests: New file.
108593         * tests/test-sys_socket.c: New file.
108595         * modules/sys_select-tests: New file.
108596         * tests/test-sys_select.c: New file.
108598         * modules/string-tests: New file.
108599         * tests/test-string.c: New file.
108601         * modules/stdbool-tests: New file.
108602         * tests/test-stdbool.c: New file.
108604         * modules/netinet_in-tests: New file.
108605         * tests/test-netinet_in.c: New file.
108607         * modules/inttypes-tests: New file.
108608         * tests/test-inttypes.c: New file.
108610         * modules/fcntl-tests: New file.
108611         * tests/test-fcntl.c: New file.
108613         * modules/byteswap-tests: New file.
108614         * tests/test-byteswap.c: New file.
108616         * modules/arpa_inet-tests: New file.
108617         * tests/test-arpa_inet.c: New file.
108619 2007-02-17  Bruno Haible  <bruno@clisp.org>
108621         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108622         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108623         if the corresponding module is not enabled. Emit link warnings if
108624         the function is used nevertheless.
108625         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108626         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108627         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108628         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108629         * modules/inttypes (Depends-on): Add link-warning.
108630         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108631         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108632         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108633         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108634         * modules/imaxdiv (configure.ac): Likewise.
108635         * modules/strtoimax (configure.ac): Likewise.
108636         * modules/strtoumax (configure.ac): Likewise.
108638 2007-02-17  Bruno Haible  <bruno@clisp.org>
108640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108641         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108642         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108643         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108645 2007-02-17  Bruno Haible  <bruno@clisp.org>
108647         * modules/link-warning: New file.
108648         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108649         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108650         * modules/string (Depends-on): Add link-warning.
108651         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108652         string.h.
108653         * MODULES.html.sh (Support for building libraries and executables): Add
108654         link-warning.
108656 2007-02-17  Bruno Haible  <bruno@clisp.org>
108658         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108659         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108660         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108661         long lines.
108663 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108664             Bruno Haible  <bruno@clisp.org>
108666         * modules/tmpfile: New file.
108667         * lib/tmpfile.c: New file.
108668         * m4/tmpfile.m4: New file.
108669         * MODULES.html.sh (func_all_modules): New section "Input/output".
108671 2007-02-15  Bruno Haible  <bruno@clisp.org>
108673         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108674         (supports_delete_on_close): New function.
108675         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108677 2007-02-14  Bruno Haible  <bruno@clisp.org>
108679         * modules/mbspcasecmp-tests: New file.
108680         * tests/test-mbspcasecmp.sh: New file.
108681         * tests/test-mbspcasecmp.c: New file.
108683         New module mbspcasecmp.
108684         * modules/mbspcasecmp: New file.
108685         * lib/mbspcasecmp.c: New file.
108686         * lib/string_.h (strncasecmp): Change warning message.
108687         (mbspcasecmp): New declaration.
108688         * m4/mbspcasecmp.m4: New file.
108689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108690         GNULIB_MBSPCASECMP.
108691         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108692         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108694 2007-02-14  Bruno Haible  <bruno@clisp.org>
108696         * modules/mbsncasecmp-tests: New file.
108697         * tests/test-mbsncasecmp.sh: New file.
108698         * tests/test-mbsncasecmp.c: New file.
108700         New module mbsncasecmp.
108701         * modules/mbsncasecmp: New file.
108702         * lib/mbsncasecmp.c: New file.
108703         * lib/string_.h (mbsncasecmp): New declaration.
108704         * m4/mbsncasecmp.m4: New file.
108705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108706         GNULIB_MBSNCASECMP.
108707         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108708         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108710 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108712         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108713         Verify that it doesn't overlap with our flags.
108714         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108715         do not have the desired effect in multibyte locales; instead, use
108716         mbscasecmp.
108717         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108718         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108719         we don't require GNU fnmatch ourselves (if our users require it, they
108720         should do so explicitly).
108722         Fix regex code so it doesn't rely on strcasecmp.
108723         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108724         Otherwise, include gnulib's langinfo.h.
108725         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108726         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108727         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108728         * modules/regex (FILES): Remove m4/codeset.m4.
108729         (Depends-on): Add localcharset.  Remove strcase.
108731 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108733         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108734         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108736 2007-02-13  Bruno Haible  <bruno@clisp.org>
108738         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108741 2007-02-12  Bruno Haible  <bruno@clisp.org>
108743         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108744         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108745         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108746         time warning rather than a link error.
108748 2007-02-12  Bruno Haible  <bruno@clisp.org>
108750         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108751         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108752         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108754 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108756         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108757         args, not 2.
108759 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108761         New module 'time', so that apps can include <time.h> as per
108762         POSIX and GNU instead of separate include files like time_r.h
108763         and timegm.h.  This implementation tries out a simpler approach
108764         for replacing decls in standard include files (as compared to
108765         the string module), somewhat as an experiment.
108767         * config/srclist.txt: Comment out mktime.c for now.
108768         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108769         since it doesn't apply any more.  Use generic wording instead.
108770         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108771         'time'.
108772         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108773         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108774         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108775         Don't include <sys/types.h>; no longer needed since we assume C89.
108776         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108777         * lib/strftime.c: Likewise.
108778         * lib/time_r.c: Likewise.
108779         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108780         * lib/nanosleep.c: Include <time.h> first, to check interface.
108781         * lib/strptime.c: Likewise.
108782         * lib/time_r.c: Likewise.
108783         * lib/timegm.c: Likewise.
108784         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108785         needed.
108786         * lib/timegm.c: Don't include timegm.h; no longer needed.
108787         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108788         time.h now handles any problems in that area.
108789         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108790         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108791         that time.h defines struct timespec.
108792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108793         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108794         handles that.
108795         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108796         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108797         needed.  Set REPLACE_LOCALTIME.
108798         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108799         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108800         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108801         nanosleep; time_h.m4 now does that.  Don't require
108802         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108803         module handles this now.
108804         * modules/getdate (Depends-on): Remove timespec.  Add time.
108805         * modules/nanosleep (Depends-on): Likewise.
108806         * modules/stat-time (Depends-on): Likewise.
108807         * modules/nanosleep (Include): Include time.h, not timespec.h.
108808         * modules/strptime (Files): Remove lib/strptime.h.
108809         (Depends-on): Add extensions, time.
108810         (Include): Include time.h, not strptime.h.
108811         * modules/time_r (Files): Remove lib/time_r.h.
108812         (Depends-on): Add time.
108813         (Include): Include time.h, not time_r.h.
108814         * modules/timegm: Likewise.
108815         * modules/timespec (Description): Now does timespec-related decls
108816         of our own, instead of struct timespec itself.
108817         (Depends-on): Add time; remove extensions.
108818         (Maintainer): Add self.
108819         * modules/utimecmp (Depends-on): Add time; remove timespec.
108820         * modules/utimens (Depends-on): Likewise.
108821         * modules/xnanosleep (Depends-on): Likewise.
108823 2007-02-11  Bruno Haible  <bruno@clisp.org>
108825         * lib/c-strstr.c: Include allocsa.h.
108826         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108827         * lib/c-strcasestr.c: Include allocsa.h.
108828         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108829         * lib/strcasestr.c: Include allocsa.h.
108830         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108831         * lib/mbsstr.c: Include allocsa.h.
108832         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108833         allocsa/freesa instead of malloc/free.
108834         * lib/mbscasestr.c: Include allocsa.h.
108835         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108836         allocsa/freesa instead of malloc/free.
108837         * modules/c-strstr (Depends-on): Add allocsa.
108838         * modules/c-strcasestr (Depends-on): Likewise.
108839         * modules/strcasestr (Depends-on): Likewise.
108840         * modules/mbsstr (Depends-on): Likewise.
108841         * modules/mbscasestr (Depends-on): Likewise.
108843 2007-02-11  Bruno Haible  <bruno@clisp.org>
108845         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108847         * modules/mbsspn-tests: New file.
108848         * tests/test-mbsspn.sh: New file.
108849         * tests/test-mbsspn.c: New file.
108851 2007-02-11  Bruno Haible  <bruno@clisp.org>
108853         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108855         * modules/mbspbrk-tests: New file.
108856         * tests/test-mbspbrk.sh: New file.
108857         * tests/test-mbspbrk.c: New file.
108859 2007-02-11  Bruno Haible  <bruno@clisp.org>
108861         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108862         unneeded cast.
108864         * modules/mbscspn-tests: New file.
108865         * tests/test-mbscspn.sh: New file.
108866         * tests/test-mbscspn.c: New file.
108868 2007-02-11  Bruno Haible  <bruno@clisp.org>
108870         * modules/mbscasecmp-tests: New file.
108871         * tests/test-mbscasecmp.sh: New file.
108872         * tests/test-mbscasecmp.c: New file.
108874 2007-02-11  Bruno Haible  <bruno@clisp.org>
108876         Ensure O(n) worst-case complexity of mbscasestr.
108877         * lib/mbscasestr.c: Include stdbool.h.
108878         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108879         functions.
108880         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108881         the bookkeeping indicates that it's worth it.
108882         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108884         * modules/mbscasestr-tests: New file.
108885         * tests/test-mbscasestr1.c: New file.
108886         * tests/test-mbscasestr2.sh: New file.
108887         * tests/test-mbscasestr2.c: New file.
108888         * tests/test-mbscasestr3.sh: New file.
108889         * tests/test-mbscasestr3.c: New file.
108890         * tests/test-mbscasestr4.sh: New file.
108891         * tests/test-mbscasestr4.c: New file.
108892         * m4/locale-tr.m4: New file.
108894 2007-02-11  Bruno Haible  <bruno@clisp.org>
108896         Ensure O(n) worst-case complexity of mbsstr.
108897         * lib/mbsstr.c: Include stdbool.h.
108898         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108899         functions.
108900         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108901         bookkeeping indicates that it's worth it.
108902         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108904         * modules/mbsstr-tests: New file.
108905         * tests/test-mbsstr1.c: New file.
108906         * tests/test-mbsstr2.sh: New file.
108907         * tests/test-mbsstr2.c: New file.
108908         * tests/test-mbsstr3.sh: New file.
108909         * tests/test-mbsstr3.c: New file.
108910         * m4/locale-fr.m4: New file.
108912 2007-02-11  Bruno Haible  <bruno@clisp.org>
108914         * lib/mbsrchr.c (mbsrchr): Fix bug.
108916         * modules/mbsrchr-tests: New file.
108917         * tests/test-mbsrchr.sh: New file.
108918         * tests/test-mbsrchr.c: New file.
108920 2007-02-11  Bruno Haible  <bruno@clisp.org>
108922         * lib/mbschr.c (mbschr): Fix bug.
108924         * modules/mbschr-tests: New file.
108925         * tests/test-mbschr.sh: New file.
108926         * tests/test-mbschr.c: New file.
108927         * m4/locale-zh.m4: New file.
108929 2007-02-11  Bruno Haible  <bruno@clisp.org>
108931         Support for copying multibyte string iterators.
108932         * lib/mbiter.h: Include <string.h>.
108933         (mbiter_multi_copy): New function.
108934         (mbi_copy): New macro.
108935         * lib/mbuiter.h: Include <string.h>.
108936         (mbuiter_multi_copy): New function.
108937         (mbui_copy): New macro.
108939 2007-02-11  Bruno Haible  <bruno@clisp.org>
108941         New module mbslen.
108942         * modules/mbslen: New file.
108943         * lib/mbslen.c: New file.
108944         * lib/string_.h (mbslen): New declaration.
108945         * m4/mbslen.m4: New file.
108946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108947         GNULIB_MBSLEN.
108948         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108949         * MODULES.html.sh (Internationalization functions): Add mbslen.
108951 2007-02-11  Bruno Haible  <bruno@clisp.org>
108953         Ensure O(n) worst-case complexity of strcasestr substitute.
108954         * lib/strcasestr.c: Include stdbool.h.
108955         (knuth_morris_pratt): New function.
108956         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108957         bookkeeping indicates that it's worth it.
108958         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108960         * modules/strcasestr-tests: New file.
108961         * tests/test-strcasestr.c: New file.
108963 2007-02-11  Bruno Haible  <bruno@clisp.org>
108965         Ensure O(n) worst-case complexity of c_strcasestr.
108966         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108967         (knuth_morris_pratt): New function.
108968         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108969         the bookkeeping indicates that it's worth it.
108970         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108972         * modules/c-strcasestr-tests: New file.
108973         * tests/test-c-strcasestr.c: New file.
108975 2007-02-11  Bruno Haible  <bruno@clisp.org>
108977         Ensure O(n) worst-case complexity of c_strstr.
108978         * lib/c-strstr.c: Include stdbool.h, string.h.
108979         (knuth_morris_pratt): New function.
108980         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108981         bookkeeping indicates that it's worth it.
108982         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108984         * lib/c-strstr.c: Complete rewrite for maintainability.
108986         * modules/c-strstr-tests: New file.
108987         * tests/test-c-strstr.c: New file.
108989 2007-02-11  Bruno Haible  <bruno@clisp.org>
108991         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108992         5.2.1 and earlier, whereby \055 was treated just like the range
108993         delimiter '-'.
108994         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108996 2007-02-08  Bruno Haible  <bruno@clisp.org>
108998         * modules/regex (Depends-on): Add stdbool.
108999         Reported by Dalibor Topic <robilad@kaffe.org>.
109001 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109003         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
109004         Prefer returning from main to exiting from it.
109005         Remove unnecessary parens after sizeof.
109007 2007-02-05  Bruno Haible  <bruno@clisp.org>
109009         New module mbssep.
109010         * modules/mbssep: New file.
109011         * lib/mbssep.c: New file.
109012         * lib/string_.h (strsep): Add a conditional link warning.
109013         (mbssep): New declaration.
109014         * m4/mbssep.m4: New file.
109015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109016         GNULIB_MBSSEP.
109017         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
109018         * MODULES.html.sh (Internationalization functions): Add mbssep.
109020 2007-02-05  Bruno Haible  <bruno@clisp.org>
109022         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
109023         Optimize search in case of 1 delimiter.
109025 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109027         * lib/acl.h: Include sys/types.h before sys/acl.h.
109029 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109031         Merge upstream fix for glibc bugzilla #3957:
109033         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
109035         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
109036         bit for RE_HAT_LISTS_NOT_NEWLINE.
109037         (build_charclass_op): Remove bogus comment.
109039 2007-02-05  Simon Josefsson  <simon@josefsson.org>
109041         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
109043 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109045         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
109046         * lib/memmem.c [!defined _LIBC]: Include config.h.
109048 2007-02-04  Bruno Haible  <bruno@clisp.org>
109050         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
109051         warning message.
109053 2007-02-04  Bruno Haible  <bruno@clisp.org>
109055         New module mbstok_r.
109056         * modules/mbstok_r: New file.
109057         * lib/mbstok_r.c: New file.
109058         * lib/string_.h (strtok_r): Change argument names to match the
109059         comments. Add a conditional link warning.
109060         (mbstok_r): New declaration.
109061         * m4/mbstok_r.m4: New file.
109062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109063         GNULIB_MBSTOK_R.
109064         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
109065         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
109067 2007-02-04  Bruno Haible  <bruno@clisp.org>
109069         New module mbsspn.
109070         * modules/mbsspn: New file.
109071         * lib/mbsspn.c: New file.
109072         * lib/string_.h (strspn): Add a conditional link warning.
109073         (mbsspn): New declaration.
109074         * m4/mbsspn.m4: New file.
109075         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109076         GNULIB_MBSSPN.
109077         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
109078         * MODULES.html.sh (Internationalization functions): Add mbsspn.
109080 2007-02-04  Bruno Haible  <bruno@clisp.org>
109082         New module mbspbrk.
109083         * modules/mbspbrk: New file.
109084         * lib/mbspbrk.c: New file.
109085         * lib/string_.h (strpbrk): Add a conditional link warning.
109086         (mbspbrk): New declaration.
109087         * m4/mbspbrk.m4: New file.
109088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109089         GNULIB_MBSPBRK.
109090         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
109091         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
109093 2007-02-04  Bruno Haible  <bruno@clisp.org>
109095         New module mbscspn.
109096         * modules/mbscspn: New file.
109097         * lib/mbscspn.c: New file.
109098         * lib/string_.h (strcspn): Add a conditional link warning.
109099         (mbscspn): New declaration.
109100         * m4/mbscspn.m4: New file.
109101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109102         GNULIB_MBSCSPN.
109103         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
109104         * MODULES.html.sh (Internationalization functions): Add mbscspn.
109106 2007-02-04  Bruno Haible  <bruno@clisp.org>
109108         New module mbscasestr, reduced goal of strcasestr.
109109         * modules/mbscasestr: New file.
109110         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
109111         (mbscasestr): Renamed from strcasestr.
109112         * lib/strcasestr.c: Don't include mbuiter.h.
109113         (strcasestr): Remove support for multibyte locales.
109114         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
109115         Change the conditional link warning.
109116         (mbscasestr): New declaration.
109117         * m4/mbscasestr.m4: New file.
109118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
109119         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
109120         REPLACE_STRCASESTR.
109121         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
109122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109123         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109124         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
109125         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
109126         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109127         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
109128         (Depends-on): Remove mbuiter.
109129         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
109131 2007-02-04  Bruno Haible  <bruno@clisp.org>
109133         Simplify handling of strncasecmp.
109134         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
109135         the conditional link warning.
109136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109137         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
109138         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
109139         * modules/strcase (configure.ac): Don't invoke
109140         gl_STRING_MODULE_INDICATOR.
109141         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
109143 2007-02-04  Bruno Haible  <bruno@clisp.org>
109145         New module mbscasecmp, reduced goal of strcasecmp.
109146         * modules/mbscasecmp: New file.
109147         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
109148         (mbscasecmp): Renamed from strcasecmp.
109149         * lib/strcasecmp.c: Don't include mbuiter.h.
109150         (strcasecmp): Remove support for multibyte locales.
109151         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
109152         Change the conditional link warning.
109153         (mbscasecmp): New declaration.
109154         * m4/mbscasecmp.m4: New file.
109155         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
109156         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
109157         REPLACE_STRCASECMP.
109158         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
109159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109160         GNULIB_MBSCASECMP.
109161         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
109162         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
109163         * modules/strcase (Files): Remove m4/mbrtowc.m4.
109164         (Depends-on): Remove mbuiter.
109165         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
109167 2007-02-04  Bruno Haible  <bruno@clisp.org>
109169         New module mbsstr. Remove module strstr.
109170         * modules/mbsstr: New file.
109171         * modules/strstr: Remove file.
109172         * lib/mbsstr.c: Renamed from lib/strstr.c.
109173         (mbsstr): Renamed from strstr.
109174         * lib/string_.h (strstr): Remove declaration. Change the conditional
109175         link warning.
109176         (mbsstr): New declaration.
109177         * m4/mbsstr.m4: New file.
109178         * m4/strstr.m4: Remove file.
109179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
109180         REPLACE_STRSTR.
109181         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
109182         Don't initialize GNULIB_STRSTR.
109183         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
109184         substitute GNULIB_STRSTR and REPLACE_STRSTR.
109185         * MODULES.html.sh (Internationalization functions): Add mbsstr.
109186         (Support for systems lacking ANSI C 89): Remove strstr.
109188 2007-02-04  Bruno Haible  <bruno@clisp.org>
109190         New module mbsrchr.
109191         * modules/mbsrchr: New file.
109192         * lib/mbsrchr.c: New file.
109193         * lib/string_.h (strrchr): Add a conditional link warning.
109194         (mbsrchr): New declaration.
109195         * m4/mbsrchr.m4: New file.
109196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109197         GNULIB_MBSRCHR.
109198         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
109199         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
109201 2007-02-04  Bruno Haible  <bruno@clisp.org>
109203         New module mbschr.
109204         * modules/mbschr: New file.
109205         * lib/mbschr.c: New file.
109206         * lib/string_.h (strchr): Add a conditional link warning.
109207         (mbschr): New declaration.
109208         * m4/mbschr.m4: New file.
109209         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109210         GNULIB_MBSCHR.
109211         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
109212         * MODULES.html.sh (Internationalization functions): Add mbschr.
109214 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109216         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
109218         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
109220 2007-02-04  Bruno Haible  <bruno@clisp.org>
109222         New module description section 'configure.ac-early'.
109223         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
109224         (func_get_autoconf_early_snippet): New function.
109225         (func_import, func_create_testdir): Use it. Remove special cases for
109226         modules 'extensions' and 'lock'.
109227         * modules/extensions (configure.ac-early): Require
109228         gl_USE_SYSTEM_EXTENSIONS.
109229         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
109231 2007-02-04  Bruno Haible  <bruno@clisp.org>
109233         Make use of gcj-4.3's -fsource and -ftarget option.
109234         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
109235         and if so try the options -fsource and -ftarget.
109236         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
109237         source_version, ftarget_option, target_version arguments.
109238         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
109239         (is_envjavac_oldgcj_14_14_usable): Renamed from
109240         is_envjavac_gcj_14_14_usable.
109241         (is_envjavac_oldgcj_14_13_usable): Renamed from
109242         is_envjavac_gcj_14_13_usable.
109243         (is_gcj_present): Update.
109244         (is_gcj_43, is_gcj43_usable): New functions.
109245         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
109246         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
109247         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
109248         try the options -fsource and -ftarget.
109250 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109252         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
109253         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
109254         larger value.
109256 2007-02-03  Jim Meyering  <jim@meyering.net>
109258         Give tools a better chance to allocate space for very large buffers.
109259         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
109261         Make pwd and readlink work also when run with an unreadable parent dir
109262         on systems with openat support.
109263         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
109264         provided getcwd function, even when we have openat support.
109265         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
109267 2007-02-02  Bruno Haible  <bruno@clisp.org>
109269         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109270         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
109271         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
109272         portability problems if one of these functions is only used on specific
109273         platforms.
109274         Reported by Paul Eggert.
109276 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
109278         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
109279         is causing more trouble than it's curing.
109280         * lib/regex_internal.h (__mempcpy): Remove.
109281         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
109282         (and make the code a tad smaller to boot).
109283         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
109285 2007-02-02  Jim Meyering  <jim@meyering.net>
109287         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
109288         section, not in the Makefile.am: one.
109290 2007-02-02  Eric Blake  <ebb9@byu.net>
109292         * lib/strchrnul.c: Always include config.h first.
109294         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
109295         gnulib strstr is not necessary here.
109297 2007-02-02  Simon Josefsson  <simon@josefsson.org>
109299         * m4/socklen.m4: Fix typo.
109301 2007-02-02  Eric Blake  <ebb9@byu.net>
109303         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
109304         * modules/netinet_in (Makefile.am): Likewise.
109306 2007-02-01  Bruno Haible  <bruno@clisp.org>
109308         * lib/string_.h (GL_LINK_WARNING): New macro.
109309         (strcasecmp, strstr, strcasestr): If provided by the system,
109310         conditionally define as a macro that leads to a warning instead of to
109311         an error.
109312         (strncasecmp): Conditionally define as a macro that leads to a warning.
109314 2007-02-01  Karl Berry  <karl@gnu.org>
109316         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
109318 2007-02-01  Bruno Haible  <bruno@clisp.org>
109320         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
109321         renamings.
109323 2007-02-01  Eric Blake  <ebb9@byu.net>
109325         * modules/regex (Depends-on): Revert dependence on mempcpy.
109326         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109327         module's definition of mempcpy.
109328         Reported by Paul Eggert.
109330 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109332         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109333         the symbol XYZ before redefining it.  This fixes a problem with
109334         programs that don't use XYZ, when compiled on systems that define
109335         XYZ to something else.
109337 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109339         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109340         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109341         writeable to group or other and (2) is intended to have a special
109342         mode bit that is set or cleared.  In such a case, the directory
109343         should be neither group- nor other-writeable until the special
109344         mode bits are right.
109346 2007-01-31  Eric Blake  <ebb9@byu.net>
109348         * modules/mountlist (Depends-on): Add strstr.
109350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109351         bug.
109352         * modules/string (Makefile.am): Remove redundant replacement.
109353         * modules/regex (Depends-on): Add mempcpy.
109355 2007-01-31  Bruno Haible  <bruno@clisp.org>
109357         New module description field 'Link'.
109358         * gnulib-tool (func_usage): Document --extract-link-directive.
109359         (sed_extract_prog): Recognize 'Link' directive.
109360         (func_get_link_directive): New function.
109361         (func_import): Show summary of link directives.
109362         Handle --extract-link-directive option.
109363         * modules/acl (Link): New section.
109364         * modules/clock-time (Link): New section.
109365         * modules/euidaccess (Link): New section.
109366         * modules/gettext (Link): New section.
109367         * modules/iconv (Link): New section.
109368         * modules/lock (Link): New section.
109369         * modules/nanosleep (Link): New section.
109370         * modules/readline (Link): New section.
109372 2007-01-27  Bruno Haible  <bruno@clisp.org>
109374         Enforce the use of gnulib modules for unportable <string.h> functions.
109375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109377         (gl_HEADER_STRING_H_BODY): Require it.
109378         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109379         the symbol XYZ to one that gives a link error.
109380         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109381         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109382         * modules/mempcpy (configure.ac): Likewise.
109383         * modules/memrchr (configure.ac): Likewise.
109384         * modules/stpcpy (configure.ac): Likewise.
109385         * modules/stpncpy (configure.ac): Likewise.
109386         * modules/strcase (configure.ac): Likewise.
109387         * modules/strcasestr (configure.ac): Likewise.
109388         * modules/strchrnul (configure.ac): Likewise.
109389         * modules/strdup (configure.ac): Likewise.
109390         * modules/strndup (configure.ac): Likewise.
109391         * modules/strnlen (configure.ac): Likewise.
109392         * modules/strpbrk (configure.ac): Likewise.
109393         * modules/strsep (configure.ac): Likewise.
109394         * modules/strstr (configure.ac): Likewise.
109395         * modules/strtok_r (configure.ac): Likewise.
109397 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109399         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109401 2007-01-30  Jim Meyering  <jim@meyering.net>
109403         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109405 2007-01-29  Bruno Haible  <bruno@clisp.org>
109407         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109408         * lib/execute.c: Likewise.
109409         * lib/pipe.c: Likewise.
109410         * lib/printf-args.h: Likewise.
109411         * lib/printf-args.c: Likewise.
109412         * lib/printf-parse.c: Likewise.
109413         * lib/vasnprintf.c: Likewise.
109415 2007-01-29  Eric Blake  <ebb9@byu.net>
109417         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109418         declaration.
109420 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109422         * lib/strptime.h (strptime): Use 'restrict' for args where
109423         POSIX requires this.
109424         * lib/strptime.c (strptime): Likewise.
109425         Change license notice from LGPL to GPL, since gnulib-tool will
109426         change this as needed.
109427         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109428         defined.
109429         Include "strptime.h" first, to check interface.
109430         Do not #undef _LIBC and _NL_CURRENT.
109431         Do not include <stdlib.h>; no longer needed.
109432         Include "time_r.h" and declare ptime_locale_status
109433         only if _LIBC is not defined.
109434         (__P): Remove unused macro.
109435         (match_string): Bring back glibc version, but use it only if _LIBC
109436         is defined.
109437         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109438         Remove unnecessary assertion and abort() call.
109439         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109440         * m4/strptime.m4: Fix serial number comment.
109441         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109442         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109443         (Depends-on): Add time_r.
109445 2007-01-29  Bruno Haible  <bruno@clisp.org>
109447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109448         strptime.
109449         * modules/strptime (Depends-on): Add stdbool.
109450         * lib/strptime.h: Include <time.h> always. Add comments.
109452 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109454         * modules/strptime: New file.
109455         * lib/strptime.h: New file.
109456         * lib/strptime.c: New file.
109457         * m4/strptime.m4: New file.
109459 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109461         * MODULES.html.sh: New module mpsort.
109462         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109464         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109465         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109466         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109467         All uses changed.
109468         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109469         All uses changed.
109470         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109471         to _Restrict_.
109472         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109473         the parameter matches the prototype.
109475 2007-01-28  Jim Meyering  <jim@meyering.net>
109477         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109478         sys/time.h here, reverting that part of the previous patch:
109479         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109481 2007-01-28  Bruno Haible  <bruno@clisp.org>
109483         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109484         value of $(SYS_TIME_H).
109485         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109486         remove it conditionally, too. [added by Jim Meyering]
109487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109489         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109490         GETTIMEOFDAY_REPLACEMENT to 1.
109492 2007-01-28  Bruno Haible  <bruno@clisp.org>
109494         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109495         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109497         Set UNISTD_H instead of UNISTD_H2.
109498         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109500 2007-01-28  Bruno Haible  <bruno@clisp.org>
109502         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109503         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109505 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109507         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109508         (func_create_testdir): Ensure C locale for `grep' and `tr'
109509         character ranges.
109510         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109511         ACLOCAL_AMFLAGS parsing state machine.
109513 2007-01-27  Bruno Haible  <bruno@clisp.org>
109515         * modules/unistr/base: Update.
109517 2007-01-27  Bruno Haible  <bruno@clisp.org>
109519         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109520         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109521         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109522         modules/unistr/u32-mbtouc.
109523         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109524         * lib/unistr.h: Update.
109525         * lib/linebreak.c: Update.
109526         * modules/unistr/u32-mbtouc: Renamed from
109527         modules/unistr/u32-mbtouc-safe.
109528         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109529         * lib/unistr.h: Update.
109530         * lib/unistr/u32-to-u8.c: Update.
109531         * lib/unistr/u32-to-u16.c: Update.
109533 2007-01-27  Bruno Haible  <bruno@clisp.org>
109535         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109536         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109537         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109538         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109539         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109540         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109541         modules/unistr/u16-mbtouc.
109542         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109543         * lib/unistr.h: Update.
109544         * lib/linebreak.c: Update.
109545         * modules/linebreak: Update.
109546         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109547         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109548         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109549         * modules/unistr/u16-mbtouc: Renamed from
109550         modules/unistr/u16-mbtouc-safe.
109551         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109552         * lib/unistr.h: Update.
109553         * lib/unistr/u16-to-u8.c: Update.
109554         * modules/unistr/u16-to-u8: Update.
109555         * lib/unistr/u16-to-u32.c: Update.
109556         * modules/unistr/u16-to-u32: Update.
109558 2007-01-27  Bruno Haible  <bruno@clisp.org>
109560         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109561         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109562         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109563         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109564         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109565         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109566         modules/unistr/u8-mbtouc.
109567         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109568         * lib/unistr.h: Update.
109569         * lib/striconveh.c: Update.
109570         * modules/striconveh: Update.
109571         * lib/linebreak.c: Update.
109572         * modules/linebreak: Update.
109573         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109574         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109575         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109576         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109577         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109578         * lib/unistr.h: Update.
109579         * lib/striconveh.c: Update.
109580         * modules/striconveh: Update.
109581         * lib/unistr/u8-to-u16.c: Update.
109582         * modules/unistr/u8-to-u16: Update.
109583         * lib/unistr/u8-to-u32.c: Update.
109584         * modules/unistr/u8-to-u32: Update.
109586 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109588         Sync from Libtool.
109589         * lib/argz.c: Do not include strings.h nor memory.h, include
109590         string.h unconditionally.  Patch by Simon Josefsson.
109592 2007-01-27  Bruno Haible  <bruno@clisp.org>
109594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109595         from gl_HEADER_STRING_H_BODY.
109596         (gl_HEADER_STRING_H_BODY): Require it.
109597         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109600         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109601         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109602         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109604         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109605         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109606         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109607         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109608         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109609         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109610         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109613 2007-01-27  Bruno Haible  <bruno@clisp.org>
109615         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109616         check_PROGRAMS into noinst_PROGRAMS.
109617         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109618         check_PROGRAMS in this case.
109619         (func_import): Set for_test to false.
109620         (func_create_testdir): Set for_test to true.
109622 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109623             Bruno Haible  <bruno@clisp.org>
109625         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109626         (Depends-on): Add string.
109627         (Includes): Use <string.h> instead of strcasestr.h.
109628         * modules/string (Makefile.am): Also substitute the value of
109629         REPLACE_STRCASESTR.
109630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109631         assume strcasestr is declared in <string.h> not <strings.h>. Also
109632         set REPLACE_STRCASESTR.
109633         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109634         REPLACE_STRCASESTR.
109635         * lib/strcasestr.h: Remove file.
109636         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109637         * lib/string_.h (strcasestr): New declaration.
109639 2007-01-27  Bruno Haible  <bruno@clisp.org>
109641         * lib/string_.h: Use 'extern'.
109643 2007-01-27  Jim Meyering  <jim@meyering.net>
109645         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109646         of set-but-not-used local, "q".
109648         * lib/mempcpy.c: Include <config.h> before <string.h>.
109649         This fixes a compilation error on HP-UX, due to the system's
109650         "restrict"-using mempcpy prototype.
109652 2007-01-26  Bruno Haible  <bruno@clisp.org>
109654         Small optimization.
109655         * lib/javacomp.c: Include c-strstr.h.
109656          (is_envjavac_gcj): Use c_strstr instead of strstr.
109657         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109659 2007-01-26  Bruno Haible  <bruno@clisp.org>
109661         * MODULES.html.sh (Unicode string functions): Add the new modules.
109663         * modules/uniconv/u32-strconv-to-locale: New file.
109664         * lib/uniconv/u32-strconv-to-locale.c: New file.
109666         * modules/uniconv/u16-strconv-to-locale: New file.
109667         * lib/uniconv/u16-strconv-to-locale.c: New file.
109669         * modules/uniconv/u8-strconv-to-locale: New file.
109670         * lib/uniconv/u8-strconv-to-locale.c: New file.
109672         * modules/uniconv/u32-strconv-from-locale: New file.
109673         * lib/uniconv/u32-strconv-from-locale.c: New file.
109675         * modules/uniconv/u16-strconv-from-locale: New file.
109676         * lib/uniconv/u16-strconv-from-locale.c: New file.
109678         * modules/uniconv/u8-strconv-from-locale: New file.
109679         * lib/uniconv/u8-strconv-from-locale.c: New file.
109681         * modules/uniconv/u32-strconv-to-enc: New file.
109682         * lib/uniconv/u32-strconv-to-enc.c: New file.
109683         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109684         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109686         * modules/uniconv/u16-strconv-to-enc: New file.
109687         * lib/uniconv/u16-strconv-to-enc.c: New file.
109688         * lib/uniconv/u-strconv-to-enc.h: New file.
109689         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109690         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109692         * modules/uniconv/u8-strconv-to-enc: New file.
109693         * lib/uniconv/u8-strconv-to-enc.c: New file.
109694         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109695         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109697         * modules/uniconv/u32-strconv-from-enc: New file.
109698         * lib/uniconv/u32-strconv-from-enc.c: New file.
109699         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109700         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109702         * modules/uniconv/u16-strconv-from-enc: New file.
109703         * lib/uniconv/u16-strconv-from-enc.c: New file.
109704         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109705         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109707         * modules/uniconv/u8-strconv-from-enc: New file.
109708         * lib/uniconv/u8-strconv-from-enc.c: New file.
109709         * lib/uniconv/u-strconv-from-enc.h: New file.
109710         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109711         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109713         * modules/uniconv/u32-conv-from-enc: New file.
109714         * lib/uniconv/u32-conv-from-enc.c: New file.
109715         * modules/uniconv/u32-conv-from-enc-tests: New file.
109716         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109718         * modules/uniconv/u16-conv-from-enc: New file.
109719         * lib/uniconv/u16-conv-from-enc.c: New file.
109720         * lib/uniconv/u-conv-from-enc.h: New file.
109721         * modules/uniconv/u16-conv-from-enc-tests: New file.
109722         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109724         * modules/uniconv/u8-conv-from-enc: New file.
109725         * lib/uniconv/u8-conv-from-enc.c: New file.
109726         * modules/uniconv/u8-conv-from-enc-tests: New file.
109727         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109729         * modules/uniconv/base: New file.
109730         * lib/uniconv.h: New file.
109732 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109734         * doc/gnulib-tool.texi (Initial import): Update to match current
109735         behavior with strdup module.
109736         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109737         * lib/memmem.h: Remove; all uses removed.  This is now done
109738         by <string.h>.
109739         * lib/mempcpy.h: Likewise.
109740         * lib/memrchr.h: Likewise.
109741         * lib/stpcpy.h: Likewise.
109742         * lib/stpncpy.h: Likewise.
109743         * lib/strcase.h: Likewise.
109744         * lib/strchrnul.h: Likewise.
109745         * lib/strdup.h: Likewise.
109746         * lib/strndup.h: Likewise.
109747         * lib/strnlen.h: Likewise.
109748         * lib/strpbrk.h: Likewise.
109749         * lib/strsep.h: Likewise.
109750         * lib/strstr.h: Likewise.
109751         * lib/strtok_r.h: Likewise.
109752         * lib/string_.h: New file.
109753         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109754         Rely on <string.h> instead.
109755         * lib/canon-host.c: Likewise.
109756         * lib/chdir-long.c: Likewise.
109757         * lib/concatpath.c: Likewise.
109758         * lib/exclude.c: Likewise.
109759         * lib/fchdir.c: Likewise.
109760         * lib/getaddrinfo.c: Likewise.
109761         * lib/getcwd.c: Likewise.
109762         * lib/getsubopt.c: Likewise.
109763         * lib/glob.c: Likewise.
109764         * lib/hard-locale.c: Likewise.
109765         * lib/iconvme.c: Likewise.
109766         * lib/javacomp.c: Likewise.
109767         * lib/mempcpy.c: Likewise.
109768         * lib/memrchr.c: Likewise.
109769         * lib/regex_internal.h: Likewise.
109770         * lib/stpncpy.c: Likewise.
109771         * lib/strcasecmp.c: Likewise.
109772         * lib/strchrnul.c: Likewise.
109773         * lib/strdup.c: Likewise.
109774         * lib/striconv.c: Likewise.
109775         * lib/striconveh.c: Likewise.
109776         * lib/striconveha.c: Likewise.
109777         * lib/strncasecmp.c: Likewise.
109778         * lib/strndup.c: Likewise.
109779         * lib/strnlen.c: Likewise.
109780         * lib/strsep.c: Likewise.
109781         * lib/strstr.c: Likewise.
109782         * lib/strtok_r.c: Likewise.
109783         * lib/userspec.c: Likewise.
109784         * lib/w32spawn.h: Likewise.
109785         * lib/xstrndup.c: Likewise.
109786         * lib/mountlist.c (strstr): Remove decl.
109787         * m4/string_h.m4: New file.
109788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109789         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109790         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109791         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109792         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109793         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109794         Set REPLACE_STRCASECMP if necessary.
109795         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109796         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109797         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109799         HAVE_DECL_STRDUP if necessary.
109800         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109801         since gl_FUNC_STRNDUP does that now.
109802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109803         Check for decl here...
109804         (gl_PREREQ_STRNLEN): ... not here.
109805         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109806         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109807         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109808         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109809         necessary.
109810         * modules/string: New file.
109811         * modules/memmem (Files): Remove special-purpose include file.
109812         (Depends-on): Add string.
109813         (Include): Include <string.h>, not the removed file.
109814         * modules/mempcpy: Likewise.
109815         * modules/memrchr: Likewise.
109816         * modules/stpcpy: Likewise.
109817         * modules/stpncpy: Likewise.
109818         * modules/strcase: Likewise.
109819         * modules/strchrnul: Likewise.
109820         * modules/strdup: Likewise.
109821         * modules/strndup: Likewise.
109822         * modules/strnlen: Likewise.
109823         * modules/strpbrk: Likewise.
109824         * modules/strsep: Likewise.
109825         * modules/strstr: Likewise.
109826         * modules/strtok_r: Likewise.
109827         * tests/test-dirname.c: Don't include "strdup.h", since
109828         <string.h> now suffices.
109829         * tests/test-memmem.c: Don't include "memmem.h", since
109830         <string.h> now suffices.
109832 2007-01-25  Bruno Haible  <bruno@clisp.org>
109834         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109835         *resultp is 0.
109837         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109838         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109839         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109840         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109842         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109843         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109844         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109845         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109846         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109847         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109849 2007-01-24  Bruno Haible  <bruno@clisp.org>
109851         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109852         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109853         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109854         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109855         gl_FUNC_FTS_CORE.
109856         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109857         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109858         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109859         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109860         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109861         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109862         gl_FUNC_FCHOWNAT.
109863         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109864         gl_FUNC_STRFTIME.
109865         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109866         Reported by Ralf Wildenhues.
109868 2007-01-24  Bruno Haible  <bruno@clisp.org>
109870         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109871         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109872         gl_GETADDRINFO.
109873         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109874         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109875         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109877 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109879         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109880         Don't use 'exit'; just return from 'main'.
109881         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109883         * lib/fnmatch_.h: Readjust white space and comments to match
109884         glibc, to avoid spurious diffs.
109886 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109888         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109889         2004-12-01 change by Jakub Jelinek, since this code won't compile
109890         if !LIBC.  Problem reported by Bob Proulx.
109892 2007-01-23  Bruno Haible  <bruno@clisp.org>
109894         * lib/striconveh.c: Include c-strcaseeq.h.
109895         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109896         * modules/striconveh (Depends-on): Add c-strcaseeq.
109898 2007-01-23  Bruno Haible  <bruno@clisp.org>
109900         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109902         * modules/c-strcaseeq: New file.
109903         * lib/c-strcaseeq.h: New file.
109905         * modules/streq: New file.
109906         * lib/streq.h: New file.
109908 2007-01-23  Bruno Haible  <bruno@clisp.org>
109910         * modules/striconveha-tests: New file.
109911         * tests/test-striconveha.c: New file.
109913         * lib/striconveha.h: Include <stdbool.h>.
109914         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109915         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109916         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109917         (mem_iconveha): New function.
109918         (str_iconveha_notranslit): Renamed from str_iconveha.
109919         (str_iconveha): New function.
109920         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109921         c-strcase.
109923 2007-01-23  Bruno Haible  <bruno@clisp.org>
109925         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109926         encodings without forgiving before trying any encoding with handler.
109927         (str_iconveha): Try all encodings without forgiving before trying any
109928         encoding with handler.
109930 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109932         Import the following changes from libc.
109934         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109936         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109938         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109940         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109941         normal_bracket label.
109943         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109945         [BZ #361]
109946         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109947         to normal_bracket after fetching the next character.
109949 2007-01-22  Bruno Haible  <bruno@clisp.org>
109951         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109952         argument.
109953         * lib/striconveh.c (iconv_carefully_1): New function.
109954         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109955         argument.
109956         (str_cd_iconveh): Update.
109957         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109958         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109959         * tests/test-striconveh.c (MAGIC): New macro.
109960         (new_offsets): New function.
109961         (main): Test call with and without offsets.
109963 2007-01-22  Bruno Haible  <bruno@clisp.org>
109965         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109966         * modules/sys_select (Makefile.am): Likewise.
109967         * modules/sys_socket (Makefile.am): Likewise.
109968         * modules/sys_time (Makefile.am): Likewise.
109970 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109972         * modules/gettimeofday (License): Change from GPL to LGPL, since
109973         gettimeofday is a library function.
109975 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109977         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109979 2007-01-21  Bruno Haible  <bruno@clisp.org>
109981         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109983 2007-01-21  Bruno Haible  <bruno@clisp.org>
109985         * modules/striconveha: New file.
109986         * lib/striconveha.h: New file.
109987         * lib/striconveha.c: New file.
109988         * MODULES.html.sh (Internationalization functions): Add striconveha.
109989         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109990         string.
109991         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109993 2007-01-21  Bruno Haible  <bruno@clisp.org>
109995         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109996         * lib/striconveh.c (str_iconveh): Likewise.
109998 2007-01-21  Bruno Haible  <bruno@clisp.org>
110000         * lib/striconveh.h (mem_iconveh): New declaration.
110001         * lib/striconveh.c (mem_iconveh): New function.
110002         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
110004 2007-01-21  Bruno Haible  <bruno@clisp.org>
110006         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
110008         * lib/striconveh.h (mem_cd_iconveh): Change specification.
110009         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
110010         original result buffer.
110011         (str_cd_iconveh): Update.
110012         * tests/test-striconveh.c (main): Update.
110014         * lib/striconv.h (mem_cd_iconv): Change specification.
110015         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
110016         result buffer.
110017         (str_cd_iconv): Update.
110018         * tests/test-striconv.c (main): Update.
110020 2007-01-21  Bruno Haible  <bruno@clisp.org>
110022         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
110024 2007-01-20  Jim Meyering  <jim@meyering.net>
110026         * lib/userspec.c (parse_with_separator): If a user or group string
110027         starts with "+", skip the corresponding name-to-ID look-up, since
110028         such a look-up must fail: user and group names may not include "+".
110030 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
110032         * lib/poll.c: Include sys/time.h and time.h unconditionally,
110033         since we now assume the sys_time module.
110034         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
110035         check for sys/time.h; no longer needed.
110036         * modules/poll (Depends-on): Depend on sys_time.
110038 2007-01-18  Bruno Haible  <bruno@clisp.org>
110040         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
110041         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110043         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
110044         gettimeofday.
110046         * tests/test-gettimeofday.c: Include <time.h>.
110047         (dummy): Remove variable.
110049         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
110050         gl_HEADER_SYS_TIME_H.
110051         (gl_HEADER_SYS_TIME_H): New macro.
110053         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
110054         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
110056         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
110057         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
110059         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
110060         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110061         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
110062         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
110063         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110065         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
110066         last change; it caused a compilation error when cross-compiling to
110067         Cygwin.
110069 2007-01-18  Jim Meyering  <jim@meyering.net>
110071         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
110072         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
110073         than the race-prone "test -d sys || mkdir sys".
110074         (configure.ac): Use AC_PROG_MKDIR_P.
110075         * modules/sys_select: Likewise.
110076         * modules/sys_socket: Likewise.
110077         * modules/sys_time: Likewise.
110079 2007-01-18  Eric Blake  <ebb9@byu.net>
110081         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
110082         replace gettimeofday.
110083         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
110084         name, to avoid infinite recursion.
110086 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
110088         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
110089         module sys_time.
110090         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
110091         assume timespec.h defines struct timeval.
110092         * lib/settime.c: Likewise.
110093         * lib/utimens.c: Likewise.
110094         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
110095         since we now assume the gettimeofday module.
110096         * lib/tempname.c (__gen_tempname): Likewise.
110097         * lib/gettimeofday.h: Remove.
110098         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
110099         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
110100         Include <time.h>, for 'time()'.
110101         (localtime_buffer_addr): Also use this workaround if
110102         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
110103         to simplify the uses.  All uses changed.
110104         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
110105         that #undef is inside {}, and 'const' follows type name consistently.
110106         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
110107         (gettimeofday): Do not use the maximum possible value for
110108         tv->tv_usec, since that might break usages other than ls.c.
110109         Instead, we'll leave ls.c alone.  This undoes today's patch
110110         by Bruno.  Add a compile-time warning for 1s-clock resolution;
110111         we've never observed the problem but might as well keep the
110112         canary.
110113         * lib/nanosleep.c: Include timespec.h first, for interface check.
110114         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
110115         now assume the sys_time module.
110116         * lib/tempname.c: Likewise.
110117         * lib/timespec.h: Likewise.
110118         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
110119         needed.
110120         * lib/strftime.c: Likewise.
110121         * lib/timespec.h: Likewise.
110122         * lib/posixtm.c: Include posixtm.h first, for interface check.
110123         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
110124         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
110125         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
110126         * lib/sys_time_.h: New file.
110127         * lib/timespec.h (struct timespec): Use long int, not long.
110128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
110129         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
110130         Remove obsolescent call to AC_HEADER_TIME.
110131         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
110132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
110133         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110134         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
110135         Likewise.
110136         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
110137         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
110138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
110139         into the sys_time module.  Check for gettimeofday just once.
110140         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
110141         for gettimeofday signature to just check the signature.  Merely
110142         compile it, since linking doesn't test signature.  Improve test for
110143         whether gettimeofday.o is actually needed.
110144         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
110145         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
110146         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
110147         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110148         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
110149         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
110150         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
110151         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
110152         than worrying about sys/time.h.
110153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110154         Don't bother worrying about TIME_WITH_SYS_TIME.
110155         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
110156         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
110157         * m4/sys_time_h.m4: New file.
110158         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
110159         Don't include sys/time.h.  Return from main rather than exiting.
110160         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
110161         all uses changed.
110162         * modules/gethrxtime (Depends-on): Add sys_time.
110163         * modules/gettime (Depends-on): Likewise.
110164         * modules/gettimeofday (Depends-on): Likewise.
110165         * modules/nanosleep (Depends-on): Likewise.
110166         * modules/settime (Depends-on): Likewise.
110167         * modules/tempname (Depends-on): Likewise.
110168         * modules/utimens (Depends-on): Likewise.
110169         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
110170         (Include): Change back to <sys/time.h>.
110171         (Maintainer): Add self.
110172         * modules/sys_time: New file.
110173         * modules/tempname (Depends-on): Add gettimeofday.
110174         * tests/test-gettimeofday.c: Include <sys/time.h>
110175         rather than gettimeofday.h.
110177 2007-01-17  Bruno Haible  <bruno@clisp.org>
110179         * gnulib-tool (func_get_license): Revert last patch. Instead, let
110180         the license default to GPL.
110181         (func_create_testdir): Don't complain if a module is LGPL and its
110182         tests module depends on GPLed modules.
110184 2007-01-17  Bruno Haible  <bruno@clisp.org>
110186         * lib/gettimeofday.c (gettimeofday): Add code for the case
110187         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
110188         maximum possible value for tv->tv_usec, rather than the minimum one.
110190 2005-10-08  Martin Lambers  <marlam@marlam.de>
110191 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110192 2007-01-16  Bruno Haible  <bruno@clisp.org>
110194         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
110195         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
110196         gl_FUNC_GETTIMEOFDAY.
110197         (Include): Add gettimeofday.h.
110198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
110199         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
110200         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
110201         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
110202         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
110203         * lib/gettimeofday.h: New file.
110204         * lib/gettimeofday.c: Include <sys/timeb.h>.
110205         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
110206         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110207         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
110208         fall back on time().
110210         * tests/test-gettimeofday.c: New file.
110211         * modules/gettimeofday-tests: New file.
110213 2007-01-16  Eric Blake  <ebb9@byu.net>
110215         * modules/fnmatch (Depends-on): Depend on wchar.
110216         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
110217         * m4/fnmatch.m4: Likewise.
110218         * modules/mbchar (Makefile.am): Assume <wchar.h>.
110219         * m4/mbchar.m4: Likewise.
110220         * modules/mbswidth (Depends-on): Depend on wchar.
110221         * lib/mbswidth.c: Assume <wchar.h>.
110222         * m4/mbswidth.m4: Likewise.
110223         * modules/quotearg (Depends-on): Depend on wchar.
110224         * lib/quotearg.c: Assume <wchar.h>.
110225         * m4/quotearg.m4: Likewise.
110226         * modules/regex (Depends-on): Depend on wchar.
110227         * lib/regex_internal.h: Assume <wchar.h>.
110228         * m4/regex.m4: Likewise.
110229         * modules/stdint (Depends-on): Depend on wchar.
110230         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
110231         * m4/stdint.m4: Likewise.
110232         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
110233         * modules/strftime (Depends-on): Depend on wchar.
110234         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
110235         * modules/strtol (Depends-on): Depend on wchar.
110236         * lib/strtol.c: Assume <wchar.h>.
110237         * modules/wcwidth (Depends-on): Depend on wchar.
110238         * lib/wcwidth.h: Assume <wchar.h>.
110239         * m4/wcwidth.m4: Likewise.
110241 2007-01-16  Bruno Haible  <bruno@clisp.org>
110243         * modules/csharpexec-script: New, created from...
110244         * modules/csharpexec: ... this.
110246 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
110248         * modules/javaexec-script: New, created from...
110249         * modules/javaexec: ... this.
110251 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110253         * modules/poll (Dependencies): Add sys_select.
110255 2007-01-15  Jim Meyering  <jim@meyering.net>
110257         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
110258         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
110259         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
110260         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
110262 2007-01-15  Bruno Haible  <bruno@clisp.org>
110264         * modules/striconveh: New file.
110265         * lib/striconveh.h: New file.
110266         * lib/striconveh.c: New file.
110267         * MODULES.html.sh (Internationalization functions): Add striconveh.
110269         * modules/striconveh-tests: New file.
110270         * tests/test-striconveh.c: New file.
110272 2007-01-15  Bruno Haible  <bruno@clisp.org>
110274         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
110275         not from GNU libiconv or GNU libc.
110277 2007-01-15  Bruno Haible  <bruno@clisp.org>
110279         * doc/gnulib-intro.texi (Copyright): Explain the different license
110280         terms for module descriptions, autoconf macros, tests, documentation.
110282 2007-01-14  Bruno Haible  <bruno@clisp.org>
110284         * modules/striconv-tests: New file.
110285         * tests/test-striconv.c: New file.
110287 2007-01-14  Bruno Haible  <bruno@clisp.org>
110289         * modules/iconv-tests: New file.
110290         * tests/test-iconv.c: New file.
110292 2007-01-14  Bruno Haible  <bruno@clisp.org>
110294         * gnulib-tool (func_get_license): For test modules, use the license of
110295         the main module.
110297 2007-01-14  Bruno Haible  <bruno@clisp.org>
110299         * modules/iconv (Include): Clarify that <iconv.h> can only be included
110300         if iconv is found to exist.
110302 2007-01-14  Bruno Haible  <bruno@clisp.org>
110304         * modules/c-ctype-tests: New file.
110305         * tests/test-c-ctype.c: New file.
110307 2007-01-14  Bruno Haible  <bruno@clisp.org>
110309         * modules/binary-io-tests: New file.
110310         * tests/test-binary-io.sh: New file.
110311         * tests/test-binary-io.c: New file.
110313 2007-01-14  Bruno Haible  <bruno@clisp.org>
110315         * modules/array-oset-tests: New file.
110316         * tests/test-array_oset.c: New file.
110318 2007-01-14  Bruno Haible  <bruno@clisp.org>
110320         * modules/array-list-tests: New file.
110321         * tests/test-array_list.c: New file.
110323 2007-01-14  Bruno Haible  <bruno@clisp.org>
110325         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
110326         and make.
110327         Reported by Simon Josefsson in
110328         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110330 2007-01-14  Bruno Haible  <bruno@clisp.org>
110332         * modules/allocsa-tests: New file.
110333         * tests/test-allocsa.c: New file.
110335 2007-01-14  Bruno Haible  <bruno@clisp.org>
110337         * modules/fchdir (Depends-on): Add absolute-header.
110338         * modules/unistd (Depends-on): Likewise.
110340 2006-12-30  Bruno Haible  <bruno@clisp.org>
110342         * modules/fchdir: New file.
110343         * modules/unistd (Files): Add lib/unistd_.h.
110344         (Makefile.am): Generate unistd.h from unistd_.h.
110345         * lib/fchdir.c: New file.
110346         * lib/dirent_.h: New file.
110347         * lib/unistd_.h: New file.
110348         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110349         * m4/fchdir.m4: New file.
110350         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110351         (gl_HEADER_UNISTD): Invoke it.
110352         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110353         function.
110354         * lib/backupfile.c (opendir, closedir): Undefine.
110355         * lib/chown.c (open, close): Undefine.
110356         * lib/clean-temp.c (open, close): Undefine.
110357         * lib/copy-file.c (open, close): Undefine.
110358         * lib/execute.c (open, close): Undefine.
110359         * lib/fsusage.c (open, close): Undefine.
110360         * lib/gc-gnulib.c (open, close): Undefine.
110361         * lib/getcwd.c (opendir, closedir): Undefine.
110362         * lib/glob.c (opendir, closedir): Undefine.
110363         * lib/javacomp.c (open, close): Undefine.
110364         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110365         * lib/openat-proc.c (open, close): Undefine.
110366         * lib/pagealign_alloc.c (open, close): Undefine.
110367         * lib/pipe.c (open, close): Undefine.
110368         * lib/progreloc.c (open, close): Undefine.
110369         * lib/savedir.c (opendir, closedir): Undefine.
110370         * lib/utime.c (open, close): Undefine.
110371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110373 2007-01-10  Bruno Haible  <bruno@clisp.org>
110375         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110377 2007-01-12  Eric Blake  <ebb9@byu.net>
110379         Provide a robust <wchar.h>.  Further simplifications are now
110380         possible in other modules, but not included here.
110381         * modules/wchar: New module.
110382         * m4/wchar.m4: New file.
110383         * lib/wchar_.h: Likewise.
110384         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110385         of the new module.
110386         * MODULES.html.sh (Extended multibyte and wide character utilities):
110387         New section.
110389 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110391         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110392         to a reasonable default for memory allocation.
110393         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110394         file system that reports garbage st_size values for symlinks.
110395         Problem reported by Liyang Hu.
110397 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110399         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110400         Emacs .#* auto-save files).
110402 2007-01-11  Bruno Haible  <bruno@clisp.org>
110404         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110405         directory.
110407 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110409         Use @...@ consistently in lib/wctype_.h.
110410         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110411         on it being set to 1 or 0.
110412         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110413         go back to AC_SUBSTing it.
110414         * modules/wctype (Makefile.am): Undo previous change.
110416 2007-01-10  Eric Blake  <ebb9@byu.net>
110418         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110419         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110420         * modules/wctype (Makefile.am): Likewise.
110421         Reported by Chris McGuire.
110423 2007-01-10  Jim Meyering  <jim@meyering.net>
110425         fts.c: a small readability/maintainability improvement
110426         * lib/fts.c (fts_read): Make this code slightly more readable and
110427         maintainable by hoisting the "sp->fts_cur = p" assignments to
110428         immediately follow the statements that set P.  Derived from
110429         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110431 2007-01-10  Eric Blake  <ebb9@byu.net>
110433         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110434         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110436         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110437         Reported by Chris McGuire.
110439 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110441         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110442         in sed script.
110444 2007-01-09  Bruno Haible  <bruno@clisp.org>
110446         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110447         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110448         variables.
110449         (func_module): Use them.
110451 2007-01-09  Bruno Haible  <bruno@clisp.org>
110453         * modules/unistr/base: New file.
110454         * lib/unistr.h: New file.
110456         * modules/unistr/u8-to-u16: New file.
110457         * lib/unistr/u8-to-u16.c: New file.
110459         * modules/unistr/u8-to-u32: New file.
110460         * lib/unistr/u8-to-u32.c: New file.
110462         * modules/unistr/u16-to-u8: New file.
110463         * lib/unistr/u16-to-u8.c: New file.
110465         * modules/unistr/u16-to-u32: New file.
110466         * lib/unistr/u16-to-u32.c: New file.
110468         * modules/unistr/u32-to-u8: New file.
110469         * lib/unistr/u32-to-u8.c: New file.
110471         * modules/unistr/u32-to-u16: New file.
110472         * lib/unistr/u32-to-u16.c: New file.
110474         * modules/unistr/u8-check: New file.
110475         * modules/unistr/u16-check: New file.
110476         * modules/unistr/u32-check: New file.
110477         * lib/unistr/u8-check.c: New file.
110478         * lib/unistr/u16-check.c: New file.
110479         * lib/unistr/u32-check.c: New file.
110481         * modules/unistr/u8-chr: New file.
110482         * modules/unistr/u16-chr: New file.
110483         * modules/unistr/u32-chr: New file.
110484         * lib/unistr/u8-chr.c: New file.
110485         * lib/unistr/u16-chr.c: New file.
110486         * lib/unistr/u32-chr.c: New file.
110488         * modules/unistr/u8-cmp: New file.
110489         * modules/unistr/u16-cmp: New file.
110490         * modules/unistr/u32-cmp: New file.
110491         * lib/unistr/u8-cmp.c: New file.
110492         * lib/unistr/u16-cmp.c: New file.
110493         * lib/unistr/u32-cmp.c: New file.
110495         * modules/unistr/u8-cpy: New file.
110496         * modules/unistr/u16-cpy: New file.
110497         * modules/unistr/u32-cpy: New file.
110498         * lib/unistr/u8-cpy.c: New file.
110499         * lib/unistr/u16-cpy.c: New file.
110500         * lib/unistr/u32-cpy.c: New file.
110501         * lib/unistr/u-cpy.h: New file.
110503         * modules/unistr/u8-cpy-alloc: New file.
110504         * modules/unistr/u16-cpy-alloc: New file.
110505         * modules/unistr/u32-cpy-alloc: New file.
110506         * lib/unistr/u8-cpy-alloc.c: New file.
110507         * lib/unistr/u16-cpy-alloc.c: New file.
110508         * lib/unistr/u32-cpy-alloc.c: New file.
110509         * lib/unistr/u-cpy-alloc.h: New file.
110511         * modules/unistr/u8-endswith: New file.
110512         * modules/unistr/u16-endswith: New file.
110513         * modules/unistr/u32-endswith: New file.
110514         * lib/unistr/u8-endswith.c: New file.
110515         * lib/unistr/u16-endswith.c: New file.
110516         * lib/unistr/u32-endswith.c: New file.
110517         * lib/unistr/u-endswith.h: New file.
110519         * modules/unistr/u8-mblen: New file.
110520         * modules/unistr/u16-mblen: New file.
110521         * modules/unistr/u32-mblen: New file.
110522         * lib/unistr/u8-mblen.c: New file.
110523         * lib/unistr/u16-mblen.c: New file.
110524         * lib/unistr/u32-mblen.c: New file.
110526         * modules/unistr/u8-mbtouc: New file.
110527         * modules/unistr/u16-mbtouc: New file.
110528         * modules/unistr/u32-mbtouc: New file.
110529         * lib/unistr/u8-mbtouc.c: New file.
110530         * lib/unistr/u16-mbtouc.c: New file.
110531         * lib/unistr/u32-mbtouc.c: New file.
110533         * modules/unistr/u8-mbtouc-safe: New file.
110534         * modules/unistr/u16-mbtouc-safe: New file.
110535         * modules/unistr/u32-mbtouc-safe: New file.
110536         * lib/unistr/u8-mbtouc-safe.c: New file.
110537         * lib/unistr/u16-mbtouc-safe.c: New file.
110538         * lib/unistr/u32-mbtouc-safe.c: New file.
110540         * modules/unistr/u8-move: New file.
110541         * modules/unistr/u16-move: New file.
110542         * modules/unistr/u32-move: New file.
110543         * lib/unistr/u8-move.c: New file.
110544         * lib/unistr/u16-move.c: New file.
110545         * lib/unistr/u32-move.c: New file.
110546         * lib/unistr/u-move.h: New file.
110548         * modules/unistr/u8-next: New file.
110549         * modules/unistr/u16-next: New file.
110550         * modules/unistr/u32-next: New file.
110551         * lib/unistr/u8-next.c: New file.
110552         * lib/unistr/u16-next.c: New file.
110553         * lib/unistr/u32-next.c: New file.
110555         * modules/unistr/u8-prev: New file.
110556         * modules/unistr/u16-prev: New file.
110557         * modules/unistr/u32-prev: New file.
110558         * lib/unistr/u8-prev.c: New file.
110559         * lib/unistr/u16-prev.c: New file.
110560         * lib/unistr/u32-prev.c: New file.
110562         * modules/unistr/u8-set: New file.
110563         * modules/unistr/u16-set: New file.
110564         * modules/unistr/u32-set: New file.
110565         * lib/unistr/u8-set.c: New file.
110566         * lib/unistr/u16-set.c: New file.
110567         * lib/unistr/u32-set.c: New file.
110568         * lib/unistr/u-set.h: New file.
110570         * modules/unistr/u8-startswith: New file.
110571         * modules/unistr/u16-startswith: New file.
110572         * modules/unistr/u32-startswith: New file.
110573         * lib/unistr/u8-startswith.c: New file.
110574         * lib/unistr/u16-startswith.c: New file.
110575         * lib/unistr/u32-startswith.c: New file.
110576         * lib/unistr/u-startswith.h: New file.
110578         * modules/unistr/u8-stpcpy: New file.
110579         * modules/unistr/u16-stpcpy: New file.
110580         * modules/unistr/u32-stpcpy: New file.
110581         * lib/unistr/u8-stpcpy.c: New file.
110582         * lib/unistr/u16-stpcpy.c: New file.
110583         * lib/unistr/u32-stpcpy.c: New file.
110584         * lib/unistr/u-stpcpy.h: New file.
110586         * modules/unistr/u8-stpncpy: New file.
110587         * modules/unistr/u16-stpncpy: New file.
110588         * modules/unistr/u32-stpncpy: New file.
110589         * lib/unistr/u8-stpncpy.c: New file.
110590         * lib/unistr/u16-stpncpy.c: New file.
110591         * lib/unistr/u32-stpncpy.c: New file.
110592         * lib/unistr/u-stpncpy.h: New file.
110594         * modules/unistr/u8-strcat: New file.
110595         * modules/unistr/u16-strcat: New file.
110596         * modules/unistr/u32-strcat: New file.
110597         * lib/unistr/u8-strcat.c: New file.
110598         * lib/unistr/u16-strcat.c: New file.
110599         * lib/unistr/u32-strcat.c: New file.
110600         * lib/unistr/u-strcat.h: New file.
110602         * modules/unistr/u8-strchr: New file.
110603         * modules/unistr/u16-strchr: New file.
110604         * modules/unistr/u32-strchr: New file.
110605         * lib/unistr/u8-strchr.c: New file.
110606         * lib/unistr/u16-strchr.c: New file.
110607         * lib/unistr/u32-strchr.c: New file.
110609         * modules/unistr/u8-strcmp: New file.
110610         * modules/unistr/u16-strcmp: New file.
110611         * modules/unistr/u32-strcmp: New file.
110612         * lib/unistr/u8-strcmp.c: New file.
110613         * lib/unistr/u16-strcmp.c: New file.
110614         * lib/unistr/u32-strcmp.c: New file.
110616         * modules/unistr/u8-strcpy: New file.
110617         * modules/unistr/u16-strcpy: New file.
110618         * modules/unistr/u32-strcpy: New file.
110619         * lib/unistr/u8-strcpy.c: New file.
110620         * lib/unistr/u16-strcpy.c: New file.
110621         * lib/unistr/u32-strcpy.c: New file.
110622         * lib/unistr/u-strcpy.h: New file.
110624         * modules/unistr/u8-strcspn: New file.
110625         * modules/unistr/u16-strcspn: New file.
110626         * modules/unistr/u32-strcspn: New file.
110627         * lib/unistr/u8-strcspn.c: New file.
110628         * lib/unistr/u16-strcspn.c: New file.
110629         * lib/unistr/u32-strcspn.c: New file.
110630         * lib/unistr/u-strcspn.h: New file.
110632         * modules/unistr/u8-strdup: New file.
110633         * modules/unistr/u16-strdup: New file.
110634         * modules/unistr/u32-strdup: New file.
110635         * lib/unistr/u8-strdup.c: New file.
110636         * lib/unistr/u16-strdup.c: New file.
110637         * lib/unistr/u32-strdup.c: New file.
110638         * lib/unistr/u-strdup.h: New file.
110640         * modules/unistr/u8-strlen: New file.
110641         * modules/unistr/u16-strlen: New file.
110642         * modules/unistr/u32-strlen: New file.
110643         * lib/unistr/u8-strlen.c: New file.
110644         * lib/unistr/u16-strlen.c: New file.
110645         * lib/unistr/u32-strlen.c: New file.
110646         * lib/unistr/u-strlen.h: New file.
110648         * modules/unistr/u8-strmblen: New file.
110649         * modules/unistr/u16-strmblen: New file.
110650         * modules/unistr/u32-strmblen: New file.
110651         * lib/unistr/u8-strmblen.c: New file.
110652         * lib/unistr/u16-strmblen.c: New file.
110653         * lib/unistr/u32-strmblen.c: New file.
110655         * modules/unistr/u8-strmbtouc: New file.
110656         * modules/unistr/u16-strmbtouc: New file.
110657         * modules/unistr/u32-strmbtouc: New file.
110658         * lib/unistr/u8-strmbtouc.c: New file.
110659         * lib/unistr/u16-strmbtouc.c: New file.
110660         * lib/unistr/u32-strmbtouc.c: New file.
110662         * modules/unistr/u8-strncat: New file.
110663         * modules/unistr/u16-strncat: New file.
110664         * modules/unistr/u32-strncat: New file.
110665         * lib/unistr/u8-strncat.c: New file.
110666         * lib/unistr/u16-strncat.c: New file.
110667         * lib/unistr/u32-strncat.c: New file.
110668         * lib/unistr/u-strncat.h: New file.
110670         * modules/unistr/u8-strncmp: New file.
110671         * modules/unistr/u16-strncmp: New file.
110672         * modules/unistr/u32-strncmp: New file.
110673         * lib/unistr/u8-strncmp.c: New file.
110674         * lib/unistr/u16-strncmp.c: New file.
110675         * lib/unistr/u32-strncmp.c: New file.
110677         * modules/unistr/u8-strncpy: New file.
110678         * modules/unistr/u16-strncpy: New file.
110679         * modules/unistr/u32-strncpy: New file.
110680         * lib/unistr/u8-strncpy.c: New file.
110681         * lib/unistr/u16-strncpy.c: New file.
110682         * lib/unistr/u32-strncpy.c: New file.
110683         * lib/unistr/u-strncpy.h: New file.
110685         * modules/unistr/u8-strnlen: New file.
110686         * modules/unistr/u16-strnlen: New file.
110687         * modules/unistr/u32-strnlen: New file.
110688         * lib/unistr/u8-strnlen.c: New file.
110689         * lib/unistr/u16-strnlen.c: New file.
110690         * lib/unistr/u32-strnlen.c: New file.
110691         * lib/unistr/u-strnlen.h: New file.
110693         * modules/unistr/u8-strpbrk: New file.
110694         * modules/unistr/u16-strpbrk: New file.
110695         * modules/unistr/u32-strpbrk: New file.
110696         * lib/unistr/u8-strpbrk.c: New file.
110697         * lib/unistr/u16-strpbrk.c: New file.
110698         * lib/unistr/u32-strpbrk.c: New file.
110699         * lib/unistr/u-strpbrk.h: New file.
110701         * modules/unistr/u8-strrchr: New file.
110702         * modules/unistr/u16-strrchr: New file.
110703         * modules/unistr/u32-strrchr: New file.
110704         * lib/unistr/u8-strrchr.c: New file.
110705         * lib/unistr/u16-strrchr.c: New file.
110706         * lib/unistr/u32-strrchr.c: New file.
110708         * modules/unistr/u8-strspn: New file.
110709         * modules/unistr/u16-strspn: New file.
110710         * modules/unistr/u32-strspn: New file.
110711         * lib/unistr/u8-strspn.c: New file.
110712         * lib/unistr/u16-strspn.c: New file.
110713         * lib/unistr/u32-strspn.c: New file.
110714         * lib/unistr/u-strspn.h: New file.
110716         * modules/unistr/u8-strstr: New file.
110717         * modules/unistr/u16-strstr: New file.
110718         * modules/unistr/u32-strstr: New file.
110719         * lib/unistr/u8-strstr.c: New file.
110720         * lib/unistr/u16-strstr.c: New file.
110721         * lib/unistr/u32-strstr.c: New file.
110722         * lib/unistr/u-strstr.h: New file.
110724         * modules/unistr/u8-strtok: New file.
110725         * modules/unistr/u16-strtok: New file.
110726         * modules/unistr/u32-strtok: New file.
110727         * lib/unistr/u8-strtok.c: New file.
110728         * lib/unistr/u16-strtok.c: New file.
110729         * lib/unistr/u32-strtok.c: New file.
110730         * lib/unistr/u-strtok.h: New file.
110732         * modules/unistr/u8-uctomb: New file.
110733         * modules/unistr/u16-uctomb: New file.
110734         * modules/unistr/u32-uctomb: New file.
110735         * lib/unistr/u8-uctomb.c: New file.
110736         * lib/unistr/u16-uctomb.c: New file.
110737         * lib/unistr/u32-uctomb.c: New file.
110739         * MODULES.html.sh (Unicode string functions): Add the new modules.
110741 2007-01-08  Bruno Haible  <bruno@clisp.org>
110743         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110744         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110745         subdirectories.
110747 2007-01-08  Karl Berry  <karl@gnu.org>
110749         * doc/error.texi: mention that main() fns must set program_name
110750         when progname is used.
110752 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110754         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110755         WCTYPE_H is empty, for the benefit of builds from non-distclean
110756         directories.  Problem reported by Eric Blake in
110757         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110759 2007-01-08  Bruno Haible  <bruno@clisp.org>
110761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110762         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110763         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110764         PROVIDE_CANONICALIZE_FILENAME_MODE.
110765         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110767 2007-01-08  Bruno Haible  <bruno@clisp.org>
110769         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110770         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110771         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110772         * lib/fts.c: Likewise.
110773         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110775 2006-12-25  Bruno Haible  <bruno@clisp.org>
110777         * modules/utf8-ucs4-safe: New file.
110778         * lib/utf8-ucs4-safe.h: New file.
110779         * lib/unistr/utf8-ucs4-safe.c: New file.
110781         * modules/utf16-ucs4-safe: New file.
110782         * lib/utf16-ucs4-safe.h: New file.
110783         * lib/unistr/utf16-ucs4-safe.c: New file.
110785         * MODULES.html.sh (Unicode string functions): Add the new modules.
110787 2007-01-08  Bruno Haible  <bruno@clisp.org>
110789         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110790         (Depends-on): Add unitypes.
110791         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110792         (u8_mbtouc_aux): Move out to separate file.
110793         (u8_mbtouc): Use ucs4_t, uint8_t types.
110794         * lib/unistr/utf8-ucs4.c: New file.
110796         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110797         (Depends-on): Add unitypes.
110798         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110799         (u16_mbtouc_aux): Move out to separate file.
110800         (u16_mbtouc): Use ucs4_t, uint16_t types.
110801         * lib/unistr/utf16-ucs4.c: New file.
110803         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110804         (Depends-on): Add unitypes.
110805         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110806         (u8_uctomb_aux): Move out to separate file.
110807         (u8_uctomb): Use ucs4_t, uint8_t types.
110808         * lib/unistr/ucs4-utf8.c: New file.
110810         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110811         (Depends-on): Add unitypes.
110812         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110813         (u16_uctomb_aux): Move out to separate file.
110814         (u16_uctomb): Use ucs4_t, uint16_t types.
110815         * lib/unistr/ucs4-utf16.c: New file.
110817 2006-12-25  Bruno Haible  <bruno@clisp.org>
110819         * modules/unitypes: New file.
110820         * lib/unitypes.h: New file.
110821         * MODULES.html.sh (func_all_modules): New section "Unicode string
110822         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110823         this section. Add unitypes.
110825 2007-01-08  Bruno Haible  <bruno@clisp.org>
110827         Avoid variable names that conflict with those from libtool.
110828         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110829         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110830         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110831         library_names_spec to acl_library_names_spec, hardcode_* to
110832         acl_hardcode_*.
110833         Reported by Ralf Wildenhues.
110835 2007-01-08  Bruno Haible  <bruno@clisp.org>
110837         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110838         definition.
110839         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110840         definition.
110841         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110842         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110843         definition.
110844         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110845         definition.
110846         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110847         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110848         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110849         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110850         definition.
110851         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110852         definition.
110853         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110854         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110855         GC_USE_<algorithm>.
110856         * lib/gc-libgcrypt.c: Likewise.
110857         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110858         * modules/gc-arctwo (configure.ac): Likewise.
110859         * modules/gc-des (configure.ac): Likewise.
110860         * modules/gc-hmac-md5 (configure.ac): Likewise.
110861         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110862         * modules/gc-md2 (configure.ac): Likewise.
110863         * modules/gc-md4 (configure.ac): Likewise.
110864         * modules/gc-md5 (configure.ac): Likewise.
110865         * modules/gc-random (configure.ac): Likewise.
110866         * modules/gc-rijndael (configure.ac): Likewise.
110867         * modules/gc-sha1 (configure.ac): Likewise.
110869 2007-01-08  Bruno Haible  <bruno@clisp.org>
110871         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110872         macro definition.
110873         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110874         definition.
110875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110876         definition.
110877         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110878         * modules/fcntl-safer (configure.ac): Likewise.
110879         * modules/fopen-safer (configure.ac): Likewise.
110880         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110881         GNULIB_FWRITEERROR macro definition.
110883 2007-01-08  Bruno Haible  <bruno@clisp.org>
110885         * m4/gnulib-common.m4: New file.
110886         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110887         (func_get_filelist): Add m4/gnulib-common.m4.
110889 2007-01-08  Bruno Haible  <bruno@clisp.org>
110891         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110892         command.
110894 2007-01-08  Jim Meyering  <jim@meyering.net>
110896         Use a more robust test for a "can't happen" condition.
110897         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110898         narrowed the st_size value.  Presuming the "can't happen" condition
110899         is true, that narrowing could conceivably convert an invalid st_size
110900         value into a valid one.  Instead, use a change based on Matthew
110901         Woehlke's original patch.
110903         Slight readability improvement: use an assert-like macro
110904         in place of literal "abort ()" uses.
110905         * lib/fts.c (fts_assert): Define.
110906         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110907         Use this macro instead of a bare 'abort'.
110909 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110911         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110912         simply work around them.
110913         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110914         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110915         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110916         declaring.
110917         Don't bother to define as macros, since the standard doesn't require it.
110918         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110919         longer worry about IRIX 5.3.
110920         (HAVE_WCTYPE_CTMP_BUG): Remove.
110922 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110924         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110925         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110926         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110927         Problems reported by Georg Schwarz for IRIX 5.3.
110929         * gnulib-tool (autoconf_minversion): Take the maximum version number
110930         found, not the minimum.  Problem reported by James Youngman.
110932 2007-01-03  Karl Berry  <karl@gnu.org>
110934         * doc/error.texi: new file, explaining interaction with progname.
110935         * doc/gnulib.texi: include it.  Update copyright.
110937 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110939         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110940         AC_CANONICAL_HOST, to improve autobuild outputs.
110942 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110943             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110945         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110946         sockets, server sockets, and other file descriptors.  Count errors
110947         to compute the return value.  Reorder the code a bit to be easier
110948         to follow.  Don't set event bits that were not requested (except
110949         POLLERR and POLLHUP).
110951 2007-01-01  Bruno Haible  <bruno@clisp.org>
110953         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110955 2007-01-03  Jim Meyering  <jim@meyering.net>
110957         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110959 2007-01-02  Bruno Haible  <bruno@clisp.org>
110961         * modules/settime (Include): Require timespec.h.
110962         * modules/nanosleep (Include): Likewise.
110964 2007-01-01  Bruno Haible  <bruno@clisp.org>
110966         * gnulib-tool (func_emit_copyright_notice): Bump year.
110967         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110969 2007-01-01  Bruno Haible  <bruno@clisp.org>
110971         Improve support for OpenBSD.
110972         * build-aux/config.rpath (libname_spec): Export.
110973         (library_names_spec): New variable. Export.
110974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110975         library_names_spec from the config.rpath output. Locate shared library
110976         through the name pattern in library_names_spec.
110978 2007-01-01  Eric Blake  <ebb9@byu.net>
110980         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110982 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110984         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110985         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110986         assume the C locale, and avoid an "eval" that could cause trouble.
110987         Problem with SORT reported by Bob Proulx.
110989         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110990         Define.  Trivial patch from Henning Nielsen Lund, originally
110991         sent to bug-grep@gnu.org today.
110993 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110995         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110996         struct stat.  Problem reported by Henning Nielsen Lund.
110997         * lib/acl.c: Include acl.h first, to check interface.  Don't
110998         bother to include sys/types.h and sys/stat.h again.
111000 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
111002         Import the following change from libc; problem reported by
111003         Sven Verdoolaege.
111005         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
111007         [BZ #1373]
111008         * lib/argp.h: Remove __NTH for __argp_usage inline function.
111010 2006-12-28  Jim Meyering  <jim@meyering.net>
111012         * build-aux/announce-gen: Do not assume that the package
111013         builds any of tar.gz, tar.bz2, and .xdelta files.
111014         Suggestion from Simon Josefsson.
111016 2006-12-28  Simon Josefsson  <simon@josefsson.org>
111018         * modules/announce-gen: New file.
111020 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
111022         * lib/mbchar.h: Just include <wctype.h>; the wctype module
111023         handles its gotchas now.
111024         * lib/mbswidth.c: Likewise.
111025         * lib/wcwidth.h: Likewise.
111026         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
111027         and iswcntrl; the wctype module does this stuff now.
111028         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
111030         * modules/mbchar (Depends-on): Add wctype.
111031         * modules/mbswidth (Depends-on): Likewise.
111032         * modules/wcwidth (Depends-on): Likewise.
111034 2006-12-27  Eric Blake  <ebb9@byu.net>
111036         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
111037         module uses more than what <wctype.h> is required to provide.
111039 2006-12-26  Eric Blake  <ebb9@byu.net>
111041         * gnulib-tool (sed_extract_prog): Avoid space-tab.
111043 2006-12-26  Eric Blake  <ebb9@byu.net>
111045         * modules/absolute-header: New module.
111046         * modules/fcntl (Depends-on): Depend on it.
111047         * modules/inttypes (Depends-on): Likewise.
111048         * modules/stdint (Depends-on): Likewise.
111049         * modules/sys_stat (Depends-on): Likewise.
111050         * modules/wctype (Depends-on): Likewise.
111051         * MODULES.html.sh (Support for building libraries and
111052         executables): Document it.
111054 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
111056         * gnulib-tool (SED): Remove, undoing previous change.
111057         The problem was that it broke coreutils on Solaris, because
111058         "sed --posix" leaked into a makefile.
111059         (sed): New alias, if 'alias' and GNU sed.
111061 2006-12-24  Jim Meyering  <jim@meyering.net>
111063         Work around an fchownat bug in glibc-2.4:
111064         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
111065         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
111066         in spite of the -P option.
111067         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
111068         New macros.
111069         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
111070         * modules/openat (Files): Add lib/fchownat.c.
111071         * lib/openat.c (fchownat): Don't define here.  Move to...
111072         * lib/fchownat.c: ...this new file.
111074 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
111076         Fix bug reported by Bruno Haible in
111077         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
111078         where quotearg.c didn't compile on Mac OS X 10.2 because it
111079         lacks <wchar.h> and wint_t.
111080         * lib/wctype_.h (__wctype_wint_t): New type.
111081         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
111082         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
111083         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
111084         Arg is now of type __wctype_wint_t, not wint_t.
111085         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
111086         substitute HAVE_WINT_T.
111087         * modules/wctype (Files): Add m4/wint_t.m4.
111088         (wctype.h): Substitute HAVE_WINT_T.
111090 2006-12-23  Bruno Haible  <bruno@clisp.org>
111092         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
111094 2006-12-23  Bruno Haible  <bruno@clisp.org>
111096         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
111097         S_ISLNK.
111098         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
111099         mingw.
111101 2006-12-22  Bruno Haible  <bruno@clisp.org>
111103         * lib/copy-file.c: Include acl.h.
111104         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
111105         Close the file descriptors only after being done with copy_acl.
111106         * modules/copy-file (Depends-on): Add acl.
111108 2006-12-22  Bruno Haible  <bruno@clisp.org>
111110         * gnulib-tool (SED): New variable.
111111         Use $SED instead of sed everywhere.
111113 2006-12-22  Bruno Haible  <bruno@clisp.org>
111115         * modules/no-c++: New file.
111116         * m4/no-c++.m4: New file.
111117         * MODULES.html.sh (Support for building libraries and executables):
111118         Add no-c++.
111120 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
111122         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111123         Include <limits.h>, and use its INT_MAX to rewrite the
111124         j loop so that it does not overflow 'int'.  Problem reported by
111125         Ralf Wildenhues in
111126         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
111127         Play it safe by shifting left by 1 rather than multiplying by 2,
111128         as GCC is less likely to optimize this away when the value
111129         is signed (when it assumes overflow leads to undefined behavior).
111130         Also, don't assume time_t uses two's complement.
111132 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
111134         * MODULES.html.sh: New module wctype.
111135         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
111136         * lib/fnmatch.c: Don't bother to include <wchar.h> before
111137         <wctype.h>, since the new wctype module should fix this.
111138         * lib/quotearg.c: Include <wctype.h> unconditionally, since
111139         the wctype module should arrange for it.
111140         * lib/regex_internal.h: Likewise.
111141         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
111142         since the wctype module should handle this now.
111143         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
111144         * modules/fnmatch (Depends-on): Add wctype.
111145         * modules/quotearg (Depends-on): Likewise.
111146         * modules/regex (Depends-on): Likewise.
111148 2006-12-19  Bruno Haible  <bruno@clisp.org>
111150         * lib/strdup.h [C++]: Wrap definitions in extern "C".
111151         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
111153 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111155         * modules/savewd (Depends-on): Fix dependency on fcntl.
111157 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111159         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
111160         conforms to C99, rather than relying on the user's environment
111161         setting of STDINT_H.
111163 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111164         and Eric Blake  <ebb9@byu.net>
111166         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
111167         This is more consistent with the other defines here.
111168         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
111169         Port to z/OS.  Problem reported by Paul Gilmartin.
111170         Change local vars to use gl_ prefix rather than ac_.
111171         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
111172         with other defines.
111173         * modules/double-slash-root: New module.
111174         * modules/dirname (Files): Remove m4/double-slash-root.m4.
111175         (Depends-on): Add double-slash-root.
111176         * MODULES.html.sh (File system functions): Mention new module.
111178 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
111180         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
111181         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
111182         This is for the benefit of gzip, which doesn't do i18n.
111184 2006-12-12  Jim Meyering  <jim@meyering.net>
111186         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
111187         Reported by Andreas Schwab <schwab@suse.de>.
111189 2006-12-12  Bruno Haible  <bruno@clisp.org>
111191         Merge these changes.
111192         2006-09-05  Bruno Haible  <bruno@clisp.org>
111193         * lib/iconvme.c (iconv_string): No need to save and restore errno when
111194         iconv_alloc succeeded.
111195         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
111196         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
111197         test for " && dest " at the end - dest is always != NULL there. Call
111198         iconv with 4xNULL arguments initially, to reset the state. Call iconv
111199         with 2xNULL arguments, also to flush the state storage. Handle the
111200         IRIX iconv behaviour. Realloc the final result, to throw away unused
111201         memory.
111203 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
111205         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
111206         and fchmodat unconditionally, since glibc 2.4 has them.
111207         Problem reported by Arkadiusz Miskiewicz.
111209 2006-12-10  Bruno Haible  <bruno@clisp.org>
111211         * gnulib-tool (func_import): Show the include files only for those
111212         modules that are copied and specified.
111213         Reported by Karl Berry.
111215 2006-12-08  Jim Meyering  <jim@meyering.net>
111217         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
111218         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
111220         * build-aux/announce-gen: Add two new options, both optional:
111221         --bootstrap-tools=TOOL_LIST
111222               a comma-separated list of tools, e.g.,
111223               autoconf,automake,bison,gnulib
111224         --gnulib-snapshot-date=DATE
111225               if gnulib is in the bootstrap tool list,
111226               then report this as the snapshot date.
111227               If not specified, use the current date/time.
111228               If you specify a date here, be sure it's UTC.
111230 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111232         * tests/test-argp-2.sh: Fix test to match actual output.
111233         (func_compare): Fix sed script to be portable.
111235 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111237         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
111238         workaround for this case.  It is not autoconfigured now; offhand
111239         it's hard to see how to autoconfigure it.
111241 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
111243         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
111244         a directory that is about to be chowned.  Such a directory's
111245         initial file permissions should permit the owner only and this
111246         should not be changed until after the chown, since the group and
111247         other bits would be incorrect if they granted permission before
111248         the chown.
111250         Fix porting problem for iswctype reported by Georg Schwarz in:
111251         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
111252         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
111253         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
111254         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
111255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
111257 2006-12-03  Jim Meyering  <jim@meyering.net>
111259         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
111260         p->fts_statp may not yet be defined.
111261         (fts_read): Instead, set it in the caller, once p->fts_statp is
111262         sure to be defined, and corresponds to a top-level directory.
111263         This bug made du -x fail.  Here's the coreutils test case:
111264         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
111265         Reported by Mike Frysinger.
111267 2006-12-01  Jim Meyering  <jim@meyering.net>
111269         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
111270         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
111271         Reported by Simon Josefsson.
111273 2006-11-30  Jim Meyering  <jim@meyering.net>
111275         * m4/warning.m4: Use the all-permissive copyright notice
111276         recommended by RMS (rather than LGPL).
111277         * m4/vararrays.m4: Likewise.
111278         * m4/flexmember.m4: Likewise.
111280 2006-11-29  Bruno Haible  <bruno@clisp.org>
111282         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111283         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
111284         using +=.
111285         Reported by Simon Josefsson <simon@josefsson.org>.
111287 2006-11-28  James Youngman  <jay@gnu.org>
111289         * README: Advise users that they might find the bug-gnulib@gnu.org
111290         and autotools-announce@gnu.org mailing lists useful.
111292 2006-11-28  Bruno Haible  <bruno@clisp.org>
111294         * m4/ptrdiff_max.m4: Remove file.
111296 2006-11-21  Bruno Haible  <bruno@clisp.org>
111298         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
111299         _AC_COMPUTE_INT.
111300         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111301         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
111302         _AC_COMPUTE_INT.
111303         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111304         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
111305         _AC_COMPUTE_INT.
111306         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111308 2006-11-28  Jim Meyering  <jim@meyering.net>
111310         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
111311         warning from "gcc -Wshadow" about shadowing the builtin.
111313 2006-11-27  Bruno Haible  <bruno@clisp.org>
111315         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
111316         _AC_COMPUTE_INT.
111317         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111319 2006-11-27  Bruno Haible  <bruno@clisp.org>
111320             Paul Eggert  <eggert@cs.ucla.edu>
111322         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
111324 2006-11-26  Bruno Haible  <bruno@clisp.org>
111326         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111327         noinst_LTLIBRARIES.
111329 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111330             Bruno Haible  <bruno@clisp.org>
111332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111333         if compiling with "gcc -ansi".
111335 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111337         Fix some incompatibilities with gcc -ansi -pedantic.
111338         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111339         if compiling pedantically with GCC, unless it's C99 or later.
111340         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111341         it mishandles gcc -ansi -pedantic as well.
111342         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111343         if gcc -pedantic.
111344         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111345         initializers for struct if -pedantic, unless it's C99 or later.
111347 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111349         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111350         Don't close an fd more than once. Identical atimes indicate
111351         success, not failure.
111353 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111355         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111357 2006-11-23  Jim Meyering  <jim@meyering.net>
111359         * build-aux/announce-gen: New file.  From coreutils.
111361 2006-11-22  Jim Meyering  <jim@meyering.net>
111363         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111364         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111365         (fts_read): Use a temporary to narrow the overused st_size member
111366         before using it in a switch statement.  Reported by Matthew Woehlke.
111368         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111371 2006-11-20  Bruno Haible  <bruno@clisp.org>
111373         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111374         changequote instead of pairs of brackets.
111375         Reported by Andreas Schwab <schwab@suse.de>.
111377 2006-11-21  Jim Meyering  <jim@meyering.net>
111379         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111380         so as to remain compatible with older compilers.
111381         Patch from Michael Deutschmann.
111383 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111385         * MODULES.html.sh (File system functions): Add openat.
111387         * lib/openat.h (rpl_fstatat): New macro, if
111388         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111389         (fstatat): Define to rpl_fstatat under the same conditions,
111390         unless COMPILING_FSTATAT.
111391         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111392         seems to have the bug.
111393         * lib/fstatat.c: New file.
111394         * modules/openat (Files): Add it.
111396 2006-11-20  Bruno Haible  <bruno@clisp.org>
111398         * Makefile: New file.
111400 2006-11-20  Jim Meyering  <jim@meyering.net>
111402         The beginnings of syntax-related checks for gnulib.
111403         * lib/Makefile: New file.
111404         * lib/t-idcache: New script.  Ensure that the two halves of
111405         idcache.c stay in sync.
111407         * lib/idcache.c: Adjust comments in user- and group- portions to
111408         be more accurate, and to be consistent with one another.
111410 2006-11-20  Jim Meyering  <jim@meyering.net>
111412         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111413         continue using the flexible array member (thus, this module performs
111414         half as many malloc calls), with the addition that...
111415         (getgroup, getuser): Consistently record a non-match via an empty
111416         "name" string, and map an empty string match to a NULL return value.
111417         * modules/idcache (Depends-on): Re-add flexmember.
111419         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111420         (getuidbyname, getgroup, getgidbyname): Likewise.
111422         Use cleaner syntax: NULL rather than 0.
111423         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111425 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111427         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111428         It mishandled the case where the group was missing.
111429         Problem reported by Greg Schafer.
111430         * modules/idcache: Likewise.
111432 2006-11-18  Jim Meyering  <jim@meyering.net>
111434         * check-module (%exempt_header): Add exception for some
111435         conditionally-included headers.
111437         * modules/i-ring (Depends-on): Add verify.
111438         (License): Change to LGPL.
111440 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111442         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111443         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111444         and inttostr.h.  Use snprintf rather than uinttostr, so that
111445         LGPLed code doesn't depend on GPLed.
111447 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111449         * modules/inline (License): Change from GPL to LGPL.
111451 2006-11-17  Jim Meyering  <jim@meyering.net>
111453         * modules/d-type (License): Switch to LGPL.
111455 2006-11-15  Bruno Haible  <bruno@clisp.org>
111457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111459 2006-11-15  Eric Blake  <ebb9@byu.net>
111461         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111462         the module dependency.
111464 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111465             Bruno Haible  <bruno@clisp.org>
111467         * gnulib-tool (func_create_testdir): Add license consistency check.
111469 2006-11-15  Eric Blake  <ebb9@byu.net>
111471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111472         random "(cached)" in configure output.
111474 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111476         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111477         test for conforming inttypes.h is both announced and cached.
111479         * MODULES.html.sh (seen_modules, seen_files): New variables.
111480         (func_module): Rewrite to use a few less gnulib-tool and sed
111481         invocations.  Avoid a couple of quadratic algorithms for ...
111482         (missed_modules, missed_files): ... these, with ...
111483         (func_append, func_tmpdir): ... these new functions, from
111484         gnulib-tool.  Analogously, install traps for cleanup.
111486         * tests/test-gc.c (main): Remove unused variables.
111487         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111489 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111491         * modules/inttostr (License): Change to LGPL.
111493 2006-11-14  Eric Blake  <ebb9@byu.net>
111495         * modules/tempname (License): Change to LGPL.
111497 2006-11-14  Eric Blake  <ebb9@byu.net>
111499         * doc/functions.texi (Function Portability): *printf functions on
111500         Cygwin now understand all POSIX size specifiers.
111502 2006-11-14  Bruno Haible  <bruno@clisp.org>
111504         * modules/c-ctype (License): Change to LGPL.
111506 2006-11-12  Bruno Haible  <bruno@clisp.org>
111508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111509         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111510         for GNOME libraries, for which the include files are installed in
111511         subdirectories of $prefix/include.
111513 2006-11-12  Bruno Haible  <bruno@clisp.org>
111515         * m4/lib-link.m4: Require at least autoconf-2.54.
111516         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111517         name to underscores for the --with option.
111519 2006-11-13  Bruno Haible  <bruno@clisp.org>
111521         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111522         the tests directory.
111523         Reported by Ralf Wildenhues.
111525 2006-11-13  Bruno Haible  <bruno@clisp.org>
111527         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111528         (func_emit_initmacro_end): Undo the override here.
111529         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111530         Works around the famous automake error in coreutils.
111532 2006-11-13  Eric Blake  <ebb9@byu.net>
111534         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111535         element, not its node.
111537 2006-11-12  Bruno Haible  <bruno@clisp.org>
111539         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111540         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111542 2006-11-12  Bruno Haible  <bruno@clisp.org>
111544         * gnulib-tool: New option --local-symlink.
111545         (func_usage): Document it.
111546         (lsymbolic): New variable.
111547         (func_import, func_create_testdir): If --symlink was not specified,
111548         test whether --local-symlink was specified and the file comes from
111549         the local_gnulib_dir.
111551 2006-11-12  Bruno Haible  <bruno@clisp.org>
111553         * gnulib-tool (func_ln): New function.
111554         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111556 2006-11-12  Bruno Haible  <bruno@clisp.org>
111558         Finish support for source files in subdirectories.
111559         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111560         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111561         AUTOMAKE_OPTIONS.
111562         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111564 2006-11-12  Bruno Haible  <bruno@clisp.org>
111566         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111567         EXTRA_lib_SOURCES augmentation.
111568         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111570 2006-11-12  Jim Meyering  <jim@meyering.net>
111572         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111573         file descriptors.  This also averts a failure on systems with
111574         native openat support when a traversed directory lacks "x" access.
111575         * lib/fts_.h: Include "i-ring.h"
111576         (struct FTS) [fts_fd_ring]: New member.
111577         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111578         (FCHDIR): Add parentheses.
111579         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111580         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111581         When descending, rather than simply closing the previous
111582         fts_cwd_fd value, push that file descriptor onto the ring.
111583         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111584         (fts_open): Initialize the new fd_ring member.
111585         (fts_close): Clear the ring.
111586         (fts_safe_changedir): When possible, use our new fd_ring to skip
111587         the diropen and fstat and dev/ino comparison that would normally
111588         accompany a virtual `chdir ("..")'.
111590         * modules/fts (Depends-on): Add i-ring.
111591         * modules/i-ring: New module.
111592         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111593         * m4/i-ring.m4: New file.
111595 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111597         * gnulib-tool (func_create_testdir): Fix replacement of
111598         `build-aux' in configure.ac.  Run autotools in gltests
111599         subdirectory.
111600         (func_create_testdir, func_create_megatestdir, test): There is
111601         no need for '--force' in most autotool invocations in a new
111602         tree.  Actually fail the whole test if any of the tools, or the
111603         configure or make stages fail.
111605         Sync from Automake.
111606         * build-aux/gnupload: Revert last change.  Add pointer to upload
111607         instructions of the GNU Maintenance Instructions.
111608         Suggestion by Karl Berry.
111610 2006-11-10  Jim Meyering  <jim@meyering.net>
111612         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111614 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111616         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111617         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111618         (bind_textdomain_codeset) [! ENABLE_NLS]:
111619         Evaluate all the arguments.  That way, callers get compatible behavior
111620         if the arguments have side effects.  Also, it avoids some GCC
111621         diagnostics in some cases; Joel E. Denny reported problems when Bison
111622         was configured with --enable-gcc-warnigs.
111624 2006-11-10  Jim Meyering  <jim@meyering.net>
111626         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111627         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111628         account.
111630 2006-11-10  Jim Meyering  <jim@meyering.net>
111632         * modules/inline: New file/module.
111633         * modules/xalloc (Files): Remove m4/inline.m4.
111634         (Depends-on): Add inline, instead.
111635         * modules/oset: Likewise.
111636         * modules/list: Likewise.
111638 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111640         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111641         Problem reported by Matthew Woehlke.
111643 2006-11-09  Bruno Haible  <bruno@clisp.org>
111645         * lib/tempname.c (gen_tempname): Remove variant that invokes
111646         __gen_tempname.
111647         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111648         __gen_tempname.
111650 2006-11-08  Bruno Haible  <bruno@clisp.org>
111652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111653         to 'yes' instead of 'cross-compiling'.
111655 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111657         * lib/quotearg.h (quotearg_free): New decl.
111658         * lib/quotearg.c (quotearg_free): New function.
111659         (slot0, nslots, slotvec0, slotvec):
111660         Now file-scope so that quotearg_free can get at them.
111662 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111664         Sync from Automake.
111665         * build-aux/gnupload: Add missing 'gnu' to example URL.
111666         Report by Karl Berry.
111668 2006-11-08  Bruno Haible  <bruno@clisp.org>
111670         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111671         Suggested by Paul Eggert.
111673 2006-11-08  Jim Meyering  <jim@meyering.net>
111675         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111676         It's already included if !_LIBC.
111677         (fts_safe_changedir): Add a comment.
111679 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111682         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111683         Matthew Woehlke.
111685         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111686         definitions up, to avoid colliding with change below.
111687         (static_inline) [HAVE_INLINE]: New macro.
111688         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111689         Provide extern decls when !HAVE_INLINE.  Do not define unless
111690         static_inline is defined, either by us or by xmalloc.c.  Use
111691         static_inline rather than static inline.
111692         (XCALLOC): Optimize sizeof(T) = 1 case.
111693         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111695 2006-11-07  Bruno Haible  <bruno@clisp.org>
111697         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111698         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111699         AC_C_INLINE.
111700         * modules/xalloc (Files): Add m4/inline.m4.
111702 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111704         * README: Fix typo.
111705         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111706         (Miscellanous Notes): ...from this.
111708 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111710         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111711         Mention that offsetof should be used instead of sizeof.
111712         From Bruno Haible.
111714 2006-11-07  Bruno Haible  <bruno@clisp.org>
111716         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111718 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111720         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111721         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111722         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111723         (gl_tree_add_before, gl_tree_add_after):
111724         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111725         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111726         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111727         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111728         (gl_linked_add_after, gl_linked_add_at): Likewise.
111729         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111730         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111731         (gl_tree_add_before, gl_tree_add_after): Likewise.
111732         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111733         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111734         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111736 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111738         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111740 2006-11-06  Bruno Haible  <bruno@clisp.org>
111742         * m4/inline.m4: New file.
111743         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111744         * modules/list (Files): Add m4/inline.m4.
111745         * modules/oset (Files): Likewise.
111747 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111749         * lib/idcache.c: Include <stddef.h>, for offsetof.
111750         (struct userid.name): Change from char * to a flexible array member.
111751         All uses changed.
111752         * modules/idcache (Depends-on): Add flexmember.
111754         * MODULES.html.sh (Core language properties): New module flexmember.
111755         * modules/flexmember, m4/flexmember.m4: New files.
111757         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111758         inline functions that are identical with the old xnmalloc_inline,
111759         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111760         that we can avoid some unnecessary integer multiplications and
111761         divisions in the common case where the element size is known at
111762         compile time.
111763         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111764         needed.
111765         (xnboundedmalloc): Remove.
111766         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111767         arguments, for consistency with rest of this header.
111768         (xcharalloc): Rewrite using XNMALLOC.
111769         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111770         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111771         versions have been moved to lib/xalloc.h and renamed to be the
111772         non-*_inline versions.
111773         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111774         and xnrealloc functions, since those functions are now inline and
111775         now call us.
111776         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111777         renaming described above.
111778         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111779         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111780         captures the dependency in AC_C_INLINE.
111782         New module canonicalize-lgpl, proposed by Charles Wilson in
111783         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111784         with a few small changes afterwards.
111785         * MODULES.html.sh (File system functions): New module
111786         canonicalize-lgpl.
111787         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111788         and canonicalize_file_name.
111789         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111790         * modules/canonicalize-lgpl: New files.
111792 2006-11-05  Bruno Haible  <bruno@clisp.org>
111794         * gnulib-tool (func_import, func_create_testdir): Create directories
111795         also for files in subdirectories of lib/.
111797 2006-11-05  Bruno Haible  <bruno@clisp.org>
111799         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111800         ANSI C compliant.
111802 2006-11-03  Bruno Haible  <bruno@clisp.org>
111804         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111806         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111807         (xnboundedmalloc): New inline function.
111808         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111809         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111810         xmalloc.
111811         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111812         xmalloc.
111813         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111814         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111815         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111816         xmalloc.
111817         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111818         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111819         xmalloc.
111820         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111821         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111822         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111823         xmalloc.
111824         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111825         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111826         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111827         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111828         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111829         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111830         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111832 2006-11-03  Bruno Haible  <bruno@clisp.org>
111834         * lib/c-ctype.h [C++]: Define functions without name mangling.
111835         * lib/fwriteerror.h [C++]: Likewise.
111836         * lib/gcd.h [C++]: Likewise.
111837         * lib/linebreak.h [C++]: Likewise.
111839 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111841         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111842         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111843         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111844         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111845         Check for functions and headers just once.
111846         Check for declaration of canonicalize_file_name.
111847         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111849 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111851         * gnulib-tool (func_import): Fix typo in actioncmd.
111853 2006-11-02  Bruno Haible  <bruno@clisp.org>
111855         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111856         newline sequence in the Makefile.am snippet as a space, like "make"
111857         does.
111858         Reported by Roger Persson <perrog@gmail.com>.
111860 2006-11-01  Bruno Haible  <bruno@clisp.org>
111862         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111863         already declared in <string.h>.
111864         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111866 2006-11-01  Bruno Haible  <bruno@clisp.org>
111868         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111869         * lib/strcase.h: Include <string.h>.
111870         (strcasecmp): Define to rpl_strcasecmp here.
111872 2006-11-01  Bruno Haible  <bruno@clisp.org>
111874         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111876 2006-11-01  Eric Blake  <ebb9@byu.net>
111878         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111882 2006-10-29  Bruno Haible  <bruno@clisp.org>
111884         Make it compile in C++ mode.
111885         * lib/full-write.c (full_rw): Add a cast.
111887 2006-11-01  Bruno Haible  <bruno@clisp.org>
111889         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111890         be POSIX compliant.
111891         Reported by Roger Persson <perrog@gmail.com>.
111893 2006-11-01  Eric Blake  <ebb9@byu.net>
111895         * lib/getopt_.h: Fix comments.
111897 2006-10-31  Eric Blake  <ebb9@byu.net>
111899         * modules/tmpdir (Depends-on): Add sys_stat.
111900         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111901         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111902         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111903         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111904         tempname.
111906 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111908         Avoid some C++ diagnostics reported by Bruno Haible.
111909         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111910         xmalloc.
111911         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111912         (struct slotvec): Move to top level.
111913         (quotearg_n_options): Rewrite to avoid xmalloc.
111914         * lib/xalloc.h (xcharalloc): New function.
111915         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111916         [defined __cplusplus]: Add function template that provides result
111917         type propagation.  This part of the change is from Bruno Haible.
111919 2006-10-29  Bruno Haible  <bruno@clisp.org>
111921         Make it compile in C++ mode.
111922         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111923         * lib/strnlen1.c (strnlen1): Cast memchr result.
111924         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111925         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111926         (create_temp_dir): Rename local variable 'template'.
111927         (compile_csharp_using_sscli): Add cast.
111928         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111929         * lib/findprog.c (find_in_path): Likewise.
111930         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111931         * lib/wait-process.c (register_slave_subprocess): Likewise.
111933 2006-10-22  Bruno Haible  <bruno@clisp.org>
111935         * modules/tsearch: New file.
111936         * lib/tsearch.h: New file.
111937         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111938         * m4/tsearch.m4: New file.
111939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111941 2006-10-29  Eric Blake  <ebb9@byu.net>
111943         * lib/arcfour.c: Assume config.h.
111944         * lib/arctwo.c: Likewise.
111945         * lib/base64.c: Likewise.
111946         * lib/check-version.c: Likewise.
111947         * lib/crc.c: Likewise.
111948         * lib/des.c: Likewise.
111949         * lib/gc-gnulib.c: Likewise.
111950         * lib/gc-libgcrypt.c: Likewise.
111951         * lib/gc-pbkdf2-sha1.c: Likewise.
111952         * lib/getaddrinfo.c: Likewise.
111953         * lib/getdelim.c: Likewise.
111954         * lib/getline.c: Likewise.
111955         * lib/hmac-md5.c: Likewise.
111956         * lib/hmac-sha1.c: Likewise.
111957         * lib/iconvme.c: Likewise.
111958         * lib/md2.c: Likewise.
111959         * lib/md4.c: Likewise.
111960         * lib/memxor.c: Likewise.
111961         * lib/read-file.c: Likewise.
111962         * lib/readline.c: Likewise.
111963         * lib/rijndael-alg-fst.c: Likewise.
111964         * lib/rijndael-api-fst.c: Likewise.
111965         * lib/xgetdomainname.c: Likewise.
111967 2006-10-28  Eric Blake  <ebb9@byu.net>
111969         * lib/xstrndup.c: Assume config.h.
111971 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111973         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111974         stat-macros.h is now for our own macros, whereas stat_h is for
111975         macros in the <sys/stat.h> name space.
111976         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111977         (STAT_MACROS_H): Remove.
111978         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111979         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111980         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111981         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111982         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111983         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111984         Move these macros to ...
111985         * lib/stat_.h: here.  Don't include stat-macros.h.
111986         * lib/canonicalize.c: Don't include stat-macros.h.
111987         * lib/chown.c: Likewise.
111988         * lib/euidaccess.c: Likewise.
111989         * lib/file-type.c: Likewise.
111990         * lib/filemode.c: Likewise.
111991         * lib/glob.c: Likewise.
111992         * lib/isapipe.c: Likewise.
111993         * lib/lchown.c: Likewise.
111994         * lib/lstat.c: Likewise.
111995         * lib/mkdir-p.c: Likewise.
111996         * lib/rmdir.c: Likewise.
111997         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111998         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111999         unless mkdir isn't declared, to speed up 'configure'.
112000         Always create sys/stat.h, since it's unlikely any real sys/stat.h
112001         would define all the S_* symbols.
112002         * modules/canonicalize (Depends-on):
112003         Depend on sys_stat, not stat-macros.
112004         * modules/chown: Likewise.
112005         * modules/euidaccess: Likewise.
112006         * modules/filemode: Likewise.
112007         * modules/file-type: Likewise.
112008         * modules/glob: Likewise.
112009         * modules/isapipe: Likewise.
112010         * modules/lchown: Likewise.
112011         * modules/lstat: Likewise.
112012         * modules/mkancesdirs: Likewise.
112013         * modules/rmdir: Likewise.
112014         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
112015         * modules/modechange: Likewise.
112016         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
112017         (configure.ac): Remove gl_STAT_MACROS.
112018         * modules/sys_stat (Depends-on): Remove stat-macros.
112020 2006-10-27  Bruno Haible  <bruno@clisp.org>
112022         * m4/signed.m4: Remove file.
112023         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
112024         invocation.
112025         * modules/vasnprintf (Files): Remove m4/signed.m4.
112027 2006-10-27  Bruno Haible  <bruno@clisp.org>
112029         Update to GNU gettext 0.16.
112030         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
112031         m4/inttypes-h.m4, m4/signed.m4.
112032         * m4/gettext.m4: Update to GNU gettext 0.16.
112033         * m4/intl.m4: New file, from GNU gettext.
112034         * m4/intldir.m4: New file, from GNU gettext.
112035         * config/srclist.txt: Update
112037 2006-10-27  Eric Blake  <ebb9@byu.net>
112039         * MODULES.html.sh: Document tempname.
112040         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
112041         dependencies.
112042         (Files): Move lib/tempname.c...
112043         * modules/tempname: ...to this new module.
112044         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
112045         (gl_PREREQ_TEMPNAME): Move...
112046         * m4/tempname.m4: ...to this new file.
112047         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
112048         * modules/sys_stat (Depends-on): Add stat-macros.
112049         * lib/stat_.h (includes): Pick up stat macros.
112050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
112051         if stat macros are broken.
112052         * lib/tempname.c (includes): No need to include "stat-macros.h".
112053         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
112054         (direxists, __path_search) [!_LIBC]: Don't compile these in
112055         gnulib; the tmpdir module covers that.
112056         * lib/tempname.h: New file.
112058 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
112060         * COPYING: Explain how gnulib-tool converts licence headers.
112061         Almost all wording by Eric Blake.
112063 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
112065         * lib/mbchar.h (is_basic_table): Make read-only.
112066         * lib/mbchar.c (is_basic_table): Likewise.
112067         Reported by John Darrington.
112069 2006-10-25  Bruno Haible  <bruno@clisp.org>
112071         * lib/progname.h (set_program_name): Undefine before defining.
112073 2006-10-25  Bruno Haible  <bruno@clisp.org>
112075         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
112076         false for non-gcc C++ compilers.
112077         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
112079 2006-10-24  Bruno Haible  <bruno@clisp.org>
112081         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
112082         iconv implementations like Irix iconv.
112084 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112086         * modules/vararrays: New file.
112087         * m4/vararrays.m4: New file, taken from diffutils.
112088         * MODULES.html.sh: New module vararrays.
112090 2006-10-24  Karl Berry  <karl@gnu.org>
112092         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
112093         Don't call GNU Unix.
112095 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112097         * users.txt: Add Libtool.
112099         Sync from Libtool:
112101         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112103         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
112104         to gnulib's policy of including config.h unconditionally.
112106 2006-10-24  Bruno Haible  <bruno@clisp.org>
112108         * modules/wcwidth (Files): Add m4/wint_t.m4.
112109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
112110         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
112112 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112114         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
112115         to pacify GCC with some -W flags enabled.  Problem reported by
112116         Bruno Haible.
112118 2006-10-24  Jim Meyering  <jim@meyering.net>
112120         * MODULES.html.sh: Remove uinttostr.  It's not a module.
112121         Reported by Karl Berry.
112123 2006-10-23  Bruno Haible  <bruno@clisp.org>
112125         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
112127 2006-10-24  Bruno Haible  <bruno@clisp.org>
112129         * lib/gl_list.h: Use C comment style, not C++ comment style.
112131 2006-10-23  Eric Blake  <ebb9@byu.net>
112133         * lib/getaddrinfo.c (includes): Add missing include.
112135 2006-10-23  Bruno Haible  <bruno@clisp.org>
112136             Paul Eggert  <eggert@cs.ucla.edu>
112138         Ability to rename obstack_free.
112139         * lib/obstack.h (__obstack_free): New macro. Declare instead of
112140         obstack_free.
112141         (obstack_free): Invoke the __obstack_free macro.
112142         * lib/obstack.c (obstack_free): Use __obstack_free macro.
112144 2006-10-23  Bruno Haible  <bruno@clisp.org>
112145             Paul Eggert  <eggert@cs.ucla.edu>
112147         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
112148         __argc, __argv from the declaration. (They are defined as macros on
112149         mingw.)
112151 2006-10-22  Bruno Haible  <bruno@clisp.org>
112153         * doc/gnulib-intro.texi: New file.
112154         * doc/gnulib.texi: Include it.
112156 2006-10-21  Bruno Haible  <bruno@clisp.org>
112158         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
112159         "Introduction", "Miscellanous Notes", "Particular Modules".
112161 2006-10-21  Bruno Haible  <bruno@clisp.org>
112163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112164         Change mostlyclean-local rule to avoid sh syntax error from bash
112165         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
112167 2006-10-23  Jim Meyering  <jim@meyering.net>
112169         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
112170         in place of snprintf.
112172         * modules/inttostr (Files): Add lib/uinttostr.c.
112173         * lib/uinttostr.c (inttostr): New file/function.
112174         * lib/inttostr.h (uinttostr): Declare.
112175         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
112176         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
112177         Add uinttostr.
112178         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
112180 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112182         * lib/canonicalize.c (ELOOP): Define if not already defined.
112183         Problem reported by Bruno Haible in
112184         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
112186 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112188         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
112189         Problem reported by Perry Smith and Ville Laurikari.
112191         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
112192         uses.
112194 2006-10-19  Bruno Haible  <bruno@clisp.org>
112196         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
112197         for mingw.
112199 2006-10-19  Bruno Haible  <bruno@clisp.org>
112201         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
112202         Needed for mingw.
112204 2006-10-19  Bruno Haible  <bruno@clisp.org>
112206         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
112208 2006-10-19  Bruno Haible  <bruno@clisp.org>
112210         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
112211         it.
112213 2006-10-19  Bruno Haible  <bruno@clisp.org>
112215         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
112216         invocation.
112218 2006-10-19  Bruno Haible  <bruno@clisp.org>
112220         * gnulib-tool (func_create_testdir): Don't include ftruncate and
112221         mountlist by default.
112223 2006-10-16  Bruno Haible  <bruno@clisp.org>
112225         * lib/c-strstr.c: Include c-strstr.h.
112227 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112229         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
112230         in a slash.
112232 2006-10-18  Bruno Haible  <bruno@clisp.org>
112234         * lib/lock.h [C++]: Wrap definitions in extern "C".
112236 2006-10-18  Bruno Haible  <bruno@clisp.org>
112238         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
112239         gl_LIBOBJS list.
112241 2006-10-18  Bruno Haible  <bruno@clisp.org>
112243         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
112245 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
112247         * lib/xstrtol.h: Include gettext.h.
112248         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
112249         Problem reported by Eric Blake.
112250         * modules/xstrtol (Depends-on): Add gettext-h.
112252 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
112254         * lib/strftime.c (advance): New macro.
112255         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
112256         incomplete type, so you can't add 0 to it.  Problem and patch
112257         reported by Eelco Dolstra for dietlibc.
112259 2006-10-18  Jim Meyering  <jim@meyering.net>
112261         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
112262         type for a local, and rename it: s/up/user_proc/.
112264 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
112266         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
112267         READ_UTMP_USER_PROCESS.
112268         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
112270 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
112272         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
112273         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
112275 2006-10-17  Eric Blake  <ebb9@byu.net>
112277         * lib/sigprocmask.c (sigprocmask): Fix typo.
112279         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
112281         * modules/clean-temp (Makefile.am): Don't add to make output...
112282         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
112283         config.h.
112285 2006-10-17  Bruno Haible  <bruno@clisp.org>
112287         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
112288         differently if DEFAULT_TEXT_DOMAIN is set.
112290 2006-10-16  Bruno Haible  <bruno@clisp.org>
112292         * lib/clean-temp.c: Include fwriteerror.h.
112294 2006-10-16  Bruno Haible  <bruno@clisp.org>
112296         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
112298 2006-10-16  Bruno Haible  <bruno@clisp.org>
112300         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
112301         * lib/sigprocmask.h: Include <sys/types.h>.
112302         (sigset_t): Use the system's definition if present.
112304 2006-10-17  Eric Blake  <ebb9@byu.net>
112306         * lib/xvasprintf.c (includes): Assume config.h.
112307         * lib/xasprintf.c (includes): Likewise.
112309 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
112311         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
112312         at least as wide as intmax_t.
112314 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
112316         (Imported from Automake.)
112317         * build-aux/gnupload: Update to version 1.1 of directive file.
112319 2006-10-16  Eric Blake  <ebb9@byu.net>
112321         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
112322         match Automake 1.10a.
112324 2006-10-14  Bruno Haible  <bruno@clisp.org>
112326         * modules/sigprocmask: New file.
112327         * lib/sigprocmask.h: New file.
112328         * lib/sigprocmask.c: New file.
112329         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112330         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112331         request sigprocmask.o.
112332         (gl_PREREQ_SIGPROCMASK): New macro.
112333         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112334         (Depends-on): Add sigprocmask.
112335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112336         gt_SIGNALBLOCKING. Test for 'raise' only once.
112337         * lib/fatal-signal.c: Include sigprocmask.h.
112338         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112339         unblock_fatal_signals): Define always.
112340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112341         sigprocmask.
112343 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112345         Sync from Automake.
112346         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112347         which incorrectly sets the mode of an existing destination
112348         directory.  In some cases the unpatched install-sh could do the
112349         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112350         system.  We hope this is rare in practice, but it's clearly worth
112351         fixing.  Problem reported by Alex Unleashed in
112352         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112353         Also, don't bother to check for -m bugs unless we're using -m;
112354         suggested by Stepan Kasal.
112356 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112358         Sync from Automake.
112359         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112360         `-c' flag, so they appear at the same position as in %FASTDEP%
112361         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112362         which ignores unknown options only after the first non-option.
112363         Bug report against M4 by Nelson H. F. Beebe.
112365 2006-10-13  Jim Meyering  <jim@meyering.net>
112367         Fix a bug in yesterday's change.
112368         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112369         p->fts_statp->st_dev would be used uninitialized.
112370         Ensures that we always call fts_stat on the very first entry.
112371         Miklos Szeredi reported that find -xdev stopped working.
112373 2006-10-12  Bruno Haible  <bruno@clisp.org>
112375         * gnulib-tool (func_get_automake_snippet): Append an automatically
112376         computed EXTRA_DIST augmentation.
112377         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112378         * modules/alloca-opt (Makefile.am): Likewise.
112379         * modules/allocsa (Makefile.am): Likewise.
112380         * modules/arcfour (Makefile.am): Likewise.
112381         * modules/arctwo (Makefile.am): Likewise.
112382         * modules/argmatch (Makefile.am): Likewise.
112383         * modules/argz (Makefile.am): Likewise.
112384         * modules/atexit (Makefile.am): Likewise.
112385         * modules/backupfile (Makefile.am): Likewise.
112386         * modules/byteswap (Makefile.am): Likewise.
112387         * modules/c-strtod (Makefile.am): Likewise.
112388         * modules/c-strtold (Makefile.am): Likewise.
112389         * modules/calloc (Makefile.am): Likewise.
112390         * modules/canon-host (Makefile.am): Likewise.
112391         * modules/canonicalize (Makefile.am): Likewise.
112392         * modules/chdir-long (Makefile.am): Likewise.
112393         * modules/chdir-safer (Makefile.am): Likewise.
112394         * modules/check-version (Makefile.am): Likewise.
112395         * modules/chown (Makefile.am): Likewise.
112396         * modules/cloexec (Makefile.am): Likewise.
112397         * modules/close-stream (Makefile.am): Likewise.
112398         * modules/closeout (Makefile.am): Likewise.
112399         * modules/crc (Makefile.am): Likewise.
112400         * modules/csharpexec (Makefile.am): Likewise.
112401         * modules/cycle-check (Makefile.am): Likewise.
112402         * modules/des (Makefile.am): Likewise.
112403         * modules/dev-ino (Makefile.am): Likewise.
112404         * modules/dirfd (Makefile.am): Likewise.
112405         * modules/dirname (Makefile.am): Likewise.
112406         * modules/dup2 (Makefile.am): Likewise.
112407         * modules/eealloc (Makefile.am): Likewise.
112408         * modules/error (Makefile.am): Likewise.
112409         * modules/euidaccess (Makefile.am): Likewise.
112410         * modules/exclude (Makefile.am): Likewise.
112411         * modules/exitfail (Makefile.am): Likewise.
112412         * modules/fcntl-safer (Makefile.am): Likewise.
112413         * modules/fcntl (Makefile.am): Likewise.
112414         * modules/file-type (Makefile.am): Likewise.
112415         * modules/fileblocks (Makefile.am): Likewise.
112416         * modules/filemode (Makefile.am): Likewise.
112417         * modules/filenamecat (Makefile.am): Likewise.
112418         * modules/fnmatch (Makefile.am): Likewise.
112419         * modules/fopen-safer (Makefile.am): Likewise.
112420         * modules/fpending (Makefile.am): Likewise.
112421         * modules/fprintftime (Makefile.am): Likewise.
112422         * modules/free (Makefile.am): Likewise.
112423         * modules/fsusage (Makefile.am): Likewise.
112424         * modules/ftruncate (Makefile.am): Likewise.
112425         * modules/fts (Makefile.am): Likewise.
112426         * modules/gc-arcfour (Makefile.am): Likewise.
112427         * modules/gc-des (Makefile.am): Likewise.
112428         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112429         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112430         * modules/gc-md4 (Makefile.am): Likewise.
112431         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112432         * modules/gc-sha1 (Makefile.am): Likewise.
112433         * modules/gc (Makefile.am): Likewise.
112434         * modules/getaddrinfo (Makefile.am): Likewise.
112435         * modules/getcwd (Makefile.am): Likewise.
112436         * modules/getdelim (Makefile.am): Likewise.
112437         * modules/getdomainname (Makefile.am): Likewise.
112438         * modules/getgroups (Makefile.am): Likewise.
112439         * modules/gethostname (Makefile.am): Likewise.
112440         * modules/gethrxtime (Makefile.am): Likewise.
112441         * modules/getline (Makefile.am): Likewise.
112442         * modules/getloadavg (Makefile.am): Likewise.
112443         * modules/getlogin_r (Makefile.am): Likewise.
112444         * modules/getndelim2 (Makefile.am): Likewise.
112445         * modules/getopt (Makefile.am): Likewise.
112446         * modules/getpagesize (Makefile.am): Likewise.
112447         * modules/getpass-gnu (Makefile.am): Likewise.
112448         * modules/getpass (Makefile.am): Likewise.
112449         * modules/getsubopt (Makefile.am): Likewise.
112450         * modules/gettime (Makefile.am): Likewise.
112451         * modules/gettimeofday (Makefile.am): Likewise.
112452         * modules/getugroups (Makefile.am): Likewise.
112453         * modules/getusershell (Makefile.am): Likewise.
112454         * modules/glob (Makefile.am): Likewise.
112455         * modules/group-member (Makefile.am): Likewise.
112456         * modules/hard-locale (Makefile.am): Likewise.
112457         * modules/hash (Makefile.am): Likewise.
112458         * modules/hmac-md5 (Makefile.am): Likewise.
112459         * modules/hmac-sha1 (Makefile.am): Likewise.
112460         * modules/human (Makefile.am): Likewise.
112461         * modules/idcache (Makefile.am): Likewise.
112462         * modules/imaxabs (Makefile.am): Likewise.
112463         * modules/imaxdiv (Makefile.am): Likewise.
112464         * modules/inet_ntop (Makefile.am): Likewise.
112465         * modules/inet_pton (Makefile.am): Likewise.
112466         * modules/intprops (Makefile.am): Likewise.
112467         * modules/inttostr (Makefile.am): Likewise.
112468         * modules/inttypes (Makefile.am): Likewise.
112469         * modules/isapipe (Makefile.am): Likewise.
112470         * modules/javaversion (Makefile.am): Likewise.
112471         * modules/lchmod (Makefile.am): Likewise.
112472         * modules/lchown (Makefile.am): Likewise.
112473         * modules/localcharset (Makefile.am): Likewise.
112474         * modules/long-options (Makefile.am): Likewise.
112475         * modules/lstat (Makefile.am): Likewise.
112476         * modules/malloc (Makefile.am): Likewise.
112477         * modules/mathl (Makefile.am): Likewise.
112478         * modules/mbchar (Makefile.am): Likewise.
112479         * modules/md2 (Makefile.am): Likewise.
112480         * modules/md4 (Makefile.am): Likewise.
112481         * modules/md5 (Makefile.am): Likewise.
112482         * modules/memcasecmp (Makefile.am): Likewise.
112483         * modules/memchr (Makefile.am): Likewise.
112484         * modules/memcmp (Makefile.am): Likewise.
112485         * modules/memcoll (Makefile.am): Likewise.
112486         * modules/memcpy (Makefile.am): Likewise.
112487         * modules/memmem (Makefile.am): Likewise.
112488         * modules/memmove (Makefile.am): Likewise.
112489         * modules/mempcpy (Makefile.am): Likewise.
112490         * modules/memrchr (Makefile.am): Likewise.
112491         * modules/memset (Makefile.am): Likewise.
112492         * modules/memxor (Makefile.am): Likewise.
112493         * modules/mkancesdirs (Makefile.am): Likewise.
112494         * modules/mkdir-p (Makefile.am): Likewise.
112495         * modules/mkdir (Makefile.am): Likewise.
112496         * modules/mkdtemp (Makefile.am): Likewise.
112497         * modules/mkstemp (Makefile.am): Likewise.
112498         * modules/mktime (Makefile.am): Likewise.
112499         * modules/modechange (Makefile.am): Likewise.
112500         * modules/mountlist (Makefile.am): Likewise.
112501         * modules/nanosleep (Makefile.am): Likewise.
112502         * modules/obstack (Makefile.am): Likewise.
112503         * modules/openat (Makefile.am): Likewise.
112504         * modules/pagealign_alloc (Makefile.am): Likewise.
112505         * modules/pathmax (Makefile.am): Likewise.
112506         * modules/physmem (Makefile.am): Likewise.
112507         * modules/poll (Makefile.am): Likewise.
112508         * modules/posixtm (Makefile.am): Likewise.
112509         * modules/posixver (Makefile.am): Likewise.
112510         * modules/putenv (Makefile.am): Likewise.
112511         * modules/quote (Makefile.am): Likewise.
112512         * modules/quotearg (Makefile.am): Likewise.
112513         * modules/raise (Makefile.am): Likewise.
112514         * modules/read-file (Makefile.am): Likewise.
112515         * modules/readline (Makefile.am): Likewise.
112516         * modules/readlink (Makefile.am): Likewise.
112517         * modules/readtokens (Makefile.am): Likewise.
112518         * modules/readutmp (Makefile.am): Likewise.
112519         * modules/realloc (Makefile.am): Likewise.
112520         * modules/regex (Makefile.am): Likewise.
112521         * modules/rename-dest-slash (Makefile.am): Likewise.
112522         * modules/rename (Makefile.am): Likewise.
112523         * modules/rijndael (Makefile.am): Likewise.
112524         * modules/rmdir (Makefile.am): Likewise.
112525         * modules/rpmatch (Makefile.am): Likewise.
112526         * modules/safe-read (Makefile.am): Likewise.
112527         * modules/safe-write (Makefile.am): Likewise.
112528         * modules/same-inode (Makefile.am): Likewise.
112529         * modules/same (Makefile.am): Likewise.
112530         * modules/save-cwd (Makefile.am): Likewise.
112531         * modules/savedir (Makefile.am): Likewise.
112532         * modules/setenv (Makefile.am): Likewise.
112533         * modules/settime (Makefile.am): Likewise.
112534         * modules/sha1 (Makefile.am): Likewise.
112535         * modules/sig2str (Makefile.am): Likewise.
112536         * modules/snprintf (Makefile.am): Likewise.
112537         * modules/stat-macros (Makefile.am): Likewise.
112538         * modules/stat-time (Makefile.am): Likewise.
112539         * modules/stdbool (Makefile.am): Likewise.
112540         * modules/stdint (Makefile.am): Likewise.
112541         * modules/stdlib-safer (Makefile.am): Likewise.
112542         * modules/stpcpy (Makefile.am): Likewise.
112543         * modules/stpncpy (Makefile.am): Likewise.
112544         * modules/strcase (Makefile.am): Likewise.
112545         * modules/strcasestr (Makefile.am): Likewise.
112546         * modules/strchrnul (Makefile.am): Likewise.
112547         * modules/strcspn (Makefile.am): Likewise.
112548         * modules/strdup (Makefile.am): Likewise.
112549         * modules/strerror (Makefile.am): Likewise.
112550         * modules/strftime (Makefile.am): Likewise.
112551         * modules/strndup (Makefile.am): Likewise.
112552         * modules/strnlen (Makefile.am): Likewise.
112553         * modules/strpbrk (Makefile.am): Likewise.
112554         * modules/strsep (Makefile.am): Likewise.
112555         * modules/strstr (Makefile.am): Likewise.
112556         * modules/strtod (Makefile.am): Likewise.
112557         * modules/strtoimax (Makefile.am): Likewise.
112558         * modules/strtok_r (Makefile.am): Likewise.
112559         * modules/strtol (Makefile.am): Likewise.
112560         * modules/strtoll (Makefile.am): Likewise.
112561         * modules/strtoul (Makefile.am): Likewise.
112562         * modules/strtoull (Makefile.am): Likewise.
112563         * modules/strtoumax (Makefile.am): Likewise.
112564         * modules/strverscmp (Makefile.am): Likewise.
112565         * modules/sys_socket (Makefile.am): Likewise.
112566         * modules/sys_stat (Makefile.am): Likewise.
112567         * modules/sysexits (Makefile.am): Likewise.
112568         * modules/time_r (Makefile.am): Likewise.
112569         * modules/timegm (Makefile.am): Likewise.
112570         * modules/timespec (Makefile.am): Likewise.
112571         * modules/tmpfile-safer (Makefile.am): Likewise.
112572         * modules/trim (Makefile.am): Likewise.
112573         * modules/unistd-safer (Makefile.am): Likewise.
112574         * modules/unlinkdir (Makefile.am): Likewise.
112575         * modules/unlocked-io (Makefile.am): Likewise.
112576         * modules/userspec (Makefile.am): Likewise.
112577         * modules/utime (Makefile.am): Likewise.
112578         * modules/utimecmp (Makefile.am): Likewise.
112579         * modules/utimens (Makefile.am): Likewise.
112580         * modules/vasnprintf (Makefile.am): Likewise.
112581         * modules/vasprintf (Makefile.am): Likewise.
112582         * modules/vsnprintf (Makefile.am): Likewise.
112583         * modules/xalloc (Makefile.am): Likewise.
112584         * modules/xgetcwd (Makefile.am): Likewise.
112585         * modules/xnanosleep (Makefile.am): Likewise.
112586         * modules/xreadlink (Makefile.am): Likewise.
112587         * modules/xstrtod (Makefile.am): Likewise.
112588         * modules/xstrtol (Makefile.am): Likewise.
112589         * modules/xstrtold (Makefile.am): Likewise.
112590         * modules/yesno (Makefile.am): Likewise.
112591         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112593 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112595         * modules/error (Makefile.am): Distribute files through
112596         EXTRA_DIST, not lib_SOURCES.
112598 2006-10-12  Eric Blake  <ebb9@byu.net>
112600         * modules/error (Makefile.am): Distribute files in /lib.
112601         * modules/obstack (Makefile.am): Likewise.
112603 2006-10-12  Bruno Haible  <bruno@clisp.org>
112605         * modules/acl (Makefile.am): Distribute all files in lib/ through
112606         EXTRA_DIST.
112607         * modules/arcfour (Makefile.am): Likewise.
112608         * modules/arctwo (Makefile.am): Likewise.
112609         * modules/argmatch (Makefile.am): Likewise.
112610         * modules/argz (Makefile.am): Likewise.
112611         * modules/atexit (Makefile.am): Likewise.
112612         * modules/backupfile (Makefile.am): Likewise.
112613         * modules/c-strtod (Makefile.am): Likewise.
112614         * modules/c-strtold (Makefile.am): Likewise.
112615         * modules/calloc (Makefile.am): Likewise.
112616         * modules/canon-host (Makefile.am): Likewise.
112617         * modules/canonicalize (Makefile.am): Likewise.
112618         * modules/chdir-long (Makefile.am): Likewise.
112619         * modules/chdir-safer (Makefile.am): Likewise.
112620         * modules/check-version (Makefile.am): Likewise.
112621         * modules/chown (Makefile.am): Likewise.
112622         * modules/cloexec (Makefile.am): Likewise.
112623         * modules/close-stream (Makefile.am): Likewise.
112624         * modules/closeout (Makefile.am): Likewise.
112625         * modules/crc (Makefile.am): Likewise.
112626         * modules/cycle-check (Makefile.am): Likewise.
112627         * modules/des (Makefile.am): Likewise.
112628         * modules/dirfd (Makefile.am): Likewise.
112629         * modules/dirname (Makefile.am): Likewise.
112630         * modules/dup2 (Makefile.am): Likewise.
112631         * modules/euidaccess (Makefile.am): Likewise.
112632         * modules/exclude (Makefile.am): Likewise.
112633         * modules/exitfail (Makefile.am): Likewise.
112634         * modules/fcntl-safer (Makefile.am): Likewise.
112635         * modules/file-type (Makefile.am): Likewise.
112636         * modules/fileblocks (Makefile.am): Likewise.
112637         * modules/filemode (Makefile.am): Likewise.
112638         * modules/filenamecat (Makefile.am): Likewise.
112639         * modules/fnmatch (Makefile.am): Likewise.
112640         * modules/fopen-safer (Makefile.am): Likewise.
112641         * modules/fpending (Makefile.am): Likewise.
112642         * modules/fprintftime (Makefile.am): Likewise.
112643         * modules/free (Makefile.am): Likewise.
112644         * modules/fsusage (Makefile.am): Likewise.
112645         * modules/ftruncate (Makefile.am): Likewise.
112646         * modules/fts (Makefile.am): Likewise.
112647         * modules/gc (Makefile.am): Likewise.
112648         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112649         * modules/getaddrinfo (Makefile.am): Likewise.
112650         * modules/getcwd (Makefile.am): Likewise.
112651         * modules/getdelim (Makefile.am): Likewise.
112652         * modules/getdomainname (Makefile.am): Likewise.
112653         * modules/getgroups (Makefile.am): Likewise.
112654         * modules/gethostname (Makefile.am): Likewise.
112655         * modules/gethrxtime (Makefile.am): Likewise.
112656         * modules/getline (Makefile.am): Likewise.
112657         * modules/getloadavg (Makefile.am): Likewise.
112658         * modules/getlogin_r (Makefile.am): Likewise.
112659         * modules/getopt (Makefile.am): Likewise.
112660         * modules/getpass (Makefile.am): Likewise.
112661         * modules/getpass-gnu (Makefile.am): Likewise.
112662         * modules/getsubopt (Makefile.am): Likewise.
112663         * modules/gettime (Makefile.am): Likewise.
112664         * modules/gettimeofday (Makefile.am): Likewise.
112665         * modules/getugroups (Makefile.am): Likewise.
112666         * modules/getusershell (Makefile.am): Likewise.
112667         * modules/glob (Makefile.am): Likewise.
112668         * modules/group-member (Makefile.am): Likewise.
112669         * modules/hard-locale (Makefile.am): Likewise.
112670         * modules/hash (Makefile.am): Likewise.
112671         * modules/hmac-md5 (Makefile.am): Likewise.
112672         * modules/hmac-sha1 (Makefile.am): Likewise.
112673         * modules/human (Makefile.am): Likewise.
112674         * modules/idcache (Makefile.am): Likewise.
112675         * modules/imaxabs (Makefile.am): Likewise.
112676         * modules/imaxdiv (Makefile.am): Likewise.
112677         * modules/inet_ntop (Makefile.am): Likewise.
112678         * modules/inet_pton (Makefile.am): Likewise.
112679         * modules/inttostr (Makefile.am): Likewise.
112680         * modules/isapipe (Makefile.am): Likewise.
112681         * modules/lchown (Makefile.am): Likewise.
112682         * modules/long-options (Makefile.am): Likewise.
112683         * modules/lstat (Makefile.am): Likewise.
112684         * modules/malloc (Makefile.am): Likewise.
112685         * modules/mathl (Makefile.am): Likewise.
112686         * modules/mbchar (Makefile.am): Likewise.
112687         * modules/md2 (Makefile.am): Likewise.
112688         * modules/md4 (Makefile.am): Likewise.
112689         * modules/md5 (Makefile.am): Likewise.
112690         * modules/memcasecmp (Makefile.am): Likewise.
112691         * modules/memchr (Makefile.am): Likewise.
112692         * modules/memcmp (Makefile.am): Likewise.
112693         * modules/memcoll (Makefile.am): Likewise.
112694         * modules/memcpy (Makefile.am): Likewise.
112695         * modules/memmem (Makefile.am): Likewise.
112696         * modules/memmove (Makefile.am): Likewise.
112697         * modules/mempcpy (Makefile.am): Likewise.
112698         * modules/memrchr (Makefile.am): Likewise.
112699         * modules/memset (Makefile.am): Likewise.
112700         * modules/memxor (Makefile.am): Likewise.
112701         * modules/mkancesdirs (Makefile.am): Likewise.
112702         * modules/mkdir (Makefile.am): Likewise.
112703         * modules/mkdir-p (Makefile.am): Likewise.
112704         * modules/mkdtemp (Makefile.am): Likewise.
112705         * modules/mkstemp (Makefile.am): Likewise.
112706         * modules/mktime (Makefile.am): Likewise.
112707         * modules/modechange (Makefile.am): Likewise.
112708         * modules/mountlist (Makefile.am): Likewise.
112709         * modules/nanosleep (Makefile.am): Likewise.
112710         * modules/openat (Makefile.am): Likewise.
112711         * modules/pagealign_alloc (Makefile.am): Likewise.
112712         * modules/physmem (Makefile.am): Likewise.
112713         * modules/poll (Makefile.am): Likewise.
112714         * modules/posixtm (Makefile.am): Likewise.
112715         * modules/posixver (Makefile.am): Likewise.
112716         * modules/putenv (Makefile.am): Likewise.
112717         * modules/quote (Makefile.am): Likewise.
112718         * modules/quotearg (Makefile.am): Likewise.
112719         * modules/raise (Makefile.am): Likewise.
112720         * modules/read-file (Makefile.am): Likewise.
112721         * modules/readline (Makefile.am): Likewise.
112722         * modules/readlink (Makefile.am): Likewise.
112723         * modules/readtokens (Makefile.am): Likewise.
112724         * modules/readutmp (Makefile.am): Likewise.
112725         * modules/realloc (Makefile.am): Likewise.
112726         * modules/regex (Makefile.am): Likewise.
112727         * modules/rename (Makefile.am): Likewise.
112728         * modules/rename-dest-slash (Makefile.am): Likewise.
112729         * modules/rijndael (Makefile.am): Likewise.
112730         * modules/rmdir (Makefile.am): Likewise.
112731         * modules/rpmatch (Makefile.am): Likewise.
112732         * modules/safe-read (Makefile.am): Likewise.
112733         * modules/safe-write (Makefile.am): Likewise.
112734         * modules/same (Makefile.am): Likewise.
112735         * modules/save-cwd (Makefile.am): Likewise.
112736         * modules/savedir (Makefile.am): Likewise.
112737         * modules/setenv (Makefile.am): Likewise.
112738         * modules/settime (Makefile.am): Likewise.
112739         * modules/sha1 (Makefile.am): Likewise.
112740         * modules/sig2str (Makefile.am): Likewise.
112741         * modules/snprintf (Makefile.am): Likewise.
112742         * modules/stdlib-safer (Makefile.am): Likewise.
112743         * modules/stpcpy (Makefile.am): Likewise.
112744         * modules/stpncpy (Makefile.am): Likewise.
112745         * modules/strcase (Makefile.am): Likewise.
112746         * modules/strcasestr (Makefile.am): Likewise.
112747         * modules/strchrnul (Makefile.am): Likewise.
112748         * modules/strcspn (Makefile.am): Likewise.
112749         * modules/strdup (Makefile.am): Likewise.
112750         * modules/strerror (Makefile.am): Likewise.
112751         * modules/strftime (Makefile.am): Likewise.
112752         * modules/strndup (Makefile.am): Likewise.
112753         * modules/strnlen (Makefile.am): Likewise.
112754         * modules/strpbrk (Makefile.am): Likewise.
112755         * modules/strsep (Makefile.am): Likewise.
112756         * modules/strstr (Makefile.am): Likewise.
112757         * modules/strtod (Makefile.am): Likewise.
112758         * modules/strtoimax (Makefile.am): Likewise.
112759         * modules/strtok_r (Makefile.am): Likewise.
112760         * modules/strtol (Makefile.am): Likewise.
112761         * modules/strtoll (Makefile.am): Likewise.
112762         * modules/strtoul (Makefile.am): Likewise.
112763         * modules/strtoull (Makefile.am): Likewise.
112764         * modules/strtoumax (Makefile.am): Likewise.
112765         * modules/strverscmp (Makefile.am): Likewise.
112766         * modules/time_r (Makefile.am): Likewise.
112767         * modules/timegm (Makefile.am): Likewise.
112768         * modules/tmpfile-safer (Makefile.am): Likewise.
112769         * modules/unistd-safer (Makefile.am): Likewise.
112770         * modules/unlinkdir (Makefile.am): Likewise.
112771         * modules/userspec (Makefile.am): Likewise.
112772         * modules/utime (Makefile.am): Likewise.
112773         * modules/utimecmp (Makefile.am): Likewise.
112774         * modules/utimens (Makefile.am): Likewise.
112775         * modules/vasnprintf (Makefile.am): Likewise.
112776         * modules/vasprintf (Makefile.am): Likewise.
112777         * modules/vsnprintf (Makefile.am): Likewise.
112778         * modules/xalloc (Makefile.am): Likewise.
112779         * modules/xgetcwd (Makefile.am): Likewise.
112780         * modules/xnanosleep (Makefile.am): Likewise.
112781         * modules/xreadlink (Makefile.am): Likewise.
112782         * modules/xstrtod (Makefile.am): Likewise.
112783         * modules/xstrtol (Makefile.am): Likewise.
112784         * modules/xstrtold (Makefile.am): Likewise.
112785         * modules/yesno (Makefile.am): Likewise.
112787 2006-10-12  Jim Meyering  <jim@meyering.net>
112789         * m4/getloadavg.m4: Revert the change below.
112791         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112792         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112793         fail with a symlink, which is what coreutils' ./bootstrap now
112794         creates by default.
112796 2006-10-12  Bruno Haible  <bruno@clisp.org>
112798         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112799         mingw.
112800         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112801         MSVC and mingw explicitly.
112803 2006-10-11  Simon Josefsson  <jas@extundo.com>
112804             Bruno Haible  <bruno@clisp.org>
112806         Add support for multiple gnulib-tool invocations in the scope of a
112807         single configure.ac file.
112808         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112809         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112810         with the same contents as the _LIBADD variable.
112811         (func_emit_initmacro_start, func_emit_initmacro_end,
112812         func_emit_initmacro_done): New functions.
112813         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112814         gl_LIBOBJS and gl_LTLIBOBJS.
112816 2006-10-11  Bruno Haible  <bruno@clisp.org>
112818         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112819         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112820         autoreconf. Instead, invoke autopoint explicitly but move back the
112821         *.m4 files from gnulib.
112823 2006-10-11  Bruno Haible  <bruno@clisp.org>
112825         * gnulib-tool (func_usage): Make module names after --create-testdir
112826         optional.
112827         (func_create_testdir): If no module was specified, use nearly all
112828         modules.
112830 2006-10-12  Jim Meyering  <jim@meyering.net>
112832         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112833         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112834         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112835         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112836         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112837         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112838         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112839         (fts_set_stat_required): New function.
112840         (fts_open): Defer the calls to fts_stat, if possible or requested.
112841         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112842         into fts_stat itself.
112843         (fts_read): Perform any required (deferred) fts_stat call.
112844         (fts_build): Likewise, for the directory we're about to open and read.
112845         In the readdir loop, carefully decide whether each entry will require
112846         an eventual call to fts_stat, using dirent.d_type info if available.
112847         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112848         a command line argument into this function.  Update all callers.
112849         Map a return value of FTS_DOT to FTS_D for a command line argument.
112850         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112851         Thanks to Miklos Szeredi for his tenacity and for the initial
112852         bug report about "find" failing on a FUSE-based file system.
112854         * lib/fts.c (fts_open): Use consistent indentation.
112856 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112859         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112860         reported by Jim Meyering.  All uses of cache variables renamed
112861         to match Autoconf's.
112862         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112863         the other one.
112865         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112866         Fix misspelling in diagnostic.
112868 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112870         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112871         defined.  Problem reported by Matthew Woehlke.
112873         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112874         Add support for Tandem NonStop R series.
112875         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112876         Use new macro.
112878         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112879         (has_trailing_slash): Omit size arg; all callers changed.
112880         Omit 'inline', since it doesn't help performance and we'd
112881         need to configure it.
112882         Don't count //, ///, etc. as having a trailing slash.
112883         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112884         (rpl_rename_dest_slash): On failure, use rename's errno rather
112885         than (in some cases) an incorrect or junk errno.
112886         Simplify code by removing need to compute length; this does
112887         cause it to make two passes instead of one over the file name,
112888         but it's worth it.
112890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112891         change, since Autoconf's version may no longer be appropriate now
112892         that we are using CVS Autoconf's version.  Add support for Tandem.
112894 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112895             Bruno Haible  <bruno@clisp.org>
112897         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112898         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112899         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112900         gl_AC_TYPE_LONG_LONG.
112902         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112903         instead of HAVE_LONG_LONG.
112904         * lib/printf-args.c (printf_fetchargs): Likewise.
112905         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112906         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112908         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112909         gl_AC_TYPE_LONG_LONG.
112911 2006-10-11  Bruno Haible  <bruno@clisp.org>
112913         * m4/longlong.m4: Add comments.
112914         * m4/ulonglong.m4: Likewise.
112916 2006-10-10  Bruno Haible  <bruno@clisp.org>
112918         Make it possible to #define stpcpy, strdup to aliases.
112919         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112920         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112922 2006-10-10  Bruno Haible  <bruno@clisp.org>
112924         Make it possible to #define gcd to an alias.
112925         * lib/gcd.c: Include config.h.
112927 2006-10-10  Bruno Haible  <bruno@clisp.org>
112929         Make it possible to #define c_isascii to an alias.
112930         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112931         defined. Undefine the macros before defining them, to avoid gcc
112932         warnings.
112933         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112934         define NO_C_CTYPE_MACROS early.
112936 2006-10-10  Bruno Haible  <bruno@clisp.org>
112938         Make it possible to #define set_program_name to an alias.
112939         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112940         ENABLE_RELOCATABLE early.
112942 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112944         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112945         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112946         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112947         More generally, don't assume that 64-bit signed int is available
112948         if unsigned int is, and vice versa.
112949         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112950         unsigned symbols, not on their signed counterparts.
112951         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112952         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112953         (UINT64_C, UINTMAX_C):
112954         Likewise.
112955         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112956         unsigned counterparts.
112957         (Have_long_long, Unsigned): New macros.
112958         (Int): Renamed from INT.
112959         (strtoimax): Use the new macros.
112960         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112961         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112962         * modules/inttypes (inttypes.h): Substitute
112963         HAVE_UNSIGNED_LONG_LONG_INT.
112964         * modules/stdint (stdint.h): Likewise.
112965         (Files): Add m4/ulonglong.m4.
112967 2006-10-10  Bruno Haible  <bruno@clisp.org>
112969         Fix a gcc -Wshadow warning.
112970         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112971         to 'bucket'.
112972         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112973         gl_linked_indexof_from_to): Likewise.
112974         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112975         Likewise.
112976         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112977         Likewise.
112978         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112979         Reported by Eric Blake.
112981 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112983         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112984         for NetBSD.  Problem reported by Bruno Haible.
112986 2006-10-09  Jim Meyering  <jim@meyering.net>
112988         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112989         Patch from Bruno Haible.
112991 2006-10-09  Jim Meyering  <jim@meyering.net>
112993         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112994         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112995         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112997 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112999         Don't include <config.h> twice; this doesn't work in some cases,
113000         e.g., when config.h has "#define intmax_t long long int" and
113001         we include <config.h>, <inttypes.h>, <config.h> in that order.
113002         Problem reported by Matthew Woehlke in:
113003         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
113004         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
113005         * lib/fts-cycle.c: Don't include config.h.
113006         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
113007         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
113008         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
113009         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
113010         inttypes.h.
113011         * lib/xstrtoumax.c: Likewise.
113012         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
113013         __strtol and the like, so that this module is more like its siblings.
113014         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
113015         Remove; no longer needed now that we assume gnulib inttypes.h.
113017 2006-10-08  Bruno Haible  <bruno@clisp.org>
113019         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
113020         option.
113022 2006-10-07  Jim Meyering  <jim@meyering.net>
113024         * modules/inttypes (inttypes.h): Revert what seems to have been
113025         an inadvertent part of today's change: use "|", not "/" in the
113026         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
113028 2006-10-07  Bruno Haible  <bruno@clisp.org>
113030         * modules/sublist: New file.
113032 2006-10-07  Bruno Haible  <bruno@clisp.org>
113034         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
113035         * modules/argz (argz.h): Likewise.
113036         * modules/arpa_inet (arpa/inet.h): Likewise.
113037         * modules/byteswap (byteswap.h): Likewise.
113038         * modules/configmake (configmake.h): Likewise.
113039         * modules/fcntl (fcntl.h): Likewise.
113040         * modules/fnmatch (fnmatch.h): Likewise.
113041         * modules/getopt (getopt.h): Likewise.
113042         * modules/glob (glob.h): Likewise.
113043         * modules/inttypes (inttypes.h): Likewise.
113044         * modules/netinet_in (netinet/in.h): Likewise.
113045         * modules/poll (poll.h): Likewise.
113046         * modules/stdbool (stdbool.h): Likewise.
113047         * modules/stdint (stdint.h): Likewise.
113048         * modules/sys_select (sys/select.h): Likewise.
113049         * modules/sys_socket (sys/socket.h): Likewise.
113050         * modules/sys_stat (sys/stat.h): Likewise.
113051         * modules/sysexits (sysexits.h): Likewise.
113052         * modules/unistd (unistd.h): Likewise.
113053         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113054         Add a "DO NOT EDIT" comment to the generated file.
113055         (func_import): Likewise for gnulib-comp.m4.
113057 2006-10-07  Bruno Haible  <bruno@clisp.org>
113059         * lib/gl_sublist.h: New file.
113060         * lib/gl_sublist.c: New file.
113062 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113064         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
113065         name (relative to the original working directory) and the file
113066         name component (relative to the temporary working directory).  All
113067         callers changed.
113068         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
113069         * lib/mkdir-p.c (make_dir_parents): Likewise.
113070         * lib/mkdir-p.h (make_dir_parents): Likewise.
113072 2006-10-06  Eric Blake  <ebb9@byu.net>
113074         Define several macros for use by the clean-temp module.
113075         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
113076         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
113077         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
113079         * lib/clean-temp.h (close_stream_temp): New declaration.
113080         * lib/clean-temp.c (includes): Pull in headers according to what
113081         other modules are in use.
113082         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
113084 2006-10-06  Bruno Haible  <bruno@clisp.org>
113086         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
113087         instead of fopen, fwriteerror.
113089 2006-10-06  Bruno Haible  <bruno@clisp.org>
113091         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
113092         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
113093         int.
113094         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
113095         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
113096         Return an error indicator.
113097         Suggested by Eric Blake.
113099 2006-10-06  Bruno Haible  <bruno@clisp.org>
113101         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
113102         Reported by Eric Blake.
113104 2006-10-06  Bruno Haible  <bruno@clisp.org>
113106         * modules/closeout (Description): Mention stderr too.
113108 2006-10-06  Bruno Haible  <bruno@clisp.org>
113109         and Paul Eggert  <eggert@cs.ucla.edu>
113111         * lib/closeout.c (close_stdout): Also close stderr.
113112         * lib/closeout.h: Update comment.
113114 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113116         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
113117         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
113118         * lib/dirchownmod.c: Include lchown.h.
113119         * lib/lchown.c: Don't include files that lchown.h now includes.
113120         Don't declare chown, since lchown.h now does that.
113121         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
113122         (lchown): Define to rpl_chown if lchown is declared but
113123         does not exist.  Declare using a prototype if lchown is not
113124         declared.  Add a copyright notice.
113125         * lib/mkstemp.h: Include <unistd.h>.
113126         * lib/openat.c: Include lchown.h.
113128         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
113129         we now test for that separately.
113130         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
113131         rather than O_NOFOLLOW, when testing whether it's possible to
113132         avoid a race condition reliably.
113133         * lib/savewd.c (savewd_chdir): Likewise.
113135         Remove macros that are no longer needed now that stdint.h is
113136         reliable.
113137         * lib/fsusage.c (UINTMAX_MAX): Remove.
113138         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
113139         * lib/utimecmp.c (SIZE_MAX): Remove.
113141         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
113143         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
113144         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
113145         O_NOATIME works.
113147 2006-10-05  Bruno Haible  <bruno@clisp.org>
113149         * lib/gl_list.h (gl_sortedlist_search_from_to,
113150         gl_sortedlist_indexof_from_to): New declarations.
113151         (gl_list_implementation): New fields sortedlist_search_from_to,
113152         sortedlist_indexof_from_to.
113153         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
113154         inline functions.
113155         * lib/gl_list.c (gl_sortedlist_search_from_to,
113156         gl_sortedlist_indexof_from_to): New functions.
113157         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
113158         function.
113159         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
113160         (gl_array_sortedlist_search_from_to): New function.
113161         (gl_array_list_implementation): Update.
113162         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
113163         function.
113164         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
113165         (gl_carray_sortedlist_search_from_to): New function.
113166         (gl_carray_list_implementation): Update.
113167         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
113168         gl_linked_sortedlist_indexof_from_to): New functions.
113169         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113170         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113171         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
113172         gl_tree_sortedlist_indexof_from_to): New functions.
113173         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113174         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113175         Update.
113176         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113177         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
113178         Update.
113180 2006-10-05  Bruno Haible  <bruno@clisp.org>
113182         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
113183         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
113184         (struct gl_list_implementation): Add fields search_from_to,
113185         indexof_from_to. Remove fields search, indexof.
113186         (gl_list_search): Use the search_from_to method.
113187         (gl_list_search_from, gl_list_search_from_to): New functions.
113188         (gl_list_indexof): Use the indexof_from_to method.
113189         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113190         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
113191         (gl_list_search_from, gl_list_search_from_to): New functions.
113192         (gl_list_indexof): Use the indexof_from_to method.
113193         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113194         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
113195         gl_array_indexof. Add start_index, end_index arguments.
113196         (gl_array_search_from_to): Renamed from gl_array_search. Add
113197         start_index, end_index arguments.
113198         (gl_array_remove, gl_array_list_implementation): Update.
113199         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
113200         gl_carray_indexof. Add start_index, end_index arguments.
113201         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
113202         start_index, end_index arguments.
113203         (gl_carray_remove, gl_carray_list_implementation): Update.
113204         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
113205         gl_linked_search. Add start_index, end_index arguments.
113206         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
113207         start_index, end_index arguments.
113208         (gl_linked_remove): Update.
113209         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113210         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113211         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
113212         field to 'size_t'.
113213         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
113214         gl_tree_search. Add start_index, end_index arguments.
113215         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113216         start_index, end_index arguments.
113217         (gl_tree_remove): Update.
113218         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113219         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113220         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
113221         function.
113222         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
113223         gl_tree_search. Add start_index, end_index arguments.
113224         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113225         start_index, end_index arguments.
113226         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113227         Update.
113228         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
113230 2006-10-05  Bruno Haible  <bruno@clisp.org>
113232         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
113234         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
113235         fwriteerror_temp): New declarations.
113236         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
113237         (descriptors): New variable.
113238         (cleanup): First, close the descriptors.
113239         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
113240         fclose_temp, fwriteerror_temp): New functions.
113242 2006-10-04  Jim Meyering  <jim@meyering.net>
113244         * lib/fts.c (fts_open): Tiny comment change.
113246 2006-10-04  Bruno Haible  <bruno@clisp.org>
113248         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
113249         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
113250         gl_LOCK_BODY.
113251         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
113252         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
113253         gl_LOCK_EARLY_BODY.
113254         (gl_LOCK): Require gl_LOCK_BODY.
113256 2006-10-04  Bruno Haible  <bruno@clisp.org>
113258         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
113259         (gl_oset_search_atleast): New declaration.
113260         (struct gl_oset_implementation): Add field 'search_atleast'.
113261         (gl_oset_search_atleast): New inline function.
113262         * lib/gl_oset.c (gl_oset_search_atleast): New function.
113263         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
113264         (gl_array_oset_implementation): Update.
113265         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
113266         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
113267         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
113269 2006-10-04  Bruno Haible  <bruno@clisp.org>
113271         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
113273 2006-10-03  Bruno Haible  <bruno@clisp.org>
113275         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
113276         from gl_avltreehash_list_implementation.
113278 2006-10-03  Bruno Haible  <bruno@clisp.org>
113280         * lib/gl_oset.c (gl_oset_add): Fix return type.
113282 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
113284         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
113286 2006-10-02  Eric Blake  <ebb9@byu.net>
113288         * modules/strnlen (Depends-on): Add extensions.
113290 2006-10-02  Eric Blake  <ebb9@byu.net>
113292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
113293         definition in 2.60+.
113295 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
113297         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
113298         checks.
113300 2006-10-02  Bruno Haible  <bruno@clisp.org>
113302         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
113303         to the AUTOMAKE_OPTIONS.
113304         Reported by Jim Meyering.
113306 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113308         Work around bug in Solaris 10 /proc file system:
113309         /proc/self/fd/NNN/.. isn't the parent directory of
113310         the directory whose file descriptor is NNN.  This needs to
113311         be worked around at run time, not compile time, since a
113312         program might be built on Solaris 8, where things work, and
113313         run on Solaris 10.
113314         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
113315         to use the following interface instead:
113316         (OPENAT_BUFFER_SIZE): New macro.
113317         (openat_proc_name): New function.
113318         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
113319         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
113320         Likewise.
113321         * lib/openat-proc.c: New file.
113322         * modules/openat (Files): Add lib/openat-proc.c.
113323         (Depends-on): Add same-inode, stdbool.
113324         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
113326 2006-09-29  Bruno Haible  <bruno@clisp.org>
113328         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113329         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113330         argument. Set stdout_closed before testing for ferror, not after.
113331         (fwriteerror, fwriteerror_no_ebadf): New functions.
113333 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113335         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113337 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113339         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113340         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113342 2006-09-28  Jim Meyering  <jim@meyering.net>
113344         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113345         Include <unistd.h>.
113347 2006-09-28  Bruno Haible  <bruno@clisp.org>
113349         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113350         * modules/linkedhash-list (Depends-on): Likewise.
113351         * modules/rbtreehash-list (Depends-on): Likewise.
113353 2006-09-28  Bruno Haible  <bruno@clisp.org>
113355         * lib/strndup.h: Simplify the redefinition of strndup.
113356         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113357         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113359 2006-09-28  Bruno Haible  <bruno@clisp.org>
113361         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113362         * lib/gl_linkedhash_list.c: Likewise.
113363         * lib/gl_rbtreehash_list.c: Likewise.
113365 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113367         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113368         getaddrinfo.
113370         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113371         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113372         it causes <stdio_ext.h> to cause a compile-time error.
113373         Problem reported by Nelson H. F. Beebe.
113374         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113375         of HAVE_DECL___PENDING.
113377         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113378         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113379         declaration.
113381 2006-09-27  Jim Meyering  <jim@meyering.net>
113383         This file could end up with a definition for a function
113384         named __strndup, rather than rpl_strndup on a system with
113385         incomplete weak_alias support.
113386         * lib/strndup.c (strndup): Rename from __strndup.
113387         Remove #defines that used to map __strndup to strndup.
113388         Don't use K&R prototypes.
113389         Remove LIBC-related code, since this file is not sync'd with glibc.
113390         * lib/strndup.h: Revamp, accordingly.
113391         * m4/strndup.m4: Modernize.
113393 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113395         * modules/savewd (Depends-on): Add 'raise'.
113396         * lib/savewd.c: Include <signal.h>, for 'raise'.
113398 2006-09-26  Jim Meyering  <jim@meyering.net>
113400         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113401         when we detect Darwin 8.7.0's acl_get_file bug.
113402         Rearrange to perform the new (below) run-test while $LIBS
113403         contains any acl-related library.  Set USE_ACL at the end.
113404         (gl_ACL_GET_FILE): New function.
113406 2006-09-26  Eric Blake  <ebb9@byu.net>
113408         * lib/verror.c: Include <config.h> unconditionally.
113410 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113412         * modules/clock-time (Maintainer): Add self.
113413         * modules/getlogin_r (Depends-on): Add extensions.
113415 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113417         * modules/clock-time: New module.
113418         * modules/nanosleep (Depends-on): Add clock-time.
113419         * modules/gethrxtime (Depends-on): Likewise.
113420         * modules/gettime (Depends-on): Likewise.
113421         * modules/settime (Depends-on): Likewise.
113423         * modules/fts-lgpl: Depend on openat.
113424         * modules/mkancesdirs: Depend on savewd.
113425         * modules/mkdir-p: Likewise.
113427 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113429         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113432         `gl_have_arbitrary_file_name_length_limit' to
113433         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113434         actually works between configure runs.
113436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113437             Bruno Haible  <bruno@clisp.org>
113439         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113441 2006-09-25  Jim Meyering  <jim@meyering.net>
113443         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113444         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113446 2006-09-25  Eric Blake  <ebb9@byu.net>
113448         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113449         exec's in 2006-09-18 patch when shuffling fds.
113451 2006-09-25  Bruno Haible  <bruno@clisp.org>
113453         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113454         Reported by Jim Meyering.
113456 2006-09-24  Jim Meyering  <jim@meyering.net>
113458         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113459         compare a pointer against a literal "0".  That caused failures with
113460         at least HP-UX's hpcc.
113462 2006-09-22  Simon Josefsson  <jas@extundo.com>
113464         * modules/gc-sha1:
113465         * modules/gc-md4:
113466         * modules/gc-hmac-sha1:
113467         * modules/gc-hmac-md5:
113468         * modules/gc-des:
113469         * modules/gc-arcfour: Distribute more files.
113471 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113473         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113474         (gl_linked_iterator_from_to): Initialize struct completely.
113475         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113476         (gl_tree_iterator_from_to): Likewise
113477         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113478         * lib/gl_array_list.c [lint] (gl_array_iterator)
113479         (gl_array_iterator_from_to): Likewise.
113480         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113481         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113482         (gl_carray_iterator_from_to): Likewise.
113484         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113485         * lib/md4.c (md4_process_block): Remove unused variable.
113486         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113487         parentheses for clarity.
113489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113491         * modules/bison-i18n (Depends-on): Add gettext.
113493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113495         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113496         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113497         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113498         also add missing comma that caused broken test.
113499         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113500         stdlib.h, for `abort'.
113501         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113502         variables.
113503         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113504         include unistd.h if present, for `rmdir'.
113505         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113506         variables.
113507         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113508         in the process include standard headers for prototypes.
113509         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113510         gets declared on GNU/Linux.
113511         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113512         unistd.h, for `rmdir'.
113513         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113515         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113516         always true.
113517         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113519         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113521 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113523         * gnulib-tool (func_version): Create output all at once.  This
113524         may help avoid triggering unnecessary SIGPIPEs, and at any
113525         rate it doesn't hurt.
113527 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113528             Bruno Haible  <bruno@clisp.org>
113530         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113531         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113532         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113534         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113535         (gl_FUNC_VASPRINTF): Invoke it.
113537 2006-09-22  Bruno Haible  <bruno@clisp.org>
113539         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113540         getloadavg.c as first argument.
113542 2006-09-22  Bruno Haible  <bruno@clisp.org>
113544         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113545         at the beginning of the gl_INIT macro.
113546         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113547         gl_GETLOADAVG.
113549 2006-09-22  Bruno Haible  <bruno@clisp.org>
113551         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113552         module.
113553         Suggested by Ralf Wildenhues.
113555 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113557         Import this patch from libc:
113559         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113561         * lib/regex_internal.c (re_string_reconstruct): Handle
113562         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113563         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113564         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113565         re_string_context_at.
113567         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113568         now requires it.
113569         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113570         gl_REGEX now does it for us.
113571         (gl_REGEX): Add test taken from
113572         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113575         Check that large offsets work.  Modernize Autoconf usages.
113576         Prefer "yes" to mean a good thing rather than a bad.
113577         Don't put "#define mkstemp" in config.h, as this might interfere
113578         with standard system headers that "#define mkstemp mkstemp64".
113580         * modules/mkstemp (Depends-on): Add extensions, so that
113581         mkstemp is visible on some platforms.
113582         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113583         (Include): Change to "mkstemp.h" from <stdlib.h>.
113584         (Files): Add mkstemp.h.
113586         * lib/mkstemp.h: New file, since some standard headers
113587         #define mkstemp.
113588         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113589         Include "mkstemp.h".
113590         Make the _LIBC code resemble glibc original more,
113591         e.g., use K&R style.
113592         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113593         (mkstemp): Remove, since mkstemp.h does this for us.
113594         * lib/stdlib--.h: Include mkstemp.h.
113596         Import this patch from libc:
113598         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113600         * lib/tempname.c (__gen_tempname): Change attempts_min
113601         into a macro.  Use preprocessor to decide how to initialize
113602         attempts [Coverity CID 67].
113604 2006-09-20  Bruno Haible  <bruno@clisp.org>
113606         * lib/mkdtemp.c: Import from libc.
113607         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113608                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113609                 attempts_min into a macro.  Use preprocessor to decide how to
113610                 initialize attempts [Coverity CID 67].
113611         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113612                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113613                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113615 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113617         * gnulib-tool (func_exit): New function, to allow to pass the
113618         exit status portably through the trap.  Use everywhere.
113619         (--help, --version): Signal a write error.
113620         (trap): catch SIGPIPE, for write errors.
113621         Exit at the end of the trap, with the correct exit status.
113623 2006-09-19  Karl Berry  <karl@gnu.org>
113625         * doc/gnulib.texi: note about the license texinfo files.
113627 2006-09-19  Eric Blake  <ebb9@byu.net>
113629         * gnulib-tool: Avoid space-tab.
113631 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113633         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113634         that prevented coreutils 6.1 from building.  Problem reported
113635         by Petter Reinholdtsen.
113637 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113639         * gnulib-tool (avoidlist): Fix typo that broke options like
113640         --avoid=lock that are used by coreutils bootstrap.
113642 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113644         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113645         more systematically.
113647 2006-09-18  Jim Meyering  <jim@meyering.net>
113649         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113651 2006-09-18  Bruno Haible  <bruno@clisp.org>
113653         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113655 2006-09-18  Bruno Haible  <bruno@clisp.org>
113657         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113658         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113659         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113660         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113661         * m4/gettext.m4: Require autoconf >= 2.52.
113662         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113663         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113664         of gl_cv_header_inttypes_h.
113666 2006-09-18  Bruno Haible  <bruno@clisp.org>
113668         * lib/javaversion.c: Include configmake.h.
113670 2006-09-18  Bruno Haible  <bruno@clisp.org>
113672         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113673         avoid that the while loops be executed in a subshell.
113675 2006-09-18  Bruno Haible  <bruno@clisp.org>
113677         * MODULES.html.sh (func_module): Break long lines.
113678         Suggested by Bruce Korb <bkorb@gnu.org>.
113680 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113682         Speed up by a factor of 1.12.
113683         * gnulib-tool (nl): New variable.
113684         (func_import): Rewrite include directive extraction to only read each
113685         directive once.
113687 2006-09-17  Bruno Haible  <bruno@clisp.org>
113689         * modules/javaversion (Makefile.am): Remove DEFS setting.
113690         (Depends-on): Add configmake, for PKGDATADIR definition.
113692 2006-09-17  Bruno Haible  <bruno@clisp.org>
113694         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113696 2006-09-17  Bruno Haible  <bruno@clisp.org>
113698         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113699         (func_modules_transitive_closure, func_modules_add_dummy,
113700         func_modules_to_filelist, func_import, func_create_testdir,
113701         func_create_megatestdir, ...): Use it wherever possible.
113702         Suggested by Ralf Wildenhues.
113704 2006-09-16  Karl Berry  <karl@gnu.org>
113706         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113707         to avoid sectioning errors.
113708         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113709         [ifinfo]: blank line after @center-ed titles.
113710         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113711         Spell FSF address consistently with others.
113712         (These changes approved by rms.)
113714 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113716         Speed up by a factor of 1.61.
113717         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113718         already checked module names again.
113720 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113722         Speed up by a factor of 1.13.
113723         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113724         for new_files, and the input to func_add_or_update.
113726 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113728         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113729         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113731 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113733         * modules/mkancesdirs (Depends-on): Add fcntl.
113734         * modules/savewd: New file.
113735         * MODULES.html.sh (File system functions): Add savewd.
113737         * modules/configmake (Makefile.am): Add support for the
113738         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113740 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113742         * m4/savewd.m4: New file.
113744 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113746         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113747         (dirchownmod): New arg FD.  All callers changed.
113748         Use FD rather than opening the directory ourself, as opening is
113749         now the caller's responsibility.
113750         * lib/dirchownmod.h: Likewise.
113751         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113752         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113753         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113754         (test_dir): Remove.
113755         (mkancesdirs): Return length of prefix of FILE that has already
113756         been made, or -2 if there is a child doing the work.  Redo
113757         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113758         ".", and treat ".." specially since it might stray back into
113759         already-created areas.  Use a subprocess if necessary.  New arg
113760         WD; all users changed.  MAKE_DIR function should now return 1
113761         if it creates a directory that is not readable.  Return -2 if
113762         a child process is spun off.
113763         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113764         Adjust signature to match code.
113765         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113766         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113767         all users changed.
113768         * lib/savewd.c, lib/savewd.h: New files.
113770 2006-09-15  Jim Meyering  <jim@meyering.net>
113772         * modules/rename-dest-slash: New module.
113773         * MODULES.html.sh (posix_compat): Add it here.
113775         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113777 2006-09-15  Jim Meyering  <jim@meyering.net>
113779         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113780         file.
113782         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113784 2006-09-15  Jim Meyering  <jim@meyering.net>
113786         * lib/rename-dest-slash.c (has_trailing_slash): Use
113787         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113788         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113789         test before testing whether SRC is a directory.
113790         Suggestions from Bruno Haible.
113792         Avoid a warning about an unused variable.
113793         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113794         into the #ifdef block where it's used.
113796         * lib/rename-dest-slash.c: New file.
113798 2006-09-14  Bruno Haible  <bruno@clisp.org>
113800         * lib/allocsa.c: Include <config.h> unconditionally.
113801         * lib/asnprintf.c: Likewise.
113802         * lib/asprintf.c: Likewise.
113803         * lib/c-strcasecmp.c: Likewise.
113804         * lib/c-strcasestr.c: Likewise.
113805         * lib/c-strncasecmp.c: Likewise.
113806         * lib/c-strstr.c: Likewise.
113807         * lib/classpath.c: Likewise.
113808         * lib/clean-temp.c: Likewise.
113809         * lib/concatpath.c: Likewise.
113810         * lib/copy-file.c: Likewise.
113811         * lib/csharpcomp.c: Likewise.
113812         * lib/csharpexec.c: Likewise.
113813         * lib/execute.c: Likewise.
113814         * lib/fatal-signal.c: Likewise.
113815         * lib/findprog.c: Likewise.
113816         * lib/fwriteerror.c: Likewise.
113817         * lib/gl_array_list.c: Likewise.
113818         * lib/gl_array_oset.c: Likewise.
113819         * lib/gl_avltree_list.c: Likewise.
113820         * lib/gl_avltree_oset.c: Likewise.
113821         * lib/gl_avltreehash_list.c: Likewise.
113822         * lib/gl_carray_list.c: Likewise.
113823         * lib/gl_linked_list.c: Likewise.
113824         * lib/gl_linkedhash_list.c: Likewise.
113825         * lib/gl_list.c: Likewise.
113826         * lib/gl_oset.c: Likewise.
113827         * lib/gl_rbtree_list.c: Likewise.
113828         * lib/gl_rbtree_oset.c: Likewise.
113829         * lib/gl_rbtreehash_list.c: Likewise.
113830         * lib/imaxabs.c: Likewise.
113831         * lib/imaxdiv.c: Likewise.
113832         * lib/javacomp.c: Likewise.
113833         * lib/javaexec.c: Likewise.
113834         * lib/javaversion.c: Likewise.
113835         * lib/linebreak.c: Likewise.
113836         * lib/localcharset.c: Likewise.
113837         * lib/lock.c: Likewise.
113838         * lib/mbchar.c: Likewise.
113839         * lib/mbswidth.c: Likewise.
113840         * lib/mkdtemp.c: Likewise.
113841         * lib/pipe.c: Likewise.
113842         * lib/printf-args.c: Likewise.
113843         * lib/printf-parse.c: Likewise.
113844         * lib/progname.c: Likewise.
113845         * lib/progreloc.c: Likewise.
113846         * lib/readlink.c: Likewise.
113847         * lib/sh-quote.c: Likewise.
113848         * lib/stpcpy.c: Likewise.
113849         * lib/stpncpy.c: Likewise.
113850         * lib/strcasecmp.c: Likewise.
113851         * lib/strcasestr.c: Likewise.
113852         * lib/strcspn.c: Likewise.
113853         * lib/striconv.c: Likewise.
113854         * lib/strncasecmp.c: Likewise.
113855         * lib/strnlen1.c: Likewise.
113856         * lib/strstr.c: Likewise.
113857         * lib/strtok_r.c: Likewise.
113858         * lib/tls.c: Likewise.
113859         * lib/tmpdir.c: Likewise.
113860         * lib/unicodeio.c: Likewise.
113861         * lib/unsetenv.c: Likewise.
113862         * lib/vasnprintf.c: Likewise.
113863         * lib/vasprintf.c: Likewise.
113864         * lib/wait-process.c: Likewise.
113865         * lib/xallocsa.c: Likewise.
113866         * lib/xsetenv.c: Likewise.
113867         * lib/xstriconv.c: Likewise.
113869 2006-09-13  Simon Josefsson  <jas@extundo.com>
113871         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113872         that internally, suggested by Ralf Wildenhues
113873         <Ralf.Wildenhues@gmx.de>.
113875 2006-09-13  Simon Josefsson  <jas@extundo.com>
113877         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113878         @LIBOBJS@.
113879         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113881 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113883         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113884         longer worry about uses that don't define HAVE_CONFIG_H.
113885         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113886         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113887         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113888         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113889         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113890         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113891         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113892         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113893         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113894         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113895         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113896         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113897         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113898         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113899         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113900         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113901         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113902         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113903         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113904         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113905         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113906         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113907         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113908         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113909         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113910         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113911         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113912         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113913         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113914         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113915         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113916         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113917         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113918         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113919         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113920         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113921         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113922         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113923         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113924         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113925         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113926         Likewise.
113928 2006-09-13  Eric Blake  <ebb9@byu.net>
113930         * lib/getopt.c: Fix typo in last commit.
113932 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113934         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113935         dgettext.
113937 2006-09-12  Jim Meyering  <jim@meyering.net>
113939         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113940         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113941         Reported by Nelson H. F. Beebe.
113943 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113945         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113946         program_invocation_name and program_invocation_short_name are
113947         initialized.
113948         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113949         and program_invocation_short_name to argp.h, so they are visible
113950         to user programs.
113951         * lib/argp.h: Likewise
113953 2006-09-10  Bruno Haible  <bruno@clisp.org>
113955         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113956         m4/inttypes_h.m4, m4/uintmax_t.m4.
113958 2006-09-10  Bruno Haible  <bruno@clisp.org>
113960         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113961         gl_AC_TYPE_UINTMAX_T.
113963 2006-09-10  Bruno Haible  <bruno@clisp.org>
113965         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113967 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113969         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113970         convention.  Text proposed by Bruno Haible.
113971         (struct argp_option): Document the use of N_() wrappers.
113973         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113974         '\v', and translate the two parts separately, instead of feeding
113975         the whole string to gettext.  This allows to exclude
113976         '\v' from the strings visible to the translator by writing doc
113977         strings as N_("..") "\v" N_("..").
113979 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113981         * config/srclist.txt: Undo latest change; the bug was fixed.
113983 2006-09-09  Bruno Haible  <bruno@clisp.org>
113985         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113986         assignments if building a library without libtool.
113987         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113988         in func_emit_lib_Makefile_am.
113989         (func_import): When building a static library libfoo.a, arrange to
113990         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113991         (func_create_testdir): Likewise.
113992         * modules/gc (configure.ac, Makefile.am): If building statically,
113993         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113994         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113995         * modules/striconv (configure.ac, Makefile.am): Likewise.
113996         Based on a suggestion by Ralf Wildenhues.
113998 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114000         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
114001         Check for unistd.h too, since Autoconf doesn't assume POSIX.
114002         Also:
114004         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114005         Add year_2050_test to catch glibc bug 2821
114006         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114008         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114009         Prefer #ifdef to #if.
114011         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
114012         Return from 'main' instead of calling 'exit'.
114014 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114016         * lib/mktime.c (guess_time_tm): Fix bug where mktime
114017         returned the maximum time_t value rather than (time_t) -1.
114018         Problem originally reported by William Bardwell
114019         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114021         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114022         Moved to here ...
114023         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114024         ... from here.
114026 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114028         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
114029         2821 is fixed.
114031 2006-09-08  Jim Meyering  <jim@meyering.net>
114033         Don't make generated files read-only.  That would bother too many
114034         people.  However, do retain the ability to work when targets are
114035         read-only: remove the destination and temporary files before writing
114036         them (when generated via sed or echo), or by using the -f option for
114037         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
114038         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114039         * modules/byteswap, modules/configmake, modules/fcntl:
114040         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114041         * modules/localcharset, modules/netinet_in, modules/poll:
114042         * modules/stdbool, modules/stdint, modules/sys_select:
114043         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114045 2006-09-08  Jim Meyering  <jim@meyering.net>
114047         Avoid new build failure on FreeBSD 6.0.
114048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
114049         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
114050         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
114052 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114054         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
114056 2006-09-07  Jim Meyering  <jim@meyering.net>
114058         Fix global typo in last change: use chmod u-w, not chmod u-x.
114059         Spotted by Paul Eggert and Bruce Korb.
114060         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114061         * modules/byteswap, modules/configmake, modules/fcntl:
114062         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114063         * modules/localcharset, modules/netinet_in, modules/poll:
114064         * modules/stdbool, modules/stdint, modules/sys_select:
114065         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114067 2006-09-06  Jim Meyering  <jim@meyering.net>
114069         Make generated files be read-only.
114070         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
114071         Ensure that each generated file is now read-only.
114072         * modules/argz: Likewise.
114073         * modules/arpa_inet: Likewise.
114074         * modules/byteswap: Likewise.
114075         * modules/configmake: Likewise.
114076         * modules/fcntl: Likewise.
114077         * modules/fnmatch: Likewise.
114078         * modules/getopt: Likewise.
114079         * modules/glob: Likewise.
114080         * modules/inttypes: Likewise.
114081         * modules/netinet_in: Likewise.
114082         * modules/poll: Likewise.
114083         * modules/stdbool: Likewise.
114084         * modules/stdint: Likewise.
114085         * modules/sys_select: Likewise.
114086         * modules/sys_socket: Likewise.
114087         * modules/sys_stat: Likewise.
114088         * modules/sysexits: Likewise.
114089         * modules/localcharset: Same as above, but continue using temporary
114090         file named "t-$@" (why different?) rather than the "$@-t" used
114091         everywhere else.
114093         * modules/sysexits (Makefile.am): Replace literal occurrences
114094         of "sysexit.h" more readable, and more consistent, "$@".
114096 2006-09-06  Bruno Haible  <bruno@clisp.org>
114098         * modules/striconv: New file.
114099         * modules/xstriconv: New file.
114100         * MODULES.html.sh (Internationalization functions): Add striconv,
114101         xstriconv.
114103 2006-09-06  Bruno Haible  <bruno@clisp.org>
114105         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
114106         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
114107         not using libtool correctly.
114109 2006-09-06  Bruno Haible  <bruno@clisp.org>
114111         * lib/striconv.h: New file.
114112         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
114113         iconvstring.c.
114114         * lib/xstriconv.h: New file.
114115         * lib/xstriconv.c: New file.
114117 2006-09-06  Bruno Haible  <bruno@clisp.org>
114119         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
114120         lib_..._LDFLAGS.
114122 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114124         * lib/argz_.h: Sync from Libtool.
114126         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
114127                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114129         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
114131 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114133         * modules/trim: New file.
114135 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114137         * lib/trim.h: New file.
114138         * lib/trim.c: New file.
114140 2006-09-05  Bruno Haible  <bruno@clisp.org>
114142         * MODULES.html.sh (String handling): Add trim.
114144 2006-09-04  Karl Berry  <karl@gnu.org>
114146         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
114147         until next release.
114149 2006-09-03  Bruno Haible  <bruno@clisp.org>
114151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
114152         correctly.
114154 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114156         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
114157         not gl_GETLOADAVG.  Omit unneeded semicolons.
114158         Problems reported by Ralf Wildenhues in
114159         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114160         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
114161         at the end, which is the usual gnulib style.
114163         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
114164         of doing all the work ourselves.
114165         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
114166         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
114168 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114170         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
114171         Problem reported by Ralf Wildenhues in
114172         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114174         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
114175         HAVE_STRUCT_STATFS_F_FSTYPENAME.
114177 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114179         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
114180         yesterday's patch by changing test -n to test -z.
114182 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114184         * modules/getloadavg (Files): Add m4/getloadavg.m4.
114185         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
114186         the former is now obsolescent.
114188         * modules/chdir-long (Depends-on): Add fcntl.
114190 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114192         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
114193         obsolescent, and programs should use gnulib instead.
114194         * m4/getloadavg.m4: New file, with contents taken from Autoconf
114195         but with prefixes changed.
114197 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114199         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
114200         or stdbool.h, because they might not exist while configuring.
114202         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
114203         Don't include unistd.h or limits.h; not needed, since chdir-long.h
114204         does that for us.
114205         (O_DIRECTORY): Remove.
114207 2006-08-31  Eric Blake  <ebb9@byu.net>
114209         * gnulib-tool: Don't let emacs change spaces to TAB.
114211 2006-08-31  Bruno Haible  <bruno@clisp.org>
114213         * gnulib-tool: When calling func_import more than once, do it in a
114214         subshell.
114215         Reported by Eric Blake <ebb9@byu.net>.
114217 2006-08-31  Bruno Haible  <bruno@clisp.org>
114219         * gnulib-tool (nl): Remove variable.
114220         (sed_transform_lib_file): Use more robust test for config-h module.
114221         (func_import): Fix typo in 2006-08-25 patch.
114223 2006-08-31  Bruno Haible  <bruno@clisp.org>
114225         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
114226         specified, augment Makefile.am variables instead of assigning them.
114228 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114230         Work around a bug in both the Linux and SunOS 64-bit kernels:
114231         nanosleep mishandles sleeps for longer than 2**31 seconds.
114232         Problem reported by Frank v Waveren in
114233         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
114235         Check for nanosleep bug.
114236         (LIB_NANOSLEEP): Append clock_gettime library if needed.
114238 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114240         Work around a bug in both the Linux and SunOS 64-bit kernels:
114241         nanosleep mishandles sleeps for longer than 2**31 seconds.
114242         Problem reported by Frank v Waveren in
114243         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114244         * lib/nanosleep.c (BILLION): New constant.
114245         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
114246         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
114247         implementation.
114249 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114251         * modules/nanosleep (Depends-on): Add gettime.
114253 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114254         and Simon Josefsson  <jas@extundo.com>
114255         and Oskar Liljeblad  <oskar@osk.mine.nu>
114257         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
114258         * gnulib-tool (func_import): New license type 'unmodifiable license
114259         text'.
114260         * modules/fdl: Use it.  Longer description.
114261         * module/gpl, module/lgpl: New files.
114263 2006-08-30  Jim Meyering  <jim@meyering.net>
114265         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
114266         shadowing the parameter.
114268 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114270         Sync from Libtool:
114272         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114274         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
114275         sharing with gnulib.  Report by Eric Blake.
114277 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114279         * modules/isapipe: New file.
114280         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
114282 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114284         * modules/configmake (Makefile.am): Add a comment, and omit
114285         the CONFIGMAKE_ prefix from generated macro names.  Suggested
114286         by Bruno Haible.
114288 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114290         * m4/isapipe.m4: New file.
114292 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114294         * lib/isapipe.c, lib/isapipe.h: New files.
114296 2006-08-29  Jim Meyering  <jim@meyering.net>
114298         * modules/configmake (Makefile.am): Make configmake.h depend on
114299         Makefile.  Otherwise, a stale configmake.h could hang around.
114301 2006-08-29  Eric Blake  <ebb9@byu.net>
114303         * lib/error.c (error_at_line, print_errno_message): Match libc, after
114304         resolution of upstream bug 3044.
114306 2006-08-29  Bruno Haible  <bruno@clisp.org>
114308         * modules/localcharset (Depends-on): Add configmake.
114309         (Makefile.am): Remove setting of LIBDIR through DEFS.
114311 2006-08-29  Bruno Haible  <bruno@clisp.org>
114313         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
114314         defined.
114316 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114318         * modules/fcntl: New file.
114319         * modules/chdir-safer (Depends-on): Add fcntl.
114320         * modules/fts: Likewise.
114321         * modules/mkdir-p: Likewise.
114323         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
114324         This undoes the most recent change, since we're now addressing the
114325         problem in a different way.
114327         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114328         into output, since the output might be called Makefile.am even
114329         if $makefile_name is something different.
114330         (func_import): Use $makefile_am rather than
114331         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114332         empty.
114334         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114336 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114338         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114339         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114340         recent change to stdint.m4, since we're now addressing the problem in a
114341         different way.
114343 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114345         * m4/fcntl_h.m4: New file.
114347 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114349         * lib/fcntl_.h: New file.
114350         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114351         the fcntl module.
114352         * lib/dirchownmod.c: Likewise.
114353         * lib/fts.c: Likewise.
114355         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114356         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114357         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114358         just before including <inttypes.h>, to avoid circular inclusion.
114360 2006-08-28  Jim Meyering  <jim@meyering.net>
114362         * doc/visibility.texi: Actually read and correct the grammar of the
114363         sentence affected by yesterday's change.
114365 2006-08-28  Eric Blake  <ebb9@byu.net>
114367         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114368         needs wrapper.
114370 2006-08-28  Eric Blake  <ebb9@byu.net>
114372         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114374 2006-08-28  Eric Blake  <ebb9@byu.net>
114376         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114378 2006-08-28  Bruno Haible  <bruno@clisp.org>
114380         * modules/c-strstr: New file, from GNU gettext.
114381         * MODULES.html.sh (String handling): Add c-strstr.
114383 2006-08-28  Bruno Haible  <bruno@clisp.org>
114385         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114386         macros.
114387         Reported by Eric Blake.
114389 2006-08-28  Bruno Haible  <bruno@clisp.org>
114391         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114392         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114393         * lib/vasprintf.c: Include errno.h, limits.h.
114394         (EOVERFLOW): New fallback definition.
114395         (vasprintf): Test here whether the string length is > INT_MAX.
114396         * lib/vsnprintf.c: Include errno.h, limits.h.
114397         (EOVERFLOW): New fallback definition.
114398         (vsnprintf): Fix bug when generated string was too long for the buffer.
114399         Test here whether the string length is > INT_MAX.
114401 2006-08-28  Bruno Haible  <bruno@clisp.org>
114403         * lib/inttypes_.h (SCNX*): Remove definitions.
114404         Reported by Eric Blake.
114406 2006-08-28  Bruno Haible  <bruno@clisp.org>
114408         * lib/c-strstr.h: New file, from GNU gettext.
114409         * lib/c-strstr.c: New file, from GNU gettext.
114411 2006-08-28  Bruno Haible  <bruno@clisp.org>
114413         * gnulib-tool: Reorder some statements.
114415 2006-08-28  Bruno Haible  <bruno@clisp.org>
114417         * gnulib-tool: New option --makefile-name.
114418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114419         $makefile_name.
114420         (func_import): Write $makefile_name to the cache file, and read it from
114421         there unless explicitly specified. Use $makefile_name as file name
114422         instead of Makefile.am. Adjust the recommendations accordingly.
114424 2006-08-28  Bruno Haible  <bruno@clisp.org>
114426         * gnulib-tool (func_verify_module): Check against misapplying patch.
114428 2006-08-28  Bruno Haible  <bruno@clisp.org>
114430         * gnulib-tool (func_relativize, func_relconcat): New functions.
114431         Give an error if --local-dir is given with --update.
114432         Remove trailing slashes from $local_gnulib_dir.
114433         (func_import): Store the relativized $local_gnulib_dir in
114434         gnulib-cache.m4, and read it from there if not specified explicitly.
114436 2006-08-28  Bruno Haible  <bruno@clisp.org>
114438         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114439         is the current directory. Respect also $local_gnulib_dir.
114441 2006-08-28  Bruno Haible  <bruno@clisp.org>
114442             Simon Josefsson  <jas@extundo.com>
114444         BeOS portability.
114445         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114447 2006-08-27  Jim Meyering  <jim@meyering.net>
114449         * doc/visibility.texi: Remove duplicate word: "pointer".
114451 2006-08-26  Bruno Haible  <bruno@clisp.org>
114453         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114454         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114455         (Makefile.am): Create inttypes.h from inttypes_.h.
114456         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114458         * modules/imaxabs: New file.
114460         * modules/imaxdiv: New file.
114462 2006-08-26  Bruno Haible  <bruno@clisp.org>
114464         * m4/inttypes.m4: New file.
114465         * m4/_inttypes_h.m4: Remove file.
114466         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114467         PRI_MACROS_BROKEN.
114468         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114470         * m4/imaxabs.m4: New file.
114472         * m4/imaxdiv.m4: New file.
114474 2006-08-26  Bruno Haible  <bruno@clisp.org>
114476         * lib/inttypes_.h: New file.
114477         * lib/inttypes.h: Remove file.
114478         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114480         * lib/imaxabs.c: New file.
114482         * lib/imaxdiv.c: New file.
114484 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114486         New config-h module, so that "make" output needn't be cluttered
114487         by -DHAVE_CONFIG_H.
114488         * MODULES.html.sh (Support for building libraries and executables):
114489         Add config-h.
114490         * modules/config-h: New file.
114491         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114492         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114493         the config-h module is used.
114495         New configmake module, so that "make" output needn't be cluttered
114496         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114497         * MODULES.html.sh (Support for building libraries and executables):
114498         Add configmake.
114499         * modules/configmake: New file.
114501 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114503         * m4/config-h.m4: New file.
114505 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114507         * config/srclist.txt: Add elisp-comp.
114509 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114511         * MODULES.html.sh (Support for building libraries and executables):
114512         Add elisp-comp.
114513         * build-aux/elisp-comp: New file.
114514         * modules/elisp-comp: New file.
114516 2006-08-24  Bruno Haible  <bruno@clisp.org>
114518         * gnulib-tool (func_create_testdir): Use non-default values of
114519         sourcebase and m4base.
114521 2006-08-24  Bruno Haible  <bruno@clisp.org>
114523         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114524         HTML structure.
114526 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114528         * modules/openat (Depends-on): Add lchown.
114530 2006-08-23  Bruno Haible  <bruno@clisp.org>
114532         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114533         of gl_LOCK_EARLY instead of gl_LOCK.
114535 2006-08-23  Bruno Haible  <bruno@clisp.org>
114537         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114538         on OSF/1 to no.
114539         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114541 2006-08-23  Bruno Haible  <bruno@clisp.org>
114543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114544         as unusable.
114546         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114547         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114548         (gl_LOCK): New macro.
114550 2006-08-22  Simon Josefsson  <jas@extundo.com>
114552         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114553         to md5 module.
114555 2006-08-22  Simon Josefsson  <jas@extundo.com>
114557         * MODULES.html.sh: Add "Support for maintaining and release
114558         projects".
114560         * build-aux/gnupload: New file, from coreutils.
114562 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114564         Avoid the need for AC_LIBSOURCES in m4 macros.
114565         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114566         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114567         * modules/check-version (EXTRA_DIST): Add check-version.h.
114568         * modules/crc (EXTRA_DIST): Add crc.h.
114569         * modules/des (EXTRA_DIST): Add des.h.
114570         * modules/gc (EXTRA_DIST): Add gc.h.
114571         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114572         * modules/getline (EXTRA_DIST): Add getline.h.
114573         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114574         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114575         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114576         * modules/md2 (EXTRA_DIST): Add md2.h.
114577         * modules/md4 (EXTRA_DIST): Add md4.h.
114578         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114579         * modules/read-file (EXTRA_DIST): Add read-file.h.
114580         * modules/readline (EXTRA_DIST): Add readline.h.
114581         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114582         rijndael-api-fst.h.
114584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114586         * m4/rijndael.m4 (gl_ARCFOUR):
114587         * m4/arctwo.m4 (gl_ARCTWO):
114588         * m4/check-version.m4 (gl_CHECK_VERSION):
114589         * m4/crc.m4 (gl_CRC):
114590         * m4/des.m4 (gl_DES):
114591         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114592         * m4/gc.m4 (gl_GC):
114593         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114594         * m4/getline.m4 (gl_FUNC_GETLINE):
114595         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114596         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114597         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114598         * m4/md2.m4 (gl_MD2):
114599         * m4/md4.m4 (gl_MD4):
114600         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114601         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114602         * m4/readline.m4 (gl_FUNC_READLINE):
114603         * m4/rijndael.m4 (gl_RIJNDAEL):
114604         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114605         to get the necessary .h files and whatnot.
114607 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114609         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114610         gnulib rather than the other way around.
114611         * config/srclistvars.sh (COREUTILS): Remove.
114613 2006-08-22  Jim Meyering  <jim@meyering.net>
114615         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114617         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114619 2006-08-22  Eric Blake  <ebb9@byu.net>
114621         * modules/regexprops-generic: New file.
114622         * MODULES.html.sh (Support for building documentation): List it.
114624 2006-08-22  Eric Blake  <ebb9@byu.net>
114626         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114627         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114628         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114629         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114631 2006-08-22  Bruno Haible  <bruno@clisp.org>
114633         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114634         and lib_LTLIBRARIES like the other lib_* variables.
114636 2006-08-22  Bruno Haible  <bruno@clisp.org>
114638         * build-aux/x-to-1.in: New file, from GNU gettext.
114640 2006-08-22  Bruno Haible  <bruno@clisp.org>
114642         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114643         <utmpx.h> exists.
114645 2006-08-22  Bruno Haible  <bruno@clisp.org>
114647         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114648         <utmpx.h> exists.
114650 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114652         BeOS portability.
114653         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114654         exist.
114655         Problem reported by Bruno Haible.
114657 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114659         Avoid the need for AC_LIBSOURCES in m4 macros.
114660         * modules/acl (EXTRA_DIST): Add acl.h.
114661         * modules/argmatch (Files): Add m4/argmatch.m4.
114662         (configure.ac): Add gl_ARGMATCH.
114663         (EXTRA_DIST): Renamed from lib_SOURCES, for
114664         consistency with the other modules.  Remove argmatch.c.
114665         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114666         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114667         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114668         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114669         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114670         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114671         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114672         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114673         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114674         * modules/closeout (EXTRA_DIST): Add closeout.h.
114675         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114676         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114677         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114678         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114679         dirname.h; remove basename.c and stripslash.c.
114680         * modules/exclude (EXTRA_DIST): Add exclude.h.
114681         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114682         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114683         * modules/file-type (EXTRA_DIST): Add file-type.h.
114684         * modules/filemode (EXTRA_DIST): Add filemode.h.
114685         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114686         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114687         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114688         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114689         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114690         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114691         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114692         * modules/getdate (EXTRA_DIST): Add getdate.c.
114693         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114694         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114695         * modules/getpass (EXTRA_DIST): Add getpass.h.
114696         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114697         * modules/group-member (EXTRA_DIST): Add group-member.h.
114698         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114699         * modules/hash (EXTRA_DIST): Add hash.h.
114700         * modules/human (EXTRA_DIST): Add human.h.
114701         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114702         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114703         * modules/lchown (EXTRA_DIST): Add lchown.h.
114704         * modules/long-options (EXTRA_DIST): Add long-options.h.
114705         * modules/lstat (EXTRA_DIST): Add lstat.h.
114706         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114707         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114708         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114709         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114710         * modules/memxor (EXTRA_DIST): Add memxor.h.
114711         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114712         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114713         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114714         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114715         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114716         * modules/physmem (EXTRA_DIST): Add physmem.h.
114717         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114718         * modules/posixver (EXTRA_DIST): Add posixver.h.
114719         * modules/quote (EXTRA_DIST): Add quote.h.
114720         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114721         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114722         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114723         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114724         regex_internal.h regexec.c.
114725         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114726         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114727         * modules/same (EXTRA_DIST): Add same.h.
114728         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114729         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114730         * modules/savedir (EXTRA_DIST): Add savedir.h.
114731         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114732         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114733         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114734         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114735         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114736         * modules/strdup (EXTRA_DIST): Add strdup.h.
114737         * modules/strftime (EXTRA_DIST): Add strftime.h.
114738         * modules/strndup (EXTRA_DIST): Add strndup.h.
114739         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114740         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114741         * modules/time_r (EXTRA_DIST): Add time_r.h.
114742         * modules/timespec (EXTRA_DIST): Add timespec.h.
114743         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114744         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114745         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114746         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114747         * modules/userspec (EXTRA_DIST): Add userspec.h.
114748         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114749         * modules/utimens (EXTRA_DIST): Add utimens.h.
114750         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114751         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114752         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114753         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114754         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114755         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114756         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114757         * modules/yesno (EXTRA_DIST): Add yesno.h.
114759 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114761         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114763         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114764         * m4/dev-ino.m4, same-inode.m4: Remove.
114766         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114767         * m4/acl.m4 (AC_FUNC_ACL):
114768         * m4/backupfile.m4 (gl_BACKUPFILE):
114769         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114770         * m4/canon-host.m4 (gl_CANON_HOST):
114771         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114772         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114773         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114774         * m4/cloexec.m4 (gl_CLOEXEC):
114775         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114776         * m4/closeout.m4 (gl_CLOSEOUT):
114777         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114778         * m4/dirname.m4 (gl_DIRNAME):
114779         * m4/exclude.m4 (gl_EXCLUDE):
114780         * m4/exitfail.m4 (gl_EXITFAIL):
114781         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114782         * m4/file-type.m4 (gl_FILE_TYPE):
114783         * m4/filemode.m4 (gl_FILEMODE):
114784         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114785         * m4/fpending.m4 (gl_FUNC_FPENDING):
114786         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114787         * m4/fts.m4 (gl_FUNC_FTS):
114788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114789         * m4/getdate.m4 (gl_GETDATE):
114790         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114791         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114792         * m4/getpass.m4 (gl_FUNC_GETPASS):
114793         * m4/gettime.m4 (gl_GETTIME):
114794         * m4/getugroups.m4 (gl_GETUGROUPS):
114795         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114796         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114797         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114798         * m4/hash.m4 (gl_HASH):
114799         * m4/idcache.m4 (gl_IDCACHE):
114800         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114801         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114802         * m4/long-options.m4 (gl_LONG_OPTIONS):
114803         * m4/lstat.m4 (gl_FUNC_LSTAT):
114804         * m4/md5.m4 (gl_MD5):
114805         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114806         * m4/memcoll.m4 (gl_MEMCOLL):
114807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114809         * m4/memxor.m4 (gl_MEMXOR):
114810         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114811         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114812         * m4/modechange.m4 (gl_MODECHANGE):
114813         * m4/mountlist.m4 (gl_MOUNTLIST):
114814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114815         * m4/openat.m4 (gl_FUNC_OPENAT):
114816         * m4/pathmax.m4 (gl_PATHMAX):
114817         * m4/physmem.m4 (gl_PHYSMEM):
114818         * m4/posixtm.m4 (gl_POSIXTM):
114819         * m4/posixver.m4 (gl_POSIXVER):
114820         * m4/quote.m4 (gl_QUOTE):
114821         * m4/quotearg.m4 (gl_QUOTEARG):
114822         * m4/readtokens.m4 (gl_READTOKENS):
114823         * m4/readutmp.m4 (gl_READUTMP):
114824         * m4/regex.m4 (gl_REGEX):
114825         * m4/safe-read.m4 (gl_SAFE_READ):
114826         * m4/safe-write.m4 (gl_SAFE_WRITE):
114827         * m4/same.m4 (gl_SAME):
114828         * m4/save-cwd.m4 (gl_SAVE_CWD):
114829         * m4/savedir.m4 (gl_SAVEDIR):
114830         * m4/settime.m4 (gl_SETTIME):
114831         * m4/sha1.m4 (gl_SHA1):
114832         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114833         * m4/stat-macros.m4 (gl_STAT_MACROS):
114834         * m4/stat-time.m4 (gl_STAT_TIME):
114835         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114836         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114837         * m4/strdup.m4 (gl_FUNC_STRDUP):
114838         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114839         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114840         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114842         * m4/time_r.m4 (gl_TIME_R):
114843         * m4/timespec.m4 (gl_TIMESPEC):
114844         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114845         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114846         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114847         * m4/userspec.m4 (gl_USERSPEC):
114848         * m4/utimecmp.m4 (gl_UTIMECMP):
114849         * m4/utimens.m4 (gl_UTIMENS):
114850         * m4/xalloc.m4 (gl_XALLOC):
114851         * m4/xgetcwd.m4 (gl_XGETCWD):
114852         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114853         * m4/xreadlink.m4 (gl_XREADLINK):
114854         * m4/xstrtod.m4 (gl_XSTRTOD):
114855         * m4/yesno.m4 (gl_YESNO):
114856         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114857         to get the necessary .h files and whatnot.
114859 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114860             Bruno Haible  <bruno@clisp.org>
114862         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114863         /bin/sh understanding of '!' conditional negation.
114865 2006-08-21  Jim Meyering  <jim@meyering.net>
114867         * modules/openat (Depends-on): Really alphabetize.
114869         * modules/acl (Depends-on): Add error and quote.
114871         * check-module (find_included_lib_files): Add at-func.c to the
114872         ok-to-include-more-than-once white list.
114874         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114876 2006-08-21  Bruno Haible  <bruno@clisp.org>
114878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114879         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114880         Reported by Martin Lambers <marlam@marlam.de>.
114882 2006-08-21  Bruno Haible  <bruno@clisp.org>
114884         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114885         specify an installation location, don't emit a noinst_LIBRARIES or
114886         noinst_LTLIBRARIES assignment.
114888 2006-08-21  Bruno Haible  <bruno@clisp.org>
114890         BeOS portability.
114891         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114892         BeOS has mbrtowc() but no <wctype.h>.
114894 2006-08-21  Bruno Haible  <bruno@clisp.org>
114896         BeOS portability.
114897         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114898         exist.
114900 2006-08-21  Bruno Haible  <bruno@clisp.org>
114902         BeOS portability.
114903         * lib/mbchar.h: Include <wctype.h> only if it exists.
114905 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114907         Remove files that are no longer needed by their respective modules.
114908         * m4/obstack.m4: Remove.
114909         * m4/strerror_r.m4: Remove.
114910         * m4/uint32_t.m4: Remove.
114911         * m4/uintptr_t.m4: Remove.
114912         * m4/ullong_max.m4: Remove.
114913         * m4/xstrtoimax.m4: Remove.
114914         * m4/xstrtoumax.m4: Remove.
114916         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114917         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114918         dependencies now capture this.
114920         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114921         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114922         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114923         * m4/human.m4 (gl_HUMAN): Likewise.
114924         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114925         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114927         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114929         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114930         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114931         stdint.
114932         * m4/human.m4 (gl_HUMAN): Likewise.
114933         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114934         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114935         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114936         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114937         * m4/xstrtol (gl_XSTRTOL): Likewise.
114939         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114940         AC_TYPE_LONG_LONG_INT.
114941         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114942         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114943         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114944         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114946         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114947         on stdbool.
114949         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114950         (gl_PREREQ_XSTRTOUL): Remove.
114952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114954         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114955         mode.
114957 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114959         Add and change modules to make it easier for coreutils to use
114960         gnulib-tool.
114961         * modules/backupfile (Files): Remove m4/d-ino.m4.
114962         (Depends-on): Add d-ino.
114963         * modules/cycle-check (Depends-on): Add stdint.
114964         (lib_SOURCES): Add cycle-check.h.
114965         * modules/d-ino: New module.
114966         * modules/d-type: New module.
114967         * modules/error (Files): Remove m4/strerror_r.m4.
114968         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114969         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114970         m4/inttypes_h.m4, m4/uintmax_t.m4.
114971         (Depends-on): Add stdint.
114972         (lib_SOURCES): Add fsusage.h.
114973         * modules/getcwd (Files): Remove d-ino.m4.
114974         (Depends-on): Add d-ino.
114975         * modules/getndelim2 (Depends-on): Add stdint.
114976         * modules/glob (Files): Remove m4/d-type.m4.
114977         (Depends-on): Add d-type.
114978         * modules/host-os: New module.
114979         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114980         m4/inttypes_h.m4, m4/uintmax_t.m4.
114981         * Depends-on: Add stdint.
114982         (lib_SOURCES): Add human.h.
114983         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114984         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114985         m4/uintmax_t.m4, m4/ulonglong.m4.
114986         (Depends-on): Add stdint.
114987         (EXTRA_DIST): Add inttostr.h.
114988         * modules/lchmod: New module.
114989         * modules/link-follow: New module.
114990         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114991         (Depends-on): Add lchmod.
114992         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114993         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114994         (Depends-on): Add stdint.
114995         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114996         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114997         (Depends-on): Add stdint.
114998         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114999         * modules/perl: New module.
115000         * modules/regex (Depends-on): Add stdint.
115001         * modules/rmdir-errno: New module.
115002         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115003         m4/intmax_t.m4.
115004         (Depends-on): Add stdint.
115005         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115006         m4/uintmax_t.m4.
115007         (Depends-on): Add stdint.
115008         * modules/unlink-busy: New module.
115009         * modules/utimecmp (Depends-on): Add stdint.
115010         * modules/uptime: New module.
115011         * modules/winsz-ioctl: New module.
115012         * modules/winsz-termios: New module.
115013         * modules/xnanosleep (Depends-on): Add nanosleep.
115014         * modules/ullong_max: Remove.
115015         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
115016         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
115017         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
115018         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
115019         (Depends-on): Add inttypes.
115020         (lib_SOURCES): Add xstrtol.h.
115021         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
115022         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
115023         * MODULES.html.sh: Move 'assert' into the assert section.
115024         Move 'dummy' into the linking section.
115025         Remove ullong_max.
115026         Add section for compatibility checks for POSIX:2001 functions,
115027         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
115028         winsz-ioctl, and winsz-termios into it.
115029         Add lchmod.
115030         Add top-level Misc section and put host-os, perl, and uptime
115031         into it.
115033 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115035         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
115036         now assume the stdint module.  Do not include inttypes.h.
115037         * lib/fsusage.h: Likewise.
115038         * lib/getndelim2.c: Likewise.
115039         * lib/human.h: Likewise.
115040         * lib/inttostr.h: Likewise.
115041         * lib/obstack.c: Likewise.
115042         * lib/regex_internal.h: Likewise.
115043         * lib/tempname.c: Likewise.
115044         * lib/utimecmp.c: Likewise.
115045         * lib/xstrtol.h: Likewise.
115047         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
115049         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
115050         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
115051         * lib/xtime.h: Likewise.
115053 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115055         * modules/openat (Files): Add lib/fchmodat.c.
115056         Fixes problem reported by Jay Youngman.
115058 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115060         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
115061         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
115063 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
115064             Bruno Haible  <bruno@clisp.org>
115066         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
115067         and is a script that invokes bison. Tighten the code. Add comments.
115069 2006-08-18  Jim Meyering  <jim@meyering.net>
115071         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
115072         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
115073         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
115074         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
115076 2006-08-18  Bruno Haible  <bruno@clisp.org>
115078         * modules/bison-i18n: New file.
115079         * MODULES.html.sh (Internationalization functions): Add it.
115081 2006-08-18  Bruno Haible  <bruno@clisp.org>
115083         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
115084         sys/statvfs.h. When getmntinfo was found, check its declaration and
115085         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
115087 2006-08-18  Bruno Haible  <bruno@clisp.org>
115089         * m4/bison-i18n.m4: New file, from bison.
115091 2006-08-18  Bruno Haible  <bruno@clisp.org>
115093         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
115094         (ME_DUMMY): Treat "kernfs" as a dummy.
115095         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
115097 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115099         Update from coreutils.
115101         2006-08-15  Jim Meyering  <jim@meyering.net>
115103         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
115105         2006-01-17  Jim Meyering  <jim@meyering.net>
115107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
115109         2006-01-11  Jim Meyering  <jim@meyering.net>
115111         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
115112         Check for the lchmod function.
115114 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115116         Update from coreutils.
115118         * lib/__fpending.h: Add copyright notice.
115119         * lib/fprintftime.h: Likewise.
115120         * lib/savedir.c: Use (C) in copyright notice.
115121         * lib/savedir.h: Likewise.
115123         2006-08-15  Jim Meyering  <jim@meyering.net>
115125         * lib/at-func.c: New file, with the logic of all emulated at-functions.
115126         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
115127         in support of the EXPECTED_ERRNO macro.
115128         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
115129         definitions.  Instead, define the appropriate symbols and include
115130         "at-func.c".
115131         * lib/mkdirat.c (mkdirat): Likewise.
115132         * lib/fchmodat.c (fchmodat): Likewise.
115133         (ENOSYS): Remove definition.
115134         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
115135         it.  Don't include "unistd--.h" -- it wasn't ever used.
115137         2006-01-17  Jim Meyering  <jim@meyering.net>
115139         Rewrite fts.c not to change the current working directory,
115140         by using openat, fstatat, fdopendir, etc..
115142         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
115143         (HAVE_OPENAT_SUPPORT): Define.
115144         [_LIBC] (fchdir): Don't undef or define; no longer used.
115145         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
115146         Now, this `function' always succeeds, and consumes its file descriptor
115147         parameter -- so callers must not close such FDs.  Update callers.
115148         (diropen_fd, opendirat, cwd_advance_fd): New functions.
115149         (diropen): Add parameter, SP.  Adjust all callers.
115150         Implement using diropen_fd, rather than open.
115151         (fts_open): Initialize new member, fts_cwd_fd.
115152         Remove fts_rft-setting code.
115153         (fts_close): Close fts_cwd_fd, if necessary.
115154         (__opendir2): Define in terms of opendir or opendirat,
115155         depending on whether the FST_NOCHDIR flag is set.
115156         (fts_build): Since fts_safe_changedir consumes its FD, and since
115157         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
115158         and close the dup'd file descriptor upon failure.
115159         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
115160         (fts_safe_changedir): Tweak semantics to reflect that this function
115161         now calls cwd_advance_fd and hence consumes its FD argument.
115162         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
115163         [struct FTS] (fts_rft): Remove now-unused member.
115164         [struct FTS] (fts_cycle.state): Improve comment.
115166         * lib/openat.c (openat_needs_fchdir): New function.
115167         * lib/openat.h (openat_needs_fchdir): Declare it.
115169 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115171         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
115172         Problem and fix reported by Pádraig Brady in
115173         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
115175 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115177         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
115179 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115181         * lib/memcoll.c (memcoll): Optimize for the common case where the
115182         arguments are bytewise equal.
115184 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115186         * doc/regexprops-generic.texi: Add a copyright notice.
115188 2006-08-15  Bruno Haible  <bruno@clisp.org>
115190         * modules/tmpdir (License): Change to LGPL.
115192 2006-08-15  Bruno Haible  <bruno@clisp.org>
115194         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
115195         module.
115197 2006-08-14  Simon Josefsson  <jas@extundo.com>
115199         * config/srclist.txt: Add gnupload.
115201 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115203         Change copyright notice from LGPL 2 to GPL 2, since that's the
115204         standard form used in the gnulib repository.
115205         * tests/test-lock.c: Likewise.
115206         * tests/test-stdint.c: Likewise.
115207         * tests/test-tls.c: Likewise.
115209         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
115210         prelude-manager.  User shorter URLs for GNU projects, without '?'.
115211         Add copyright notice.
115213         * check-module: Add copyright notice.  Output a copyright
115214         notice if "--version" is specified.
115215         * modules/COPYING: New file.
115216         * tests/test-getaddrinfo.c: Add copyright notice.
115217         * tests/test-verify.c: Likewise.
115219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115221         Change copyright notice from LGPL 2 to GPL 2, since that's the
115222         standard form used in the gnulib repository.
115223         * lib/lock.c: LGPL -> GPL.
115224         * lib/lock.h: Likewise.
115225         * lib/strnlen1.c: Likewise.
115226         * lib/strnlen1.h: Likewise.
115227         * lib/tls.c: Likewise.
115228         * lib/tls.h: Likewise.
115229         * lib/tmpdir.c: Likewise.
115231         * lib/TODO: Remove; this belongs only in coreutils.
115233 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115235         Add copyright notices to long-enough files that lack them, since
115236         otherwise the files aren't clearly free.  Use the same notice that
115237         getdate.texi already uses.
115238         * doc/alloca-opt.texi: Add copyright notice.
115239         * doc/alloca.texi: Likewise.
115240         * doc/ctime.texi: Likewise.
115241         * doc/functions.texi: Likewise.
115242         * doc/gcd.texi: Likewise.
115243         * doc/gnulib-tool.texi: Likewise.
115244         * doc/inet_ntoa.texi: Likewise.
115245         * doc/visibility.texi: Likewise.
115247         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
115248         * doc/quote.texi: Add copyright notice.
115250         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
115251         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
115252         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
115253         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
115254         is now obsolete, and give a pointer to the Sun list.
115255         Add copyright notice.
115257 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115259         * config/srclistvars.sh: Add copyright notice.
115261 2006-08-14  Eric Blake  <ebb9@byu.net>
115263         Import the following change from libc:
115265         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
115267         Upstream bug 2997.
115268         * lib/misc/error.c: Add space between program name and message if file
115269         name is missing.
115271 2006-08-12  Karl Berry  <karl@gnu.org>
115273         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
115274         remove, these originate in gnulib now.
115276 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115278         * doc/Makefile (standards.info standards.html standards.dvi):
115279         Also depend on make-stds.texi.
115281 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
115283         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
115284         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
115286         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
115287         in wchar_t.  Problem reported by Eric Blake.
115289         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
115290         LEN is smaller than SIZE.  Suggested by Bruno Haible.
115291         Also, help the compiler to keep LEN in a register.
115293 2006-08-11  Eric Blake  <ebb9@byu.net>
115295         * users.txt: Sort.  Add tar.
115297 2006-08-11  Bruno Haible  <bruno@clisp.org>
115299         * users.txt: New file.
115301 2006-08-11  Bruno Haible  <bruno@clisp.org>
115303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
115304         before <wchar.h>. Needed for OSF/1 and BSD/OS.
115306 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115308         * modules/snprintf (Depends-on): Remove minmax.
115309         (Maintainer): Add self and Bruno.
115311 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115313         * lib/.cppi-disable: Add snprintf.h, socket_.h.
115314         * lib/snprintf.c: Include <errno.h> and <limits.h>.
115315         (EOVERFLOW): Define if the system does not.
115316         Do not include "minmax.h"; it wasn't used.
115317         (snprintf): Don't assume size_t promotes to an unsigned type.
115318         Fix bug when generated string was too long for the buffer: the
115319         buffer's contents are supposed to be the initial prefix of the
115320         output.  Don't assume vasnprintf returns EOVERFLOW if the size
115321         exceeds INT_MAX; do the check ourselves.
115323         Import the following changes from libc:
115325         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115327         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115328         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115329         set wc to the byte which couldn't be converted.
115330         (re_string_reconstruct): Don't clear valid_raw_len before calling
115331         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115332         tip_context using re_string_context_at.
115334         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115336         * lib/posix/regex.h: g++ still cannot handled [restrict].
115338         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115340         * lib/posix/regex.h: Remove special handling for VMS.
115342 2006-08-10  Jim Meyering  <jim@meyering.net>
115344         * modules/same-inode: New module.
115345         * modules/dev-ino: New module.
115346         * modules/cycle-check: Depend on these modules, rather than simply
115347         including their .h files.
115348         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115349         required via m4/cycle-check.m4.
115350         * modules/same: Depend on new same-inode module, rather than
115351         including same-inode.h.
115352         * modules/chdir-safer: New file.
115354         * modules/chown (Depends-on): Add stat-macros.
115356 2006-08-10  Jim Meyering  <jim@meyering.net>
115358         * m4/cycle-check.m4: New file.
115359         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115360         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115362 2006-08-10  Eric Blake  <ebb9@byu.net>
115364         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115365         in from original proposal.
115367 2006-08-10  Eric Blake  <ebb9@byu.net>
115368         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115370         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115371         namespace.
115373 2006-08-10  Bruno Haible  <bruno@clisp.org>
115375         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115376         as well.
115378 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115380         Sync from coreutils.
115382         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115384         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115385         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115387 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115389         * modules/restrict: Remove; no longer needed now that we assume
115390         Autoconf 2.59 or later.
115391         * MODULES.html.sh: Remove 'restrict'.
115392         * modules/argp (Depends-on): Remove 'restrict'.
115393         * modules/base64 (Depends-on): Likewise.
115394         * modules/gc (Depends-on): Likewise.
115395         * modules/getaddrinfo (Depends-on): Likewise.
115396         * modules/glob (Depends-on): Likewise.
115397         * modules/inet_ntop (Depends-on): Likewise.
115398         * modules/inet_pton (Depends-on): Likewise.
115399         * modules/memxor (Depends-on): Likewise.
115400         * modules/regex (Depends-on): Likewise.
115401         * modules/strtok_r (Depends-on): Likewise.
115402         * modules/time_r (Depends-on): Likewise.
115404 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115406         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115407         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115408         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115409         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115410         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115411         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115412         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115413         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115415         Merge from coreutils.
115416         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115417         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115419         * m4/time_r.m4 (gl_TIME_R): Likewise.
115421 2006-08-09  Karl Berry  <karl@gnu.org>
115423         * config/srclist.txt: no more gettext-tools, per Bruno.
115425 2006-08-08  Eric Blake  <ebb9@byu.net>
115427         * modules/verror: New module.
115428         * MODULES.html.sh: Document it.
115430 2006-08-08  Eric Blake  <ebb9@byu.net>
115432         * lib/verror.h, lib/verror.c: New files.
115434 2006-08-08  Eric Blake  <ebb9@byu.net>
115436         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115437         verror_at_line output complies with GNU Coding Standards even when
115438         file is NULL.
115440 2006-08-07  Bruno Haible  <bruno@clisp.org>
115442         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115443         versions of AIX.
115444         Reported by Ralf Wildenhues.
115446 2006-08-07  Bruno Haible  <bruno@clisp.org>
115448         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115449         in an AC_DEFUN. Needed so that the autoconf snippets can use
115450         AC_REQUIRE.
115452 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115455         Initialize pkgdata_DATA.
115456         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115457         overriding it.
115459 2006-08-06  Eric Blake  <ebb9@byu.net>
115461         * lib/error.h: Fold in some upstream changes from glibc.
115462         * lib/error.c: Likewise.
115464 2006-08-04  Bruno Haible  <bruno@clisp.org>
115466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115467         Make the mostlyclean-local rule depend on mostlyclean-generic.
115468         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115470 2006-07-31  Bruno Haible  <bruno@clisp.org>
115472         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115473         <stdlib.h>, <string.h>.
115475 2006-07-30  Bruno Haible  <bruno@clisp.org>
115477         * modules/readlink (License): Change to LGPL.
115479 2006-07-30  Bruno Haible  <bruno@clisp.org>
115481         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115482         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115483         set PKGDATADIR to point to it.
115485 2006-07-30  Bruno Haible  <bruno@clisp.org>
115487         * modules/csharpexec (configure.ac): Comment out macro invocation.
115488         * modules/javaexec (configure.ac): Likewise.
115489         * modules/javacomp-script (configure.ac): Likewise.
115491         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115493 2006-07-30  Bruno Haible  <bruno@clisp.org>
115495         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115496         linked-list.
115498 2006-07-30  Bruno Haible  <bruno@clisp.org>
115500         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115502 2006-07-30  Bruno Haible  <bruno@clisp.org>
115504         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115505         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115506         get removed.
115508 2006-07-29  Bruno Haible  <bruno@clisp.org>
115510         Make it possible for gnulib-tool to work with locally modified or
115511         augmented gnulib repositories.
115512         * gnulib-tool (func_usage): Document --local-dir option.
115513         (local_gnulib_dir): New variable.
115514         Handle --local-dir option.
115515         (func_lookup_file): New function.
115516         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115517         (func_get_description, func_get_filelist, func_get_description,
115518         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115519         func_get_automake_snippet, func_get_include_directive,
115520         func_get_license, func_get_maintainer): Use func_lookup_file.
115521         (func_import, func_create_testdir): Use func_lookup_file.
115523 2006-07-29  Bruno Haible  <bruno@clisp.org>
115525         * modules/setenv (Depends-on): Add unistd.
115527 2006-07-29  Bruno Haible  <bruno@clisp.org>
115529         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115531 2006-07-29  Bruno Haible  <bruno@clisp.org>
115533         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115535 2006-07-29  Bruno Haible  <bruno@clisp.org>
115537         * gnulib-tool (import, update): If there is no Makefile.am, look at
115538         aclocal.m4, instead of bailing out.
115540 2006-07-29  Bruno Haible  <bruno@clisp.org>
115542         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115543         Categorize the options by when they are useful.
115545 2006-07-29  Bruno Haible  <bruno@clisp.org>
115547         * gnulib-tool (func_usage): Document option --no-libtool.
115548         Handle option --no-libtool.
115549         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115550         for changed semantics of $libtool variable.
115551         (func_import): Likewise. If libtool is not used, show this through
115552         an option --no-libtool.
115553         (func_create_testdir): Update.
115555 2006-07-29  Bruno Haible  <bruno@clisp.org>
115557         * gnulib-tool (func_import): Extend error message about missing
115558         --doc-base.
115560 2006-07-29  Bruno Haible  <bruno@clisp.org>
115562         * gnulib-tool (func_import): Don't create the $docbase directory if
115563         there is no file to store there.
115565 2006-07-29  Bruno Haible  <bruno@clisp.org>
115567         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115568         relevant, look for configure.ac there, not in the current directory.
115569         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115571 2006-07-29  Bruno Haible  <bruno@clisp.org>
115573         * gnulib-tool (SORT): New variable.
115574         (func_usage): Undocument --assume-autoconf option.
115575         Remove --assume-autoconf option handling.
115576         (autoconf_minversion): Determine from the contents of configure.ac.
115577         (func_import): Remove autoconf_minversion handling.
115578         Suggested by Eric Blake.
115580 2006-07-29  Bruno Haible  <bruno@clisp.org>
115582         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115584 2006-07-29  Bruno Haible  <bruno@clisp.org>
115586         * config/srclist.txt (*setenv.[ch]): Remove rules.
115588 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115590         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115592 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115594         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115595         arpa/inet.h.
115597 2006-07-28  Simon Josefsson  <jas@extundo.com>
115599         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115600         * modules/inet_pton (Depends-on): Likewise.
115602 2006-07-28  Simon Josefsson  <jas@extundo.com>
115604         * m4/netinet_in_h.m4: New file.
115606 2006-07-28  Simon Josefsson  <jas@extundo.com>
115608         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115609         #include's.
115611 2006-07-28  Simon Josefsson  <jas@extundo.com>
115613         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115614         #include's.
115616 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115618         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115619         setgid on directories only if they set these bits.
115620         * lib/modechange.h: Remove obsolete comment about masks.
115622 2006-07-28  Eric Blake  <ebb9@byu.net>
115624         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115625         macro expansion.
115627 2006-07-28  Bruno Haible  <bruno@clisp.org>
115629         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115631 2006-07-28  Bruno Haible  <bruno@clisp.org>
115633         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115635 2006-07-28  Bruno Haible  <bruno@clisp.org>
115637         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115638         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115639         Define fallbacks.
115640         Avoids link error on FreeBSD 4.x.
115641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115643         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115644         encoding.
115645         * lib/mbswidth.c (iswcntrl): Likewise.
115647 2006-07-27  Bruno Haible  <bruno@clisp.org>
115649         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115650         test.
115652 2006-07-27  Bruno Haible  <bruno@clisp.org>
115654         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115655         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115656         defined.
115658 2006-07-26  Eric Blake  <ebb9@byu.net>
115660         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115662 2006-07-26  Eric Blake  <ebb9@byu.net>
115664         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115665         like mingw that lack mkstemp.
115666         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115667         avoid compilation warning on mingw.
115669 2006-07-26  Bruno Haible  <bruno@clisp.org>
115671         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115672         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115673         INT_FAST*_MIN, INTPTR_MIN.
115675 2006-07-25  Bruno Haible  <bruno@clisp.org>
115677         * modules/version-etc (Depends-on): Add stdarg.
115679 2006-07-25  Bruno Haible  <bruno@clisp.org>
115681         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115682         complex commands.
115684 2006-07-25  Bruno Haible  <bruno@clisp.org>
115686         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115687         defined in <stdarg.h> or config.h.
115689 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115691         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115692         (gl_STDIO_SAFER): Remove.
115694 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115696         * MODULES.html.sh (File stream based Input/Output):
115697         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115698         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115699         * modules/fopen-safer, modules/tmpfile-safer: New files.
115700         * modules/stdio-safer: Remove.
115702 2006-07-24  Bruno Haible  <bruno@clisp.org>
115704         * modules/tmpdir: New file.
115705         * MODULES.html.sh (File system functions): Add it.
115707 2006-07-24  Bruno Haible  <bruno@clisp.org>
115709         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115710         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115712 2006-07-24  Bruno Haible  <bruno@clisp.org>
115714         * modules/clean-temp: New file.
115716 2006-07-24  Bruno Haible  <bruno@clisp.org>
115718         * m4/tmpdir.m4: New file, from GNU gettext.
115720 2006-07-24  Bruno Haible  <bruno@clisp.org>
115722         * lib/tmpdir.h: New file, from GNU gettext.
115723         * lib/tmpdir.c: New file, from GNU gettext.
115725 2006-07-24  Bruno Haible  <bruno@clisp.org>
115727         * lib/clean-temp.h: New file, from GNU gettext.
115728         * lib/clean-temp.c: New file, from GNU gettext.
115730 2006-07-23  Eric Blake  <ebb9@byu.net>
115732         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115733         (Depends-on): Add binary-io.
115735 2006-07-23  Eric Blake  <ebb9@byu.net>
115737         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115739 2006-07-23  Eric Blake  <ebb9@byu.net>
115741         * lib/tmpfile-safer.c: New file.
115742         * lib/stdio-safer.h (fopen_safer): Add prototype.
115743         * lib/stdio--.h (tmpfile): Make safer.
115745 2006-07-23  Bruno Haible  <bruno@clisp.org>
115747         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115748         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115749         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115750         gl_linked_remove_at): Use it.
115752 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115753         and Simon Josefsson <jas@extundo.com>
115755         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115757         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115759 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115761         * modules/close-stream: New file.
115762         * modules/closeout (Description): Make it clear that it exits
115763         with a diagnostic on error.
115764         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115765         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115767 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115769         * m4/close-stream.m4: New file.
115771 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115773         * lib/close-stream.c, lib/close-stream.h: New files.
115775 2006-07-22  Bruno Haible  <bruno@clisp.org>
115777         Merge from GNU gettext 0.15.
115779         2006-05-01  Bruno Haible  <bruno@clisp.org>
115781                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115783         2006-07-22  Bruno Haible  <bruno@clisp.org>
115785                 * modules/javaversion: New file.
115786                 * MODULES.html.sh (Java): Add javaversion.
115788         2006-03-12  Bruno Haible  <bruno@clisp.org>
115790                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115792         2005-12-04  Bruno Haible  <bruno@clisp.org>
115794                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115795                 (untested).
115797         2006-06-21  Bruno Haible  <bruno@clisp.org>
115799                 Avoid warnings from recent versions of mcs.
115800                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115801                 -o, -L, -r any more. Use options documented since mcs-1.0
115802                 instead. Similarly for -g.
115804         2005-12-04  Bruno Haible  <bruno@clisp.org>
115806                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115807                 .resources, not .resource.
115809         2005-07-09  Bruno Haible  <bruno@clisp.org>
115811                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115812                 add a .dll suffix.
115813                 Reported by Mark Junker <mjscod@gmx.de>.
115815         2006-07-22  Bruno Haible  <bruno@clisp.org>
115817                 * modules/gettext: Upgrade to gettext-0.15.
115818                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115819                 m4/visibility.m4.
115820                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115822 2006-07-22  Bruno Haible  <bruno@clisp.org>
115824         Merge from GNU gettext 0.15.
115826         2006-03-25  Bruno Haible  <bruno@clisp.org>
115828                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115830         2006-07-21  Bruno Haible  <bruno@clisp.org>
115832                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115833                 "1.1".
115835         2006-05-09  Bruno Haible  <bruno@clisp.org>
115837                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115838                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115839                 for the conftestver execution.
115841         2006-05-01  Bruno Haible  <bruno@clisp.org>
115843                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115844                 optional target-version argument. Verify that the compiler
115845                 groks source of the specified source-version, or add -source
115846                 option as necessary. Verify that the compiler produces
115847                 bytecode in the specified target-version, or add -target and
115848                 -source options as necessary. Make the result of the test
115849                 available as variable CONF_JAVAC. Also log error output in
115850                 config.log.
115852         2006-03-11  Bruno Haible  <bruno@clisp.org>
115854                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115856         2006-05-09  Bruno Haible  <bruno@clisp.org>
115858                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115859                 CLASSPATH_SEPARATOR to a semicolon.
115861         2006-03-12  Bruno Haible  <bruno@clisp.org>
115863                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115864                 available as variable CONF_JAVA, for subsequent autoconf
115865                 tests. Also log error output in config.log.
115867         2006-07-19  Bruno Haible  <bruno@clisp.org>
115869                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115870                 that getline works on glibc2 systems. Needed to avoid trouble
115871                 in relocatable.c.
115872                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115874         2005-12-04  Bruno Haible  <bruno@clisp.org>
115876                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115877                 launcher (untested).
115879         2005-12-04  Bruno Haible  <bruno@clisp.org>
115881                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115883         2006-07-22  Bruno Haible  <bruno@clisp.org>
115885                 * gettext.m4: Update from GNU gettext-0.15.
115886                 * nls.m4: Likewise.
115887                 * po.m4: Likewise.
115888                 * inttypes-pri.m4: Likewise.
115889                 * inttypes-h.m4: Renamed from inttypes.m4.
115890                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115892 2006-07-22  Bruno Haible  <bruno@clisp.org>
115894         Merge from GNU gettext 0.15.
115896         2005-07-05  Bruno Haible  <bruno@clisp.org>
115898                 * printf-args.c (printf_fetchargs): Work around broken
115899                 definition of wint_t on mingw.
115901         2005-02-12  Bruno Haible  <bruno@clisp.org>
115903                 * xallocsa.h: Add extern "C" for C++.
115905         2006-05-17  Bruno Haible  <bruno@clisp.org>
115907                 Cygwin portability.
115908                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115910         2006-04-30  Bruno Haible  <bruno@clisp.org>
115912                 * progreloc.c: Include <mach-o/dyld.h> if available.
115913                 (find_executable): Use _NSGetExecutablePath when possible.
115915         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115917                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115918                 function.
115920         2005-12-29  Bruno Haible  <bruno@clisp.org>
115922                 * progreloc.c (set_program_name_and_installdir): Fix
115923                 compilation error.
115925         2005-12-04  Bruno Haible  <bruno@clisp.org>
115927                 Cygwin portability.
115928                 * progreloc.c: Include <windows.h> also on Cygwin.
115929                 (find_executable): Add support for Cygwin.
115930                 (set_program_name_and_installdir): Handle also platforms with
115931                 nonempty EXEEXT.
115933         2006-07-11  Bruno Haible  <bruno@clisp.org>
115935                 * javacomp.c: Fix a comment.
115936                 Reported by Jim Meyering.
115938         2006-04-30  Bruno Haible  <bruno@clisp.org>
115940                 * javacomp.h (compile_java_class): Add source_version,
115941                 target_version arguments.
115942                 * javacomp.c: Rewritten to choose only a compiler that
115943                 respects the specified source_version and target_version.
115945         2006-06-27  Bruno Haible  <bruno@clisp.org>
115947                 Assume correct S_ISDIR macro.
115948                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115950         2006-07-22  Bruno Haible  <bruno@clisp.org>
115952                 * javaversion.h: New file, from GNU gettext.
115953                 * javaversion.c: New file, from GNU gettext.
115954                 * javaversion.java: New file, from GNU gettext.
115955                 * javaversion.class: New file, from GNU gettext.
115957         2006-05-17  Bruno Haible  <bruno@clisp.org>
115959                 Cygwin portability.
115960                 * javaexec.c (execute_java_class): Test for jview program
115961                 also on Cygwin.
115963         2006-04-09  Bruno Haible  <bruno@clisp.org>
115965                 * fatal-signal.c: Don't include string.h.
115966                 (at_fatal_signal): Use a copying loop instead of memcpy.
115968         2005-12-04  Bruno Haible  <bruno@clisp.org>
115970                 * csharpexec.c: Add support for 'clix' launcher (untested).
115971                 (execute_csharp_using_sscli): New function.
115972                 (execute_csharp_program): Call it.
115974         2006-06-21  Bruno Haible  <bruno@clisp.org>
115976                 Avoid warnings from recent versions of mcs.
115977                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115978                 -o, -L, -r any more. Use options documented since mcs-1.0
115979                 instead. Similarly for -g.
115981         2005-07-09  Bruno Haible  <bruno@clisp.org>
115983                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115984                 add a .dll suffix.
115985                 Reported by Mark Junker <mjscod@gmx.de>.
115987         2006-06-17  Bruno Haible  <bruno@clisp.org>
115989                 * config.charset: Update for NetBSD 3.0.
115991         2006-05-17  Bruno Haible  <bruno@clisp.org>
115993                 Cygwin portability.
115994                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115996         2006-05-16  Bruno Haible  <bruno@clisp.org>
115998                 * localcharset.c [CYGWIN]: Include <windows.h>.
115999                 (get_charset_aliases): For Cygwin, return the same CPxxx
116000                 aliases list as under WIN32.
116001                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
116002                 the environment variables. Fall back to GetACP().
116004         2006-04-05  Bruno Haible  <bruno@clisp.org>
116006                 * config.charset: Update Juan Manuel Guerrero's address.
116008         2005-02-12  Bruno Haible  <bruno@clisp.org>
116010                 * allocsa.h: Add extern "C" for C++.
116012         2005-02-10  Bruno Haible  <bruno@clisp.org>
116014                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
116015                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
116017         2006-07-22  Bruno Haible  <bruno@clisp.org>
116019                 * gettext.h: Update to GNU gettext-0.15.
116021 2006-07-22  Bruno Haible  <bruno@clisp.org>
116023         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
116024         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
116025         lib-prefix.m4, longdouble.m4, ssize_t.m4.
116027 2006-07-21  Eric Blake  <ebb9@byu.net>
116029         * modules/stdlib-safer: New file.
116030         * MODULES.html.sh (File stream based Input/Output): Add
116031         stdlib-safer.
116033 2006-07-21  Eric Blake  <ebb9@byu.net>
116035         * lib/stdlib-safer.h: New file from coreutils, required by
116036         stdlib--.h.
116038 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
116040         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
116042 2006-07-20  Bruno Haible  <bruno@clisp.org>
116044         * gnulib-tool: Recognize new option --assume-autoconf.
116045         (autoconf_minversion): New variable.
116046         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
116048 2006-07-20  Bruno Haible  <bruno@clisp.org>
116050         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
116052 2006-07-19  Derek R. Price  <derek@ximbiot.com>
116054         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
116055         Reindent and repaginate.
116057 2006-07-19  Derek Price  <derek@ximbiot.com>
116059         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
116060         Correct grammar.
116062 2006-07-17  Bruno Haible  <bruno@clisp.org>
116064         * modules/list: New file.
116065         * modules/array-list: New file.
116066         * modules/carray-list, modules/carray-list-tests: New files.
116067         * modules/linked-list, modules/linked-list-tests: New files.
116068         * modules/avltree-list, modules/avltree-list-tests: New files.
116069         * modules/rbtree-list, modules/rbtree-list-tests: New files.
116070         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
116071         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
116072         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
116073         * modules/oset: New file.
116074         * modules/array-oset: New file.
116075         * modules/avltree-oset, modules/avltree-oset-tests: New files.
116076         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
116077         * tests/test-carray_list.c: New file.
116078         * tests/test-linked_list.c: New file.
116079         * tests/test-avltree_list.c: New file.
116080         * tests/test-rbtree_list.c: New file.
116081         * tests/test-linkedhash_list.c: New file.
116082         * tests/test-avltreehash_list.c: New file.
116083         * tests/test-rbtreehash_list.c: New file.
116084         * tests/test-avltree_oset.c: New file.
116085         * tests/test-rbtree_oset.c: New file.
116086         * MODULES.html.sh (Container data structures): New section.
116088 2006-07-17  Bruno Haible  <bruno@clisp.org>
116090         * m4/gl_list.m4: New file.
116092 2006-07-17  Bruno Haible  <bruno@clisp.org>
116094         * lib/gl_list.h: New file.
116095         * lib/gl_list.c: New file.
116096         * lib/gl_array_list.h: New file.
116097         * lib/gl_array_list.c: New file.
116098         * lib/gl_carray_list.h: New file.
116099         * lib/gl_carray_list.c: New file.
116100         * lib/gl_linked_list.h: New file.
116101         * lib/gl_linked_list.c: New file.
116102         * lib/gl_anylinked_list1.h: New file.
116103         * lib/gl_anylinked_list2.h: New file.
116104         * lib/gl_avltree_list.h: New file.
116105         * lib/gl_avltree_list.c: New file.
116106         * lib/gl_anyavltree_list1.h: New file.
116107         * lib/gl_anyavltree_list2.h: New file.
116108         * lib/gl_rbtree_list.h: New file.
116109         * lib/gl_rbtree_list.c: New file.
116110         * lib/gl_anyrbtree_list1.h: New file.
116111         * lib/gl_anyrbtree_list2.h: New file.
116112         * lib/gl_anytree_list1.h: New file.
116113         * lib/gl_anytree_list2.h: New file.
116114         * lib/gl_linkedhash_list.h: New file.
116115         * lib/gl_linkedhash_list.c: New file.
116116         * lib/gl_anyhash_list1.h: New file.
116117         * lib/gl_anyhash_list2.h: New file.
116118         * lib/gl_avltreehash_list.h: New file.
116119         * lib/gl_avltreehash_list.c: New file.
116120         * lib/gl_rbtreehash_list.h: New file.
116121         * lib/gl_rbtreehash_list.c: New file.
116122         * lib/gl_anytreehash_list1.h: New file.
116123         * lib/gl_anytreehash_list2.h: New file.
116125         * lib/gl_oset.h: New file.
116126         * lib/gl_oset.c: New file.
116127         * lib/gl_array_oset.h: New file.
116128         * lib/gl_array_oset.c: New file.
116129         * lib/gl_avltree_oset.h: New file.
116130         * lib/gl_avltree_oset.c: New file.
116131         * lib/gl_rbtree_oset.h: New file.
116132         * lib/gl_rbtree_oset.c: New file.
116133         * lib/gl_anytree_oset.h: New file.
116135 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116137         * m4/mkancesdirs.m4: New file.
116138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
116139         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
116140         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
116141         it.
116143 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116145         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
116146         * lib/mkancesdirs.h: New files.
116147         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
116148         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
116149         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
116150         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
116151         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
116152         callers changed.  Revamp internals significantly, by not
116153         attempting to create directories that are temporarily more
116154         permissive than the final results.  Do not attempt to use
116155         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
116156         This removes some race conditions, fixes some bugs, and simplifies
116157         things.  Use new dirchownmod function to do owner and mode changes.
116158         * lib/mkdir-p.h: Likewise.
116159         * lib/modechange.c (octal_to_mode): New function.
116160         (struct mode_change): New member mentioned.
116161         (make_node_op_equals): New arg mentioned.  All callers changed.
116162         (mode_compile): Keep track of which mode bits the user has explicitly
116163         mentioned.
116164         (mode_adjust): New arg DIR, so that we implement the X op correctly.
116165         New arg PMODE_BITS, to keep track of which mode bits the user
116166         mentioned; it treats S_ISUID and S_ISGID speciall.
116167         All callers changed.
116168         * lib/modechange.h: Likewise.
116170 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116172         * MODULES.html.sh: Add mkancestors.
116173         * modules/mkancesdirs: New module.
116174         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
116175         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
116176         The chdir-safer and afs files are now orphans; I'll remove them
116177         unless someone speaks up.
116178         Add lib/dirchownmod.c, lib/dirchownmod.h.
116179         (Depends-on): Remove alloca, chown, save-cwd, dirname.
116180         Add lchown, mkancesdirs.
116181         (Maintainer): Add self.
116183 2006-07-15  Karl Berry  <karl@gnu.org>
116185         * gnulib-tool: help message wording/arrangement.
116187 2006-07-14  Simon Josefsson  <jas@extundo.com>
116189         * doc/gnulib.texi (Libtool and Windows): New section.
116191 2006-07-12  Simon Josefsson  <jas@extundo.com>
116193         * modules/gendocs (License): Fix license, approved by Karl.
116195 2006-07-12  Eric Blake  <ebb9@byu.net>
116197         * MODULES.html.sh: Add gendocs.
116199 2006-07-11  Eric Blake  <ebb9@byu.net>
116201         * modules/fdl: New module, to install doc/fdl.texi.
116202         * MODULES.html.sh: Add new section for documentation modules.
116203         * gnulib-tool: Avoid space-tab.
116204         (--doc-base): New option, to manage files from doc.
116206 2006-07-11  Eric Blake  <ebb9@byu.net>
116208         * m4/absolute-header.m4: Fix comments to match recent change.
116210 2006-07-11  Eric Blake  <ebb9@byu.net>
116212         * gnulib-tool: List --doc-base before --tests-base.
116214 2006-07-11  Derek R. Price  <derek@ximbiot.com>
116216         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
116218 2006-07-11  Bruno Haible  <bruno@clisp.org>
116220         * README: Mention where to put documentation.
116222 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116224         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
116226 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
116229         to stdint.m4.
116231 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116233         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
116234         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
116235         "no/such/file/stdint.h" when there is no such file, so that
116236         the resulting C code can be parsed by dodgy compilers.
116237         Problems reported by Bob Proulx.
116239 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116241         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
116242         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116243         macros into the GNU _D_EXACT_NAMLEN.
116244         * lib/savedir.c:  Likewise.
116245         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
116247 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116248         and Paul Eggert  <eggert@cs.ucla.edu>
116250         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
116251         * m4/savedir.m4:
116252         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116253         macros into the GNU _D_EXACT_NAMLEN.
116255 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116257         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
116258         around the absolute name, to work around a problem with the HP-UX
116259         11.23 native C compiler, reported by Bob Proulx.
116261 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116263         * doc/maintain.texi, make-stds.texi: Sync from
116264         <http://savannah.gnu.org/projects/gnustandards>.
116266 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116268         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
116270 2006-07-09  Jim Meyering  <jim@meyering.net>
116272         * m4/glob.m4: Remove a doubled word in a comment.
116274 2006-07-09  Jim Meyering  <jim@meyering.net>
116276         * lib/argp-pv.c: Remove a doubled word in a comment.
116277         * lib/check-version.c (check_version): Likewise.
116278         * lib/javacomp.c (compile_java_class): Likewise.
116280 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
116282         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
116283         for the benefit of people using Autoconf 2.60.  If you want to
116284         support older Autoconf versions you can copy m4/onceonly_2_57.m4
116285         (or m4/onceonly.m4, if pre-2.57) manually.
116287 2006-07-08  Jim Meyering  <jim@meyering.net>
116289         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
116290         comment.
116291         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
116292         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
116293         comment.
116295 2006-07-08  Jim Meyering  <jim@meyering.net>
116297         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
116299 2006-07-07  Simon Josefsson  <jas@extundo.com>
116301         * tests/test-crc.c: Change expected crc value, the test vector
116302         were probably computed using the old broken crc.c?
116304 2006-07-06  Simon Josefsson  <jas@extundo.com>
116306         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
116307         now the canonical place for the M4 file).
116309         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
116310         from the sys_socket dependency now.
116312         * modules/inet_pton (Files): Ditto.
116314         * modules/inet_ntop (Files): Ditto.
116316 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116318         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
116319         not gl_PREREQ_GETUSERSHELL.
116321 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116323         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
116324         with only one argument, for Autoconf 2.60.
116325         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
116326         expand to nothing, so add a shell command to avoid syntax error.
116327         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116329 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116331         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116333 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116336         no longer needed.  Check for isblank decl.
116337         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116338         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116339         of existence.
116341 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116343         * lib/getloadavg.c: Use __VMS, not VMS.
116344         * lib/getopt.c: Likewise.
116345         * lib/getpagesize.h: Likewise.
116346         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116347         and probably does not work.
116349 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116351         * lib/.cppi-disable: Add wcwidth.
116352         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116353         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116354         (ISGRAPH): Remove.  All uses changed to isgraph.
116355         (FOLD) [!defined _LIBC]: Remove special case.
116356         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116357         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116358         HAVE_ISBLANK.
116359         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116360         case.
116362 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116364         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116365         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116366         brackets.  Other minor changes to suppress some compiler
116367         warnings.
116369 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116370         and Paul Eggert  <eggert@cs.ucla.edu>
116372         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116373         of invoking obsolescent AC_HEADER_DIRENT macro.
116374         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116375         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116377         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116378         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116379         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116380         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116381         * m4/readdir.m4: Remove; no longer needed.
116383 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116384         and Paul Eggert  <eggert@cs.ucla.edu>
116386         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116387         Don't worry about this obsolete case any more.
116388         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116389         directories.
116390         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116391         worry about this obsolete case any more.
116392         * lib/fts.c: Likewise.
116393         * lib/getcwd.c: Likewise.
116394         * lib/glob.h: Likewise.
116395         * lib/savedir.c: Likewise.
116397 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116399         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116400         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116401         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116402         needed.
116403         All uses removed.
116404         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116405         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116406         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116407         needed.
116408         * m4/getdate.m4 (gl_GETDATE): Likewise.
116409         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116410         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116411         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116412         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116413         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116414         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116415         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116416         needed.
116418 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116420         * lib/memcasecmp.c: Include <limits.h>.
116421         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116422         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116423         Don't assume isdigit succeeds only on '0' through '9'.
116425 2006-07-05  Eric Blake  <ebb9@byu.net>
116427         * modules/getaddrinfo (Depends-on): Add snprintf.
116429 2006-07-05  Eric Blake  <ebb9@byu.net>
116431         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116432         to avoid 'header present but could not be compiled' on cygwin.
116434 2006-07-05  Eric Blake  <ebb9@byu.net>
116436         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116437         missing from netdb.h.
116438         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116440 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116442         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116443         no longer needed.
116444         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116445         * m4/getdate.m4 (gl_GETDATE): Likewise.
116446         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116447         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116448         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116449         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116452 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116454         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116455         All uses of is_space replaced by isspace.
116456         * lib/exit.h: Don't talk about STDC_HEADERS.
116457         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116458         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116459         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116460         replaced by isprint etc.
116461         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116462         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116463         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116464         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116465         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116466         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116468 2006-07-05  Bruno Haible  <bruno@clisp.org>
116470         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116471         the function exists, before testing against AIX.
116472         Reported by Martin Lambers <marlam@marlam.de>.
116474 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116476         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116477         From Mark D. Baushke.
116479 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116482         to the absolute name, not just one, to bypass Sun C 5.8's
116483         "warning: #include of /usr/include/... may be non-portable".
116485 2006-07-04  Eric Blake  <ebb9@byu.net>
116487         * modules/dirname-tests: New test module.
116488         * tests/test-dirname.c: New file, replacing dirname.c
116489         TEST_DIRNAME section that was recently deleted.
116491 2006-07-04  Bruno Haible  <bruno@clisp.org>
116493         Assume ANSI C header files and <ctype.h> functions.
116494         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116495         (mbsnwidth): Use isprint, iscntrl instead.
116497 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116499         Merge from coreutils.
116500         * MODULES.html.sh: Add xstrtold.
116501         * modules/xstrtold: New file.
116502         * modules/cycle-check (Files): Add lib/same-inode.h.
116503         * modules/dirname (Files): Add m4/double-slash-root.m4.
116504         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116505         * modules/mkdir-p (Files): Add lib/same-inode.h.
116506         * modules/same (Files): Add lib/same-inode.h.
116508 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116510         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116511         This is to keep the terminology clean; POSIX talks about
116512         "absolute pathnames", not "full pathnames", but the GNU
116513         Coding Standards say to use "path" for something else;
116514         so use "absolute" to keep both sides happy.
116515         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116516         Set gl_absolute_header, not gl_full_header_path.
116517         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116518         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116519         All uses changed.
116521         Merge from coreutils.
116523         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116525         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116526         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116527         want to require the building of c-strtod.o.
116528         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116529         needs -lm directly.
116530         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116532         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116534         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116535         --as-needed option if available.  Problem reported by Albert Chin in
116536         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116537         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116538         cc merely issues a bunch of annoying warnings for --as-needed
116539         (this problem was reported by Bob Proulx).  Also, try linking with
116540         -lm to detect a bug in binutils 2.16 (this problem was reported
116541         by Ralf Wildenhues).
116543         2006-06-18  Jim Meyering  <jim@meyering.net>
116545         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116546         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116547         macro.
116548         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116549         also check for glibc-2.4's abort-inducing bug.
116551         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116552         Low-probability clean-up should be to use rmdir to get rid of
116553         the just-created directory, not unlink.
116555         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116556         configure fail, and request a bug report to inform us about it.
116557         Add a comment that, barring reports to the contrary, in 2007 we'll
116558         assume ftruncate is universally available.
116560         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116562         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116564         2006-03-12  Jim Meyering  <jim@meyering.net>
116566         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116567         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116568         * m4/same.m4 (gl_SAME): Likewise.
116569         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116571         2006-03-11  Eric Blake  <ebb9@byu.net>
116573         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116574         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116575         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116576         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116578 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116580         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116581         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116582         reported by Mark D. Baushke, one in
116583         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116585         Merge from coreutils.
116587         * lib/.cppi-disable: Add stdint_.h.
116588         * lib/.cvsignore: Add stdint.h.
116590         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116592         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116593         both double and long double versions.
116594         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116595         * lib/xstrtold.c: New file.
116596         * lib/xstrtod.h (xstrtold): New decl.
116598         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116600         * lib/filemode.c (setst): Remove.
116601         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116602         (arguably) clearer, and the generated code is a bit smaller on my
116603         Debian GNU/Linux stable x86 host.
116605         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116607         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116608         Assume that filemode.h includes sys/types.h and sys/stat.h.
116609         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116610         (ftypelet): Reorder to put common cases first, for efficiency.
116611         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116612         to do 'M'.
116613         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116614         of 10, for compatibility with FreeBSD.  All callers changed.
116615         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116616         types that can't be deduced solely from st_mode.  First arg is now a
116617         const pointer.
116618         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116619         (strmode): Renamed from mode_string.
116620         (filemodestring): New decl.
116621         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116622         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116623         needed.
116624         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116626         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116628         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116629         fsusage.h now does that.  Include fsusage.h first, to test interface.
116630         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116631         at most one method (the old code could have generated decls that
116632         didn't conform to C89, not that this was ever exercised).
116633         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116635         2006-03-19  Jim Meyering  <jim@meyering.net>
116637         Work even in a chroot where d_ino values for entries in "/"
116638         don't match the stat.st_ino values for the same names.
116639         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116640         number, iterate through all entries again, using lstat instead.
116641         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116642         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116644         * lib/getcwd.c (__getcwd): Clarify a comment.
116645         Use memcpy in place of a call to strcpy.
116647         2006-03-12  Jim Meyering  <jim@meyering.net>
116649         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116650         matches that of the current directory (which we're about to chdir ".."
116651         out of), then save the dev-ino of the parent, instead.
116653         * lib/same-inode.h (SAME_INODE): New file/macro.
116654         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116655         Include "same-inode.h", instead.
116656         * lib/same.c: Likewise.
116657         * lib/cycle-check.h: Include "same-inode.h".
116658         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116659         * lib/cycle-check.c (SAME_INODE): Remove definition.
116660         * lib/root-dev-ino.h: Include "same-inode.h".
116662         2006-03-11  Eric Blake  <ebb9@byu.net>
116664         * lib/same.c (same_name): s/base_name/last_component/
116665         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116666         * lib/filenamecat.c (file_name_concat): Likewise.
116668         2006-03-11  Eric Blake  <ebb9@byu.net>,
116669                     Paul Eggert  <eggert@cs.ucla.edu>
116671         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116672         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116673         drive prefix.
116674         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116675         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116676         (last_component): New method.
116677         * lib/dirname.c (dir_len): Determine when drive letters need a
116678         subsequent slash.  Preserve // when it is special.
116679         (dir_name): Don't append dot when drive letter is absolute.
116680         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116681         * lib/basename.c (base_name): New semantics - malloc the result.
116682         Preserve // when it is special.  Preserve relative files that look
116683         like drive letters.
116684         (base_len): Preserve // when it is special.
116685         (last_component): New method, similar to old base_name semantics.
116686         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116687         base_name.  Strip redundant slashes from ///.
116689 2006-07-03  Jim Meyering  <jim@meyering.net>
116691         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116692         macro is used before the first cycle_check call.
116694 2006-07-03  Eric Blake  <ebb9@byu.net>
116696         * modules/dirname (Depends-on): Add xstrndup.
116698 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116700         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116701         test cases, so that config.log is a bit easier to follow.
116703 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116705         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116706         both are 64 bits, since this seems to be the tradition, and this
116707         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116708         we ever run into a host that prefers long long to long in this
116709         case, we'll need another configure-time test.  Problem reported by
116710         Jim Meyering.
116712 2006-07-02  Eric Blake  <ebb9@byu.net>
116714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116716 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116718         * modules/inttypes (Depends-on): No longer depends on stdint.
116719         * modules/stdint (Description): Say more about assumptions.
116720         Say that the fast types might differ.  Say macros are used.
116721         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116722         (Makefile.am): Revise list of substituted symbols to match
116723         new stdint.m4.
116724         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116725         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116726         * tests/test-stdint.c (verify_same_types)
116727         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116728         the code conforms to C99/C89.
116729         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116730         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116732 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116735         but fix a bug, by requiring at least 64 bits.
116736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116737         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116738         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116739         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116741         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116742         changes.  Make 2.59 a prerequisite.  Check and substitute for
116743         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116744         inttypes.h.  Do not use special include files; just use the
116745         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116746         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116747         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116748         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116749         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116750         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116751         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116752         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116753         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116754         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116755         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116756         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116757         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116758         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116759         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116760         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116761         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116762         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116763         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116764         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116765         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116766         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116767         not check for things that C99 does not require, e.g., int8_t.  If
116768         a test isn't needed unless <stdint.h> isn't working, and is
116769         unlikely to be needed for any other reason, then don't do it
116770         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116771         size_t, since we assume C89 freestanding at least.  Do not check
116772         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116773         the right thing even if the types are not defined.  Instead use:
116774         (gl_STDINT_TYPE_PROPERTIES): New macro.
116775         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116776         testing whether <sys/types.h> clashes, as Autoconf does this for
116777         us now.  All uses removed.
116778         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116779         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116780         (gl_CHECK_TYPE_SAME):
116781         Remove; no longer needed.
116782         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116783         exists, since we'll return 0 anyway in that case.
116784         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116786 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116788         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116789         possible collision with system files.
116790         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116791         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116792         WCHAR_MIN and WCHAR_MAX in this case.
116793         (<stddef.h>): Do not include; no longer needed.
116794         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116795         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116796         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116797         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116798         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116799         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116800         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116801         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116802         !defined(__c99))]: Include in this case too, since it's harmless
116803         now.
116804         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116805         dangerous to do so.
116806         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116807         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116808         (_STDINT_MIN, _STDINT_MAX): New macros.
116809         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116810         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116811         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116812         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116813         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116814         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116815         macros, not typedefs; this simplifies things quite a bit.
116816         Use long int for all types narrower than int64_t.
116817         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116818         Define in terms of long long int or int64_t or long int,
116819         not int64_t or int32_t.  This saves some compile-time testing.
116820         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116821         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116822         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116823         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116824         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116825         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116826         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116827         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116828         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116829         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116830         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116831         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116832         undef any previous version and define our own version, for
116833         simplicity and consistency with the new macros for types.
116834         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116835         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116836         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116837         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116838         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116839         @WINT_T_SUFFIX@ to keep things simple here.
116840         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116841         Simplify by assuming typical 8/16/32/64 host, since we're
116842         already doing that elsewhere anyway.
116843         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116844         and assume long long int is 64 bits if available.  This
116845         speeds up 'configure'.
116847 2006-07-01  Eric Blake  <ebb9@byu.net>
116849         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116850         Reported by Andreas Buening.
116852 2006-07-01  Eric Blake  <ebb9@byu.net>
116854         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116856 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116858         * lib/getaddrinfo.c: fixed typo
116860 2006-06-29  Jim Meyering  <jim@meyering.net>
116862         * modules/strftime (Maintainer): Add my name, since with the
116863         FPRINTFTIME changes strftime.c has forked from glibc.
116865 2006-06-29  Eric Blake  <ebb9@byu.net>
116867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116869 2006-06-29  Eric Blake  <ebb9@byu.net>
116871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116873 2006-06-29  Eric Blake  <ebb9@byu.net>
116875         * lib/stat_.h: New file.
116877 2006-06-29  Eric Blake  <ebb9@byu.net>
116879         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116880         unused static function.
116882 2006-06-29  Eric Blake  <ebb9@byu.net>
116884         * doc/functions.texi (Function Portability): Document missing lstat
116885         on mingw.
116887 2006-06-29  Eric Blake  <ebb9@byu.net>
116889         * MODULES.html.sh: Add sys_stat.
116890         * modules/sys_stat: New module.
116891         * modules/mkstemp (Depends-on): Add sys_stat.
116893 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116895         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116897 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116899         * m4/c-bs-a.m4: Removed.
116901 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116903         * lib/strftime.c: Assume strftime() exists.
116905 2006-06-29  Derek Price  <derek@ximbiot.com>
116907         * modules/c-bs-a: Removed - \a is C89.
116908         * MODULES.html.sh: Remove c-bs-a.
116910 2006-06-29  Bruno Haible  <bruno@clisp.org>
116912         * modules/wcwidth (License): Change to LGPL.
116914 2006-06-28  Simon Josefsson  <jas@extundo.com>
116916         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116917         on _WIN32.
116919         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116920         getnameinfo.
116922 2006-06-28  Simon Josefsson  <jas@extundo.com>
116924         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116926 2006-06-28  Simon Josefsson  <jas@extundo.com>
116928         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116929         functions there.  It will succeed on Windows XP, but on Windows
116930         2000 and (presumably) earlier, it will fail, and use the internal
116931         re-implementation.
116932         (use_win32_p): New function.
116933         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116934         Support AI_NUMERICSERV to disable getservbyname.
116935         (getnameinfo): New function, only supports
116936         NI_NUMERICHOST|NI_NUMERICSERV for now.
116938         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116939         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116940         getnameinfo.
116942 2006-06-28  Eric Blake  <ebb9@byu.net>
116944         * modules/wcwidth: New file.
116945         * modules/mbchar (Depends-on): Add wcwidth.
116946         * modules/mbswidth (Depends-on): Add wcwidth.
116947         * MODULES.html.sh: Add wcwidth.
116949 2006-06-28  Eric Blake  <ebb9@byu.net>
116951         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116954 2006-06-28  Eric Blake  <ebb9@byu.net>
116956         * lib/xvasprintf.h: Fix comments.
116958 2006-06-28  Eric Blake  <ebb9@byu.net>
116960         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116961         * lib/mbswidth.c (wcwidth): Move from here...
116962         * lib/wcwidth.h: ...to this new file.
116964 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116966         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116969         it's obsolete.
116970         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116972 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116974         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116975         Autoconf 2.60 says this stuff was obsolete.
116977 2006-06-28  Bruno Haible  <bruno@clisp.org>
116979         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116981 2006-06-28  Bruno Haible  <bruno@clisp.org>
116983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116984         gt_TYPE_WCHAR_T.
116986 2006-06-28  Bruno Haible  <bruno@clisp.org>
116988         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116989         declaration for wcwidth.
116990         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116992 2006-06-28  Bruno Haible  <bruno@clisp.org>
116994         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116995         (mkdir): Define using _mkdir.
116997 2006-06-28  Bruno Haible  <bruno@clisp.org>
116999         * lib/getaddrinfo.h: Fix POSIX URL.
117000         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
117001         _WIN32.
117002         (use_win32_p): Make static.
117003         (getaddrinfo): Reject service name if it is empty or does not consist
117004         solely of decimal digits, or if its value is > 65535.
117005         (getnameinfo): Remove useless casts.
117007 2006-06-27  Simon Josefsson  <jas@extundo.com>
117009         * modules/sys_select: New file, suggested by Bruno Haible, Paul
117010         Eggert and Martin Lambers.
117012 2006-06-27  Simon Josefsson  <jas@extundo.com>
117014         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
117015         Eggert and Martin Lambers.
117017 2006-06-27  Bruno Haible  <bruno@clisp.org>
117019         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
117020         result to 0, not to empty.
117021         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
117023 2006-06-27  Bruno Haible  <bruno@clisp.org>
117025         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
117027 2006-06-26  Simon Josefsson  <jas@extundo.com>
117029         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
117030         present.
117032 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
117034         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
117035         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
117036         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
117038 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
117040         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
117042 2006-06-26  Bruno Haible  <bruno@clisp.org>
117044         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
117046 2006-06-26  Bruno Haible  <bruno@clisp.org>
117048         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
117050 2006-06-26  Bruno Haible  <bruno@clisp.org>
117052         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
117053         SGI C compiler in pre-C99 mode.
117054         Suggested by Mark D. Baushke and Larry Jones.
117056 2006-06-26  Bruno Haible  <bruno@clisp.org>
117058         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
117059         WCHAR_MAX.
117060         Reported by Mark D. Baushke and Larry Jones.
117062 2006-06-26  Bruno Haible  <bruno@clisp.org>
117064         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
117065         in pre-C99 mode.
117066         Suggested by Mark D. Baushke and Larry Jones.
117068 2006-06-23  Simon Josefsson  <jas@extundo.com>
117069             Bruno Haible  <bruno@clisp.org>
117071         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
117072         Emit mostlyclean-local rule.
117073         (func_emit_tests_Makefile_am): Likewise.
117074         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
117076 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
117078         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
117080 2006-06-23  Bruno Haible  <bruno@clisp.org>
117082         * tests/test-stdint.c: Update to match ISO C 99 Technical
117083         Corrigendum 1.
117085 2006-06-23  Bruno Haible  <bruno@clisp.org>
117087         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
117089 2006-06-23  Bruno Haible  <bruno@clisp.org>
117091         * lib/stdint_.h: Treat IRIX like OpenBSD.
117093 2006-06-23  Bruno Haible  <bruno@clisp.org>
117095         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
117096         ISO C 99 Technical Corrigendum 1.
117098 2006-06-22  Simon Josefsson  <jas@extundo.com>
117100         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
117101         MinGW.
117103 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117105         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
117106         needed.  Some compiler complained about some of them.  Problem reported
117107         by Larry Jones in
117108         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
117110 2006-06-21  Simon Josefsson  <jas@extundo.com>
117112         * tests/test-getaddrinfo.c: New file.
117114         * modules/getaddrinfo-tests: New file.
117116         * MODULES.html.sh: Add inet_pton.
117118         * modules/inet_pton: New file.
117120 2006-06-21  Simon Josefsson  <jas@extundo.com>
117122         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
117123         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
117124         of using the (limited) gnulib implementation on Windows XP.
117126         * m4/inet_pton.m4: New file.
117128 2006-06-21  Simon Josefsson  <jas@extundo.com>
117130         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
117131         variable.
117133         * lib/socket_.h: Don't define WINVER.
117135         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
117136         slightly modified to work in gnulib.
117138 2006-06-21  Simon Josefsson  <jas@extundo.com>
117140         * doc/gnulib.texi (Windows sockets): Add.
117142 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
117144         * lib/read-file.c (fread_file): Start with buffer allocation of
117145         0 bytes rather than 1 byte; this simplifies the code.
117146         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
117147         code to free buffer and save/restore errno.
117148         (internal_read_file): Remove unused local.
117150 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
117152         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
117153         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
117154         Problem reported by Denis Excoffier in
117155         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
117157 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117159         * modules/sys_socket, modules/socklen: Include sys/types since
117160         FreeBSD 4.x's sys/socket.h needs it.
117162 2006-06-19  Simon Josefsson  <jas@extundo.com>
117164         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
117166 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
117168         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
117170 2006-06-19  Bruno Haible  <bruno@clisp.org>
117172         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
117173         and FULL_PATH_INTTYPES_H in angle brackets.
117174         Reported by Mark D. Baushke <mdb@gnu.org>.
117176 2006-06-17  Eric Blake  <ebb9@byu.net>
117178         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
117179         errno.
117181 2006-06-17  Bruno Haible  <bruno@clisp.org>
117183         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
117184         <sys/inttypes.h>.
117186 2006-06-17  Bruno Haible  <bruno@clisp.org>
117188         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
117189         whether errno is declared. Assume <errno.h> declares errno.
117191 2006-06-17  Bruno Haible  <bruno@clisp.org>
117193         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
117195 2006-06-17  Bruno Haible  <bruno@clisp.org>
117197         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
117198         problem on Solaris 2.5.1.
117200 2006-06-16  Eric Blake  <ebb9@byu.net>
117202         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
117203         * lib/unicodeio.c [!defined errno]: Likewise.
117204         * lib/strtol.c [!defined errno]: Likewise.
117205         * lib/strtod.c [!defined errno]: Likewise.
117207 2006-06-15  Eric Blake  <ebb9@byu.net>
117209         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
117211 2006-06-15  Eric Blake  <ebb9@byu.net>
117213         * config/srclist.txt (ssize_t.m4): Lose sync.
117215 2006-06-15  Bruno Haible  <bruno@clisp.org>
117217         * modules/stdint (Files): Include m4/full-header-path.m4,
117218         m4/size_max.m4, m4/wchar_t.m4.
117219         (Makefile.am): Many more substitutions.
117220         * modules/stdint-tests: New file.
117221         * tests/test-stdint.c: New file.
117223 2006-06-15  Bruno Haible  <bruno@clisp.org>
117225         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
117226         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
117227         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
117228         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
117229         gl_CHECK_TYPE_SAME): New macros.
117231 2006-06-15  Bruno Haible  <bruno@clisp.org>
117233         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
117235 2006-06-15  Bruno Haible  <bruno@clisp.org>
117237         * lib/stdint_.h: Rewritten to be fully auto-configured.
117238         Fixes bug on HP-UX/IA64.
117240 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
117242         * lib/getdate.y (__attribute__): Don't define if already defined.
117243         Problem reported by Larry Jones.
117244         * lib/utimens.c (__attribute__): Likewise.
117246 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
117248         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
117249         reported by Andreas Schwab.
117251 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117252             Bruno Haible  <bruno@clisp.org>
117254         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
117255         check for the declaration of strnlen and a run test that exposes the
117256         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
117257         rpl_strndup.
117259 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117260             Bruno Haible  <bruno@clisp.org>
117262         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
117264 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117266         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
117267         compile test, for Tru64 4.0D.
117269 2006-05-28  Karl Berry  <karl@gnu.org>
117271         * config/srclist.txt (printf-args.c): lose sync.
117273 2006-05-26  Martin Lambers  <marlam@marlam.de>
117275         * lib/getpass.c: Updates the test for the native W32 API, and adds
117276         missing includes, thus fixing compilation warnings.
117278 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117280         * lib/exclude.c (exclude_fnmatch): New function.
117281         (excluded_file_name): Call exclude_fnmatch.
117282         * lib/exclude.h (excluded_file_name): New prototype
117284 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
117286         * lib/tempname.c (small_open, large_open): New macros.
117287         (__open, __open64) [!_LIBC]: Remove.
117288         (__gen_tempname): Use small_open and large_open instead of __open
117289         and __open64.  This fixes a portability bug on HP-UX 11.11i
117290         reported by Simon Wing-Tang in
117291         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
117293 2006-05-24  Bruno Haible  <bruno@clisp.org>
117295         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
117296         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
117297         Reported by Thorsten Maerz <torte@netztorte.de> via
117298         Aaron Stone <aaron@serendipity.cx>.
117300 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
117303         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
117304         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
117305         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
117306         not really conditional on the cache.
117307         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
117309 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117311         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
117312         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
117313         (my_usleep): Don't mishandle maximum value.
117315 2006-05-19  Jim Meyering  <jim@meyering.net>
117317         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
117319 2006-05-17  Bruno Haible  <bruno@clisp.org>
117321         Cygwin portability.
117322         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
117324 2006-05-17  Bruno Haible  <bruno@clisp.org>
117326         * lib/stdint_.h: Fix recognition of Cygwin.
117328 2006-05-15  Bruno Haible  <bruno@clisp.org>
117330         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117331         on libtool patch by Ralf Wildenhues.
117333 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117336         test for C99 conformance; (bool) 0.5 is an integer constant
117337         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117338         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117340 2006-05-11  Simon Josefsson  <jas@extundo.com>
117342         * m4/xvasprintf.m4: Fix obvious typo.
117344 2006-05-11  Jim Meyering  <jim@meyering.net>
117346         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117347         James Lemley.
117349 2006-05-10  Simon Josefsson  <jas@extundo.com>
117351         * lib/md4.c: Typo fix, update copyright years.
117352         (K1, K2): Don't use L because it turn computations into 64-bit on
117353         64-bit platforms.
117355 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117357         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117358         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117359         unwanted sign propagation, e.g., on hosts with 64-bit int.
117360         There still are some problems with reeelly weird theoretical hosts
117361         (e.g., 33-bit int) but it's not worth worrying about now.
117362         * lib/sha1.c (rol): Likewise.
117363         (K1, K2, K3, K4): Remove unnecessary L suffix.
117365 2006-05-10  Bruno Haible  <bruno@clisp.org>
117367         * lib/des.c: Cast to avoid warnings.
117369 2006-05-09  Bruno Haible  <bruno@clisp.org>
117371         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117372         (Depends-on): Depend also on xsize, stdarg.
117373         (configure.ac): Add gl_XVASPRINTF.
117375 2006-05-09  Bruno Haible  <bruno@clisp.org>
117377         * m4/xvasprintf.m4: New file.
117379 2006-05-09  Bruno Haible  <bruno@clisp.org>
117381         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117382         (EOVERFLOW): Define fallback value.
117383         (xstrcat): New function.
117384         (xvasprintf): Recognize the special case of a string concatenation.
117386 2006-05-08  Eric Blake  <ebb9@byu.net>
117388         * gnulib-tool (func_version): Base copyright year on CVS date.
117389         (func_emit_copyright_notice): New function.
117390         (func_emit_lib_Makefile_am): Use it.
117391         (func_emit_tests_Makefile_am): Likewise.
117392         (func_import): Likewise.
117394 2006-05-08  Bruno Haible  <bruno@clisp.org>
117396         * modules/stdarg: New file.
117397         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117399 2006-05-08  Bruno Haible  <bruno@clisp.org>
117401         * m4/stdarg.m4: New file, from GNU gettext.
117403 2006-05-08  Bruno Haible  <bruno@clisp.org>
117405         * config/srclist.txt (build-aux/config.rpath): different from latest
117406         release.
117408 2006-05-08  Bruno Haible  <bruno@clisp.org>
117410         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117412 2006-05-05  Jim Meyering  <jim@meyering.net>
117414         * m4/warning.m4: New file, derived from bison's file by the same name.
117416 2006-05-03  Bruno Haible  <bruno@clisp.org>
117418         * lib/stdint_.h: Shorter URL.
117419         * lib/inttypes.h: Likewise.
117421 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117423         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117425 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117427         * lib/verify.h: Document the internals better.  Most of this change
117428         was written by Bruno Haible.
117430 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117432         * doc/verify.texi: New file, partly based on a proposal by
117433         Bruno Haible.
117435 2006-05-02  Bruno Haible  <bruno@clisp.org>
117437         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117438         test from here...
117439         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117441 2006-04-29  Bruno Haible  <bruno@clisp.org>
117443         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117444         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117446 2006-04-29  Bruno Haible  <bruno@clisp.org>
117448         * gnulib-tool: Make --update option actually work.
117450 2006-04-29  Bruno Haible  <bruno@clisp.org>
117452         * doc/gcd.texi: New file.
117453         * doc/gnulib.texi: Include it.
117455 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117457         * lib/getdate.y (get_date): When adding relative date, start with the
117458         initial time, not with the result of the first mktime call.
117460 2006-04-25  Bruno Haible  <bruno@clisp.org>
117462         * gnulib-tool (func_import): Output the include directives in three
117463         blocks, sorted separately.
117464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117466 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117468         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117469         to define main with arguments, for C++.  Reported by Eric Blake.
117470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117471         Prefer 'int main ()' to 'int main (void)', for C++.
117472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117473         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117474         for 'main', for C99 and C++.
117476 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117479         Don't assume that exit status -1 is valid.
117480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117481         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117482         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117483         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117484         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117485         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117486         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117487         functions can be used without declaring them, or that you can
117488         exit with status -1.
117489         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117491 2006-04-24  Karl Berry  <karl@gnu.org>
117493         * config/srclist.txt (longdouble.m4): sync lost.
117495 2006-04-24  Eric Blake  <ebb9@byu.net>
117497         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117499 2006-04-24  Bruno Haible  <bruno@clisp.org>
117501         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117502         poll() implementation in AIX.
117503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117505 2006-04-24  Bruno Haible  <bruno@clisp.org>
117507         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117508         assigned exactly once.
117510 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117511             Bruno Haible  <bruno@clisp.org>
117513         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117514         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117515         for AM_CPPFLAGS.
117517 2006-04-23  Bruno Haible  <bruno@clisp.org>
117519         * modules/copy-file: Depend on unistd.
117520         * modules/execute: Likewise.
117521         * modules/fatal-signal: Likewise.
117522         * modules/findprog: Likewise.
117523         * modules/mkdtemp : Likewise.
117524         * modules/pipe: Likewise.
117525         * modules/wait-process: Likewise.
117527 2006-04-23  Bruno Haible  <bruno@clisp.org>
117529         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117530         condition was already detected.
117531         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117533 2006-04-23  Bruno Haible  <bruno@clisp.org>
117535         * lib/copy-file.c: Include <unistd.h> unconditionally.
117536         * lib/execute.c: Likewise.
117537         * lib/fatal-signal.c: Likewise.
117538         * lib/findprog.c: Likewise.
117539         * lib/mkdtemp.c: Likewise.
117540         * lib/pipe.h: Likewise.
117541         * lib/pipe.c: Likewise.
117542         * lib/wait-process.h: Likewise.
117544 2006-04-23  Bruno Haible  <bruno@clisp.org>
117546         * gnulib-tool (func_usage): Fix --import description. Document
117547         --update.
117548         (func_import): Create temporary file in a temporary directory, if
117549         --dry-run is specified. Silence errors from 'grep' when there are no
117550         m4 files in $m4dir.
117551         (func_create_testdir): Silence errors from 'grep' when there are no
117552         m4 files in $m4dir.
117553         Reported by Karl Berry <karl@freefriends.org>.
117555 2006-04-20  Bruno Haible  <bruno@clisp.org>
117557         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117558         one argument, so that the code will be portable to Autoconf 2.60.
117559         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117560         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117561         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117563 2006-04-19  Derek Price  <derek@ximbiot.com>
117564             Eric Blake  <ebb9@byu.net>
117566         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117567         rather than "/full/path.h".  Update comment to match.  Shorten &
117568         generalize m4_translit call via AS_TR_CPP.
117570 2006-04-19  Derek Price  <derek@ximbiot.com>
117571             Eric Blake  <ebb9@byu.net>
117573         * lib/inttypes.h: Correct grammar in comment.
117575 2006-04-18  Derek Price  <derek@ximbiot.com>
117576             Paul Eggert  <eggert@cs.ucla.edu>
117578         * modules/inttypes: New file.
117579         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117581 2006-04-18  Derek Price  <derek@ximbiot.com>
117582             Paul Eggert  <eggert@cs.ucla.edu>
117584         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117585         New files.
117587 2006-04-18  Derek Price  <derek@ximbiot.com>
117588             Paul Eggert  <eggert@cs.ucla.edu>
117590         * lib/inttypes.h: New file.
117591         * lib/strtoimax.c: Assume <inttypes.h>.
117593 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117595         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117596         isn't mounted.  Problem reported by Kir Kolyshkin.
117598 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117600         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117601         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117602         Derek R. Price.
117603         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117604         implementation.
117606 2006-04-12  Eric Blake  <ebb9@byu.net>
117608         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117609         is now done automatically by the corresponding Autoconf macro.
117611 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117613         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117614         time_r.h.
117616 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117618         Merge regex changes from libc, removing some of our
117619         POSIX-conformance changes that were rejected and redoing them in a
117620         less-intrusive way.
117622         * lib/regcomp.c (re_compile_internal, init_dfa):
117623         Length arg is now size_t, not Idx.  All uses changed.
117624         (peek_token): Forward decl now says internal_function.
117625         (__re_error_msgid, __re_error_msgid_idx):
117626         Now static rather than extern with attribute_hidden.
117627         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117628         For some reason libc prefers K&R style defns for external functions.
117629         (regerror) [!defined _LIBC]: Likewise.
117630         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117631         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117632         (build_range_exp, build_collating_symbol):
117633         Use K&R-style defn.
117634         (re_compile_fastmap): Use '\0' to memset, not 0.
117635         (utf8_sb_map): Make the calculations more obvious.
117636         (init_dfa, parse_bracket_exp, build_charclass_op):
117637         Call calloc and cast result, as glibc does.
117638         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117639         (build_range_exp, build_collating_symbol):
117640         Now internal functions.
117642         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117644         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117645         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117646         Don't depend on VMS; depend on __VMS instead, for POSIX
117647         namespace cleanness.
117648         (regoff_t): Define to ssize_t, not long int.
117650         Remove the REG_ macros named below.  Instead, make the old names
117651         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117652         __USE_GNU_REGEX.
117653         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117654         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117655         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117656         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117657         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117658         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117659         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117660         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117661         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117662         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117663         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117664         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117665         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117666         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117667         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117668         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117669         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117670         (REG_NREGS):
117671         Remove.  All uses replaced by the old RE_* names.
117672         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117673         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117674         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117675         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117676         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117677         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117678         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117679         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117680         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117681         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117682         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117683         Don't bother having these macros be independent of each others'
117684         values, since they no longer exist in the POSIX name space.
117686         Rename the following member names back to their old names,
117687         unless !__USE_GNU_REGEX.  All uses changed back.
117688         (buffer): Renamed from re_buffer.
117689         (allocated): Renamed from re_allocated.
117690         (used): Renamed from re_used.
117691         (syntax): Renamed from re_syntax.
117692         (fastmap): Renamed from re_fastmap.
117693         (translate): Renamed from re_translate.
117694         (can_be_null): Renamed from re_can_be_null.
117695         (regs_allocated): Renamed from re_regs_allocated.
117696         (fastmap_accurate): Renamed from re_fastmap_accurate.
117697         (no_sub): Renamed from re_no_sub.
117698         (not_bol): Renamed from re_not_bol.
117699         (not_eol): Renamed from re_not_eol.
117700         (newline_anchor): Renamed from re_newline_anchor.
117701         (num_regs): Renamed from rm_num_regs.
117702         (start): Renamed from rm_start.
117703         (end): Renamed from rm_end.
117705         (free_state): Move up a bit.
117707         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117708         #define to be empty.
117709         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117710         when that is what is intended.
117711         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117712         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117713         (MAX): New macro.
117714         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117715         All uses changed back to re_malloc, etc.  It's now the caller's
117716         responsibility to check for overflow; all callers changed.
117717         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117718         (re_x2nrealloc): Remove.
117719         (free_state): Remove decl.
117721         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117722         (re_set_registers, re_exec):
117723         Use K&R-style defn.
117725         2006-01-31  Roland McGrath  <roland@redhat.com>
117727         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117728         Reported by Mike Frysinger <vapier@gentoo.org>.
117730         2006-01-15  Andreas Jaeger  <aj@suse.de>
117732         [BZ #1950]
117733         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117734         build_wcs_upper_buffer change.
117735         (build_wcs_upper_buffer): Change return type.
117737         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117739         * lib/regex_internal.h: Include <stdint.h> if available.
117741         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117743         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117745         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117747         * lib/regcomp.c: Adjust for changed secondary hash function.
117749         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117751         * lib/regex.h: Pretty printing.
117752         Clean up namespace a bit.
117754         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117756         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117757         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117759         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117760                     Ulrich Drepper  <drepper@redhat.com>
117762         [BZ #1302]
117763         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117764         changed.
117765         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117767         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117769         [BZ #281]
117770         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117771         * lib/regcomp.c: Remove unnecessary uses of
117772         unsigned RE_TRANSLATE_TYPE.
117773         * lib/regex_internal.h: Likewise.
117774         * lib/regex_internal.c: Likewise.
117775         * lib/regexec.c: Likewise.
117776         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117778         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117780         * lib/regexec.c (find_recover_state): Remove unnecessary
117781         initialization.
117782         (transit_state_bkref): Make DFA a const pointer.
117783         (get_subexp): Likewise.
117784         (check_arrival): Likewise.
117785         (update_cur_sifted_state): Likewise.
117786         (re_search_internal): Likewise.
117787         (prune_impossible_nodes): Likewise.
117788         (acquire_init_state_context): Likewise.
117789         (proceed_next_node): Likewise.
117790         (set_regs): Likewise.
117791         (free_fail_stack_return): Likewise.
117792         (check_arrival_expand_ecl): Mark DFA parameter as const.
117793         (check_arrival_expand_ecl_sub): Likewise.
117794         (check_subexp_limits): Likewise.
117795         (sub_epsilon_src_nodes):  Likewise.
117796         (add_epsilon_src_nodes):  Likewise.
117797         (merge_state_array): Likewise.
117798         (update_regs): Likewise.
117799         (build_trtable): Likewise.
117800         (sift_states_backward): Mark MCTX parameter as const.
117801         (build_sifted_states): Likewise.
117802         (update_cur_sifted_state): Likewise.
117803         (sift_states_mkref): Likewise.
117804         (check_arrival_expand_ecl): Mark eclosure as const.
117805         (check_dst_limits_calc_pos_1): Likewise.
117806         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117807         pointer.
117809         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117811         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117812         (transit_state_sb): Likewise.
117813         (transit_state_mb): Likewise.
117814         (sift_states_iter_mb): Likewise.
117815         (check_arrival_add_next_nodes): Likewise.
117816         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117817         [_LIBC] (re_search_2_stub): Use mempcpy.
117819         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117820         mbrtowc for very simple UTF-8 case.
117822         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117823         a pointer-to-const.
117824         (re_acquire_state_context): Likewise.
117825         * lib/regex_internal.h: Adjust prototypes.
117827         * lib/regex.c: Prevent using C++ compilers.
117829         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117830         (re_acquire_state_context): Likewise.
117832 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117834         * modules/regex (Depends-on): Add ssize_t.
117836 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117838         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117839         translation table.
117841 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117843         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117845 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117846             Bruno Haible  <bruno@clisp.org>
117848         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117849         <sys/types.h> and <inttypes.h>.
117851 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117853         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117854         `__error_t_defined', so argp.h will not typedef the former.
117856 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117858         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117859         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117860         glibc names.  Even if glibc is changed to conform to POSIX, the
117861         traditional names will be available anyway, since regex depends on
117862         the extensions module.  Also, fix a longstanding typo in the
117863         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117864         reported by Emanuele Giaquinta.  Also, change sense of cached
117865         variable, so that the message makes sense.
117867 2006-03-24  Simon Josefsson  <jas@extundo.com>
117869         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117870         including some doc fixes.
117871         (base64_encode_alloc): Fix +1 bug on allocation failures.
117873 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117875         * lib/base64.c (base64_encode): Do not read past end of array with
117876         unsanitized input on systems with CHAR_BIT > 8.
117878 2006-03-24  Eric Blake  <ebb9@byu.net>
117880         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117882 2006-03-22  Karl Berry  <karl@gnu.org>
117884         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117885         * config/srclistvars.sh (COREUTILS): new var.
117887 2006-03-17  Jim Meyering  <jim@meyering.net>
117889         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117890         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117892 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117894         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117895         no longer needs it.  Instead, check that regoff_t is as least
117896         as wide as ptrdiff_t.
117898         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117899         so that our regex.h stays compatible with the installed regex.
117900         This is helpful for installers who configure --without-included-regex.
117901         Problem reported by Emanuele Giaquinta.
117903 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117905         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117906         Typedef to long int, not to off_, as POSIX will likely change
117907         in that direction.
117909 2006-03-15  Eric Blake  <ebb9@byu.net>
117911         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117913 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117915         * lib/argp-help.c (validate_uparams): Fix typo
117916         * lib/argp-parse.c (argp_default_options): Consistently begin help
117917         messages with a lowercase letter.
117919 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117921         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117922         overrun buffers and shouldn't be used (much as gets shouldn't be
117923         used).
117924         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117926 2006-03-08  Simon Josefsson  <jas@extundo.com>
117928         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117929         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117931 2006-03-08  Simon Josefsson  <jas@extundo.com>
117933         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117934         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117936 2006-03-08  Simon Josefsson  <jas@extundo.com>
117938         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117939         signal that configure disabled the device.
117941 2006-03-08  Simon Josefsson  <jas@extundo.com>
117943         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117944         languages.
117946 2006-03-07  Simon Josefsson  <jas@extundo.com>
117948         * modules/getopt (Depends-on): Add unistd.
117950         * modules/unistd: New file.
117952 2006-03-07  Simon Josefsson  <jas@extundo.com>
117954         * modules/gc-random: New file.
117956 2006-03-07  Simon Josefsson  <jas@extundo.com>
117958         * m4/unistd_h.m4: New file.
117960 2006-03-07  Simon Josefsson  <jas@extundo.com>
117962         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117963         test to be side-effect free by storing the result in the cache
117964         variable gl_cv_lib_readline, and moving the assignment of
117965         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117966         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117968 2006-03-07  Simon Josefsson  <jas@extundo.com>
117970         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117971         error on missing devices (the functions will return an error).
117973         * m4/gc.m4: Move random stuff to gc-random.m4
117975 2006-03-07  Simon Josefsson  <jas@extundo.com>
117977         * lib/unistd_.h: New file.
117979 2006-03-07  Simon Josefsson  <jas@extundo.com>
117981         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117983 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117985         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117986         Problem reported by Juan Manuel Guerrero.
117988 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117990         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117991         the unistd module.
117992         * lib/getlogin_r.c: Likewise.
117993         * lib/getlogin_r.h: Likewise.
117994         * lib/glob.c: Likewise.
117995         * lib/pagealign_alloc.c: Likewise.
117996         * lib/unistd_.h: Remove; no longer needed.
117998 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118000         * MODULES.html.sh (Support for systems lacking POSIX:2001):
118001         Add unistd.
118002         * modules/c-stack (Depends-on): Add unistd.
118003         * modules/getlogin_r: Likewise.
118004         * modules/glob: Likewise.
118005         * modules/pagealign_alloc: Likewise.
118006         * modules/unistd (Files): Remove lib/unistd_.h.
118007         (EXTRA_DIST): Remove.
118008         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
118009         need unistd_.h.
118010         (MOSTLYCLEANFILES): Remove unistd.h-t.
118012 2006-03-03  Simon Josefsson  <jas@extundo.com>
118014         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
118016 2006-03-03  Simon Josefsson  <jas@extundo.com>
118018         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
118019         libidn and bison.
118021 2006-03-03  Simon Josefsson  <jas@extundo.com>
118023         * build-aux/maint.mk: Add indent target.
118025 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
118027         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
118028         our replacement poll.h in any case, to avoid a differing
118029         declaration from a system header.  Seen on AIX.
118031 2006-03-01  Simon Josefsson  <jas@extundo.com>
118033         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
118034         <kasal@ucw.cz>.
118036 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118038         * modules/gettime (Depends-on): Add extensions module.
118039         * modules/nanosleep (Depends-on): Likewise.
118040         * modules/settime (Depends-on): Likewise.
118042 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118044         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
118045         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
118046         pedantically.
118047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
118048         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
118050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
118051         not "==".  Reported by Ralf Wildenhues.
118053 2006-03-01  Karl Berry  <karl@gnu.org>
118055         * doc/Copyright/request-*: new files, synced from gnuorg.
118057 2006-03-01  Karl Berry  <karl@gnu.org>
118059         * config/srclist.txt (Copyright/*): new entries.
118061 2006-02-28  Simon Josefsson  <jas@extundo.com>
118063         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
118065 2006-02-27  Simon Josefsson  <jas@extundo.com>
118067         * lib/base64.h: Indent #define's.  From Jim Meyering
118068         <jim@meyering.net>.
118070 2006-02-27  Jim Meyering  <jim@meyering.net>
118072         Revert the change of 2006-02-24, so these files can continue
118073         to be sync'd from gettext.
118074         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
118075         of `config.h'.
118077 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118079         * modules/intprops: New file.
118080         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
118081         Add intprops.
118082         * modules/getloadavg (Files): Remove lib/intprops.h.
118083         (Depends-on): Add intprops.
118084         * modules/human: Likewise.
118085         * modules/inttostr: Likewise.
118086         * modules/openat: Likewise.
118087         * modules/sig2str: Likewise.
118088         * modules/userspec: Likewise.
118089         * modules/utimecmp: Likewise.
118090         * modules/xnanosleep: Likewise.
118091         * modules/xstrtol: Likewise.
118093 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
118095         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
118096         * modules/lock-tests (TESTS): Use $(EXEEXT).
118097         * modules/tls-tests: Likewise.
118098         * modules/argp-tests: Likewise.
118099         (check_PROGRAMS): New var, replacing...
118100         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
118102 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118104         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
118105         `config.h'.
118107 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
118109         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
118111 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118113         Sync from coreutils.
118114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
118115         gl_CHDIR_SAFER.
118117 2006-02-22  Jim Meyering  <jim@meyering.net>
118119         Sync from coreutils.
118120         * m4/chdir-safer.m4: New file.
118122 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
118124         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
118125         AT_FDCWD exceeds INT_MAX.
118126         * lib/openat.h (AT_FDCWD): Likewise.
118128 2006-02-17  Eric Blake  <address@hidden>
118130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
118132 2006-02-16  Simon Josefsson  <jas@extundo.com>
118134         * modules/getaddrinfo (Depends-on): Add sys_socket.
118136 2006-02-15  Simon Josefsson  <jas@extundo.com>
118138         * build-aux/maint.mk: Add dsyntax-check rule.
118140 2006-02-15  Eric Blake  <ebb9@byu.net>
118142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
118143         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
118144         'present but cannot compile' warnings on cygwin.
118145         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
118146         use ws2tcpip.h if sys/socket.h works.
118147         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
118148         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
118150 2006-02-14  Simon Josefsson  <jas@extundo.com>
118152         * modules/maintainer-makefile (Files): Rename.
118154         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
118155         and (the local) Makefile.cfg to maint-cfg.mk.
118157         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
118158         to the latter.
118160         * modules/maintainer-makefile: New module.
118162         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
118163         severaly stripped to make it possible to build it up from scratch
118164         with reliable tests.
118166         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
118167         fixes to permit overriding the default actions when configure and
118168         makefile are not available.
118170 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
118172         Sync from coreutils.
118173         * modules/lstat (Depends-on): Don't depend on xalloc.
118174         (License): Change from GPL to LGPL, since this is now simply a
118175         replacement for a libc function.
118177 2006-02-14  Jim Meyering  <jim@meyering.net>
118179         Sync from coreutils.
118181         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
118182         failure on deficient systems, and simplify gnulib lgpl dependencies.
118183         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
118184         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
118186         * lib/xalloc-die.c: Remove unused definition of N_.
118188 2006-02-14  Jim Meyering  <jim@meyering.net>
118190         Sync from coreutils.
118191         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
118192         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
118193         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
118194         double-quote uses of that variable, to accommodate the rare case in
118195         which getmntent is available in none of the libraries checked.  This
118196         happens at least on FreeBSD 5.0.
118198 2006-02-13  Simon Josefsson  <jas@extundo.com>
118200         * gnulib-tool (Usage): Fix --import, from
118201         karl@freefriends.org (Karl Berry).
118203 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118205         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
118207 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
118209         * lib/argp-namefrob.h: Restore changes accidentally lost during the
118210         "autoupdate" on 2005-12-12.
118212 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118214         * modules/closeout (Depends-on): Remove atexit.
118216 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118218         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
118219         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
118221 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
118223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
118224         __EXTENSIONS__ if this causes compilation to fail.  Problem
118225         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
118226         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
118228 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
118230         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
118231         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
118232         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
118233         All uses changed.
118235 2006-01-26  Simon Josefsson  <jas@extundo.com>
118237         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
118238         prototype is visible on mingw32.
118240         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
118241         for mingw32.
118243         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
118244         mingw32).
118246 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
118248         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
118249         attempt to open for write; this always fails, at least on POSIX
118250         hosts.  This reinstates the 2006-01-09 change, which was
118251         inadvertently removed.
118253 2006-01-26  Bruno Haible  <bruno@clisp.org>
118255         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
118256         Reported by Paul Eggert.
118258 2006-01-26  Bruno Haible  <bruno@clisp.org>
118259             Paul Eggert  <eggert@cs.ucla.edu>
118261         * lib/stdbool_.h (_Bool)
118262         [(! (defined __cplusplus || defined __BEOS__)
118263           && !defined __GNUC__
118264           && !(defined __HP_cc || defined __xlc__
118265                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
118266                || defined __sgi))]:
118267         #define to signed char in these cases too; this simplifies
118268         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
118269         etc., separately) and makes it more conservative.
118271 2006-01-25  Simon Josefsson  <jas@extundo.com>
118273         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
118274         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
118275         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
118277 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
118279         * lib/argp-namefrob.h: Bugfix. Remove stray #
118281 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
118283         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
118284         so that we test the test.
118285         Check for yet another HP-UX cc bug involving *bool |= bool.
118287 2006-01-25  Karl Berry  <karl@gnu.org>
118289         * config/srclist.txt (vasnprintf.c): sync lost.
118291 2006-01-25  Jim Meyering  <jim@meyering.net>
118293         Sync from the stable (b5) branch of coreutils:
118295         * lib/fts.c (fts_children): Don't let close() clobber errno from
118296         failed fchdir().
118298         * lib/fts.c (fts_stat): When following a symlink-to-directory,
118299         don't necessarily interpret stat-fails+lstat-succeeds as indicating
118300         a dangling symlink.  That can also happen at least for ELOOP.
118301         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
118302         FYI, this bug predates the inclusion of fts.c in coreutils.
118304         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
118305         in their own block, so pre-c99 compilers don't object.
118307         Avoid the double-free (first in fts_read, second in fts_close) that
118308         would occur when an `active' directory is made inaccessible (e.g.,
118309         via chmod a-x) during a traversal.
118310         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118311         before returning.  Reproduce this failure by
118312         mkdir -p a/b; cd a; chmod a-x . b
118313         Reported by Stavros Passas.
118315 2006-01-25  Jim Meyering  <jim@meyering.net>
118317         * lib/fileblocks.c: Remove more useless parentheses.
118318         * lib/readutmp.h: Likewise.
118320 2006-01-25  Bruno Haible  <bruno@clisp.org>
118322         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
118323         warnings.
118324         Reported by Paul Eggert.
118326 2006-01-25  Bruno Haible  <bruno@clisp.org>
118328         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118329         rid of a trap command. For Solaris sh.
118330         Reported by Mark D. Baushke <mdb@gnu.org>.
118332 2006-01-24  Simon Josefsson  <jas@extundo.com>
118334         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118335         Bruno.
118337 2006-01-24  Karl Berry  <karl@gnu.org>
118339         * config/srclist.txt (argp-namefrob.h): sync lost.
118341 2006-01-24  Jim Meyering  <jim@meyering.net>
118343         * modules/openat (Files): Add lib/intprops.h.
118344         From Mark D. Baushke.
118346 2006-01-24  Jim Meyering  <jim@meyering.net>
118348         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118349         Reported by Mark D. Baushke.
118351 2006-01-24  Jim Meyering  <jim@meyering.net>
118353         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118355 2006-01-24  Bruno Haible  <bruno@clisp.org>
118357         * modules/strnlen (Maintainer): Change from glibc to all.
118359 2006-01-24  Bruno Haible  <bruno@clisp.org>
118361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118362         Patch by Paul Eggert.
118364 2006-01-24  Bruno Haible  <bruno@clisp.org>
118366         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118367         already has it.
118368         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118369         2005-11-26.
118371         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118372         'signed char' to avoid problems with the built-in _Bool type.
118373         Reported by Paul Eggert on 2005-11-26.
118375 2006-01-24  Bruno Haible  <bruno@clisp.org>
118377         * gnulib-tool (func_import): Avoid constructing complicated sed
118378         expressions inside backquote.
118379         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118381 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118383         These changes imported from libc.
118384         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118385         test and two separate function calls.
118386         * lib/strndup.c (__strndup): Add libc_hidden_def.
118388 2006-01-23  Simon Josefsson  <jas@extundo.com>
118390         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118391         Remove the test_*_SOURCES variable: automake infers it by default.
118392         * modules/tls-tests: Likewise.
118394 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118396         Work around porting bugs reported by Dieter in
118397         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118398         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118399         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118400         Include "getopt.h" first, to check interface.
118401         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118402         !HAVE_DECL_GETENV.
118403         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118404         (__strndup): Revert to K&R-style function dfns, the glibc style.
118405         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118406         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118407         Include strnlen.h first, to get prototype properly.
118408         (strnlen): Renamed from __strnlen.
118409         Remove weak alias.
118411 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118413         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118415 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118417         * config/srclist.txt: Adjust to reflect glibc reorganization.
118418         This affects only comments.
118420 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118422          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118423          Reported by Bruce Korb <bkorb@gnu.org>.
118425 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118427         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118428         to pacify gcc -Wswitch-default.
118430 2006-01-22  Bruno Haible  <bruno@clisp.org>
118432         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118433         temporary buffer for sprintf, take into account the precision also
118434         for 'd', 'i', 'u', 'o', 'x', 'X'.
118436 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118438         * modules/argp-tests: New module
118439         * tests/test-argp.c: New file
118440         * tests/test-argp-2.sh: New file
118442 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118444         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118445         (__argp_base_name): Removed
118446         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118447         typo.
118448         (__argp_base_name): Provide macro definition or extern declaration
118449         depending on the configuration
118451 2006-01-20  Simon Josefsson  <jas@extundo.com>
118453         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118455 2006-01-20  Simon Josefsson  <jas@extundo.com>
118457         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118459 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118461         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118462         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118463         Suggested by Bruno Haible.
118465 2006-01-20  Karl Berry  <karl@gnu.org>
118467         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118468         until changes propagate, I guess.
118470 2006-01-19  Simon Josefsson  <jas@extundo.com>
118472         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118474 2006-01-19  Simon Josefsson  <jas@extundo.com>
118476         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118478 2006-01-19  Simon Josefsson  <jas@extundo.com>
118480         * gnulib-tool: Set check_PROGRAMS.
118482         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118483         modules/des-tests, modules/gc-arcfour-tests,
118484         modules/gc-arctwo-tests, modules/gc-des-tests,
118485         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118486         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118487         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118488         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118489         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118490         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118491         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118492         test_*_SOURCES.
118494 2006-01-18  Simon Josefsson  <jas@extundo.com>
118496         * modules/socklen (Depends-on): Depend on sys_socket.
118498 2006-01-18  Simon Josefsson  <jas@extundo.com>
118500         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118501         modules/des-tests, modules/gc-arcfour-tests,
118502         modules/gc-arctwo-tests, modules/gc-des-tests,
118503         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118504         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118505         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118506         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118507         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118508         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118509         $(EXEEXT) to automake TESTS variable, for mingw32.
118511 2006-01-17  Simon Josefsson  <jas@extundo.com>
118513         * modules/socklen (Include): Need sys/socket.h.
118515 2006-01-17  Bruno Haible  <bruno@clisp.org>
118517         * modules/ssize_t (Include): Add <sys/types.h>.
118519 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118521         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118522         it's not portable and it doesn't work with cross-compiles.
118523         Problem reported by Bruno Haible.  Fix missing-$ typo in
118524         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118525         -zignore from being used with Sun's C compiler.
118527 2006-01-12  Simon Josefsson  <jas@extundo.com>
118529         * lib/base64.c: Fix warning, reported by Bruno Haible
118530         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118532 2006-01-12  Bruno Haible  <bruno@clisp.org>
118534         * modules/ldd: New file.
118535         * build-aux/ldd.sh.in: New file.
118536         * MODULES.html.sh (Support for building libraries and executables): Add
118537         ldd.
118539 2006-01-12  Bruno Haible  <bruno@clisp.org>
118541         * m4/ldd.m4: New file.
118543 2006-01-12  Bruno Haible  <bruno@clisp.org>
118545         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118546         endless loop while replacing $auxdir with build-aux.
118548 2006-01-11  Simon Josefsson  <jas@extundo.com>
118550         * lib/stdint_.h (SIZE_MAX): Add missing (.
118552 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118554         Sync from coreutils.
118555         * lib/md5.c: Fix commentary typos.
118556         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118557         * lib/md5.h (__attribute__): Remove; unused.
118558         * lib/sha1.c: Fix commentary to match md5 better.
118559         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118560         so that we don't need to worry about alignment.  All uses changed.
118561         This merges the 2005-10-28 md5 change into sha1.
118563 2006-01-11  Jim Meyering  <jim@meyering.net>
118565         Sync from coreutils.
118566         * lib/md5.c (OP): Fix spacing.
118568 2006-01-11  Bruno Haible  <bruno@clisp.org>
118570         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118571         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118572         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118574 2006-01-11  Bruno Haible  <bruno@clisp.org>
118576         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118577         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118578         the "early" section as well.
118580 2006-01-11  Bruno Haible  <bruno@clisp.org>
118582         Avoid "ar: no archive members specified" error on MacOS X.
118583         * gnulib-tool (func_modules_add_dummy): New function.
118584         (func_import, func_create_testdir): Invoke it.
118586 2006-01-11  Bruno Haible  <bruno@clisp.org>
118588         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118589         with $auxdir in AC_CONFIG_FILES statements.
118591 2006-01-11  Bruno Haible  <bruno@clisp.org>
118593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118594         Initialize also noinst_HEADERS to empty.
118596 2006-01-11  Bruno Haible  <bruno@clisp.org>
118598         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118599         variables.
118600         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118601         autoreconf.
118603 2006-01-11  Bruno Haible  <bruno@clisp.org>
118605         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118606         overridable by the user.
118607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118609 2006-01-10  Simon Josefsson  <jas@extundo.com>
118611         * modules/sys_socket: New file.
118613 2006-01-10  Simon Josefsson  <jas@extundo.com>
118615         * m4/sys_socket_h.m4: New file.
118617 2006-01-10  Simon Josefsson  <jas@extundo.com>
118619         * lib/socket_.h: New file.
118621 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118623         * modules/readutmp (Maintainer): Add myself.
118625 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118627         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118628         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118629         People who are still concerned with buggy memcmp implementations
118630         can invoke gl_FUNC_MEMCMP themselves.
118632 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118634         * lib/regex_internal.h (BITSET_WORD_BITS):
118635         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118636         preprocessor mishandles large unsigned values as if they were signed.
118637         Problem reported by Claudio Fontana in
118638         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118640 2006-01-10  Jim Meyering  <jim@meyering.net>
118642         Avoid the double-free (first in fts_read, second in fts_close) that
118643         would occur when an `active' directory is made inaccessible (e.g.,
118644         via chmod a-x) during a traversal.
118645         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118646         before returning.  Reproduce this failure by
118647         mkdir -p a/b; cd a; chmod a-x . b
118648         Reported by Stavros Passas.
118650         Sync from coreutils.
118651         * lib/sha1.c: Tweak grammar in a comment.
118653 2006-01-10  Jim Meyering  <jim@meyering.net>
118655         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118656         Patch by Joerg Sonnenberger.
118658 2006-01-10  Bruno Haible  <bruno@clisp.org>
118660         * modules/readutmp: Depend on module free.
118661         * modules/strtok_r: Depend on module restrict.
118663 2006-01-10  Bruno Haible  <bruno@clisp.org>
118665         * modules/gettext (configure.ac): Add an invocation of
118666         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118668 2006-01-10  Bruno Haible  <bruno@clisp.org>
118670         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118671         Reported by Werner Lemberg <wl@gnu.org>.
118673 2006-01-10  Bruno Haible  <bruno@clisp.org>
118675         * lib/localcharset.c: Update from GNU gettext.
118677 2006-01-10  Bruno Haible  <bruno@clisp.org>
118679         * lib/argp.h (__const): Remove macro. Use const instead.
118680         * lib/argp-fmtstream.h (__const): Likewise.
118681         * lib/glob_.h (__const): Remove macro.
118682         * lib/glob-libc.h: Use const instead of __const.
118684 2006-01-10  Bruno Haible  <bruno@clisp.org>
118686         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118687         variable.
118688         Needed to avoid an automake error regarding the 'gettext' module.
118690 2006-01-09  Simon Josefsson  <jas@extundo.com>
118692         * modules/inet_ntop (Depends-on): Add restrict.
118694 2006-01-09  Simon Josefsson  <jas@extundo.com>
118696         * modules/gc-rijndael-tests (License): Put under LGPL.
118698         * modules/gc-des-tests (License): Likewise.
118700         * modules/gc-arcfour-tests (License): Likewise.
118702         * modules/gc-arctwo-tests (License): Likewise.
118704         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118706         * modules/gc-hmac-sha1-tests (Files): Likewise.
118708         * modules/gc-hmac-md5-tests (License): Likewise.
118710         * modules/gc-sha1-tests (License): Likewise.
118712         * modules/gc-md5-tests (License): Likewise.
118714         * modules/gc-md4-tests (License): Likewise.
118716         * modules/gc-md2-tests (License): Likewise.
118718         * modules/gc-tests (License): Likewise.
118720         * modules/des-tests (License): Likewise.
118722         * modules/md4-tests (License): Likewise.
118724         * modules/md2-tests (License): Likewise.
118726 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118728         Sync from coreutils:
118730         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118731         * modules/lib-ignore: New file.
118732         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118733         chdir-safer.m4, lchmod.m4.
118734         * modules/openat: Add mkdirat.c, openat-priv.h.
118736 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118738         Sync from coreutils.
118739         * m4/lib-ignore.m4: New file.
118740         * m4/lchmod.m4: New file.
118742 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118744         Sync from coreutils.
118745         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118746         for write access: POSIX says that must fail.
118747         * lib/fts.c (diropen): Likewise.
118748         * lib/save-cwd.c (save_cwd): Likewise.
118749         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118750         well, for minor improvements on hosts that lack O_DIRECTORY.
118751         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118752         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118753         Fall back on chown if open failed with EACCES.
118755         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118756         Report an error at compile-time if only a 1-second nominal clock
118757         resolution is found.
118759         * lib/lchmod.h: New file.
118760         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118761         (make_dir_parents): Use lchown rather than chown, and
118762         lchmod rather than chmod.
118764         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118765         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118766         "proc" reported by n0dalus.
118768         * lib/mountlist.c: Include <limits.h>.
118769         (dev_from_mount_options)
118770         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118771         New function.  It no longer assumes "dev=" has the System V meaning
118772         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118773         (read_file_system_list)
118774         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118775         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118776         dev= in that case.
118778         * lib/posixtm.h (PDS_PRE_2000): New macro.
118779         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118780         allow_century.  All usages changed.  Reject dates outside the range
118781         1969-1999 if PDS_PRE_2000 is used.
118783 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118785         Sync from coreutils.
118786         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118787         (Time of day items): Mention the possibility of leap seconds.
118788         Problem reported by Dr. David Alan Gilbert.
118790 2006-01-09  Jim Meyering  <jim@meyering.net>
118792         Sync from coreutils.
118794         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118796         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118798         * lib/modechange.c (mode_compile): Reject an invalid mode string
118799         that starts with an octal digit.  From Andreas Gruenbacher.
118801         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118802         and dup to open_safer and dup_safer, respectively.
118803         (openat_permissive): Fix typo in comment.
118805         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118806         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118807         (_): Remove; no longer needed.
118808         (openat): Renamed from rpl_openat; no need for rpl_openat
118809         since openat.h renames openat for us.
118810         Replace most of the body with a call to openat_permissive,
118811         to avoid duplicate code.
118812         Port to (probably hypothetical) environments were mode_t is
118813         wider than int.
118814         (openat_permissive): Require mode arg, so that we can check
118815         types better.  Put it just after flags.  Change cwd failure
118816         indicator from pointer-to-bool to pointer-to-errno-value.
118817         All callers changed.
118818         Invoke openat_save_fail and/or openat_restore_fail if
118819         cwd_errno is null, so that openat can call us.
118820         (openat_permissive, fdopendir, fstatat, unlinkat):
118821         Simplify errno handling to avoid some duplicate code,
118822         as it's OK to set errno on success.
118823         * lib/openat.h: Revamp code so that function macros depend on
118824         __OPENAT_PREFIX only, not also on AT_FDCWD.
118825         (openat_ro): Remove.  Caller changed to use openat_permissive.
118826         (openat_permissive): Now a macro, if not a function.
118827         (openat_restore_fail, openat_save_fail): Now always functions,
118828         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118830         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118831         and openat.c.
118832         * lib/mkdirat.c: Include openat-priv.h.
118833         Remove definitions of macros defined therein.
118834         * lib/openat.c: Likewise.
118836         * lib/mkdirat.c (mkdirat): New file and function.
118837         * lib/openat.h (mkdirat): Declare.
118839         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118841         * lib/openat.h (openat_permissive): Declare.
118842         (openat_ro): Define.
118844         * lib/openat.c (EXPECTED_ERRNO): New macro.
118845         (openat_permissive): New function -- used in remove.c rewrite.
118846         (all functions): Set errno just before returning, only if there
118847         was an actual failure.
118848         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118850         Emulate openat-family functions using Linux's procfs, if possible.
118851         Idea and some code based on Ulrich Drepper's glibc changes.
118853         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118854         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118855         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118856         before falling back on save_cwd and restore_cwd.
118857         (fdopendir, fstatat, unlinkat): Likewise.
118859         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118860         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118862         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118863         as second argument to va_arg.  Otherwise, some versions of gcc
118864         warn that `if this code is reached, the program will abort'.
118866 2006-01-09  Jim Meyering  <jim@meyering.net>
118868         Sync from coreutils.
118869         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118870         Require openat-priv.h.
118872 2006-01-09  Bruno Haible  <bruno@clisp.org>
118874         * modules/strnlen (Include): Use strnlen.h.
118876 2006-01-09  Bruno Haible  <bruno@clisp.org>
118878         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118880 2006-01-09  Bruno Haible  <bruno@clisp.org>
118882         * lib/sysexit_.h (EX_OK): New macro.
118883         Suggested by Martin Lambers <marlam@marlam.de>.
118885 2006-01-09  Bruno Haible  <bruno@clisp.org>
118887         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118888         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118890 2006-01-09  Bruno Haible  <bruno@clisp.org>
118892         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118893         numbers.
118895 2006-01-09  Bruno Haible  <bruno@clisp.org>
118897         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118898         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118899         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118900         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118902 2006-01-09  Bruno Haible  <bruno@clisp.org>
118904         * build-aux/javacomp.sh.in: New file, moved from lib/.
118905         * modules/javacomp-script (Files): Update.
118906         (configure.ac): Add AC_CONFIG_FILES invocation.
118907         (EXTRA_DIST): Remove variable.
118909         * build-aux/javaexec.sh.in: New file, moved from lib/.
118910         * modules/javaexec (Files): Update.
118911         (configure.ac): Add AC_CONFIG_FILES invocation.
118912         (EXTRA_DIST): Remove javaexec.sh.in.
118914         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118915         * modules/csharpcomp-script (Files): Update.
118916         (configure.ac): Add AC_CONFIG_FILES invocation.
118917         (EXTRA_DIST): Remove variable.
118919         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118920         * modules/csharpexec (Files): Update.
118921         (configure.ac): Add AC_CONFIG_FILES invocation.
118922         (EXTRA_DIST): Remove csharpexec.sh.in.
118924 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118926         Sync from coreutils.
118928         Add POSIX ACL support
118929         * lib/acl.h (copy_acl, set_acl): Add declarations.
118930         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118931         systems other than Linux.
118932         (chmod_or_fchmod): New function: use fchmod when possible,
118933         and chmod otherwise.
118934         (file_has_acl): Add a POSIX ACL implementation, with a
118935         Linux-specific subcase.
118936         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118937         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118938         acls are unsupported.
118939         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118940         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118941         are unsupported.
118943 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118945         Sync from coreutils.
118946         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118948 2006-01-07  Bruno Haible  <bruno@clisp.org>
118950         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118951         gl_EARLY.
118953 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118955         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118956         Problem reported for Mingw by Mark Junker.
118958 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118960         * README: Gnulib normally doesn't generate a tarball.
118962 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118964         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118965         long int, not int, for nanosecond counts, so that people who are
118966         used to POSIX struct timespec won't be surprised.  Reported by Jim
118967         Meyering.
118969 2005-12-28  Bruno Haible  <bruno@clisp.org>
118971         * build-aux/config.rpath: Update from GNU gettext.
118973 2005-12-16  Jim Meyering  <jim@meyering.net>
118975         * modules/fprintftime: New module.
118976         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118978 2005-12-16  Jim Meyering  <jim@meyering.net>
118980         * m4/fprintftime.m4: New file.
118982 2005-12-16  Jim Meyering  <jim@meyering.net>
118984         * lib/fprintftime.c, lib/fprintftime.h: New files.
118986 2005-12-15  Simon Josefsson  <jas@extundo.com>
118988         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118989         new m4/socklen.m4.
118991 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118993         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118994         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118996 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118998         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118999         * lib/argp-help.c (fill_in_uparams): Check if the constructed
119000         struct uparams is valid. Fall back to the default values if it is
119001         not.
119003 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119005         * modules/argp (Files): Add argp-pin.c
119006         (Depends-on): dirname
119007         (lib_SOURCES): Add argp-pin.c
119009 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119011         * m4/argp.m4:  Check if program_invocation_name and
119012         program_invocation_short_name are declared and define appropriate
119013         macros if they are not.
119015 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119017         * lib/argp-help.c (__argp_base_name): New function
119018         (__argp_short_program_name): Rewrite using __argp_base_name
119019         * lib/argp-namefrob.h: Define program_invocation_name and
119020         program_invocation_short_name if requested
119021         (__argp_base_name): Add prototype
119022         * lib/argp-parse.c (argp_def): Use gettext wrappers
119023         (argp_default_parser): Use __argp_base_name
119024         * lib/argp-pin.c: New file. Defines program_invocation_name and
119025         program_invocation_short_name on systems that lack them.
119027 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119029         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
119030         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119031         porting problem reported by Georg Schwarz in
119032         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119034 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119036         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
119037         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119038         porting problem reported by Georg Schwarz in
119039         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119041 2005-12-05  Bruno Haible  <bruno@clisp.org>
119043         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
119044         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
119045         Reported by Mark Junker <mjscod@gmx.de>.
119047 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
119049         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
119050         Use implementation from Albert Chin, with some
119051         comments/corrections by Stepan Kasal and myself.
119053 2005-12-02  Bruno Haible  <bruno@clisp.org>
119055         * gnulib-tool (func_import): Accept GPLed build tool modules when
119056         --lgpl is given.
119057         * modules/csharpcomp-script: New file.
119058         * modules/csharpcomp: Depend on it.
119059         * modules/javacomp-script: New file.
119060         * modules/javacomp: Depend on it.
119061         Suggested by Simon Josefsson.
119063 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
119065         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
119066         statement, to work around an HP-UX 10.20 compiler bug reported by
119067         Peter O'Gorman.
119069 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119071         * modules/savedir (Depends-on): Add openat.
119073 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119075         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
119076         (uintmax_t) [defined uintmax_t]: Do not declare.
119077         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
119078         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
119079         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
119080         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
119081         sake of portability to weird hosts that C allows (though we don't
119082         know of any practical examples).
119084         * lib/savedir.h (fdsavedir): New decl.
119085         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
119086         contains most of the former guts of savedir.
119087         (savedir): Use savedirstream.
119088         Include "openat.h".
119090 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119092         * modules/obstack (Files): Add m4/ulonglong.m4.
119093         Problem reported by Davide Angelocola.
119095 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
119097         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
119098         coreutils no longer futzes with rounding modes.
119100 2005-11-14  Jim Meyering  <jim@meyering.net>
119102         * lib/mkstemp-safer.c: Include <config.h>, required for possible
119103         replacement of mkstemp.
119105 2005-11-10  Simon Josefsson  <jas@extundo.com>
119107         * lib/readline.c: Remove EOL.
119109 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119111         * modules/gethrxtime (Depends-on): Add gettime.
119113 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119115         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
119116         or gettimeofday; no longer needed.
119118 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119120         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
119121         time business.
119122         (gethrxtime) [! (HAVE_NANOUPTIME
119123         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
119124         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
119125         our own approximation.
119127 2005-11-08  Eric Blake  <ebb9@byu.net>
119129         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119131 2005-11-08  Eric Blake  <ebb9@byu.net>
119133         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119135 2005-11-04  Bruno Haible  <bruno@clisp.org>
119137         * gnulib-tool: Implement --update mode.
119139 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119141         Fix porting problem reported by Theodoros V. Kalamatianos.
119142         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
119143         Don't assume that futimes failing means we must fail.
119145 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119147         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
119148         variables to suggest the intended function of the PATH_MAX check.
119150 2005-10-30  Kean Johnston  <jkj@sco.com>
119152         Trivial changes to support SCO systems.
119153         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
119154         as PATH_MAX.
119155         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
119156         where __ptr is null when no I/O is pending.
119158 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119160         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
119161         leave errno alone.  Problem reported by Dmitry V. Levin.
119163 2005-10-28  Simon Josefsson  <jas@extundo.com>
119165         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
119166         Test more.
119168         * tests/test-gc-md2.c, tests/test-md2.c: New files.
119170         * modules/md2, modules/md2-tests: New files.
119172 2005-10-28  Simon Josefsson  <jas@extundo.com>
119174         * m4/inet_ntop.m4: More tests.
119176         * m4/gc-md2.m4, md2.m4: New file.
119178 2005-10-28  Simon Josefsson  <jas@extundo.com>
119180         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
119181         "restrict" keywords, as per POSIX.  Protect the function
119182         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
119183         Don't use K&R prototypes.  Check the sprintf return values.
119184         Re-define EAFNOSUPPORT if not present.  Indent.
119186         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
119187         suggested by Bruno Haible <bruno@clisp.org>.
119189         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
119191         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
119193         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
119194         libgcrypt).
119196         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
119198         * lib/md2.h, lib/md2.c: New files.
119200 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
119202         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
119203         errno alone.  Problem reported by Frederic Jolliton.
119205 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
119207         * modules/verify (License): Change from GPL to LGPL.  This is a
119208         tiny module and there are apparently near-equivalents that are
119209         under the BSD license.
119211 2005-10-24  Simon Josefsson  <jas@extundo.com>
119213         * modules/sha1: Relicense to LGPL.
119215 2005-10-24  Simon Josefsson  <jas@extundo.com>
119217         * lib/md4.h: Shrink buffer size, now that we changed the type.
119219 2005-10-23  Simon Josefsson  <jas@extundo.com>
119221         * gnulib-tool (func_import): Fix --tests-base.
119223 2005-10-22  Simon Josefsson  <jas@extundo.com>
119225         * modules/arcfour (Depends-on): Need stdint.
119227 2005-10-22  Simon Josefsson  <jas@extundo.com>
119229         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
119230         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
119232 2005-10-22  Simon Josefsson  <jas@extundo.com>
119234         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
119235         suggested by Bruno Haible <bruno@clisp.org>.
119237 2005-10-22  Simon Josefsson  <jas@extundo.com>
119239         * lib/crc.h: Include stddef.h, for size_t.
119241 2005-10-22  Simon Josefsson  <jas@extundo.com>
119243         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
119244         arcfour_context struct (simplify test vector testing in GNU
119245         Shishi).
119247 2005-10-21  Simon Josefsson  <jas@extundo.com>
119249         * modules/des, modules/des-tests: New files.
119251         * modules/gc-des, modules/gc-des-tests: New files.
119253         * tests/test-des.c, tests/test-gc-des.c: New file.
119255 2005-10-21  Simon Josefsson  <jas@extundo.com>
119257         * modules/arctwo, modules/arctwo-tests: New files.
119259         * tests/test-arctwo.c: New file.
119261         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
119263         * tests/test-gc-arctwo.c: New file.
119265 2005-10-21  Simon Josefsson  <jas@extundo.com>
119267         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
119268         Bruno Haible <bruno@clisp.org>.
119270         * m4/gc-des.m4: New file.
119272 2005-10-21  Simon Josefsson  <jas@extundo.com>
119274         * m4/arctwo.m4: New file.
119276         * m4/gc-arctwo.m4: New file.
119278 2005-10-21  Simon Josefsson  <jas@extundo.com>
119280         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
119281         block.
119283 2005-10-21  Simon Josefsson  <jas@extundo.com>
119285         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
119286         <bruno@clisp.org>.
119288         * lib/hmac-sha1.c (hmac_sha1): Likewise.
119290         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
119291         Bruno Haible <bruno@clisp.org>.
119293         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
119294         <bruno@clisp.org>.
119296 2005-10-21  Simon Josefsson  <jas@extundo.com>
119298         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
119300 2005-10-21  Simon Josefsson  <jas@extundo.com>
119302         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
119304 2005-10-21  Simon Josefsson  <jas@extundo.com>
119306         * lib/des.h, lib/des.c: New files.
119308         * lib/gc-gnulib.c: Support DES.c
119310 2005-10-21  Simon Josefsson  <jas@extundo.com>
119312         * lib/arctwo.h, lib/arctwo.c: New files.
119314         * lib/gc-gnulib.c: Support ARCTWO.
119316 2005-10-21  Simon Josefsson  <jas@extundo.com>
119318         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
119319         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
119321 2005-10-21  Simon Josefsson  <jas@extundo.com>
119323         * gnulib-tool (func_import, func_create_testdir): Define automake
119324         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
119325         Makefile.am snippet),
119326         suggested by Bruno Haible <bruno@clisp.org>.
119328         * modules/gc (Makefile.am): Use it.
119330 2005-10-21  Bruno Haible  <bruno@clisp.org>
119332         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119333         patch.
119335 2005-10-19  Simon Josefsson  <jas@extundo.com>
119337         * tests/test-gc-rijndael.c: New file.
119339         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119341 2005-10-19  Simon Josefsson  <jas@extundo.com>
119343         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119344         interface too.
119346 2005-10-19  Simon Josefsson  <jas@extundo.com>
119348         * tests/test-gc-arcfour.c: New file.
119350         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119352 2005-10-19  Simon Josefsson  <jas@extundo.com>
119354         * modules/gc-md4, modules/gc-md4-tests: New file.
119356         * tests/test-gc-md4.c: New file.
119358 2005-10-19  Simon Josefsson  <jas@extundo.com>
119360         * m4/gc-md4.m4: New file.
119362 2005-10-19  Simon Josefsson  <jas@extundo.com>
119364         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119365         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119366         <kasal@ucw.cz>.
119368 2005-10-19  Simon Josefsson  <jas@extundo.com>
119370         * m4/gc-arcfour.m4: New file.
119372         * m4/gc-rijndael.m4: New file.
119374 2005-10-19  Simon Josefsson  <jas@extundo.com>
119376         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119378 2005-10-19  Simon Josefsson  <jas@extundo.com>
119380         * lib/gc-gnulib.c: Support ARCFOUR.
119382 2005-10-19  Simon Josefsson  <jas@extundo.com>
119384         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119385         support.
119387         * lib/gc.h: Add ECB enum type.
119389         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119391 2005-10-18  Simon Josefsson  <jas@extundo.com>
119393         * tests/test-md5.c: New file.
119395         * modules/md5-tests: New file.
119397 2005-10-18  Simon Josefsson  <jas@extundo.com>
119399         * tests/test-md4.c: New file.
119401         * modules/md4, modules/md4-tests: New files.
119403 2005-10-18  Simon Josefsson  <jas@extundo.com>
119405         * m4/md4.m4: New file.
119407 2005-10-18  Simon Josefsson  <jas@extundo.com>
119409         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119411 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119413         * gnulib-tool (func_create_testdir): Omit the second check whether
119414         BUILT_SOURCES in nonempty.
119416 2005-10-17  Simon Josefsson  <jas@extundo.com>
119418         * tests/test-rijndael.c: New file.
119420 2005-10-17  Simon Josefsson  <jas@extundo.com>
119422         * modules/sha1: Depend on stdint instead of md5.
119424         * modules/md5: Depend on stdint, remove uint32_t.
119426 2005-10-17  Simon Josefsson  <jas@extundo.com>
119428         * modules/gc-sha1-tests: New file.
119430         * tests/test-gc-sha1.c: New file.
119432 2005-10-17  Simon Josefsson  <jas@extundo.com>
119434         * m4/md5.m4: Remove call to uint32_t.m4.
119436 2005-10-17  Simon Josefsson  <jas@extundo.com>
119438         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119440         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119441         md5.h.
119443         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119445         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119447 2005-10-17  Simon Josefsson  <jas@extundo.com>
119449         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119451 2005-10-17  Simon Josefsson  <jas@extundo.com>
119453         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119455 2005-10-17  Simon Josefsson  <jas@extundo.com>
119457         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119459         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119461 2005-10-17  Bruno Haible  <bruno@clisp.org>
119463         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119464         that it can also be used in a test.
119466 2005-10-16  Bruno Haible  <bruno@clisp.org>
119468         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119469         TESTS_ENVIRONMENT, so that individual tests can augment it.
119471         * gnulib-tool (func_create_testdir): Use an intermediate target for
119472         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119473         macros, like $(ALLOCA_H), which cannot be passed through the command
119474         line.
119476 2005-10-15  Simon Josefsson  <jas@extundo.com>
119478         * modules/rijndael-tests: New file.
119480         * modules/rijndael: New file.
119482 2005-10-15  Simon Josefsson  <jas@extundo.com>
119484         * m4/rijndael.m4: New file.
119486 2005-10-15  Simon Josefsson  <jas@extundo.com>
119488         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119490         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119492 2005-10-14  Simon Josefsson  <jas@extundo.com>
119494         * tests/test-arcfour.c: New file.
119496         * modules/arcfour, modules/arcfour-tests: New files.
119498 2005-10-14  Simon Josefsson  <jas@extundo.com>
119500         * m4/arcfour.m4: New file.
119502 2005-10-14  Simon Josefsson  <jas@extundo.com>
119504         * lib/arcfour.h, lib/arcfour.c: New files.
119506 2005-10-14  Roland McGrath  <roland@redhat.com>
119508         Import from libc.  [BZ #1331]
119509         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119510         macro argument.
119511         Reported by Matej Vela <vela@debian.org>.
119513 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119515         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119516         include <wchar.h>; no longer needed.
119518 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119520         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119522 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119523         and  Ulrich Drepper  <drepper@redhat.com>
119525         Import from libc.
119526         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119527         instead of inline stream orientation test and two separate
119528         function calls.  Pay no attention to USE_IN_LIBIO.
119530 2005-10-13  Simon Josefsson  <jas@extundo.com>
119532         * modules/gc-hmac-md5-tests: New file.
119534         * tests/test-gc-hmac-sha1.c: New file.
119536         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119538         * modules/gc-hmac-md5-tests: New file.
119540         * tests/test-gc-md5.c: New file.
119542         * modules/gc-md5-tests: New file.
119544 2005-10-13  Simon Josefsson  <jas@extundo.com>
119546         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119547         Move memory allocation outside of loop.
119549 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119551         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119552         intermediate directory is in a read-only file system.  Problem
119553         reported by Eric Blake.
119555 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119557         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119559 2005-10-12  Simon Josefsson  <jas@extundo.com>
119561         * tests/test-hmac-sha1.c: New file.
119563         * modules/hmac-sha1-tests: New file.
119565         * modules/hmac-sha1: New file.
119567 2005-10-12  Simon Josefsson  <jas@extundo.com>
119569         * modules/gc-sha1: New file.
119571 2005-10-12  Simon Josefsson  <jas@extundo.com>
119573         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119575         * tests/test-gc-pbkdf2-sha1.c: New file.
119577 2005-10-12  Simon Josefsson  <jas@extundo.com>
119579         * modules/gc-md5, modules/gc-hmac-md5: New files.
119581         * modules/gc (Files): Remove md5, memxor and hmac files.
119583 2005-10-12  Simon Josefsson  <jas@extundo.com>
119585         * m4/gc-pbkdf2-sha1.m4: New file.
119587         * m4/gc-hmac-sha1.m4: New file.
119589         * m4/gc-sha1: New file.
119591         * m4/hmac-sha1.m4: New file.
119593 2005-10-12  Simon Josefsson  <jas@extundo.com>
119595         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119597         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119599 2005-10-12  Simon Josefsson  <jas@extundo.com>
119601         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119602         suggested by Bruno Haible <bruno@clisp.org>.
119604 2005-10-12  Simon Josefsson  <jas@extundo.com>
119606         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119608 2005-10-12  Simon Josefsson  <jas@extundo.com>
119610         * lib/gc-pbkdf2-sha1.c: New file.
119612         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119614 2005-10-12  Simon Josefsson  <jas@extundo.com>
119616         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119618         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119620 2005-10-12  Simon Josefsson  <jas@extundo.com>
119622         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119623         GC_USE_HMAC_MD5, respectively.
119625         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119626         (gc_md5): Fix typo.
119628         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119630         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119632         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119634 2005-10-12  Bruno Haible  <bruno@clisp.org>
119636         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119637         Reported by Stepan Kasal <kasal@ucw.cz>.
119639 2005-10-11  Simon Josefsson  <jas@extundo.com>
119641         * tests/test-crc.c: New file.
119643         * modules/crc, modules/crc-tests: New files.
119645 2005-10-11  Simon Josefsson  <jas@extundo.com>
119647         * m4/crc.m4: New file.
119649 2005-10-11  Simon Josefsson  <jas@extundo.com>
119651         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119653         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119655         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119657 2005-10-11  Simon Josefsson  <jas@extundo.com>
119659         * lib/crc.h, lib/crc.c: New files.
119661         * lib/gc.h (gc_hash_buffer): Add doc.
119663 2005-10-11  Bruno Haible  <bruno@clisp.org>
119665         * modules/c-strcasestr: New file.
119666         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119668 2005-10-11  Bruno Haible  <bruno@clisp.org>
119670         * modules/c-strcase: New file.
119671         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119673 2005-10-11  Bruno Haible  <bruno@clisp.org>
119675         * lib/strcasecmp.c: Include limits.h.
119676         (strcasecmp): Avoid integer overflow on exotic platforms.
119677         * lib/strncasecmp.c: Include limits.h.
119678         (strncasecmp): Avoid integer overflow on exotic platforms.
119679         Reported by Paul Eggert.
119681 2005-10-11  Bruno Haible  <bruno@clisp.org>
119683         * lib/c-strcasestr.h: New file, from GNU gettext.
119684         * lib/c-strcasestr.c: New file, from GNU gettext.
119686 2005-10-11  Bruno Haible  <bruno@clisp.org>
119688         * lib/c-strcase.h: New file, from GNU gettext.
119689         * lib/c-strcasecmp.c: New file, from GNU gettext.
119690         * lib/c-strncasecmp.c: New file, from GNU gettext.
119692 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119694         * modules/mempcpy (License): GPL -> LGPL.
119695         * modules/strchrnul (License): Likewise.
119696         * modules/sysexits (License): Likewise.
119698 2005-10-08  Simon Josefsson  <jas@extundo.com>
119700         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119702 2005-10-07  Simon Josefsson  <jas@extundo.com>
119704         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119706 2005-10-06  Simon Josefsson  <jas@extundo.com>
119708         * tests/test-hmac-md5.c: New file.
119710         * modules/hmac-md5-tests: New file.
119712         * modules/hmac-md5: New file.
119714 2005-10-06  Simon Josefsson  <jas@extundo.com>
119716         * m4/hmac-md5.m4: New file.
119718         * m4/memxor.m4: Require gl_C_RESTRICT.
119720 2005-10-06  Simon Josefsson  <jas@extundo.com>
119722         * lib/memxor.c (memxor): Avoid casts and warnings.
119724 2005-10-06  Simon Josefsson  <jas@extundo.com>
119726         * lib/hmac-md5.c: New file.
119728         * lib/hmac.h: New file.
119730 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119733         promotes to int, not unsigned int, to catch the AIX 5.3
119734         compiler bug.
119736 2005-10-05  Simon Josefsson  <jas@extundo.com>
119738         * modules/memxor: New file.
119740         * modules/iconv (Files): Move config.rpath to havelib, it is used
119741         there.
119743         * modules/havelib (Files): Add config.rpath.
119745 2005-10-05  Simon Josefsson  <jas@extundo.com>
119747         * m4/memxor.m4: New file.
119749 2005-10-05  Simon Josefsson  <jas@extundo.com>
119751         * lib/memxor.c (memxor): Fix compiler error.
119753         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119754         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119756         * lib/memxor.h, lib/memxor.c: New files.
119758         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119759         we assume all systems have it, suggested by Jim Meyering
119760         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119761         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119762         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119763         same reasons.
119765 2005-10-05  Simon Josefsson  <jas@extundo.com>
119767         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119769 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119772         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119773         needed, since the source code now assumes these .h files.
119775 2005-10-05  Derek Price  <derek@ximbiot.com>
119777         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119779 2005-10-05  Bruno Haible  <bruno@clisp.org>
119781         * modules/stdint (License): Change to LGPL.
119783 2005-10-04  Simon Josefsson  <jas@extundo.com>
119785         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119786         D. Baushke" <mdb@gnu.org>.
119788 2005-10-04  Bruno Haible  <bruno@clisp.org>
119790         * lib/verify.h (verify_true): Provide alternative definition for C++.
119792 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119794         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119795         (SSIZE_MAX): New macro, if not already defined.
119796         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119797         than 2 GiB.
119799 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119801         Sync from coreutils.
119802         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119803         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119804         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119805         ULLONG_MAX doesn't work with 2.7.2.1.
119807 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119809         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119810         From Ben Pfaff.
119812         * modules/exclude (Depends-on): Depend on verify.
119813         * modules/strtoimax (Depends-on): Likewise.
119814         * modules/utimecmp (Depends-on): Likewise.
119816 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119818         * lib/exclude.c: Include verify.h.
119819         (verify): Remove.  All callers changed to use verify.h's version.
119820         * lib/strtoimax.c: Likewise.
119821         * lib/utimecmp.c: Likewis.e
119823         Sync from coreutils.
119824         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119825         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119826         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119827         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119828         bother returning ENOSYS if settimeofday or stime fails; just let
119829         them return whatever errno they want to return.
119830         * lib/utimens.c: Include unistd.h, for dup2.
119831         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119832         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119834 2005-10-02  Jim Meyering  <jim@meyering.net>
119836         Sync from coreutils.
119837         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119838         from glibc-2.2.5 that fails for read-only files.
119840 2005-10-02  Jim Meyering  <jim@meyering.net>
119842         Sync from coreutils.
119843         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119844         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119845         `#if HAVE_CONFIG_H'.
119846         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119847         Remove AT_FDCWD test.
119848         Do not consume the fd unless successful.
119849         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119850         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119851         block, so that we don't even try to compile it if settimeofday is
119852         available.  This works around a compilation failure on OSF1 V5.1,
119853         due to stime requiring a `long int*' while tv_sec is `int'.
119855 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119857         Sync from coreutils.
119858         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119859         against `yes', rather than just testing for nonempty.
119861 2005-10-01  Simon Josefsson  <jas@extundo.com>
119863         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119864         and Darwin.
119866         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119867         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119868         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119869         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119870         Check if struct addrinfo is declared.
119872 2005-10-01  Simon Josefsson  <jas@extundo.com>
119874         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119875         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119876         AI_* and EAI_* definitions.  Protect function declarations.
119878 2005-10-01  Jim Meyering  <jim@meyering.net>
119880         Sync from coreutils.
119882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119883         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119884         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119886         in the inet and nsl libraries.  Required on Solaris 5.7.
119888 2005-10-01  Jim Meyering  <jim@meyering.net>
119890         Sync from coreutils.
119891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119892         in the inet and nsl libraries.  Required on Solaris 5.7.
119894 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119896         * lib/getdelim.c (getdelim): Remove unused variables.
119898 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119900         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119901         so that the code works even with ancient cpp.  Portability problem
119902         with GCC 2.7.2.1 reported by Thomas M.Ott.
119904 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119906         * modules/regex (Depends-on): Add strcase.
119908         * modules/gethostname (Licence): Change from GPL to LGPL, since
119909         gethostname.c is a trivial implementation of a standard library
119910         function.
119911         * modules/poll (License): Change from GPL to LGPL, since it's
119912         derived from LGPL code.
119914 2005-09-27  Jim Meyering  <jim@meyering.net>
119916         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119917         HAVE_CONFIG_H.
119919         * lib/intprops.h (signed_type_or_expr__): Define.
119920         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119921         for unsigned types.
119923 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119925         * lib/verify.h (verify_expr): Remove, replacing with:
119926         (verify_true): New macro that returns true instead of void.
119927         (verify_type__): Remove.
119928         (verify): Use verify_true rather than verify_type__.
119930 2005-09-26  Bruno Haible  <bruno@clisp.org>
119932         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119933         is necessary.
119934         (lib_SOURCES): Remove mbchar.c.
119935         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119936         (Files): Add m4/mbrtowc.m4.
119937         * modules/mbiter: Likewise.
119938         * modules/mbuiter: Likewise.
119940 2005-09-26  Bruno Haible  <bruno@clisp.org>
119942         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119943         compile mbchar.c if they are not both present.
119944         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119945         * m4/mbiter.m4 (gl_MBITER): Likewise.
119946         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119947         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119948         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119950 2005-09-25  Jim Meyering  <jim@meyering.net>
119952         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119953         also uses socklen_t.
119955 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119957         * lib/utimens.c (ENOSYS): Define if not already defined.
119958         (futimens): Support having a null PATH if the file descriptor
119959         is nonnegative.
119961         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119962         Remove.
119963         (__attribute): Define to empty unless GCC 3.1 or later.
119964         This works around a core dump on OpenBSD 3.4, which has GCC
119965         2.95.3, which dumps core when given __attribute__(()).  It also
119966         simplifies other tests, since we really don't want to bother with
119967         worrying about which ancient version of GCC supported what.
119968         Original problem reported by Yoann Vandoorselaere, with part of
119969         the fix suggested by Derek Price.
119971 2005-09-24  Jim Meyering  <jim@meyering.net>
119973         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119974         so we can once again use a positive bitfield width of 1 -- now we
119975         don't have to explain why we were using a bitfield width of 2.
119977 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119979         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119980         and similarly for the other external symbols.  Problem reported
119981         by James Gallager.
119983         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119984         bug reported by Jim Meyering.
119986         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119987         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119988         not needed, since socklen is a prerequisite module.
119990 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119992         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119993         Problem reported by Eric Blake.
119994         (getaddrinfo): Initialize se so that it's not garbage.
119995         Redo internal storage allocation so that it doesn't make unportable
119996         assumptions about alignment.
119997         Fix a memory leak.
119999         * lib/utimens.c (futimens): Use futimesat if available.
120000         Prefer it to futimes since it doesn't have the futimes bug.
120002         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
120003         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
120004         Instead, declare a function that returns a pointer to an array,
120005         and use verify_type__ to declare the size of the array.
120006         Problem and germ of a solution reported by Bruno Haible.
120007         (verify_type__): Use 2, not 1, for bitfield size, to avoid
120008         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
120010 2005-09-23  Jim Meyering  <jim@meyering.net>
120012         Sync from coreutils.
120013         Correct build failure (socklen_t not defined) on at least
120014         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
120015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
120017 2005-09-23  Jim Meyering  <jim@meyering.net>
120019         * modules/getaddrinfo (Depends-on): Add socklen.
120021 2005-09-23  Bruno Haible  <bruno@clisp.org>
120023         * tests/test-verify.c: New file.
120025 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120027         Sync from coreutils.
120029         * modules/argmatch (Depends-on): Add verify.
120030         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
120031         unistd-safer.
120032         * modules/save-cwd (Depends-on): Likewise.
120034         * modules/openat (Files): Add lib/openat-die.c.
120035         (Depends-on): Remove error, exitfail.
120036         Add dirname.
120038         * modules/verify: New file.
120039         * MODULES.html.sh (Diagnostics <assert.h>): New section,
120040         with "verify" module.
120042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120044         Sync from coreutils.
120046         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
120047         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
120048         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
120049         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
120050         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
120051         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
120052         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
120053         Don't bother checking for string.h, stdlib.h, unistd.h.
120054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
120055         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
120056         module's job.
120057         * m4/jm-macros.m4 (gl_MACROS): Likewise.
120058         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
120060         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
120061         (gl_GETDATE): Use it.
120063         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
120065 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120067         Sync from coreutils.
120069         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
120070         stat-time.h.
120071         * lib/argmatch.h: Include verify.h
120072         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
120073         (ARGMATCH_ASSERT): Remove; unused.
120074         * lib/canonicalize.c: Assume STDC_HEADERS.
120075         * lib/exclude.c: Include "strcase.h".
120076         * lib/regex_internal.h [!defined _LIBC]: Likewise.
120077         * lib/getusershell.c: Include stdio--.h rather than stdio.h
120078         and stdio-safer.h.
120079         (getusershell): Call fopen, not fopen_safer.
120080         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
120081         Do not include unistd-safer.h.
120082         (save_cwd): Don't call fd_safer; no longer needed
120083         now that we include fcntl--.h.
120085         * lib/getdate.y (relative_time): New type.
120086         (RELATIVE_TIME_0): New constant.
120087         (parser_control): Use relative_time instead of doing it ourselves.
120088         (%union): Add new relative_time rel member.
120089         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
120090         Now typeless.
120091         (relunit, relunit_snumber): Now of type rel.
120092         (zone, rel, relunit, get_date): Adjust to above changes.
120094         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
120095         Do not include unistd-safer.h.
120096         (getloadavg): Don't call fd_safer; no longer needed
120097         now that we include fcntl--.h.
120099         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
120100         (make_dir_parents): Treat ENOSYS like EEXIST.
120102         Improve quality of diagnostics on restore_cwd failure.
120103         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
120104         (make_dir_parents): Last arg is now int * (for errno), not bool *.
120105         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
120106         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
120107         each time through the loop.  Do not diagnose restore_cwd failure;
120108         that is the caller's job (and perhaps the caller does not care).
120110         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
120111         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
120112         If the file already exists but is not a directory, don't bother
120113         to try to make its parents.
120114         Close potential file descriptor leak if we can't chdir("/") (!).
120115         Don't always return true if chdir($PWD) fails; return true only
120116         if the requested action was done successfully (except for the
120117         chdir($PWD)).
120118         Don't log final directory unless we actually made it.
120119         Refactor to avoid duplicate code to fix up permissions.
120120         Don't attempt to fix up parent permissions if chdir($PWD) fails.
120122         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
120123         to make it a bit faster and (I hope) clearer.
120124         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
120125         Fix bug in formats like %2N.
120127         * lib/verify.h: New file.
120129 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120131         Sync from coreutils.
120132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
120134 2005-09-22  Jim Meyering  <jim@meyering.net>
120136         Sync from coreutils.
120138         * m4/lstat.m4 (gl_FUNC_LSTAT):
120139         Use AC_LIBSOURCES to require lstat.c and lstat.h.
120140         Remove obsolete comment.
120141         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
120142         * m4/xstrtod.m4: Likewise.
120144         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
120146 2005-09-22  Jim Meyering  <jim@meyering.net>
120148         Sync from coreutils.
120150         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
120152         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
120153         the .tm_year member, since otherwise gcc-4.0 would now warn about
120154         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
120156         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
120157         order to avoid an unsuppressible warning from gcc on 64-bit systems.
120159         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
120160         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
120161         when run in a time zone for which daylight savings time is in effect
120162         for the starting date.
120164         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
120165         stop us from restricting permissions of just-created absolute-named
120166         directories.
120167         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
120168         to restore initial working directory.
120169         * lib/mkdir-p.c (make_dir_parents): New parameter:
120170         different_working_dir, to tell caller if/when we change the working
120171         directory and are unable to return to the initial one.
120172         * lib/mkdir-p.h (make_dir_parents): Update prototype.
120173         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
120174         `return false'.  This fixes a bug introduced on 2004-07-30.
120176         * lib/openat.c (fdopendir): Be sure to close the supplied
120177         file descriptor before returning.  This makes our replacement
120178         implementation a little closer to Solaris's, where fdopendir
120179         ties the file descriptor to the returned DIR* pointer.
120180         * lib/openat.c (unlinkat): New function.
120181         * lib/openat.h (unlinkat): Add prototype.
120182         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
120183         (openat_restore_fail): Rename from openat_restore_die.
120184         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
120186         Provide an alternative to exiting immediately upon save_cwd or
120187         restore_cwd failure.  Now, an application can arrange e.g.,
120188         to perform a longjump in that case.
120189         * lib/openat.c: Include dirname.h.
120190         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
120191         (rpl_openat, fdopendir, fstatat): Call openat_save_die
120192         and openat_restore_die rather than calling error directly.
120193         Don't include "error.h" or "exitfail.h"; they're no longer needed.
120195         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
120196         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
120197         define.
120199         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
120200         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
120201                             int utc, int nanoseconds);
120202         Background:
120203         date should not have to allocate a megabyte of virtual memory to
120204         handle a format argument like +%1048575T.  When implemented with
120205         strftime, it must allocate such a buffer, use strftime to fill it
120206         in, print it, then free it.
120207         With fprintftime, it simply prints everything and exits.
120208         With no need for memory allocation, that's one fewer way to fail.
120209         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
120210         optional field width, not before, so we accept %9:z, not %:9z.
120211         (my_strftime): Be sure to use L_('x') for literals.
120213         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
120214         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
120215         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
120216         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
120217         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
120218         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
120219         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
120220         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
120221         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
120222         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
120223         * lib/xgethostname.c, lib/xreadlink.c:
120224         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
120226         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
120227         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
120228         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
120229         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120230         and don't include <sys/file.h>).
120232 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
120234         Sync from coreutils.
120236         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
120237         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
120238         [!LDAV_DONE]: Avoid unused variable warning.
120240 2005-09-21  Bruno Haible  <bruno@clisp.org>
120242         * lib/unicodeio.h (unicode_to_mb): New declaration.
120244 2005-09-20  Derek Price  <derek@ximbiot.com>
120246         * lib/getaddrinfo.c: Don't include <netdb.h> included from
120247         getaddrinfo.h.
120249 2005-09-20  Bruno Haible  <bruno@clisp.org>
120251         * gnulib-tool: Remove trailing slashes from the values specified for
120252         --source-base, --m4-base, --tests-base, --aux-dir.
120253         Suggested by Simon Josefsson <jas@extundo.com>.
120255 2005-09-20  Bruno Haible  <bruno@clisp.org>
120257         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
120258         func_modules_to_filelist, func_import, func_create_testdir): Make all
120259         sorting results locale-independent, so that gnulib-cache.m4 doesn't
120260         change when gnulib-tool is invoked in a different locale.
120262 2005-09-19  Simon Josefsson  <jas@extundo.com>
120264         * m4/socklen.m4: Fix typo.
120266 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120268         Use a consistent style for including <config.h>.
120269         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
120270         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
120271         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
120272         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
120273         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
120274         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
120275         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
120276         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
120277         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
120278         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
120279         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
120280         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
120281         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
120282         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
120283         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
120284         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
120285         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
120286         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
120287         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
120288         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
120289         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
120290         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
120291         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
120292         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
120293         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
120294         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
120295         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
120296         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
120297         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
120298         lib/xstrtoumax.c, lib/yesno.c:
120299         Standardize inclusion of config.h.
120300         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
120301         lib/inttostr.h:  Removed inclusion of config.h from header files.
120302         * lib/inttostr.c:  Adjusted in-tree users.
120303         * lib/timespec.h: Remove superfluous warning to include config.h.
120304         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
120305         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
120306         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
120307         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
120308         config.h with HAVE_CONFIG_H.
120310 2005-09-19  Jim Meyering  <jim@meyering.net>
120312         * modules/pathmax (License): Change to LGPL.
120314 2005-09-19  Derek Price  <derek@ximbiot.com>
120316         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
120318 2005-09-19  Bruno Haible  <bruno@clisp.org>
120320         * gnulib-tool (import): Provide default for --tests-base.
120322 2005-09-19  Bruno Haible  <bruno@clisp.org>
120324         * doc/quote.texi: New file, extracted from gnulib.texi.
120325         * doc/ctime.texi: New file, extracted from gnulib.texi.
120326         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120327         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120328         * doc/gnulib.texi: Include them.
120330 2005-09-18  Bruno Haible  <bruno@clisp.org>
120332         Portability fix.
120333         * gnulib-tool (func_readlink): New function.
120334         (func_ln_if_changed): Use it.
120336 2005-09-18  Bruno Haible  <bruno@clisp.org>
120338         * gnulib-tool: Support --with-tests also with --import.
120339         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120340         (func_import): Use variables $testsbase and $inctests. Emit a
120341         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120342         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120343         SUBDIRS += $testsdir.
120344         (func_create_testdir): Update.
120346 2005-09-18  Bruno Haible  <bruno@clisp.org>
120348         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120349         instead of $dry_run.
120350         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120351         (func_ln_if_changed): Don't handle dry-run here.
120352         (func_import): In dry-run mode, detect more precisely which actions
120353         would be performed, and don't use "...ing" verbs.
120355 2005-09-18  Bruno Haible  <bruno@clisp.org>
120357         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120358         (func_import): Use join on two temporary files instead of three nested
120359         loops, in order to determine which files are new or old.
120361 2005-09-18  Bruno Haible  <bruno@clisp.org>
120363         * gnulib-tool (func_import): Comment out code that spits out the
120364         new files with --dry-run.
120366 2005-09-18  Bruno Haible  <bruno@clisp.org>
120368         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120370 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120372         * lib/stat-time.h: New file.
120373         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120374         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120375         in a different way.
120376         (timespec_cmp): New function.
120377         * lib/utimecmp.c: Include stat-time.h.
120378         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120379         members exist, not on the obsolescent ST_MTIM_NSEC.
120380         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120382 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120384         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120386 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120388         * MODULES.html.sh (File system functions): Add stat-time.
120389         * modules/stat-time: New file.
120390         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120391         is now done in a different way, by the stat-time module.
120392         * modules/utimecmp (Depends-on): Add stat-time.
120394 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120396         * m4/st_mtim.m4: Remove.  Superseded by...
120397         * m4/stat-time.m4: New file.
120398         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120399         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120401 2005-09-15  Derek Price  <derek@ximbiot.com>
120403         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120405 2005-09-15  Derek Price  <derek@ximbiot.com>
120407         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120408         * lib/regex_internal.c: Ditto, using this...
120409         (__GNUC_PREREQ): ...new macro.
120410         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120411         using...
120412         (__GNUC_PREREQ): ...this new macro.
120414         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120416 2005-09-15  Derek Price  <derek@ximbiot.com>
120417             Paul Eggert  <eggert@cs.ucla.edu>
120419         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120420         changes, consolidating in...
120421         * lib/regex_internal.h: ...this file.
120423 2005-09-13  Jim Meyering  <jim@meyering.net>
120425         * lib/canon-host.c: Filter through gnu indent and reword comments
120426         slightly.
120427         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120429 2005-09-13  Derek Price  <derek@ximbiot.com>
120431         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120432         failure.
120433         Reported by Jim Meyering  <jim@meyering.net>.
120435 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120437         * lib/base64.c: Typo.
120438         (base64_encode): Put b64str in initialized data section.
120440 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120442         Merge glibc and coreutils changes into gnulib, plus a few
120443         extra fixes.
120444         * lib/md5.c: Use #error rather than a string.
120445         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120446         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120447         (__attribute__): Define to empty for non recent-GCC.
120448         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120449         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120450         Renamed from their non-__ counterparts, with new macros replacing
120451         them if not _LIBC.  Add __THROW attribute.
120452         (rol): Remove.
120453         (struct md5_ctx): Align buffer if using GCC.
120454         * lib/sha1.h (struct sha1_ctx): Likewise.
120455         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120456         The old name was backwards.
120457         (NOTSWAP): Remove; not used.
120458         (rol): New macro, moved here from md5.h.
120459         (sha1_process_block): Remove a FIXME that doesn't make sense.
120461 2005-09-12  Derek Price  <derek@ximbiot.com>
120463         Return usable errors from canon-host.
120464         * lib/canon-host.h: New file.
120465         * lib/canon-host.c (canon_host): Wrap...
120466         (canon_host_r): ...this new function, which now relies exclusively on
120467         getaddrinfo.
120468         (ch_strerror): New function.
120469         (last_cherror): New global.
120470         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120471         interface.
120472         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120473         void *.
120474         (freeaddrinfo): Free ai->ai_canonname when set.
120476 2005-09-12  Derek Price  <derek@ximbiot.com>
120478         Make canon-host require getaddrinfo.
120479         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120480         AC_LIBSOURCE canon-host.h.  Call...
120481         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120482         gl_GETADDRINFO.
120483         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120485 2005-09-12  Derek Price  <derek@ximbiot.com>
120487         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120488         LGPL.
120489         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120491 2005-09-12  Derek Price  <derek@ximbiot.com>
120493         * lib/gai_strerror.c: Include config.h when available.  Include
120494         getaddrinfo.h before other headers to test interface.
120495         Reported by Larry Jones <lawrence.jones@ugs.com>.
120497 2005-09-12  Derek Price  <derek@ximbiot.com>
120498             Paul Eggert  <eggert@cs.ucla.edu>
120500         * modules/glob (Files): Add glob-libc.h.
120502 2005-09-12  Derek Price  <derek@ximbiot.com>
120503             Paul Eggert  <eggert@cs.ucla.edu>
120505         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120506         glob_.h, glob-libc.h.
120507         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120509 2005-09-12  Derek Price  <derek@ximbiot.com>
120510             Paul Eggert  <eggert@cs.ucla.edu>
120512         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120513         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120514         protecting things that should be done only in gnulib contexts.
120515         * lib/glob_.h: New file, containing only the glob things needed for
120516         gnulib.
120517         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120518         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120519         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120520         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120521         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120522         and to respect the namespace rules better.
120524 2005-09-08  Simon Josefsson  <jas@extundo.com>
120526         * modules/socklen: New file.
120528 2005-09-08  Simon Josefsson  <jas@extundo.com>
120530         * m4/socklen.m4: New file.
120532 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120534         * modules/utimens (Files): Add m4/utimbuf.m4, since
120535         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120536         Reported by Sergey Poznyakoff.
120538 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120540         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120541         definitions, since that's the preferred style in glibc.
120542         Fix a minor spacing issue, and update copyright notice to match
120543         glibc's.
120545 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120547         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120549 2005-09-06  Simon Josefsson  <jas@extundo.com>
120551         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120552         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120554 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120556         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120557         warning.
120559 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120561         * config/srclist.txt: Add glibc bug 1302.
120563 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120565         Change bitset word type from unsigned int to unsigned long int,
120566         as this has better performance on typical 64-bit hosts.
120567         Port bitset code to hosts with unusual word sizes.
120568         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120569         (build_collating_symbol):
120570         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120571         argument is a bitset.  This is merely a style issue, but it makes
120572         it clearer that an entire array is expected.
120573         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120574         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120575         Port to the case where bitset_word is not the same as unsigned int.
120576         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120577         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120578         Likewise.
120579         * lib/regexec.c (check_dst_limits_calc_pos_1,
120580         check_subexp_matching_top):
120581         (build_trtable, group_nodes_into_DFAstates):
120582         Likewise.
120583         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120584         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120585         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120586         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120587         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120588         * lib/regcomp.c (optimize_subexps, lower_subexp):
120589         Work even if bitset_word has holes in its bitwise representation.
120590         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120591         * lib/regexec.c (check_dst_limits_calc_pos_1,
120592         check_subexp_matching_top):
120593         Likewise.
120594         * lib/regex_internal.c (re_string_reconstruct):
120595         Don't assume UCHAR_MAX == 255.
120596         * lib/regex_internal.h (bitset_set_all): Likewise.
120597         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120598         All uses changed.
120599         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120600         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120601         All uses changed.
120602         (BITSET_WORD_MAX): New macro.
120603         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120604         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120605         (bitset_empty, bitset_copy):
120606         Prefer sizeof (bitset) to multiplying it out ourselves.
120607         (bitset_not_merge): Remove; unused.
120608         (bitset_contain): Return bool, not unsigned int with one bit on.
120609         All callers changed.
120610         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120611         alignment than re_node_set; do this by defining a new internal
120612         type struct dests_alloc and using it to allocate memory.
120614 2005-09-05  Bruno Haible  <bruno@clisp.org>
120616         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120617         links.
120619 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120621         * modules/size_max (Makefile.am): Add size_max.h
120623 2005-09-04  Derek Price  <derek@ximbiot.com>
120625         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120627 2005-09-03  Simon Josefsson  <jas@extundo.com>
120629         * gnulib-tool: Fix typo.
120631 2005-09-03  Simon Josefsson  <jas@extundo.com>
120633         * config/srclist.txt: Add glibc bug 1293.
120635 2005-09-03  Derek Price  <derek@ximbiot.com>
120637         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120638         From Larry Jones <lawrence.jones@ugs.com>.
120640 2005-09-02  Simon Josefsson  <jas@extundo.com>
120642         * modules/socklen: New file.
120644 2005-09-02  Simon Josefsson  <jas@extundo.com>
120646         * modules/havelib: New module.
120648         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120649         Use havelib.
120651 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120653         Check for arithmetic overflow when calculating sizes, to prevent
120654         some buffer-overflow issues.  These patches are conservative, in the
120655         sense that when I couldn't determine whether an overflow was possible,
120656         I inserted a run-time check.
120657         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120658         macros.
120659         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120660         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120661         (re_xnrealloc, re_x2nrealloc): New inline functions.
120662         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120663         parse_bracket_exp):
120664         (build_equiv_class, build_charclass): Check for arithmetic overflow
120665         in size expression calculations.
120666         * lib/regex_internal.c (re_string_realloc_buffers):
120667         (build_wcs_upper_buffer, re_node_set_add_intersect):
120668         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120669         (re_dfa_add_node, register_state): Likewise.
120670         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120671         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120672         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120673         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120675 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120677         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120678         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120680 2005-09-02  Bruno Haible  <bruno@clisp.org>
120682         Support for lib vs. lib64 distinction on biarch platforms.
120683         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120684         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120687 2005-09-02  Bruno Haible  <bruno@clisp.org>
120689         * gnulib-tool (import): In the other first-use case, provide defaults
120690         as well.
120692 2005-09-02  Bruno Haible  <bruno@clisp.org>
120694         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120695         patches not yet found in the latest gettext release.
120697 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120699         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120700         to avoid a collision with bits/local_lim.h in glibc.
120701         All uses changed.  Problem reported by Dmitry V. Levin in
120702         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120704         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120705         bugs in int versus size_t comparisons.
120706         (re_string_context_at): Fix bug where the code assumed that
120707         Idx is signed.
120709         Use bool where appropriate.
120710         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120711         All callers changed.
120712         (calc_eclosure_iter): Likewise, for ROOT arg.
120713         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120714         (build_charclass_op): Likewise, for NON_MATCH arg.
120715         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120716         (re_string_construct_common): Likewise, for ICASE arg.
120717         * lib/regexec.c (re_search_2_stub, re_search_stub):
120718         Likewise, for RET_LEN arg.
120719         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120720         (set_regs): Likewise, for FL_BACKTRACK arg.
120721         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120722         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120723         (calc_eclosure_iter, parse_bracket_exp):
120724         Use bool for internal variables that are booleans.
120725         * lib/regexec.c (re_search_internal, check_matching,
120726         proceed_next_node):
120727         (set_regs, build_sifted_states, sift_states_bkref):
120728         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120729         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120730         (find_collation_sequence_value):
120731         Likewise.
120732         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120733         (re_node_set_compare):
120734         Return bool, not int. All callers changed.
120735         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120736         (build_trtable, check_node_accept): Likewise.
120737         * lib/regex_internal.h: Include stdbool.h.
120739         Fix bugs uncovered when converting to bool.
120740         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120741         failure instead of charging ahead blindly.
120742         * lib/regex_internal.c (register_state): Likewise.
120743         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120744         for freeing internal storage.
120745         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120746         bitset pieces used as boolean, to avoid undefined behavior
120747         on hosts that do int overflow checking.
120749 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120751         * config/srclist.txt: Add glibc bugs 1285-1287.
120753 2005-09-01  Jim Meyering  <jim@meyering.net>
120755         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120756         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120757         Require gl_STAT_MACROS, too.
120759 2005-09-01  Bruno Haible  <bruno@clisp.org>
120761         * gnulib-tool (import): In the first-use case, provide defaults.
120763 2005-09-01  Bruno Haible  <bruno@clisp.org>
120765         * gnulib-tool (func_import): Remove the .tmp files.
120767 2005-09-01  Bruno Haible  <bruno@clisp.org>
120769         * gnulib-tool (func_import): Fix handling of symbolic links.
120771 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120773         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120774         old glibc regex code mishandles strings longer than 2**31 bytes.
120775         This patch fixes this when the regex code is used in gnulib
120776         (i.e., outside glibc).
120778         This patch should not affect the use of the regex code inside
120779         glibc.  No doubt this problem also needs to be handled for glibc
120780         as well, but the result will be an incompatible change to the
120781         glibc ABI, and the old ABI will have to be supported too.  That
120782         can be the subject for another patch.
120784         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120785         governing whether the rest of this patch is active.  By default,
120786         the macro is disabled and the patch has no effect.
120787         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120788         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120789         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120790         (re_match_2, re_set_registers): Use the new types.
120791         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120792         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120793         New macros.
120794         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120795         (re_string_context_at, bin_tree_t, re_dfastate_t):
120796         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120797         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120798         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120799         (re_string_char_size_at, re_string_wchar_at):
120800         (re_string_elem_size_at):
120801         Use the new types and macros to port to 64-bit hosts.
120802         Use unsigned types for internal values, so that the code
120803         mostly works even for arrays larger than SSIZE_MAX.
120804         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120805         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120806         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120807         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120808         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120809         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120810         (calc_inveclosure, parse_dup_op, build_range_exp):
120811         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120812         (fetch_number, create_token_tree, mark_opt_subexp):
120813         Likewise.
120814         * lib/regex_internal.c (re_string_construct_common,
120815         create_ci_newstate):
120816         (create_cd_newstate, re_string_allocate, re_string_construct):
120817         (re_string_realloc_buffers, build_wcs_upper_buffer):
120818         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120819         (re_string_reconstruct, re_string_peek_byte_case):
120820         (re_string_fetch_byte_case, re_string_context_at):
120821         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120822         (re_node_set_init_copy, re_node_set_add_intersect):
120823         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120824         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120825         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120826         (re_acquire_state, re_acquire_state_context, register_state):
120827         Likewise.
120828         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120829         search_cur_bkref_entry):
120830         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120831         (re_search_internal, re_search_2_stub, re_search_stub)
120832         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120833         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120834         (update_cur_sifted_state, check_dst_limits):
120835         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120836         (check_subexp_limits, sift_states_bkref, merge_state_array):
120837         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120838         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120839         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120840         (expand_bkref_cache, check_node_accept_bytes):
120841         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120842         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120843         (acquire_init_state_context, check_halt_node_context):
120844         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120845         (sift_states_backward, clean_state_log_if_needed):
120846         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120847         (find_recover_state, transit_state_sb, transit_state_mb):
120848         (transit_state_bkref, build_trtable, match_ctx_clean):
120849         Likewise.
120850         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120851         to work around an assumption that REG_MISSING is negative.
120853         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120854         (seek_collating_symbol_entry) [defined _LIBC]:
120855         (lookup_collation_sequence_value) [defined _LIBC]:
120856         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120857         Use prototypes rather than old-style function definitions.
120858         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120859         (transit_state_sb) [0]:
120860         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120862         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120863         rm_eo.
120865         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120866         (optimize_subexps, lower_subexp):
120867         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120868         since the signed shift might overflow.  Use 1u<<31 instead.
120869         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120870         Likewise.
120871         * lib/regexec.c (check_dst_limits_calc_pos_1,
120872         check_subexp_matching_top): Likewise.
120874         * lib/regcomp.c (optimize_subexps, lower_subexp):
120875         Use CHAR_BIT rather than 8, for clarity.
120876         * lib/regexec.c (check_dst_limits_calc_pos_1):
120877         (check_subexp_matching_top): Likewise.
120878         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120879         have to worry about portability issues when shifting it left.
120880         Remove no-longer-needed test for table_size > 0.
120881         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120882         in a word, as the resulting behavior is undefined.
120883         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120884         in one case, a <= should have been an <, and in another case the
120885         whole test was missing.
120886         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120887         the standard name CHAR_BIT.
120888         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120889         this is not true on one's complement and signed-magnitude hosts.
120891         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120892         next_last_offset.
120893         (struct re_dfa_t): Remove unused member states_alloc.
120894         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120896 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120898         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120899         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120900         and large-file glibc and in 32-bit large-file Solaris.
120902 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120904         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120905         lengths fit in regoff_t; this isn't true if regoff_t is the same
120906         width as size_t.
120907         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120908         (= START + RANGE) instead of RANGE.  This avoids overflow
120909         problems when regoff_t is the same width as size_t.
120910         All callers changed.
120911         (re_search_2_stub): Check for overflow when adding the
120912         sizes of the two strings.
120913         (re_search_stub): Check for overflow when adding START
120914         to RANGE; if it occurs, substitute the extreme value.
120916 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120918         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120920 2005-08-31  Jim Meyering  <jim@meyering.net>
120922         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120923         a pointer-to-const.
120924         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120925         (register_state): Likewise.
120926         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120927         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120928         (group_nodes_into_DFAstates): Likewise.
120930 2005-08-31  Jim Meyering  <jim@meyering.net>
120932         * check-module: Add a FIXME comment.
120934 2005-08-31  Eric Blake  <ebb9@byu.net>
120936         * modules/unistd-safer (Files): Add unistd--.h.
120937         * modules/stdio-safer (Files): Add stdio--.h.
120939 2005-08-31  Derek Price  <derek@ximbiot.com>
120941         * lib/getdelim.c (getdelim): Return EOF on EOF.
120942         Reported by Larry Jones <lawrence.jones@ugs.com>.
120944 2005-08-31  Bruno Haible  <bruno@clisp.org>
120946         Avoid unnecessary diffs in the generated lib/Makefile.am.
120947         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120948         the generated files.
120949         (func_import): Don't set cmd.
120951 2005-08-31  Bruno Haible  <bruno@clisp.org>
120953         * lib/strstr.c: Include <stddef.h>, for NULL.
120954         * lib/strcasestr.c: Likewise.
120955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120957 2005-08-31  Bruno Haible  <bruno@clisp.org>
120959         * gnulib-tool: New option --macro-prefix.
120960         (func_import): Use macro_prefix.
120961         (import): Handle option --macro-prefix.
120963 2005-08-31  Bruno Haible  <bruno@clisp.org>
120965         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120966         Also use new variables cached_lgpl, cached_libtool.
120968 2005-08-31  Bruno Haible  <bruno@clisp.org>
120970         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120971         always instantiating them.
120973 2005-08-31  Bruno Haible  <bruno@clisp.org>
120975         * gnulib-tool (func_import): Read the previous cached settings
120976         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120977         earlier added by gnulib but are now dropped. Warn when a gnulib file
120978         overwrites a non-gnulib file.
120980 2005-08-31  Bruno Haible  <bruno@clisp.org>
120982         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120983         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120984         projects that don't keep autogenerated files in CVS. Put into
120985         actioncmd only the specified modules, not the transitive closure.
120987 2005-08-31  Bruno Haible  <bruno@clisp.org>
120989         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120990         Create directories that shall be filled.
120991         (import): Don't look for gl_* macros in configure.ac. Recurse across
120992         all directories containing a gnulib-cache.m4 files, if meaningful.
120994 2005-08-31  Bruno Haible  <bruno@clisp.org>
120996         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120997         (import): Set seen_libtool when we see gl_LIBTOOL.
120999 2005-08-31  Bruno Haible  <bruno@clisp.org>
121001         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
121002         declaration macro definitions from generated gnulib.m4.
121004 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
121006         * lib/iconvme.h: Add prototype for iconv_alloc.
121008 2005-08-29  Simon Josefsson  <jas@extundo.com>
121010         * lib/iconvme.c: Fix errno.
121012 2005-08-29  Bruno Haible  <bruno@clisp.org>
121014         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
121015         that it works when the directory contains spaces.
121017 2005-08-29  Bruno Haible  <bruno@clisp.org>
121019         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
121021 2005-08-29  Bruno Haible  <bruno@clisp.org>
121023         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
121024         Emit more advice.
121026 2005-08-29  Bruno Haible  <bruno@clisp.org>
121027         and Stepan Kasal  <kasal@ucw.cz>
121029         * check-module: If more parameters are given, check each of them
121030         separately; add more exceptions, as noted by Jim Meyering.
121031         (check_module): New procedure.
121032         (%exempt_header): Now contains all exceptions.
121034 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
121036         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
121038 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121040         * lib/iconvme.c: Split iconv_string into iconv_alloc.
121042 2005-08-28  Bruno Haible  <bruno@clisp.org>
121044         * m4/gnulib-tool.m4: New file.
121046 2005-08-27  Jim Meyering  <jim@meyering.net>
121048         * modules/unistd-safer (Files): Add pipe-safer.c.
121049         * modules/fcntl-safer (Files): Add creat-safer.c.
121051 2005-08-27  Jim Meyering  <jim@meyering.net>
121053         * m4/stdlib-safer.m4: New file.  From coreutils.
121054         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
121055         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
121056         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
121057         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
121058         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
121060 2005-08-27  Jim Meyering  <jim@meyering.net>
121062         * lib/fopen-safer.c: Merge minor changes from coreutils.
121063         * lib/dup-safer.c: Likewise.
121064         * lib/fd-safer.c: Likewise.
121066         Merge from coreutils.
121067         * lib/stdio--.h: New file.
121068         * lib/stdlib--.h: New file.
121069         * lib/mkstemp-safer.c: New file.
121071         GNU tar needs these.
121072         * lib/pipe-safer.c: New file.
121073         * lib/creat-safer.c: New file.
121074         * lib/fcntl--.h (creat): Define to creat_safer.
121075         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
121076         * lib/unistd--.h (pipe): Define to pipe_safer.
121077         * lib/unistd-safer.h: Declare pipe_safer.
121079 2005-08-26  Simon Josefsson  <jas@extundo.com>
121081         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
121082         Haible <bruno@clisp.org>.
121084 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
121086         * lib/regex_internal.h: Remove all references to
121087         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
121088         or better.
121089         (bitset_not, bitset_merge, bitset_not_merge):
121090         (bitset_mask, re_string_allocate, re_string_construct):
121091         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
121092         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
121093         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
121094         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
121095         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121096         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121097         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
121098         (re_acquire_state_context):
121099         Remove unnecessary forward decls.
121100         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
121101         Put __attribute at function definition,
121102         now that the function decl has been removed.
121103         * lib/regex_internal.c (re_string_peek_byte_case):
121104         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
121105         Likewise.
121107 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
121109         * m4/regex.m4: Add AC_PREREQ(2.50).
121110         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
121112 2005-08-25  Simon Josefsson  <jas@extundo.com>
121114         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
121115         __fsetlocking.
121117 2005-08-25  Simon Josefsson  <jas@extundo.com>
121119         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
121120         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
121121         GLIBC specific code.
121123 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121125         Make regex safe for g++.  This fixes one real bug (an "err"
121126         that should have been "*err").  g++ problem reported by
121127         Sam Steingold.
121128         * lib/regex_internal.h (re_calloc): New macro, consistent with
121129         re_malloc etc.  All callers of calloc changed to use re_calloc.
121130         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
121131         not int.  All callers changed.
121132         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
121133         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
121134         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
121135         (find_recover_state): Change "err" to "*err"; this fixes what
121136         appears to be a real bug.
121137         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
121138         versus int.
121140 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121142         * modules/regex (Depends-on): Add malloc, since the code
121143         assumes that !malloc(0) means failure.
121145 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121147         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
121149         alloca modernization/simplification for regex.
121150         * lib/regex.c: Remove portability cruft for alloca.  This no longer
121151         needs to be at the start of the file, and can be moved into
121152         regex_internal.h and simplified.
121153         * lib/regex_internal.h: Include <alloca.h>.
121154         (__libc_use_alloca) [!defined _LIBC]: New macro.
121155         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
121156         now works outside glibc.
121158 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121160         * config/srclist.txt: Add glibc bugs 1241, 1245.
121162 2005-08-25  Jim Meyering  <jim@meyering.net>
121164         * lib/open-safer.c: Include <config.h>.
121165         Otherwise, we'd lose LARGEFILE support in any file using
121166         e.g. "fcntl--.h"
121168 2005-08-25  Bruno Haible  <bruno@clisp.org>
121170         * m4/minmax.m4: Require autoconf 2.52.
121171         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
121172         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
121173         alternatives of translit over the alphabet.
121174         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
121176 2005-08-24  Simon Josefsson  <jas@extundo.com>
121178         * tests/test-getpass.c: New file.
121180 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121182         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
121183         for GNU regex features.
121185 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121187         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
121188         * lib/regex.h (regerror): Likewise.
121190         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
121191         requires this.  (The code never needed it.)
121193         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
121194         All uses of recently-renamed identifiers changed to use the new,
121195         POSIX-compliant names.  The code will build and run just fine
121196         without these changes, but it's better to eat our own dog food
121197         and use the standard-conforming names.
121199         * lib/regex.h: Fix a multitude of POSIX name space violations.
121200         These changes have an effect only for programs that define
121201         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
121202         do not change anything for programs compiled in the normal way.
121203         Also, there is no effect on the ABI.
121205         (_REGEX_SOURCE): New macro.
121206         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
121207         defined and _GNU_SOURCE is not; this fixes a name space violation.
121209         Rename the following macros to obey POSIX requirements.
121210         The old names are still visible as macros if _REGEX_SOURCE is defined.
121211         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
121212         RE_BACKSLASH_ESCAPE_IN_LISTS.
121213         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
121214         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
121215         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
121216         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
121217         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
121218         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
121219         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
121220         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
121221         (REG_INTERVALS): renamed from RE_INTERVALS.
121222         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
121223         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
121224         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
121225         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
121226         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
121227         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
121228         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
121229         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
121230         RE_UNMATCHED_RIGHT_PAREN_ORD.
121231         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
121232         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
121233         (REG_DEBUG): renamed from RE_DEBUG.
121234         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
121235         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
121236         unusual, since we can't clash with the POSIX REG_ICASE.
121237         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
121238         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
121239         (REG_NO_SUB): renamed from RE_NO_SUB.
121240         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
121241         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
121242         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
121243         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
121244         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
121245         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
121246         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
121247         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
121248         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
121249         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
121250         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
121251         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
121252         RE_SYNTAX_POSIX_MINIMAL_BASIC.
121253         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
121254         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
121255         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
121256         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
121257         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
121258         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
121259         (REG_FIXED): Renamed from REGS_FIXED.
121260         (REG_NREGS): Renamed from RE_NREGS.
121262         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
121263         of other REG_* macros, since POSIX says the user is allowed to
121264         #undef these macros selectively.
121266         (reg_errcode_t): Update comment stating what other tables need
121267         to be consistent.
121269         Rename the following enum values to obey POSIX requirements.
121270         The old names are still visible as macros.
121271         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
121272         is not defined, since GNU is supposed to be a superset of POSIX as
121273         much as possible, and since we want reg_errcode_t to be a signed
121274         type for implementation consistency.
121275         (_REG_NOERROR): Renamed from REG_NOERROR.
121276         (_REG_NOMATCH): Renamed from REG_NOMATCH.
121277         (_REG_BADPAT): Renamed from REG_BADPAT.
121278         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
121279         (_REG_ECTYPE): Renamed from REG_ECTYPE.
121280         (_REG_EESCAPE): Renamed from REG_EESCAPE.
121281         (_REG_ESUBREG): Renamed from REG_ESUBREG.
121282         (_REG_EBRACK): Renamed from REG_EBRACK.
121283         (_REG_EPAREN): Renamed from REG_EPAREN.
121284         (_REG_EBRACE): Renamed from REG_EBRACE.
121285         (_REG_BADBR): Renamed from REG_BADBR.
121286         (_REG_ERANGE): Renamed from REG_ERANGE.
121287         (_REG_ESPACE): Renamed from REG_ESPACE.
121288         (_REG_BADRPT): Renamed from REG_BADRPT.
121289         (_REG_EEND): Renamed from REG_EEND.
121290         (_REG_ESIZE): Renamed from REG_ESIZE.
121291         (_REG_ERPAREN): Renamed from REG_ERPAREN.
121292         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
121293         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
121294         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
121295         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
121297         (_REG_RE_NAME, _REG_RM_NAME): New macros.
121298         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
121299         changed.  But support the old name if the new one is not defined
121300         and if _REGEX_SOURCE.
121302         Change the following member names in struct re_pattern_buffer.
121303         The old names are still supported if !_REGEX_SOURCE.
121304         The new names are always supported, regardless of _REGEX_SOURCE.
121305         (re_buffer): Renamed from buffer.
121306         (re_allocated): Renamed from allocated.
121307         (re_used): Renamed from used.
121308         (re_syntax): Renamed from syntax.
121309         (re_fastmap): Renamed from fastmap.
121310         (re_translate): Renamed from translate.
121311         (re_can_be_null): Renamed from can_be_null.
121312         (re_regs_allocated): Renamed from regs_allocated.
121313         (re_fastmap_accurate): Renamed from fastmap_accurate.
121314         (re_no_sub): Renamed from no_sub.
121315         (re_not_bol): Renamed from not_bol.
121316         (re_not_eol): Renamed from not_eol.
121317         (re_newline_anchor): Renamed from newline_anchor.
121319         Change the following member names in struct re_registers.
121320         The old names are still supported if !_REGEX_SOURCE.
121321         The new names are always supported, regardless of _REGEX_SOURCE.
121322         (rm_num_regs): Renamed from num_regs.
121323         (rm_start): Renamed from start.
121324         (rm_end): Renamed from end.
121326         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121327         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121328         Prepend __ to parameter names.
121330         Undo yesterday's changes.
121332 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121334         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121335         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121336         lib/regex.c.
121338 2005-08-24  Jim Meyering  <jim@meyering.net>
121340         Sync from coreutils.
121341         * m4/fcntl-safer.m4: New file.
121343         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121344         and object files for this module.
121346 2005-08-24  Jim Meyering  <jim@meyering.net>
121348         Sync from coreutils.
121349         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121351 2005-08-24  Jim Meyering  <jim@meyering.net>
121353         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121354         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121356 2005-08-24  Jim Meyering  <jim@meyering.net>
121358         * modules/fcntl-safer: New module.
121359         * modules/fts (Depends-on): Add fcntl-safer.
121360         * MODULES.html.sh (File descriptor based Input/Output):
121361         Add fcntl-safer.
121363 2005-08-24  Bruno Haible  <bruno@clisp.org>
121365         Support for unit test modules.
121366         * modules/README: Mention tests modules.
121367         * modules/TEMPLATE-TESTS: New file.
121368         * gnulib-tool: New options --extract-tests-module, --with-tests and
121369         --tests-base (unused for the moment).
121370         (testsbase, inctests): New variables.
121371         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121372         (func_verify_module): Exclude TEMPLATE-TESTS.
121373         (func_verify_nontests_module, func_verify_tests_module): New functions.
121374         (func_get_dependencies): Add implicit dependency for tests modules.
121375         (func_get_tests_module): New function.
121376         (func_modules_transitive_closure): When --with-tests was specified,
121377         include the unit tests as well, unless explicitly avoided.
121378         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121379         (func_emit_tests_Makefile_am): New function.
121380         (func_create_testdir): When --with-tests was specified, emit a
121381         tests/ directory.
121382         * MODULES.html.sh (Future developments): Update.
121384 2005-08-24  Bruno Haible  <bruno@clisp.org>
121386         * modules/tls-tests: New file.
121387         * tests/test-tls.c: New file, from GNU gettext.
121389 2005-08-24  Bruno Haible  <bruno@clisp.org>
121391         * modules/lock-tests: New file.
121392         * tests/test-lock.c: New file, from GNU gettext.
121394 2005-08-24  Bruno Haible  <bruno@clisp.org>
121396         * lib/lock.h: Add multiple inclusion guard.
121397         * lib/tls.h: Add multiple inclusion guard.
121399 2005-08-24  Bruno Haible  <bruno@clisp.org>
121401         * gnulib-tool: Add support for the --aux-dir option to
121402         --create-testdir, --create-megatestdir, --test, --megatest.
121403         (func_create_testdir, func_create_megatestdir): Optionally emit a
121404         AC_CONFIG_AUX_DIR directive.
121405         (create-testdir, create-megatestdir, test, megatest): Provide a
121406         default value for $auxdir.
121408 2005-08-24  Bruno Haible  <bruno@clisp.org>
121410         * gnulib-tool (import): Use compound statement instead of subshell
121411         where possible.
121413 2005-08-24  Bruno Haible  <bruno@clisp.org>
121415         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121417 2005-08-24  Bruno Haible  <bruno@clisp.org>
121419         * gnulib-tool (func_version): Update.
121421 2005-08-24  Bruno Haible  <bruno@clisp.org>
121423         * gnulib-tool (func_import, func_create_testdir,
121424         func_create_megatestdir): Quote all autoconf macro arguments.
121426 2005-08-24  Bruno Haible  <bruno@clisp.org>
121428         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121429         option --force, because --force causes the aclocal.m4 of each
121430         subdirectory to be newer than the corresponding config.h.in.
121432 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121434         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121435         All contents moved to gl_REGEX.
121436         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121437         assume that it does.
121439 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121441         * lib/regex.h (REG_NOSYS)
121442         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121443         Define, since POSIX requires it as of 2001.
121444         (_REG_ENOSYS)
121445         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121446         New private symbol, used to keep the enum signed in all cases.
121447         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121448         Youngman in
121449         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121451         * lib/regex_internal.c (re_string_skip_chars, register_state):
121452         (calc_state_hash):
121453         Remove forward decls; no longer needed now that we use prototypes.
121454         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121455         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121456         (clean_state_log_if_needed): Likewise.
121458 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121460         * config/srclist.txt: Add glibc bugs 1231-1233.
121462 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121464         Fix problems reported by Sam Steingold in
121465         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121466         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121467         assumed that reg_errcode_t is a signed type, which is not
121468         necessarily true if _XOPEN_SOURCE is not defined.
121469         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121470         since some compilers warn about it otherwise.
121472 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121474         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121475         (init_word_char, create_initial_state, duplicate_node_closure):
121476         (fetch_token, peek_token_bracket, build_range_exp):
121477         (build_collating_symbol): Remove forward decls; no longer needed
121478         now that we use prototypes.
121480         * lib/regcomp.c:
121481         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121482         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121483         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121484         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121485         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121486         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121487         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121488         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121489         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121490         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121491         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121492         (build_charclass, build_charclass_op, fetch_number, create_tree):
121493         (create_token_tree, mark_opt_subexp, duplicate_tree):
121494         Use prototypes rather than old-style definitions.
121496         * lib/regex_internal.c:
121497         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121498         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121499         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121500         (re_string_reconstruct, re_string_peek_byte_case):
121501         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121502         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121503         (re_node_set_init_copy, re_node_set_add_intersect):
121504         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121505         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121506         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121507         (re_acquire_state, re_acquire_state_context, register_state):
121508         (create_ci_newstate, create_cd_newstate, free_state):
121509         Likewise.
121510         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121511         re_search_2):
121512         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121513         (re_search_internal, prune_impossible_nodes):
121514         (acquire_init_state_context, check_matching, static):
121515         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121516         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121517         (update_regs, sift_states_backward, build_sifted_states):
121518         (clean_state_log_if_needed, merge_state_array):
121519         (update_cur_sifted_state, add_epsilon_src_nodes):
121520         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121521         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121522         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121523         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121524         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121525         (check_arrival, check_arrival_add_next_nodes):
121526         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121527         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121528         (check_node_accept_bytes, check_node_accept, extend_buffers):
121529         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121530         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121531         (sift_ctx_init):
121532         Likewise.
121534         * lib/regex_internal.h:
121535         (re_string_allocate, re_string_construct, re_string_reconstruct):
121536         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121537         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121538         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121539         (re_string_context_at, re_string_peek_byte_case):
121540         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121541         is defined, since we now use prototypes always.
121543         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121544         C89 or better.  All uses removed.
121546 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121548         * config/srclist.txt: Add glibc bugs 1220-1227.
121550 2005-08-20  Jim Meyering  <jim@meyering.net>
121552         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121553         of unused local, dfa.
121555 2005-08-20  Bruno Haible  <bruno@clisp.org>
121557         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121559 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121561         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121562         (re_node_set_insert_last, re_dfa_add_node):
121563         Rename local variables to avoid GCC shadowing warnings.
121565 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121567         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121568         [defined lint]: Suppress bogus uninitialized-variable warnings.
121570         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121571         and let the caller return REG_ESPACE if out of space.  This
121572         removes an uninitialied-variable warning with GCC 4.0.1, and also
121573         avoids taking the address of a local variable.  All callers
121574         changed.
121576 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121578         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121579         $LIBCSRC/posix/regexec.c.
121580         Add glibc bug 1217 for regcomp.c.
121582 2005-08-19  Jim Meyering  <jim@meyering.net>
121584         * lib/regexec.c (proceed_next_node): Redo local variables to
121585         avoid GCC shadowing warnings.
121587 2005-08-18  Bruno Haible  <bruno@clisp.org>
121589         * lib/strstr.c (strstr): Fix return value in multibyte case.
121590         * lib/strcasestr.c (strcasestr): Likewise.
121592 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121594         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121596 2005-08-17  Jim Meyering  <jim@meyering.net>
121598         Make the %s format (seconds since the epoch) work for a negative
121599         number and when used with a zero-padded field width, e.g. %015s.
121601         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121602         label so that it precedes the code to set `digits'.  Otherwise,
121603         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121604         print `00-22'.  Now, it prints `-0022', as it should.
121606 2005-08-17  Bruno Haible  <bruno@clisp.org>
121608         * modules/strstr (Files): Add m4/mbrtowc.m4.
121609         (Depends-on): Add mbuiter.
121611 2005-08-17  Bruno Haible  <bruno@clisp.org>
121613         * modules/strcasestr: New file.
121614         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121615         strcasestr.
121617 2005-08-17  Bruno Haible  <bruno@clisp.org>
121619         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121621 2005-08-17  Bruno Haible  <bruno@clisp.org>
121623         * modules/mbuiter: New file.
121624         * MODULES.html.sh (Extended multibyte and wide character utilities):
121625         Add mbuiter.
121627 2005-08-17  Bruno Haible  <bruno@clisp.org>
121629         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121630         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121632 2005-08-17  Bruno Haible  <bruno@clisp.org>
121634         * m4/strcasestr.m4: New file.
121636 2005-08-17  Bruno Haible  <bruno@clisp.org>
121638         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121639         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121641 2005-08-17  Bruno Haible  <bruno@clisp.org>
121643         * lib/strcasestr.h: New file.
121644         * lib/strcasestr.c: New file.
121646 2005-08-17  Bruno Haible  <bruno@clisp.org>
121648         * lib/strcasecmp.c: Use mbuiter.h.
121650 2005-08-17  Bruno Haible  <bruno@clisp.org>
121652         * lib/mbuiter.h: New file.
121654 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121657         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121658         and gl_GETOPT are both invoked via different paths (as happens
121659         with GNU tar CVS because it uses both argp and getopt), the former
121660         wins.
121662 2005-08-16  Bruno Haible  <bruno@clisp.org>
121664         * modules/tls: New file.
121665         * MODULES.html.sh (Multithreading): Add tls.
121667 2005-08-16  Bruno Haible  <bruno@clisp.org>
121669         * modules/strnlen1: New file.
121670         * MODULES.html.sh (String handling): Add strnlen1.
121672 2005-08-16  Bruno Haible  <bruno@clisp.org>
121674         * modules/strcase (Files): Add m4/mbrtowc.m4.
121675         (Depends-on): Add strnlen1, mbchar.
121677 2005-08-16  Bruno Haible  <bruno@clisp.org>
121679         * modules/mbiter: New file.
121680         * MODULES.html.sh (Extended multibyte and wide character utilities):
121681         Add mbiter.
121683 2005-08-16  Bruno Haible  <bruno@clisp.org>
121685         * modules/mbfile: New file.
121686         * MODULES.html.sh (Extended multibyte and wide character utilities):
121687         Add mbfile.
121689 2005-08-16  Bruno Haible  <bruno@clisp.org>
121691         * modules/mbchar: New file.
121692         * MODULES.html.sh (Extended multibyte and wide character utilities):
121693         New section.
121695 2005-08-16  Bruno Haible  <bruno@clisp.org>
121697         * m4/tls.m4: New file, from GNU gettext.
121699 2005-08-16  Bruno Haible  <bruno@clisp.org>
121701         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121702         always.
121703         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121705 2005-08-16  Bruno Haible  <bruno@clisp.org>
121707         * m4/mbiter.m4: New file.
121709 2005-08-16  Bruno Haible  <bruno@clisp.org>
121711         * m4/mbfile.m4: New file.
121713 2005-08-16  Bruno Haible  <bruno@clisp.org>
121715         * m4/mbchar.m4: New file.
121717 2005-08-16  Bruno Haible  <bruno@clisp.org>
121719         * lib/tls.h: New file, from GNU gettext.
121720         * lib/tls.c: New file, from GNU gettext.
121722 2005-08-16  Bruno Haible  <bruno@clisp.org>
121724         * lib/strnlen1.h: New file.
121725         * lib/strnlen1.c: New file.
121727 2005-08-16  Bruno Haible  <bruno@clisp.org>
121729         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121730         (mbi_init): Update.
121731         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121732         NUL byte, not after it.
121734 2005-08-16  Bruno Haible  <bruno@clisp.org>
121736         * lib/strcase.h (strcasecmp): Add note in comments.
121737         * lib/strncasecmp.c: Use code from strcasecmp.c.
121738         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121739         (strcasecmp): Work correctly in multibyte locales.
121741 2005-08-16  Bruno Haible  <bruno@clisp.org>
121743         * lib/mbiter.h: New file.
121745 2005-08-16  Bruno Haible  <bruno@clisp.org>
121747         * lib/mbfile.h: New file.
121749 2005-08-16  Bruno Haible  <bruno@clisp.org>
121751         * lib/mbchar.h: New file.
121752         * lib/mbchar.c: New file.
121754 2005-08-16  Bruno Haible  <bruno@clisp.org>
121756         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121757         the valid ones. Makes the comparison operations transitive:
121758         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121759         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121761 2005-08-15  Simon Josefsson  <jas@extundo.com>
121763         * modules/ssize_t (License): Change to 'unlimited'.
121765         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121767 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121769         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121770         Add comments for each pending glibc patch.
121772 2005-08-15  Bruno Haible  <bruno@clisp.org>
121774         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121775         __cplusplus is defined.
121777 2005-08-14  Jim Meyering  <jim@meyering.net>
121779         Sync from coreutils.
121781         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121782         Use the hash-table-based cycle-detection code not just when
121783         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121784         Reported by James Youngman in
121785         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121786         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121787         FTS_TIGHT_CYCLE_CHECK.
121788         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121789         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121790         once again.
121791         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121792         * lib/fts.c (fd_safer): Remove decl.
121793         Include fcntl--.h rather than unistd-safer.h
121794         (fts_safe_changedir): Don't call fd_safer; no longer needed
121795         now that we include fcntl--.h.
121797 2005-08-12  Simon Josefsson  <jas@extundo.com>
121799         * modules/getndelim2: Use ssize_t module.
121800         * modules/getnline: Likewise.
121801         * modules/safe-read: Likewise.
121802         * modules/xreadlink: Likewise.
121804         * modules/ssize_t: New file.
121806 2005-08-12  Simon Josefsson  <jas@extundo.com>
121808         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121810 2005-08-12  Simon Josefsson  <jas@extundo.com>
121812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121813         ssize_t.
121815 2005-08-12  Simon Josefsson  <jas@extundo.com>
121817         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121818         readline, getdelim and check_version.
121819         (Support for systems lacking ISO C 99: Sizes of integer types):
121820         Add size_max.
121822 2005-08-12  Bruno Haible  <bruno@clisp.org>
121824         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121826 2005-08-11  Simon Josefsson  <jas@extundo.com>
121828         * modules/readline: New file.
121830         * modules/strnlen (Files): Add strnlen.h.
121832 2005-08-11  Simon Josefsson  <jas@extundo.com>
121834         * m4/readline.m4: New file.
121836 2005-08-11  Simon Josefsson  <jas@extundo.com>
121838         * lib/readline.h, readline.c: New file.
121840 2005-08-11  Simon Josefsson  <jas@extundo.com>
121842         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121843         gl_AVOID.
121845 2005-08-11  Bruno Haible  <bruno@clisp.org>
121847         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121849 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121851         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121853 2005-08-10  Simon Josefsson  <jas@extundo.com>
121855         * tests/test-iconvme.c: New file.
121857 2005-08-10  Simon Josefsson  <jas@extundo.com>
121859         * m4/strnlen.m4: New file.
121861         * m4/strndup.m4: Don't check for strnlen declaration, done in
121862         strnlen.m4.
121864 2005-08-10  Simon Josefsson  <jas@extundo.com>
121866         * lib/strndup.c: Use strnlen.h.
121868         * lib/strnlen.h: New file.
121870 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121872         * README: Typos.
121874 2005-08-02  Simon Josefsson  <jas@extundo.com>
121876         * modules/readline: New file.
121878 2005-08-02  Simon Josefsson  <jas@extundo.com>
121880         * modules/getdelim: New file.
121882         * modules/getline: Rewrite, don't use getndelim2.
121884 2005-08-02  Simon Josefsson  <jas@extundo.com>
121886         * m4/getline.m4: Separate out getdelim stuff into separate module.
121888         * m4/getdelim.m4: New file.
121890 2005-08-02  Simon Josefsson  <jas@extundo.com>
121892         * lib/getline.h, getline.c: Rewrite.
121894         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121896 2005-07-31  Bruno Haible  <bruno@clisp.org>
121898         * lib/lock.h (gl_lock_initializer): New macro.
121899         (gl_lock_define_initialized): Use it.
121900         (gl_rwlock_initializer): New macro.
121901         (gl_rwlock_define_initialized): Use it.
121902         (gl_recursive_lock_initializer): New macro.
121903         (gl_recursive_lock_define_initialized): Use it.
121905 2005-07-30  Karl Berry  <karl@gnu.org>
121907         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121908         Report from Ben Pfaff, regarding getopt.
121910 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121912         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121913         normal way.
121914         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121915         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121916         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121917         (gl_GETOPT): Use the new macros.  Most of the implementation
121918         is moved to the new macros.  This is for programs like Emacs
121919         that don't want all the functionality of gl_GETOPT.
121921 2005-07-26  Bruno Haible  <bruno@clisp.org>
121923         * m4/lock.m4: Update from GNU gettext.
121925 2005-07-26  Bruno Haible  <bruno@clisp.org>
121927         * lib/lock.h: Update from GNU gettext.
121928         * lib/lock.c: Update from GNU gettext.
121930 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121932         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121933         obsolescent AC_TRY_RUN.  Include the default includes files, for
121934         'exit'.
121936 2005-07-24  Bruno Haible  <bruno@clisp.org>
121938         * modules/visibility: New file.
121939         * MODULES.html.sh (Misc): Add visibility.
121941 2005-07-24  Bruno Haible  <bruno@clisp.org>
121943         * m4/visibility.m4: New file.
121945 2005-07-24  Bruno Haible  <bruno@clisp.org>
121947         * doc/visibility.texi: New file.
121949 2005-07-22  Bruno Haible  <bruno@clisp.org>
121951         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121952         $(ALLOCA_H), redundant through BUILT_SOURCES.
121953         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121954         redundant through BUILT_SOURCES.
121955         * modules/byteswap (Makefile.am): Remove explicit dependency on
121956         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121957         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121958         $(FNMATCH_H), redundant through BUILT_SOURCES.
121959         * modules/getopt (Makefile.am): Remove explicit dependency on
121960         $(GETOPT_H), redundant through BUILT_SOURCES.
121961         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121962         redundant through BUILT_SOURCES.
121963         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121964         redundant through BUILT_SOURCES.
121965         * modules/stdbool (Makefile.am): Remove explicit dependency on
121966         $(STDBOOL_H), redundant through BUILT_SOURCES.
121967         * modules/stdint (Makefile.am): Remove explicit dependency on
121968         $(STDINT_H), redundant through BUILT_SOURCES.
121969         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121970         Remove explicit dependency on $(SYSEXITS_H).
121971         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121973 2005-07-18  Simon Josefsson  <jas@extundo.com>
121975         * lib/check-version.c (check_version): Accept identical versions too.
121977 2005-07-18  Bruno Haible  <bruno@clisp.org>
121979         * modules/lock: New file.
121980         * MODULES.html.sh (Multithreading): New section.
121982 2005-07-18  Bruno Haible  <bruno@clisp.org>
121984         * m4/lock.m4: New file, from GNU gettext.
121986 2005-07-18  Bruno Haible  <bruno@clisp.org>
121988         * lib/lock.h: New file, from GNU gettext.
121989         * lib/lock.c: New file, from GNU gettext.
121991 2005-07-18  Bruno Haible  <bruno@clisp.org>
121993         * lib/lock.h (gl_once_t): New type.
121994         (gl_once_define, gl_once): New macros.
121995         * lib/lock.c (fresh_once): New variable.
121996         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121997         functions.
121999 2005-07-16  Simon Josefsson  <jas@extundo.com>
122001         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
122002         workaround, suggested by Bruno.
122004 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122006         * modules/xalloc (Depends-on): Add xalloc-die.
122007         * modules/xvasprintf (Depends-on): Add xalloc-die.
122009 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122011         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
122012         with a minor change.
122014 2005-07-15  Bruno Haible  <bruno@clisp.org>
122016         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
122017         When using lib/poll.c, define poll as rpl_poll.
122019 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
122021         * modules/argp (Depends-on): Remove unlocked-io.
122023 2005-07-14  Derek Price  <derek@ximbiot.com>
122025         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
122026         for glob symlink bug.
122028 2005-07-14  Bruno Haible  <bruno@clisp.org>
122030         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
122031         Instead, test for *_unlocked function declarations directly.
122033 2005-07-11  Simon Josefsson  <jas@extundo.com>
122035         * modules/size_max: New file.
122037         * modules/xsize: Depend on size_max module for size_max.m4.
122039 2005-07-11  Simon Josefsson  <jas@extundo.com>
122041         * lib/size_max.h: New file.
122043 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
122045         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
122046         copyright symbol and the year.
122047         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
122048         (version_etc_va): Use parameterized copyright notice.
122049         Reword to conform to the current GNU coding standards.
122051 2005-07-11  Karl Berry  <karl@gnu.org>
122053         * doc/gnulib.texi (Quoting): new node.
122054         (Initial import): more info, from Patrice.
122056 2005-07-11  Bruno Haible  <bruno@clisp.org>
122058         * gnulib-tool (func_usage): Document option --avoid.
122059         (Command line options): Handle --avoid.
122060         (func_acceptable): New function.
122061         (func_modules_transitive_closure): Use it.
122063 2005-07-11  Bruno Haible  <bruno@clisp.org>
122065         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
122066         Reported by Jim Meyering.
122068 2005-07-10  Bruno Haible  <bruno@clisp.org>
122070         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
122071         Needed when size_t is smaller than 'unsigned int'.
122072         Reported by Paul Eggert.
122074 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122076         * modules/argp (Depends-on): Add unlocked-io
122078 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122080         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
122081         block of defines.
122083 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
122085         * config/srclist.txt: Comment out regcomp.c, since we have a porting
122086         fix now.
122088 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
122089         and Paul Eggert  <eggert@cs.ucla.edu>
122091         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
122092         in wint_t, not wchar_t.  Remove now-unnecessary cast.
122094 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122096         * modules/regex (Files): Add lib/regex_internal.c,
122097         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
122098         (Depends-on): Add extensions.
122099         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
122101 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122103         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
122104         pathconf.
122105         * m4/same.m4 (gl_SAME): Likewise.
122106         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
122108         * m4/regex.m4: Adjust to new libc regex implementation.
122109         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
122110         all the .c and .h parts of (the new) regex.
122111         Quote the m4 stuff better.
122112         Check for RE_ICASE bug of old gnulib.
122113         Check for REG_STARTEND of recent libc.
122114         Rename local variables from jm_* to gl_*.
122115         Quote operand of "test -f".
122116         Say "recent enough" version of libc, not "version 2".
122117         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
122118         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
122119         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
122120         Remove check for btowc, isascii.
122121         Require AM_LANGINFO_CODESET.
122123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122125         * lib/regex.c, regex.h: Sync from libc.
122126         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
122127         * lib/regexec.c:
122128         New files, synced from libc, except that regex_internal.h
122129         currently has a small porting fix.
122131 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122133         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
122134         regex_internal.c, regexec.c.
122135         Add regex_internal.h too, but as a comment, since the libc version
122136         is currently broken in gnulib mode.
122138 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
122140         Support programs like Emacs that use gnulib but not gettext.
122141         * MODULES.html.sh (Internationalization functions): Add gettext-h.
122142         * modules/gettext-h: New file.
122143         * modules/gettext (Files): Remove lib/gettext.h.
122144         (Depends-on): Add gettext-h.
122145         (Makefile.am): Remove lib_SOURCES.
122146         * modules/argmatch, modules/c-stack, modules/closeout:
122147         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
122148         * modules/execute, modules/file-type, modules/getaddrinfo:
122149         * modules/getopt, modules/human, modules/javacomp:
122150         * modules/javaexec, modules/mkdir-p, modules/obstack:
122151         * modules/openat, modules/pagealign_alloc, modules/pipe:
122152         * modules/quotearg, modules/regex, modules/rpmatch:
122153         * modules/unicodeio, modules/userspec, modules/version-etc:
122154         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
122155         * modules/xsetenv:
122156         Depend on gettext-h, not gettext.
122158 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
122160         * gnulib-tool (func_import): Add support for 'public domain' license.
122161         * modules/alloca, modules/atexit, modules/memmove:
122162         Now public domain, not GPL.
122163         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
122164         * modules/realloc, modules/strerror, modules/strtod:
122165         Now LGPL, not GPL.
122167 2005-07-05  Bruno Haible  <bruno@clisp.org>
122169         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
122170         autoconf CVS. Needed for mingw.
122172 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122174         Remove the dependency of the strftime module on the tzset module.
122175         * modules/strftime (Depends-on): Remove dependency on tzset.
122177 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122179         Remove the dependency of the strftime module on the tzset module.
122180         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
122181         gl_FUNC_TZSET_CLOBBER.
122183 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122185         Remove the dependency of the strftime module on the tzset module.
122186         * lib/strftime.c (my_strftime)
122187         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
122188         Copy the input structure, to work around some of the bug with
122189         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
122190         Solaris releases, you should also use the tzset module, but we won't
122191         require it as a dependency any more since we don't want LGPLed code
122192         to depend on GPLed code.
122194 2005-07-02  Jim Meyering  <jim@meyering.net>
122196         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
122197         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
122198         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
122199         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
122201 2005-07-02  Jim Meyering  <jim@meyering.net>
122203         * lib/backupfile.c (backup_args): Change a `0' to NULL.
122205 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
122207         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
122208         declares only 'struct timespec;' (!).
122210 2005-07-01  Jim Meyering  <jim@meyering.net>
122212         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
122213         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
122214         * lib/save-cwd.c, tempname.c:
122215         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
122216         and don't include <sys/file.h>).
122218 2005-06-29  Jim Meyering  <jim@meyering.net>
122220         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
122221         type name.  Use the variable name instead.
122222         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
122223         Likewise.
122225 2005-06-28  Simon Josefsson  <jas@extundo.com>
122227         * modules/check-version (Files): Add check-version.m4.
122229 2005-06-28  Simon Josefsson  <jas@extundo.com>
122231         * m4/check-version.m4: New file, suggested by Jim Meyering
122232         <jim@meyering.net>.
122234 2005-06-28  Simon Josefsson  <jas@extundo.com>
122236         * lib/check-version.h, lib/check-version.c: New files.
122238 2005-06-28  Simon Josefsson  <jas@extundo.com>
122240         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
122241         collision with global variable.  Better indentation.  Don't
122242         increment buffer pointer beyond buffer end.  Based on comments
122243         from Paul Eggert <eggert@cs.ucla.edu>.
122245         * lib/base64.h: Indent.
122247 2005-06-28  Simon Josefsson  <jas@extundo.com>
122249         * doc/gnulib.texi (Library version handling): New section.
122251 2005-06-28  Jim Meyering  <jim@meyering.net>
122253         * check-module (find_included_lib_files): Hard-code another
122254         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
122255         but modules/fts-lgpl (correctly) does not list those files.
122257         * modules/canonicalize (Files): Add lib/pathmax.h.
122259 2005-06-25  Simon Josefsson  <jas@extundo.com>
122261         * modules/check-version: New file.
122263 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
122265         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
122266         initializer of struct addrinfo, as an indication that we don't
122267         care how many members the structure has.
122269 2005-06-24  Derek Price  <derek@ximbiot.com>
122270         and Bruno Haible  <bruno@clisp.org>
122272         Remove stat module & update lstat.
122273         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
122274         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122275         * m4/stat.m4: Remove this file.
122277 2005-06-24  Derek Price  <derek@ximbiot.com>
122278         and Bruno Haible  <bruno@clisp.org>
122280         Remove stat module & update lstat.
122281         * lib/stat.c: Remove this file...
122282         (slash_aware_lstat): ...moving this content and its support...
122283         * lib/lstat.c (rpl_lstat): ...into here.
122284         * lib/lstat.h: New file.
122286 2005-06-24  Derek Price  <derek@ximbiot.com>
122287         and Bruno Haible  <bruno@clisp.org>
122289         Remove stat module & update lstat.
122290         * config/srclist.txt (libc sources): Remove stat.
122292 2005-06-24  Derek Price  <derek@ximbiot.com>
122293         and Bruno Haible  <bruno@clisp.org>
122295         Remove stat module & update lstat.
122296         * MODULES.html.sh (stat): Remove.
122297         * MODULES.html: Regenerated.
122298         * modules/lstat (Description): Correct function name.
122299         (Files): Add "lstat.h".
122300         (Depends-on): Remove stat, add xalloc, stat-macros.
122301         * modules/stat: Remove this file.
122302         (Include): Add "lstat.h", remove <sys/stat.h>.
122304 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
122306         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
122307         (ranged_convert): Don't save conversion in a temporary struct.
122308         This causes a warning with GCC 4.0.0, and anyway in the typical
122309         case it's not worth the extra 100 bytes or so of code.
122310         (ranged_convert, __mktime_internal): When calling a function via a
122311         pointer P, use P () rather than (*P) (), as we now assume C89 or
122312         better.
122314 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122316         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
122317         "who -r" failed to give output.  Problem reported by Tim Waugh.
122319         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
122320         (xcalloc): Use it to avoid needless tests.
122321         Problem reported by Jim Meyering.
122323 2005-06-20  Derek Price  <derek@ximbiot.com>
122325         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
122326         unnecessary for Autoconfs > 2.59c.
122328 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122330         * lib/argp.h (__option_is_short): Check upper limit of
122331         __key. Isprint() requires its argument to have the value
122332         of an unsigned char or EOF.
122334 2005-06-16  Jim Meyering  <jim@meyering.net>
122336         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122337         when either N or S is zero.
122339 2005-06-16  Derek Price  <derek@ximbiot.com>
122341         * m4/bison.m4: Declare YACC & YFLAGS precious.
122343 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122345         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122346         multibyte string or pattern, fall back on unibyte matching.
122347         Problem reported by James Youngman.
122349 2005-06-08  Bruno Haible  <bruno@clisp.org>
122351         * modules/csharpcomp: New file.
122352         * MODULES.html.sh (C#): Add csharpcomp.
122354 2005-06-08  Bruno Haible  <bruno@clisp.org>
122356         * m4/csharpcomp.m4: New file, from GNU gettext.
122358 2005-06-08  Bruno Haible  <bruno@clisp.org>
122360         * lib/csharpcomp.h: New file, from GNU gettext.
122361         * lib/csharpcomp.c: New file, from GNU gettext.
122362         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122364 2005-06-08  Bruno Haible  <bruno@clisp.org>
122366         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122367         warning on mingw.
122369 2005-06-07  Derek Price  <derek@ximbiot.com>
122371         Sync from CVS.
122372         * lib/glob_.h: Indent nested #ifdef.
122374 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122376         Sync from coreutils.
122377         Use "file name" when talking about file names, instead of "filename"
122378         or "path", as per the GNU coding standards.
122379         * lib/mkdir-p.c: Renamed from makepath.c.
122380         (make_dir_parents): Renamed from make_path.  All callers changed.
122381         * lib/mkdir-p.h: Likewise.  All includers changed.
122382         * lib/filenamecat.c: Renamed from path-concat.c.
122383         (file_name_concat): Renamed from path_concat.  All callers changed.
122384         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122385         * lib/filenamecat.h: Likewise.  All includers changed.
122386         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122387         in comments or local variable names.
122388         * lib/basename.c: Likewise.
122389         * lib/canonicalize.c, canonicalize.h: Likewise.
122390         * lib/dirname.c, dirname.h: Likewise.
122391         * lib/euidaccess.c: Likewise.
122392         * lib/exclude.c: Likewise
122393         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122394         * lib/fsusage.c, fsuage.h: Likewise.
122395         * lib/fts.c, fts_.h: Likewise.
122396         * lib/getcwd.c: Likewise.
122397         * lib/getloadavg.c: Likewise.
122398         * lib/mkstemp.c: Likewise.
122399         * lib/mountlist.c, mountlist.h: Likewise.
122400         * lib/openat.c, openat.h: Likewise.
122401         * lib/readlink-stub.c: Likewise.
122402         * lib/readutmp.c, readutmp.h: Likewise.
122403         * lib/rename.c: Likewise.
122404         * lib/rmdir.c: Likewise.
122405         * lib/same.c: Likewise.
122406         * lib/savedir.c: Likewise.
122407         * lib/stripslash.c: Likewise.
122408         * lib/tempname.c: Likewise.
122409         * lib/xreadlink.c: Likewise.
122410         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122411         All uses changed.
122412         * lib/exclude.h: Likewise.
122414         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122415         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122416         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122417         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122418         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122419         files have been getting away with it for years (MORE/BSD 4.3
122420         is extinct now).
122421         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122422         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122424         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122425         Define to 256, not 255, as per modern POSIX.
122427 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122429         Sync from coreutils.
122430         Use "file name" when talking about file names, instead of "filename"
122431         or "path", as per the GNU coding standards.
122432         * MODULES.html.sh: mkdir-p renamed from makepath.
122433         filenamecat renamed from path-concat.
122434         * modules/filenamecat: Renamed from modules/path-concat.
122435         (Files): filenamecat.h and filenamecat.c renamed from
122436         path-concat.h and path-concat.c.
122437         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122438         (Include): filenamecat.h, not path-concat.h.
122439         * modules/mkdir-p: Renamed from modules/makepath.
122440         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122441         makepath.c.
122442         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122443         (Include): mkdir-p.h, not makepath.h.
122445 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122447         Sync from coreutils.
122448         * m4/mkdir-p.m4: Renamed from makepath.m4.
122449         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122450         Rename files from makepath.c to mkdir-p.c, and from
122451         makepath.h to mkdir-p.h.
122452         * m4/filenamecat.m4: Renamed from path-concat.m4.
122453         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122454         Rename files from path-concat.c to filenamecat.c,
122455         and from path-concat.h to filenamecat.h.
122456         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122457         "file name" in local variables or comments.
122458         * m4/rename.m4: Likewise.
122460 2005-06-01  Bruno Haible  <bruno@clisp.org>
122462         * modules/csharpexec: New file.
122463         * MODULES.html.sh (C#): New section.
122465 2005-06-01  Bruno Haible  <bruno@clisp.org>
122467         * m4/csharp.m4: New file, from GNU gettext.
122468         * m4/csharpexec.m4: New file, from GNU gettext.
122470 2005-06-01  Bruno Haible  <bruno@clisp.org>
122472         * lib/csharpexec.h: New file, from GNU gettext.
122473         * lib/csharpexec.c: New file, from GNU gettext.
122474         * lib/csharpexec.sh.in: New file, from GNU gettext.
122476 2005-05-31  Derek Price  <derek@ximbiot.com>
122477             Paul Eggert  <eggert@cs.ucla.edu>
122479         Sync from cvs.
122480         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122482 2005-05-31  Derek Price  <derek@ximbiot.com>
122483             Paul Eggert  <eggert@cs.ucla.edu>
122485         Sync from cvs.
122486         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122488 2005-05-29  Derek Price  <derek@ximbiot.com>
122490         * config/srclist.txt (glob_.h, glob.c): Add these files.
122492 2005-05-29  Derek Price  <derek@ximbiot.com>
122494         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122495         * modules/glob: New file.
122496         * modules/getlogin_r: Add link to POSIX spec in description.
122498 2005-05-29  Derek Price  <derek@ximbiot.com>
122499             Paul Eggert  <eggert@cs.ucla.edu>
122501         * m4/glob.m4: New file.
122503 2005-05-29  Derek Price  <derek@ximbiot.com>
122504             Paul Eggert  <eggert@cs.ucla.edu>
122506         * lib/glob_.h, lib/glob.c: New files.
122508 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122510         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122511         * modules/fts-lgpl (Depends-on): Remove gettext.
122513 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122516         and don't require gt_INTTYPES_PRI.
122518 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122520         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122522         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122523         the configuration hassle isn't worth it.
122524         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122525         (LONGEST_MODIFIER, PRIuMAX): Remove.
122527 2005-05-27  Bruno Haible  <bruno@clisp.org>
122529         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122531 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122533         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122534         _POSIX_PTHREAD_SEMANTICS for Solaris.
122536 2005-05-25  Derek Price  <derek@ximbiot.com>
122538         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122540 2005-05-25  Derek Price  <derek@ximbiot.com>
122541             Paul Eggert  <eggert@cs.ucla.edu>
122543         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122544         * lib/getlogin_r.c, getlogin_r.h: New files.
122546 2005-05-25  Bruno Haible  <bruno@clisp.org>
122547             Derek Price  <derek@ximbiot.com>
122549         * lib/getlogin_r.h: Simplify API documentation.
122551 2005-05-23  Derek Price  <derek@ximbiot.com>
122553         * modules/minmax (Files): Add m4/minmax.m4.
122554         (configure.ac): Add gl_MINMAX.
122556 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122558         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122559         so that unistd-safer.h (GPL'ed code) need not be included.
122561 2005-05-22  Bruno Haible  <bruno@clisp.org>
122563         * m4/minmax.m4: New file.
122564         Based on a patch by Derek Price <derek@ximbiot.com>.
122566 2005-05-22  Bruno Haible  <bruno@clisp.org>
122568         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122569         (INT64_MIN): Fix definition.
122570         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122572         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122573         NEED_SIGNED_INT_TYPES.
122575         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122576         HAVE_SYSTEM_INTTYPES.
122578 2005-05-22  Bruno Haible  <bruno@clisp.org>
122580         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122581         Also include <sys/param.h> if it defines MIN, MAX.
122582         Based on a patch by Derek Price <derek@ximbiot.com>.
122584 2005-05-21  Jim Meyering  <jim@meyering.net>
122586         * modules/fts (Files): Add m4/inttypes-pri.m4.
122587         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122589 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122591         New fts module.
122592         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122593         (setup_dir, free_dir): New functions.
122594         (enter_dir, leave_dir): Define trivial
122595         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122596         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122597         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122598         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122599         Move to fts-cycle.c.
122600         (fts_open): Use setup_dir.
122601         (fts_close): Use free_dir.
122602         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122603         This adds a label and some gotos, but the alternatives were messier.
122604         Check for memory allocation failure when entering a dir.
122605         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122606         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122607         (FTS): New member fts_cycle, that is a union that contains the
122608         old active_dir_ht and cycle_state.  All uses changed to mention
122609         fts_cycle.ht and fts_cycle.state.
122610         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122611         fts.c, with the following changes:
122612         (setup_dir, free_dir): New functions.
122613         (enter_dir): Now returns bool.  Return true if successful, false
122614         if memory exhausted.  All callers changed.
122615         Do not bother partly cleaning up on
122616         memory allocation failure; that is free_dir's job.
122617         However, free ad if hash_insert fails, to avoid memory leak.
122618         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122619         fts->fts_options to see which union member to use.
122621 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122624         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122626 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122628         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122630 2005-05-20  Jim Meyering  <jim@meyering.net>
122632         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122633         Now a macro, to pacify GCC.
122635 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122637         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122638         of -1.
122640 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122642         * lib/chown.c (rpl_chown): Return -1 on failure.
122644 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122647         Don't check for stddef.h.
122648         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122649         don't use its results.
122650         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122651         since we include them unconditionally.  Don't require
122652         AM_STDBOOL_H, since stdbool is a prerequisite.
122653         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122654         since we assume C89 or better.
122655         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122656         as we don't use their results.
122657         Don't check for fchdir, memmove, memset, strrchr, as we use
122658         them unconditionally.
122659         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122660         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122662 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122664         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122665         Include <stddef.h> unconditionally, since we assume C89 now.
122666         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122667         * lib/fts.c: Include fts_.h first, to check interface.
122668         Do not include intprops.h; no longer needed.
122669         Include cycle-check.h and hash.h, since fts_.h no longer does.
122670         Remove unnecessary casts of closedir to void.
122671         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122672         decide whether to decrement nlinks.
122673         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122674         (FTS): Use struct hash_table * instead of Hash_table, so that
122675         we no longer need to include hash.h here.
122677 2005-05-18  Jim Meyering  <jim@meyering.net>
122679         * modules/dirfd (License): Change to LGPL.  Most of the code
122680         is already in the public domain.
122682 2005-05-18  Jim Meyering  <jim@meyering.net>
122684         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122685         Reported by Yoann Vandoorselaere.
122687 2005-05-17  Jim Meyering  <jim@meyering.net>
122689         * m4/fts.m4: New file, from coreutils.
122691 2005-05-17  Jim Meyering  <jim@meyering.net>
122693         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122695 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122697         Sync from coreutils.
122698         * m4/unlinkdir.m4: New file.
122700 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122702         Sync from coreutils.
122703         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122704         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122705         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122706         White space changes only.
122707         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122708         special.
122709         * lib/yesno.c: Include getline.h, not ctype.h.
122710         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122711         Use getline to remove arbitrary restriction on response length.
122713 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122715         * config/srclist-update: Spell out "Street" in FSF postal
122716         mail address; this is the style the FSF seems to prefer.
122718         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122719         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122720         this updates FSF postal mail address.
122722         Sync from coreutils.
122723         * modules/unlinkdir: New file.
122724         * modules/yesno (Depends-on): Add getline.
122725         * MODULES.html.sh (File system functions): Add unlinkdir.
122727 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122729         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122730         lib/strsep.h:
122731         Change the initial comment to refer to GPL, not LGPL.
122732         gnulib-tool will change it to LGPL as needed.
122734         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122735         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122736         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122737         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122738         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122739         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122740         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122741         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122742         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122743         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122744         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122745         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122746         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122747         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122748         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122749         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122750         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122751         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122752         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122753         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122754         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122755         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122756         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122757         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122758         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122759         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122760         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122761         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122762         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122763         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122764         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122765         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122766         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122767         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122768         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122769         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122770         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122771         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122772         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122773         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122774         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122775         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122776         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122777         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122778         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122779         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122780         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122781         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122782         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122783         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122784         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122785         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122786         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122787         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122788         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122789         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122790         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122791         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122792         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122793         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122794         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122795         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122796         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122797         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122798         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122799         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122800         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122801         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122802         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122803         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122804         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122805         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122806         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122807         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122808         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122809         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122810         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122811         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122812         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122813         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122814         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122815         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122816         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122817         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122818         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122819         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122820         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122821         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122822         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122823         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122824         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122825         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122826         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122827         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122828         lib/yesno.c, lib/yesno.h:
122829         Update FSF postal mail address.
122831 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122833         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122834         tests/test-memmem.c, tests/test-stpncpy.c:
122835         Update FSF postal mail address.
122837 2005-05-13  Bruno Haible  <bruno@clisp.org>
122839         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122840         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122841         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122842         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122843         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122844         Add support for 64-bit integers in the MSVC compiler.
122846 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122848         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122850 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122852         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122854 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122856         * doc/getdate.texi (General date syntax): Don't say that date
122857         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122858         Problem reported by Nic Ferrier.
122860 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122862         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122863         specified in ai_socktype. Fix invalid ai_protocol
122864         check. ai_protocol is usually set to 0 or depending on
122865         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122866         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122867         ai_socktype / ai_protocol in the returned addrinfo structure.
122869 2005-05-10  Simon Josefsson  <jas@extundo.com>
122871         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122872         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122874 2005-05-10  Karl Berry  <karl@gnu.org>
122876         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122877         (from http://www.gnu.org/licenses).
122878         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122879         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122880         fdl.texi suffices.
122882 2005-05-10  Karl Berry  <karl@gnu.org>
122884         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122885         (COPYING.DOC): remove.
122887         * config/srclist-update: new FSF address.
122889 2005-05-10  Derek Price  <derek@ximbiot.com>
122891         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122892         possible.
122894 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122895             Bruno Haible  <bruno@clisp.org>
122897         * modules/inet_ntop: New file.
122898         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122899         inet_ntop.
122901 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122902             Bruno Haible  <bruno@clisp.org>
122904         * m4/inet_ntop.m4: New file.
122906 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122907             Bruno Haible  <bruno@clisp.org>
122909         * lib/inet_ntop.h: New file.
122910         * lib/inet_ntop.c: New file, from glibc with modifications.
122912 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122914         * modules/time_r (License): Change to LGPL.
122915         * modules/extensions (License): Change to LGPL.  Actually,
122916         the license is more permissive than that, but currently gnulib-tool
122917         doesn't know how to handle more-permissive licenses.
122919         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122920         Problem reported by Dave Love.
122922 2005-05-08  Jim Meyering  <jim@meyering.net>
122924         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122925         blank.
122927 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122929         * modules/argmatch (Depends-on): Add stdbool.
122930         * modules/backupfile (Depends-on): Likewise.
122931         * modules/chdir-long (Depends-on): Likewise.
122932         * modules/closeout (Depends-on): Likewise.
122933         * modules/cycle-check (Depends-on): Likewise.
122934         * modules/dirname (Depends-on): Likewise.
122935         * modules/fnmatch (Depends-on): Likewise.
122936         * modules/fsusage (Depends-on): Likewise.
122937         * modules/fwriteerror (Depends-on): Likewise.
122938         * modules/getcwd (Depends-on): Likewise.
122939         * modules/getloadavg (Depends-on): Likewise.
122940         * modules/hard-locale (Depends-on): Likewise.
122941         * modules/makepath (Depends-on): Likewise.
122942         * modules/mountlist (Depends-on): Likewise.
122943         * modules/nanosleep (Depends-on): Likewise.
122944         * modules/posixtm (Depends-on): Likewise.
122945         * modules/quotearg (Depends-on): Likewise.
122946         * modules/readtokens (Depends-on): Likewise.
122947         * modules/readtokens0 (Depends-on): Likewise.
122948         * modules/readutmp (Depends-on): Likewise.
122949         * modules/save-cwd (Depends-on): Likewise.
122950         * modules/strftime (Depends-on): Likewise.
122951         * modules/userspec (Depends-on): Likewise.
122952         * modules/utimecmp (Depends-on): Likewise.
122953         * modules/xgetcwd (Depends-on): Likewise.
122954         * modules/xnanosleep (Depends-on): Likewise.
122955         * modules/xstrtod (Depends-on): Likewise.
122956         * modules/yesno (Depends-on): Likewise.
122958 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122960         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122961         needless checks.
122963 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122965         Merge from coreutils.  Among other things,
122966         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122967         * lib/fd-safer.c: New file.
122968         * lib/fcntl-safer.h, open-safer.c: Remove.
122969         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122970         * lib/dup-safer.c: Include unistd-safer.h first.
122971         Don't include errno.h.
122972         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122973         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122974         * lib/file-type.c: Rely on file-type.h change.
122975         * lib/getloadavg.c: Include unistd-safer.h.
122976         (getloadavg): Use safer open.
122977         * lib/getusershell.c: Include "stdio-safer.h".
122978         (getusershell): Use safer fopen.
122979         * lib/long-options.c (long_options): Use NULL rather than 0.
122980         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122981         'free'.
122982         * lib/modechange.c: Likewise.
122983         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122984         (MODE_DONE): New constant.
122985         (struct mode_change): Remove 'next' member.
122986         (make_node_op_equals): New function; like the old one of the
122987         same name, except it allocates an array.
122988         (mode_compile, mode_create_from_ref): Use it.
122989         (mode_compile): Allocate result as an array, not a linked list.
122990         Parse octal string ourself, so that we catch mistakes like "+0".
122991         (mode_adjust): Arg is an array, not a linked list.
122992         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122993         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122994         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122995         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122996         Remove.  This is now stat-macros.h's job.
122997         (talloc): Remove.  All callers replaced by xalloc, so that
122998         our invokers don't have to worry about reporting memory failures.
122999         (make_node_op_equals): Remove.
123000         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123001         New constants.
123002         (struct mode_change): Moved here from modechange.h.
123003         (mode_append_entry): Remove.
123004         (mode_compile): Remove MASKED_OPS arg, since it encouraged
123005         apps to have incorrect behavior.  Use simpler algorithm for head
123006         and tail.  Don't futz with umask; that's now the job of mode_adjust.
123007         Detect more invalid usages rather than having somewhat-random behavior.
123008         Don't insert an "a=" action, as that leads to incorrect behavior.
123009         (mode_compile, mode_create_from_ref): Return NULL on error instead
123010         of an enum, since now there's only one way to have an error.  All
123011         callers changed.
123012         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
123013         at the correct time.  Simplify calculation of "+u" and its ilk.
123014         Don't mishandle "+X".
123015         (mode_free): Remove "register" and localize decls.
123016         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123017         (struct mode_change): Move to modechange.c; callers don't
123018         need to see this stuff.
123019         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
123020         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
123021         (mode_change, mode_adjust): Reflect the new signatures noted above.
123022         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
123023         that might redefine system include files.
123024         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
123025         (my_usleep): Use NULL rather than (void *) 0.
123026         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
123027         Use siginterrupt to specify that system calls should be interrupted.
123028         (rpl_nanosleep): Move initialization of suspended closer to call of
123029         my_usleep.
123030         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
123031         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
123032         (desirable_utmp_entry): New function.
123033         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
123034         using x2nrealloc, to simplify logic.
123035         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
123036         size calculation.  Do not assume utmp file is a regular file.
123037         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
123038         (READ_UTMP_CHECK_PIDS): New constant.
123039         * lib/save-cwd.c: Include unistd-safer.h.
123040         (save_cwd): Use fd_safer.
123041         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
123042         [!_LIBC] Include "stat-macros.h" instead.
123043         * lib/unistd-safer.h (fd_safer): New decl.
123045 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123047         * modules/getloadavg (Depends-on): Add unistd-safer.
123048         * modules/getusershell (Depends-on): Add stdio-safer.
123049         * modules/lstat (Depends-on): Remove xalloc.
123050         * modules/mkstemp (Depends-on): Add stat-macros.
123051         * modules/modechange (Depends-on): Remove xstrtol.
123052         Add stat-macros, xalloc.
123053         * modules/save-cwd (Depends-on): Add unistd-safer.
123054         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
123055         * modules/unistd-safer (Files): Add lib/fd-safer.c
123056         (Makefile.am): Remove lib_SOURCES.
123058         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
123059         Remove fcntl-safer; unistd-safer supersedes it.
123061 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
123064         AC_HEADER_STAT.
123065         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
123066         (gl_PREREQ_CHOWN): Remove.
123067         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
123068         it.  Don't require AC_HEADER_STAT.
123069         (gl_PREREQ_LSTAT): Remove.
123070         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
123071         Don't require AC_HEADER_STAT.
123072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
123073         (gl_PREREQ_RMDIR): Remove.
123074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
123075         mention stat-macros.h or AC_HEADER_STAT, since we'll make
123076         the stat-macros module a prerequisite.
123077         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
123078         * m4/filemode.m4 (gl_FILEMODE): Likewise.
123079         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
123080         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
123081         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
123082         variable names.
123083         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
123084         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
123085         variable prefixes.
123086         * m4/fcntl-safer.m4: Remove.
123087         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
123088         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
123089         Invoke gl_PREREQ_FD_SAFER.
123090         (gl_PREREQ_FD_SAFER): New macro.
123091         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
123092         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
123093         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
123094         Remove duplicate call to AC_LIBOBJ(readutmp).
123095         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
123097         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
123098         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
123100 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123102         * MODULES.html.sh (Misc): Add byteswap.
123104 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123106         * modules/getcwd (Depends-on): Add extensions.
123107         * modules/openat (Depends-on): Likewise.
123109 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123111         * modules/byteswap: New file.
123113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123115         * m4/byteswap.m4: New file.
123117 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123119         * lib/byteswap_.h: New file.
123121 2005-04-25  Karl Berry  <karl@gnu.org>
123123         * m4/gettext.m4: Update from GNU gettext 0.14.4.
123125 2005-04-25  Albert Chin  <china@thewrittenword.com>
123127         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
123128         Toolkit C bug.
123130 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
123132         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
123133         (func_ln_if_changed): Remove forcibly for no error message
123134         in case file does not exist.
123136 2005-04-19  Simon Josefsson  <jas@extundo.com>
123138         * gnulib-tool (Options): Make --symlink mean --symbolic.
123140 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
123142         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
123144 2005-04-16  Simon Josefsson  <jas@extundo.com>
123146         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
123148 2005-04-15  Simon Josefsson  <jas@extundo.com>
123150         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
123152 2005-04-15  Simon Josefsson  <jas@extundo.com>
123154         * gnulib-tool: Rename --symlink to --symbolic.
123156 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
123158         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
123159         symbolic links to files instead of copying/moving.  Add --aux-dir,
123160         specifying directory relative --dir where auxiliary build tools
123161         are placed.
123163 2005-04-14  Bruno Haible  <bruno@clisp.org>
123165         * modules/allocsa (License): Change to LGPL.
123166         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
123168 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
123170         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
123171         that "UTC +1 second" continues to work.  Problem reported
123172         by Dmitry V. Levin.
123173         (relunit_snumber): New rule.
123174         (relunit): Use it.
123176 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
123178         * lib/getdate.y (universal_time_zone_table): New constant.
123179         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
123180         universal_time_zone_table.
123181         (lookup_zone): Prefer universal_time_zone_table to
123182         local_time_zone_table, so that "GMT" time stamps are allowed in
123183         London during the summer.  Problem reported by Ian Abbott.
123185 2005-04-12  Jim Meyering  <jim@meyering.net>
123187         * lib/human.c (humblock): Set *options even when returning due to
123188         xstrtoumax conversion failure.  Thanks to a used-uninitialized
123189         warning from gcc-4.
123191 2005-04-09  Jim Meyering  <jim@meyering.net>
123193         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
123194         -Wuninitialized: initialize tm0.tm_year.
123196 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
123198         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
123199         count, since there's no maximum.  All uses changed.
123200         Add member dsts_seen.
123201         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
123202         not being INT_MAX.
123203         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
123204         Use pc_rels_seen to decide whether a date is absolute.
123206         * lib/getdate.y (number): Don't overwrite year.
123207         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
123208         check.
123210 2005-04-02  Simon Josefsson  <jas@extundo.com>
123212         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
123213         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
123215 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
123217         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
123218         where no absolute path name can be longer than PATH_MAX.
123220 2005-03-27  Jim Meyering  <jim@meyering.net>
123222         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
123224 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
123226         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
123227         "one's complement" -> "ones' complement" in comment, as per Knuth.
123228         "value of type" -> "type or expression" in comment.
123229         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
123231 2005-03-26  Jim Meyering  <jim@meyering.net>
123233         Comment nits.
123234         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
123235         Correct typos: s/or/of/.
123237 2005-03-26  Jim Meyering  <jim@meyering.net>
123239         * modules/check-include-files: Move to ../ and rename to...
123240         * check-module: ...this.
123242 2005-03-25  Jim Meyering  <jim@meyering.net>
123244         * modules/xvasprintf (Files): Add xalloc.h.
123246 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
123248         * modules/gettext (Files): config/config.rpath ->
123249         build-aux/config.rpath
123250         * modules/iconv (Files): Likewise.
123251         Problem reported by Oskar Liljeblad.
123253 2005-03-23  Jim Meyering  <jim@meyering.net>
123255         * modules/check-include-files: New script to check for
123256         missing dependencies, multiple includes, etc.
123258         * modules/c-strtold (Depends-on): Add xalloc.
123259         * modules/c-strtod (Depends-on): Add xalloc.
123260         * modules/hash (Depends-on): Add xalloc.
123261         (Files): Remove lib/xalloc.h.
123263         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
123264         * modules/userspec (Files): Add lib/inttostr.h.
123266 2005-03-23  Jim Meyering  <jim@meyering.net>
123268         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
123270 2005-03-22  Jim Meyering  <jim@meyering.net>
123272         * modules/stat-macros: New module.
123273         * modules/canonicalize, modules/euidaccess, modules/file-type,
123274         * modules/filemode, modules/lchown, modules/makepath,
123275         * modules/rmdir, modules/stat: Depend on new stat-macros module
123276         rather than listing lib/stat-macros.h manually.
123277         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
123279 2005-03-22  Jim Meyering  <jim@meyering.net>
123281         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
123283 2005-03-22  Bruno Haible  <bruno@clisp.org>
123285         * config/srclist.txt: Replace target directory 'config' with
123286         'build-aux'.
123287         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
123288         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
123289         ../build-aux/.
123291 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
123293         * modules/chdir-long (Depends-on): Add mempcpy.
123295         * modules/acl, modules/backupfile, modules/c-strtod,
123296         modules/c-strtold, modules/canon-host, modules/canonicalize,
123297         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
123298         modules/exclude, modules/exitfail, modules/file-type,
123299         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
123300         modules/getdate, modules/getline, modules/getpagesize,
123301         modules/getpass, modules/getugroups, modules/group-member,
123302         modules/hard-locale, modules/hash, modules/human, modules/idcache,
123303         modules/inttostr, modules/long-options, modules/makepath,
123304         modules/md5, modules/memcasecmp, modules/memcoll,
123305         modules/modechange, modules/mountlist, modules/path-concat,
123306         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
123307         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
123308         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
123309         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
123310         modules/strftime, modules/strndup, modules/strverscmp,
123311         modules/timespec, modules/unlocked-io, modules/userspec,
123312         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
123313         modules/yesno:
123314         Remove lib_SOURCES line from Makefile.am section, as this is now
123315         done automatically by the corresponding Autoconf macro.
123317 2005-03-21  Jim Meyering  <jim@meyering.net>
123319         Changes imported from coreutils.
123321         * lib/cycle-check.c: Don't include xalloc.h.
123323         * lib/path-concat.c: Don't include assert.h.
123324         (path_concat): Remove assertion that would have triggered
123325         for ABASE starting with more than one slash.
123326         Reported by Andreas Schwab.
123328         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123329         properly when ABASE is an absolute file name.
123330         Correct the description of this function.
123331         Include <assert.h>.
123332         Add an assertion and a test driver.
123333         This fixes a bug introduced on 2004-07-02.
123334         Andreas Schwab reported the resulting failure of cp --parents:
123335         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123337 2005-03-21  Jim Meyering  <jim@meyering.net>
123339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123342 2005-03-21  Jim Meyering  <jim@meyering.net>
123343         and  Paul Eggert  <eggert@cs.ucla.edu>
123345         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123346         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123347         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123348         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123349         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123350         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123351         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123352         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123353         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123354         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123355         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123356         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123357         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123358         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123359         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123360         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123361         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123362         for these modules.
123364 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123366         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123367         (which shouldn't happen), generate nothing instead of returning 0
123368         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123370 2005-03-16  Bruno Haible  <bruno@clisp.org>
123372         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123373         HAVE_LONGLONG_64BIT.
123375 2005-03-16  Bruno Haible  <bruno@clisp.org>
123377         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123378         HAVE_LONGLONG_64BIT.
123380 2005-03-16  Bruno Haible  <bruno@clisp.org>
123382         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123383         HAVE_LONGLONG_64BIT.
123385 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123387         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123388         reliably distinguish strftime failure from empty output on POSIX
123389         hosts.
123391 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123393         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123394         (iconv_string): Don't guess a size-zero buffer, as that might cause
123395         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123396         result would be 'too large', where 'too large' is (heuristically)
123397         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123398         overflow concerns.  This will prevent some unwanted malloc failures
123399         when the inputs are very large.
123401 2005-03-15  Karl Berry  <karl@gnu.org>
123403         * config/srclist.txt (config.rpath): from gettext.
123404         * config/config.rpath: update.
123406 2005-03-15  Bruno Haible  <bruno@clisp.org>
123408         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123409         to 'negate'.
123411         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123412         variable.
123414         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123415         results.
123417 2005-03-14  Simon Josefsson  <jas@extundo.com>
123419         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123420         <fx@gnu.org>.
123422 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123424         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123425         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123426         intprops.h.
123427         * lib/strtol.c: Likewise.
123429 2005-03-14  Jim Meyering  <jim@meyering.net>
123431         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123432         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123433         to be nonzero so that we (and caller) can detect the difference
123434         between a valid zero-length expansion and an error return, even
123435         when the underlying strftime fails before writing anything into
123436         that location.
123438 2005-03-14  Bruno Haible  <bruno@clisp.org>
123440         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123441         Update from GNU gettext 0.14.3.
123443 2005-03-10  Jim Meyering  <jim@meyering.net>
123445         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123447 2005-03-10  Jim Meyering  <jim@meyering.net>
123449         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123450         so that this module works on systems without fchdir.
123452 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123454         Factor int-properties macros into a single file, except for
123455         glibc-related files.
123456         * lib/intprops.h: New file.
123457         * lib/getloadavg.c: Include it instead of limits.h.
123458         (INT_STRLEN_BOUND): Remove.
123459         * lib/human.c: Include intprops.h.
123460         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123461         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123462         302/1000.
123463         * lib/inttostr.h: Include intprops.h instead of limits.h.
123464         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123465         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123466         for consistency with intprops.h.
123467         (time_t_is_integer, twos_complement_arithmetic): Use them.
123468         * lib/sig2str.h: Include <signal.h>, intprops.h.
123469         (INT_STRLEN_BOUND): Remove.
123470         * lib/strftime.c (TYPE_SIGNED): Remove.
123471         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123472         * lib/strtol.c: Adjust comments to match intprops.h.
123473         * lib/userspec.c: Include intprops.h.
123474         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123475         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123476         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123477         instead of rolling our own expressions.
123478         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123480         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123481         instead of int.
123482         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123483         the right thing even if adding 1900 would overflow.  Similarly
123484         for tm_mon + 1 and tm_yday + 1.
123485         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123486         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123487         (DO_SIGNED_NUMBER): New macro.
123488         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123490 2005-03-07  Bruno Haible  <bruno@clisp.org>
123492         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123494 2005-03-07  Bruno Haible  <bruno@clisp.org>
123496         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123498 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123500         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123501         (func_import): Only replace files via --import when they have actually
123502         changed.
123504 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123506         * m4/mmap-anon.m4: New file.
123507         * m4/pagealign_alloc.m4: New file.
123509 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123510             Bruno Haible  <bruno@clisp.org>
123512         * modules/pagealign_alloc: New file.
123513         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123515 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123516             Bruno Haible  <bruno@clisp.org>
123518         * lib/pagealign_alloc.h: New file.
123519         * lib/pagealign_alloc.c: New file.
123521 2005-03-03  Bruno Haible  <bruno@clisp.org>
123523         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123524         Use an all-permissive copyright notice, recommended by RMS.
123526 2005-03-02  Bruno Haible  <bruno@clisp.org>
123528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123529         of AIX, the replacement has to be done only after <string.h> is
123530         included, therefore not in config.h. stpncpy.h does the replacement,
123531         and stpncpy.c uses it.
123533 2005-03-02  Bruno Haible  <bruno@clisp.org>
123535         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123536         stpncpy.c uses it.
123538 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123540         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123541         The workaround isn't strictly needed for POSIX conformance, and
123542         it's too much of a pain to configure and maintain.  We'll ask
123543         people to fix their kernels instead.
123544         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123545         (NANOSLEEP_BUG_WORKAROUND): Remove.
123546         (xnanosleep): Remove the workaround.
123548 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123550         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123551         Reported by Derek Price.
123552         (Include): Add "timespec.h".
123554         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123556 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123558         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123559         to detect nanosleep bug.
123561 2005-03-01  Bruno Haible  <bruno@clisp.org>
123563         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123565 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123567         * modules/gethrxtime: New file.
123568         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123569         (Depends-on): Add gethrxtime.
123570         (configure.ac): Add gl_XNANOSLEEP.
123571         (Makefile.am): Remove lib_SOURCES line.
123573 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123575         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123576         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123578 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123580         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123581         * lib/timespec.h (gettime): Return void, since it always
123582         succeeds now.  All uses changed.
123583         * lib/gettime.c (gettime): Likewise.
123584         [HAVE_NANOTIME]: Prefer nanotime.
123585         Assume gettimeofday succeeds, as POSIX requires.
123586         Assime time () succeeds, since other code already does.
123587         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123588         (timespec_subtract): Remove.
123589         (NANOSLEEP_BUG_WORKAROUND): New constant.
123590         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123591         things considerably.  Use it only on GNU/Linux hosts, since the
123592         workaround shouldn't be needed elsewhere.
123594 2005-02-24  Bruno Haible  <bruno@clisp.org>
123596         * modules/gettext (Files): Add m4/glibc2.m4.
123598 2005-02-24  Bruno Haible  <bruno@clisp.org>
123600         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123601         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123602         * m4/progtest.m4:
123603         Update from GNU gettext 0.14.2.
123604         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123606 2005-02-24  Bruno Haible  <bruno@clisp.org>
123608         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123609         * lib/config.charset: Update from GNU gettext 0.14.2.
123611 2005-02-24  Bruno Haible  <bruno@clisp.org>
123613         * lib/gettext.h: Update from GNU gettext 0.14.2.
123615 2005-02-23  Simon Josefsson  <jas@extundo.com>
123617         * m4/iconvme.m4: New file.
123619 2005-02-23  Jim Meyering  <jim@meyering.net>
123621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123622         change.
123623         Thanks to Bruno Haible for catching it.
123625 2005-02-22  Simon Josefsson  <jas@extundo.com>
123627         * modules/iconvme: New file.
123629         * MODULES.html.sh: Add iconvme.
123631 2005-02-22  Simon Josefsson  <jas@extundo.com>
123633         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123635 2005-02-22  Simon Josefsson  <jas@extundo.com>
123637         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123639 2005-02-22  Jim Meyering  <jim@meyering.net>
123641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123642         s/ifndef/ifdef/.
123644 2005-02-20  Neil Conway  <neilc@samurai.com>
123646         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123647         returned by OSX/Darwin if the specified buffer is not large
123648         enough for the hostname.
123650 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123652         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123653         pass it to _help, otherwise the latter coredumps trying to
123654         dereference state.root_argp.
123656 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123658         * modules/chdir-long (Depends-on): Add memrchr.
123659         * modules/memrchr (Files): Add lib/memrchr.h.
123660         (Include): "memrchr.h".
123662 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123664         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123666 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123668         * lib/memrchr.h: New file.
123669         * lib/chdir-long.c: Include it.
123670         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123671         Don't bother including stddef.h.
123673 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123675         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123676         inclusion.
123677         Include <sys/types.h>, for dev_t.
123678         (ME_DUMMY, ME_REMOTE): Move from here....
123679         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123680         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123681         Dmitry V. Levin.
123682         Include mountlist.h first, to test the interface.
123684 2005-01-29  Bruno Haible  <bruno@clisp.org>
123686         * lib/progname.c (program_name): Initialize.
123687         Needed when linking statically on MacOS X.
123689 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123691         Sync from coreutils.
123692         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123693         (Depends-on): Add c-strtod.
123694         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123696 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123698         Sync from coreutils.
123699         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123701         Remove files that are specific to coreutils.
123702         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123704 2005-01-28  Bruno Haible  <bruno@clisp.org>
123706         * modules/javacomp: New file.
123707         * MODULES.html.sh (Java): Add javacomp.
123709 2005-01-28  Bruno Haible  <bruno@clisp.org>
123711         * m4/javacomp.m4: New file, from GNU gettext.
123713 2005-01-28  Bruno Haible  <bruno@clisp.org>
123715         * lib/javacomp.sh.in: New file, from GNU gettext.
123716         * lib/javacomp.h: New file, from GNU gettext.
123717         * lib/javacomp.c: New file, from GNU gettext.
123719 2005-01-26  Simon Josefsson  <jas@extundo.com>
123721         * lib/gai_strerror.c: Use GPL in header.
123723 2005-01-26  Bruno Haible  <bruno@clisp.org>
123725         * modules/javaexec: New file.
123726         * MODULES.html.sh (Java): Add javaexec.
123728 2005-01-26  Bruno Haible  <bruno@clisp.org>
123730         * m4/javaexec.m4: New file, from GNU gettext.
123732 2005-01-26  Bruno Haible  <bruno@clisp.org>
123734         * lib/javaexec.sh.in: New file, from GNU gettext.
123735         * lib/javaexec.h: New file, from GNU gettext.
123736         * lib/javaexec.c: New file, from GNU gettext.
123738 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123740         * modules/lchown (Depends-on): Remove lchown.h
123742 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123744         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123745         must be defined if the header file was not found, in order
123746         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123748 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123750         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123751         initializers for struct pentry_state.
123752         (__argp_error): Check return value of __asprintf
123753         (__argp_failure): Translate error message
123755         * lib/argp-parse.c: Removed braces around the expansion of N_()
123757 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123759         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123760         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123761         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123762         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123763         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123764         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123765         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123766         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123767         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123768         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123769         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123770         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123771         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123772         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123773         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123774         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123775         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123776         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123777         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123778         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123779         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123780         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123781         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123782         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123783         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123784         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123785         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123786         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123787         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123788         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123789         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123790         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123791         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123792         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123793         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123794         Use an all-permissive copyright notice, recommended by RMS.
123796 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123798         * modules/chdir-long (Depends-on): Remove mempcpy.
123800 2005-01-21  Jim Meyering  <jim@meyering.net>
123802         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123803         same value as for Solaris 9.
123805         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123806         component length.  This included changing the parameter to be
123807         of type `char *' rather than `char const *'.
123808         * lib/chdir-long.h (chdir_long): Update prototype.
123810         * lib/openat.c (fdopendir, fstatat): New functions.
123811         * lib/openat.h: Include headers required for use of DIR and struct
123812         stat.
123813         [AT_SYMLINK_NOFOLLOW]: Define.
123814         (fdopendir, fstatat): Add prototypes.
123816 2005-01-21  Bruno Haible  <bruno@clisp.org>
123818         * modules/classpath: New file.
123819         * MODULES.html.sh (Java): Add classpath.
123821 2005-01-21  Bruno Haible  <bruno@clisp.org>
123823         * lib/classpath.h: New file, from GNU gettext.
123824         * lib/classpath.c: New file, from GNU gettext.
123826 2005-01-20  Simon Josefsson  <jas@extundo.com>
123828         * modules/version-etc-fsf: New file.
123830 2005-01-20  Simon Josefsson  <jas@extundo.com>
123832         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123833         * lib/version-etc.c: Remove version_etc_copyright.
123834         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123835         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123837 2005-01-20  Simon Josefsson  <jas@extundo.com>
123839         * lib/base64.h (isbase64): Add.
123841         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123842         using a unsigned prototype, don't inline.
123843         (base64_decode): Use it.
123845 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123847         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123848         it.
123850 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123852         * lib/save-cwd.c (save_cwd): Remove code to support the case
123853         where fchdir is missing or flaky.
123855 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123857         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123859 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123861         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123862         AC_LIBSOURCES now does this.
123863         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123864         with new ullong_max module.
123866 2005-01-19  Bruno Haible  <bruno@clisp.org>
123868         * modules/sh-quote: New file.
123869         * MODULES.html.sh (Executing programs): Add sh-quote.
123871 2005-01-19  Bruno Haible  <bruno@clisp.org>
123873         * lib/sh-quote.h: New file, from GNU gettext.
123874         * lib/sh-quote.c: New file, from GNU gettext.
123876 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123878         Merge from coreutils.
123879         * m4/ullong_max.m4: New file.
123880         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123881         (gl_MACROS): Assume localeconv exists.
123883 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123885         Merge changes from coreutils, as described below in several
123886         changelogs dated today.
123888         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123889         (O_DIRECTORY): Remove; not needed here, since "." must be
123890         a directory.  All uses removed.
123891         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123892         universal on Suns, and we also need to test for IRIX.
123893         Revamp code to use 'if' rather than '#if'.
123894         Avoid unnecessary comparison of cwd->desc to 0.
123896         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123897         for known valid error numbers rather than observed invalid ones.
123899 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123901         * modules/ullong_max: New file.
123903         * modules/chdir-long, modules/openat: New files.
123904         * modules/save-cwd (Depends-on): Depend on chdir-long.
123905         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123907 2005-01-18  Jim Meyering  <jim@meyering.net>
123909         Merge from coreutils.
123910         * m4/chdir-long.m4, m4/openat.m4: New files.
123911         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123912         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123913         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123914         is sane and DOES follow symlinks.  Besides, testing 20 different
123915         systems found no broken chown implementations.
123916         Prompted by a change in rsync's copy of this macro.
123917         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123919         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123921         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123922         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123923         NULL-means-set-to-current-time semantics.
123924         Remove temporary file immediately, rather than waiting
123925         for configure's at-exit trap code to do it.
123927 2005-01-18  Jim Meyering  <jim@meyering.net>
123929         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123931         * lib/utimens.c (futimens): Account for the fact that futimes
123932         can also fail with errno == ENOSYS or errno == ENOENT.
123933         Patch from Dmitry V. Levin.
123935         Change the name of the robust chdir function from chdir to chdir_long.
123936         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123937         (restore_cwd): Use chdir_long, not chdir.
123938         * lib/chdir-long.c: Renamed from chdir.c.
123939         * lib/chdir-long.h: Renamed from chdir.h.
123940         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123941         Hurd.
123943 2005-01-18  Bruno Haible  <bruno@clisp.org>
123945         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123946         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123947         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123948         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123949         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123950         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123951         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123952         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123953         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123954         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123955         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123956         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123957         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123958         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123959         Use an all-permissive copyright notice, recommended by RMS.
123961 2005-01-18  Bob Proulx  <bob@proulx.com>
123963         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123964         simplify offsetof() macro construct to avoid compile failure with
123965         native HP-UX 11.0 ANSI C compiler.
123967 2005-01-17  Bruno Haible  <bruno@clisp.org>
123969         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123970         redundant because stpncpy.m4 takes care of it.
123972 2005-01-17  Bruno Haible  <bruno@clisp.org>
123974         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123976 2005-01-17  Bruno Haible  <bruno@clisp.org>
123978         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123979         used.
123981 2005-01-17  Bruno Haible  <bruno@clisp.org>
123983         * lib/fwriteerror.h (fwriteerror): Change specification to include
123984         fclose.
123985         * lib/fwriteerror.c: Include <stdbool.h>.
123986         (fwriteerror): At the end, close the file stream. Record whether
123987         stdout was already closed.
123989 2005-01-17  Bruno Haible  <bruno@clisp.org>
123991         * lib/execute.c (environ): Declare if needed.
123992         * lib/pipe.c (environ): Likewise.
123993         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123995 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123997         * modules/argp: Depend on vsnprintf
123999 2005-01-10  Jim Meyering  <jim@meyering.net>
124001         * modules/closeout (Depends-on): Add atexit.
124003 2005-01-06  Bruno Haible  <bruno@clisp.org>
124005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
124007 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
124009         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
124010         definitions to be after all include files, to avoid collisions.
124011         Problem reported by Bob Proulx.
124013 2005-01-04  Jim Meyering  <jim@meyering.net>
124015         Changes imported from coreutils.
124016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
124017         as the mkstemp template, use a temporary directory and an
124018         8.3-friendly template to avoid trouble on systems like DJGPP.
124019         Reported by Juan M. Guerrero via Stepan Kasal.
124020         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
124021         close. Remove the temporary directory right away, rather than waiting
124022         for configure's at-exit trap code to do it.
124023         Suggestion from Stepan Kasal.
124025 2005-01-01  Simon Josefsson  <jas@extundo.com>
124027         * gnulib-tool: Print #include directives when --import'ing.
124029 2004-12-28  Simon Josefsson  <jas@extundo.com>
124031         * tests/test-base64.c: Include required header files.  Remove
124032         unused variables.
124034 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124036         * modules/error (Depends-on): Remove gettext.
124038 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124040         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
124041         not needed.  This removes a dependency on the gettext module.
124042         [defined _LIBC]: Do not include <libintl.h>; not needed.
124044 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124046         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
124047         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
124049 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124051         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
124052         HAVE_DECL_STRTOLD.
124054 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124056         * modules/getdate (Depends-on): Remove alloca-opt.
124058 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124060         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
124062 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124064         * lib/argp-parse.c: Include <stddef.h>.
124065         (alignof, alignto): New macros.
124066         (parser_init): Don't assume that void * is aligned sufficiently
124067         for struct option.
124069         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
124070         need to extend the stack.
124071         (YYINITDEPTH): New macro, so that the initial stack isn't overly
124072         large.
124074 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124076         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
124078 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124080         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
124081         (2004-10-24) change.  Apparently this was a false alarm.
124083         * modules/getdate: Depend on alloca-opt, not alloca.
124085 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124087         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
124088         Remove now-obsolete comment about AIX.
124089         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
124090         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
124091         (YYMAXDEPTH): New macro.
124093 2004-12-18  Simon Josefsson  <jas@extundo.com>
124095         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
124097 2004-12-18  Bruno Haible  <bruno@clisp.org>
124099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
124101 2004-12-18  Bruno Haible  <bruno@clisp.org>
124103         * lib/fatal-signal.c (fatal_signals): Make non-const.
124104         (init_fatal_signals): New function.
124105         (uninstall_handlers, install_handlers): Ignore signals that were set to
124106         SIG_IGN.
124107         (at_fatal_signal): Call init_fatal_signals.
124108         (init_fatal_signal_set): Likewise. Ignore signals that were set to
124109         SIG_IGN.
124110         Reported by Paul Eggert.
124112 2004-12-18  Bruno Haible  <bruno@clisp.org>
124114         * doc/alloca.texi: New file.
124115         * doc/alloca-opt.texi: New file.
124117 2004-12-17  Jim Meyering  <jim@meyering.net>
124119         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
124120         Otherwise, install-sh could exit with improper exit status when
124121         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
124123 2004-12-16  Simon Josefsson  <jas@extundo.com>
124125         * tests/test-base64.c: Add license.
124127 2004-12-15  Stepan Kasal  <address@hidden>
124129         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
124131 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
124133         * modules/getcwd (Files): Add m4/d-ino.m4.
124134         Suggested by Mark D. Baushke.
124136 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124138         * lib/getdate.y (textint): New member "negative".
124139         (time_zone_hhmm): New function.
124140         Expect 14 shift-reduce conflicts, not 13.
124141         (o_colon_minutes): New rule.
124142         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
124143         (yylex): Set the "negative" member of signed numbers.
124145 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124147         * doc/getdate.texi (Time of day items, Time zone items):
124148         Describe new formats +00:00, UTC+00:00.
124150 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
124152         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
124153         spurious "-l"s.  Problem reported by Stepan Kasal.
124155 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
124157         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
124158         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
124160 2004-12-04  Simon Josefsson  <jas@extundo.com>
124162         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
124163         Vandoorselaere <yoann@prelude-ids.org>.
124165 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124167         Changes imported from coreutils.
124168         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
124169         exist.
124170         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
124172 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124174         Changes imported from coreutils.
124175         * lib/hard-locale.c: Assume <locale.h> exists.
124176         Include "strdup.h".
124177         (GLIBC_VERSION): New macro.
124178         (hard_locale): Assume setlocale exists.
124179         Rewrite to avoid #ifdef.
124180         Use strdup rather than malloc + strcpy.
124181         * lib/human.c: Assume <locale.h> exists.
124182         (human_readable): Assume localeconv exists.
124184 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124186         * modules/hard-locale (Depends-on): Add strdup.
124188 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
124190         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
124191         convert T2, not T.  (Imported from libc.)
124193 2004-11-30  Simon Josefsson  <jas@extundo.com>
124195         * modules/restrict (License): Change to LGPL.
124197 2004-11-30  Simon Josefsson  <jas@extundo.com>
124199         * m4/restrict.m4: Add copyright and copying conditions.
124201 2004-11-30  Simon Josefsson  <jas@extundo.com>
124203         * m4/base64.m4: New file.
124205 2004-11-30  Simon Josefsson  <jas@extundo.com>
124207         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
124208         base64.
124210         * tests/test-base64.c: New file.
124212         * modules/base64: New file.
124214 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
124217         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
124219         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
124221 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124223         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
124224         (__getcwd.c): Don't restore errno; glibc doesn't.
124225         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
124226         first, falling back to our code only if its results look suspicious.
124227         Ensure that the resulting buffer is only as large as necessary.
124229         * lib/readutmp.c: Include readutmp.h first.
124230         Include <errno.h>, since readutmp.h no longer does that.
124231         * lib/readutmp.h: Don't include <errno.h>,
124232         <sys/param.h>, <time.h>; not needed to establish interface.
124233         (errno): Remove decl.
124234         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
124235         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
124236         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
124238 2004-11-28  Simon Josefsson  <jas@extundo.com>
124240         * lib/base64.h, base64.c: New file.
124242 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
124244         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
124246 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
124248         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
124249         (Depends-on): Remove pathmax, same.  Add mempcpy.
124250         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
124251         (Makefile.am): Append getcwd.h to lib_SOURCES.
124252         (Include): Add getcwd.h.
124253         (Maintainer): Change from Jim Meyering to "all, glibc",
124254         since getdate now uses intended-for-glibc code.
124255         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
124256         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
124258 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124260         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
124261         HP's ANSI C compiler.
124262         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
124263         Declaring int functions causes warnings on some modern systems and
124264         shouldn't be needed to compile on ancient ones.
124265         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
124266         defined.
124268         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
124269         with the following changes.
124270         (__set_errno): Parenthesize properly.
124271         Include <stdbool.h>.
124272         (MIN, MAX, MATCHING_INO): New macros.
124273         (__getcwd): Define with prototype, not K&R form.
124274         Use heuristics to allocate default buffer on stack if possible.
124275         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
124276         behavior, and to avoid the PATH_MAX limit when computing
124277         ../../../../...
124278         Use MATCHING_INO to compare inode number to file.
124279         Check for arithmetic overflow in size calculations.
124280         Fix bug in reallocation of dot array that caused getcwd to fail
124281         on directories nested deeper than 75.
124282         Be more careful about saving errno on error.
124283         Do not use realloc; use only free+malloc, as this is a bit
124284         more flexible and avoids a needless copy operation.
124285         Do not inspect st_dev and st_ino for symbolic links; POSIX
124286         doesn't specify the latter.
124287         Check for closedir errors.
124288         Avoid needless casts.
124289         Use "#ifdef weak_alias" around weak_alias, to be like other
124290         glibc code.
124291         The following changes to getcwd.c have effect only when used in
124292         gnulib; they have no effect inside glibc proper.
124293         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
124294         as alloca isn't used.
124295         (alloca, __alloca): Likewise.
124296         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
124297         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124298         unconditionally, as gnulib assumes C89 or better.
124299         Do not include <sys/param.h>.
124300         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
124301         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
124302         better.
124303         (NULL) [!defined NULL]: Remove; we assume C89 or better.
124304         Include <dirent.h> in a way that is compatible with modern Autoconf.
124305         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
124306         New macros, if not already defined.
124307         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
124308         Use "_LIBC", not "defined _LIBC", for consistency.
124309         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
124310         a mempcpy module.
124311         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
124312         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
124313         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
124314         credit only to Jim Meyering and adjust the copyright dates.
124315         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
124316         <stdlib.h>, <unistd.h>, "pathmax.h".
124317         Instead, include "xgetcwd.h" (first) and "getcwd.h".
124318         (INITIAL_BUFFER_SIZE): Remove.
124319         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
124321 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124323         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
124324         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
124325         Use the _ONCE methods, for efficiency.
124326         Check for fcntl.h.  In test program, include <errno.h>
124327         and <fcntl.h> if available.  Remove old K&R cruft from
124328         test program.  Check for common errors in GNU/Linux,
124329         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124330         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124331         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124332         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124333         name accordingly.
124334         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124335         accommodate new getcwd.c.
124336         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124337         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124338         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124339         that's all we need now.
124341 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124343         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124344         argp-parse.c depends on getopt internals, that means we should
124345         always use our getopt, to be on the safe side.
124346         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124347         order not to spoil the result of an eventual previous invocation
124348         of gl_GETOPT_SUBSTITUTE.
124350 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124352         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124353         redefinition warnings. To avoid them, include the defines
124354         in `#if !defined __need_getopt ... #endif'. The only place
124355         where __getopt_argv_const is used is in definitions
124356         of getopt_long and getopt_long_only below, which are as well
124357         protected by `#ifndef __need_getopt'.
124358         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124359         __need_getopt after including <stdio.h> and <unistd.h> These
124360         headers might have defined it.
124362 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124364         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124366 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124368         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124369         (futimens): New function, which uses futimes if available.
124370         (futimens, utimens): Support timespec==NULL, with same semantics
124371         as utime and utimens.
124372         * lib/utimens.h (futimens): New decl.
124374 2004-11-23  Jim Meyering  <jim@meyering.net>
124376         * lib/getopt_.h: Remove trailing blanks.
124378 2004-11-23  Jim Meyering  <jim@meyering.net>
124380         * lib/__fpending.c: Add comment.
124382 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124384         * modules/canonicalize (Depends-on): Add xreadlink.
124385         Problem reported by James Youngman.
124387 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124389         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124390         New macros.
124391         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124392         optopt): Use them instead of invoking ## directly; otherwise, the
124393         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124395 2004-11-19  Bruno Haible  <bruno@clisp.org>
124397         * lib/strtok_r.c: Move comments from here...
124398         * lib/strtok_r.h: ... to here.
124400 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124402         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124403         implementations that mishandle size_t overflow.
124405 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124407         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124408         might fail.  Problem reported by Yoann Vandoorselaere.
124409         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124410         implementations that mishandle size_t overflow.
124412 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124414         * modules/canon-host (Depends-on): Add strdup.
124416 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124418         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124420 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124422         * lib/canon-host.c: Include "strdup.h".
124423         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124424         Use strdup instead of malloc/strcpy to duplicate strings.
124426         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124427         (human_space_before_unit): New constant.
124428         * lib/human.c (human_readable): Support it.
124430         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124431         (xgetcwd): Set errno correctly when failing.
124432         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124433         the failure is actually due to a PATH_MAX problem.
124435         Further getopt changes to make it more likely that glibc will
124436         buy the changes back.
124437         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124438         (getopt): Use it, so to preserve glibc semantic
124439         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124440         when compiling for libc.
124441         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124442         (getopt_long, getopt_long_only): Use it.
124444         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124445         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124446         (getopt): Argv is now char * const *, as per standard.
124447         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124448         not char *__getopt_argv_const *.
124449         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124450         _getopt_long_only_r): Likewise.
124451         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124452         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124453         _getopt_long_r, _getopt_long_only_r): Likewise.
124454         * lib/getopt_.h (__getopt_argv_const): Remove.
124455         (getopt): Argv is now char * const *, as per standard.
124457         * lib/getdate.y (tORDINAL): New token.
124458         (day, relunit): Allow it for relative times.
124459         (relative_time_table): Use tORDINAL for ordinals.
124461 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124463         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124464         Document that "second" isn't allowed as an ordinal number.
124466 2004-11-16  Jim Meyering  <jim@meyering.net>
124468         * modules/closeout (Depends-on): Add fpending.
124470 2004-11-15  Jim Meyering  <jim@meyering.net>
124472         * lib/closeout.c: Include "__fpending.h" once again.
124473         Include <stdbool.h>.
124474         (close_stdout): Don't fail just because stdout was closed initially,
124475         since some programs don't write to stdout in the normal course of
124476         operation (other than --version and --help), and we don't want this
124477         function to make e.g. `touch file >&-' fail.
124478         But do fail if it was closed and someone has tried to write to it.
124479         E.g., `printf foo >&-' must fail.
124481 2004-11-13  Jim Meyering  <jim@meyering.net>
124483         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124485 2004-11-12  Simon Josefsson  <jas@extundo.com>
124487         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124488         small doc fix is still pending.
124490 2004-11-11  Simon Josefsson  <jas@extundo.com>
124492         * modules/strtok_r: New file.
124494         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124495         strtok_r.
124497 2004-11-11  Simon Josefsson  <jas@extundo.com>
124499         * m4/strtok_r.m4: New file.
124501         * m4/getopt.m4: Replace opterr.
124503 2004-11-11  Simon Josefsson  <jas@extundo.com>
124505         * lib/strtok_r.h, strtok_r.c: New file.
124507 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124509         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124510         of replacing opterr, getopt, etc.  This should handle the
124511         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124513 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124515         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124516         we can stop lying to compilers about the constness of argv when we
124517         are compiled outside glibc.
124518         (getopt, getopt_long, getopt_long_only): Use it.
124519         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124520         _getopt_internal, getopt): Likewise.
124521         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124522         _getopt_long_only_r): Likewise.
124523         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124524         _getopt_long_r, _getopt_long_only_r): Likewise.
124526         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124527         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124528         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124529         the other external symbols.
124530         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124531         declaration, since the above renaming now works around collisions.
124533 2004-11-11  Jim Meyering  <jim@meyering.net>
124535         * lib/linebreak.c: Remove trailing blanks.
124536         * lib/alloca_.h: Likewise.
124537         * lib/acosl.c: Likewise.
124538         * lib/euidaccess.c: Likewise.
124539         * lib/allocsa.h: Likewise.
124541 2004-11-10  Simon Josefsson  <jas@extundo.com>
124543         * m4/getaddrinfo.m4: New file.
124545 2004-11-10  Simon Josefsson  <jas@extundo.com>
124547         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124549 2004-11-10  Simon Josefsson  <jas@extundo.com>
124551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124552         getaddrinfo.
124554         * modules/getaddrinfo: New file.
124556 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124558         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124560 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124562         * lib/mktime.c (SHR): New macro, which is a portable
124563         substitute for >> that should work even on Crays.
124564         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124565         Problem reported by Mark D. Baushke in
124566         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124567         * lib/getdate.y (SHR): Likewise.
124568         (tm_diff): Use it.
124569         * lib/strftime.c (SHR): Likewise.
124570         (tm_diff): Use it.
124571         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124572         quote_these_too, so that right shifts are well defined.  All uses
124573         changed.
124575 2004-11-10  Jim Meyering  <jim@meyering.net>
124577         Ensure that no close failure goes unreported.
124578         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124579         return early when it seems there's nothing to flush.
124580         Don't include __fpending.h.
124582 2004-11-10  Jim Meyering  <jim@meyering.net>
124584         * modules/closeout (Depends-on): Remove fpending.
124586 2004-11-10  Jim Meyering  <jim@meyering.net>
124588         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124590 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124592         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124593         gl_FUNC_STRFTIME.
124594         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124595         and AC_REQUIRE when possible, to avoid duplicate checks.
124596         Check for <wchar.h>.
124598 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124600         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124602 2004-11-09  Bruno Haible  <bruno@clisp.org>
124604         * m4/sockpfaf.m4: New file.
124606 2004-11-05  Bruno Haible  <bruno@clisp.org>
124608         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124609         Reported by Mark D. Baushke <mdb@cvshome.org>.
124611 2004-11-04  Bruno Haible  <bruno@clisp.org>
124613         2004-09-11  Bruno Haible  <bruno@clisp.org>
124614                 * allocsa.valgrind: New file.
124615         2004-02-06  Bruno Haible  <bruno@clisp.org>
124616                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124617                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124618                 Reported by Christopher Seip <chris.seip@hp.com>.
124620 2004-11-04  Bruno Haible  <bruno@clisp.org>
124622         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124623         (Makefile.am): Distribute it.
124625 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124627         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124628         with errno == ERANGE if the buffer is too small.
124629         Problem reported by Mark D. Baushke.
124631 2004-11-03  Albert Chin  <china@thewrittenword.com>
124632             Paul Eggert  <eggert@cs.ucla.edu>
124634         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124635         equivalent, substitute $ac_type for equivalent type rather than
124636         blindly using uint32_t *always* which won't work if uint32_t is not
124637         available.  Define _UINT32_T to work around typedef of uint32_t if
124638         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124639         2.5.1.
124641 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124643         * m4/jm-macros.m4: Sync from coreutils.
124644         (gl_MACROS): Check for mbrlen, for pathchk.
124645         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124647 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124649         * lib/xreadlink.c (MAXSIZE): New macro.
124650         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124651         size does not exceed MAXSIZE.  Avoid cast.
124652         As suggested by Mark D. Baushke in
124653         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124654         if readlink fails with buffer size just under MAXSIZE, try again
124655         with MAXSIZE.
124657 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124659         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124661 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124662         and  Paul Eggert  <eggert@cs.ucla.edu>
124664         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124665         (get_date): Overparenthesize to avoid GCC warning.
124667 2004-11-02  Bruno Haible  <bruno@clisp.org>
124669         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124670         returns void.
124672 2004-11-02  Bruno Haible  <bruno@clisp.org>
124674         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124675         function returns void.
124677 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124679         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124680         fflush_unlocked, flockfile, funlockfile, funlockfile,
124681         fputs_unlocked, putc_unlocked.
124683 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124685         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124686         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124687         already declared.
124689 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124691         * modules/getdate (Files): Add doc/getdate.texi.
124692         (Depends-on): Add setenv, xalloc.
124694 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124696         * lib/getdate.y: Add support for TZ="foo" within a date string.
124697         Fix some bugs near time_t boundaries.  Reject dates with
124698         out-of-range components, e.g., "Sept 31".
124699         Include <stdlib.h>, "setenv.h", "xalloc.h".
124700         (ISDIGIT_LOCALE): Remove; unused.
124701         Note that the TZ and time functions used here are not reentrant.
124702         (mktime_ok, get_tz): New functions.
124703         (TZBUFSIZE): New constant.
124704         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124705         This requires that we sometimes generate our own TZ="XXX..." setting.
124707 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124709         * doc/getdate.texi: New file, from coreutils with modifications for
124710         the new TZ parsing.
124712 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124714         * lib/mktime.c (not_equal_tm): Remove redundant check.
124716 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124718         * modules/regex (lib_SOURCES): Add regex.c.
124719         Reported by James Youngman in
124720         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124722 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124724         * lib/getdate.y: Use Bison 1.875 features, and some minor
124725         code cleanups.  This change does not affect semantics.
124726         Don't include <stdlib.h>; no longer needed.
124727         Don't include unlocked-io.h; only the "#if TEST" code uses
124728         stdio, and performance isn't crucial there.
124729         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124730         Bison 1.875 features as described below.
124731         All uses of "PC." replaced by "pc->".
124732         (YYSTYPE): Add a forward declaration.
124733         (yylex, yyerror): Use full prototypes in forward decls.
124734         Use "%pure-parser" rather than obsolescent "%pure_parser".
124735         Use %parse-param and %lex-param instead of obsolescent
124736         YYPARSE_PARAM and YYLEX_PARAM.
124737         (meridian_table, month_and_day_table, time_units_table,
124738         relative_time_table, time_zone_table, military_table,
124739         lookup_zone, lookup_word, get_date):
124740         Use NULL instead of 0 where appropriate.
124741         (to_hour): Avoid abort (), to avoid a dependency on
124742         stdlib.h.
124743         (yyerror, yylex): Now accepts parser_control * arg.
124744         (main) [TEST]: Use '\0' rather than 0 for char.
124746 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124748         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124750 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124752         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124753         It's now the caller's responsibility to handle the case where
124754         !HAVE_GETPAGESIZE && !defined getpagesize.
124756         * lib/mktime.c (leapyear): Arg is long int, not int.
124758 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124760         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124762 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124764         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124765         missing.  Problem reported by James Youngman.
124767 2004-10-16  Simon Josefsson  <jas@extundo.com>
124769         * gnulib-tool: Fix comments.  Fix parse problem.
124770         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124772 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124774         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124775         implementation of getopt_long.  Problem reported by Alexander Taler in:
124776         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124778 2004-10-15  Bruno Haible  <bruno@clisp.org>
124780         * gnulib-tool: Untabify. Initialize supplied_libname.
124781         (func_usage): More homogenous output.
124782         (func_modules_transitive_closure, func_modules_to_filelist,
124783         func_emit_lib_Makefile_am): New functions.
124784         (func_import): New function, extracted from big case statement. Use
124785         func_get_license, func_modules_transitive_closure,
124786         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124787         opt_lgpl. Don't use test -a, as it's not portable.
124788         (func_create_testdir): Use func_modules_transitive_closure,
124789         func_modules_to_filelist, func_emit_lib_Makefile_am.
124791 2004-10-15  Bruno Haible  <bruno@clisp.org>
124793         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124795 2004-10-15  Bruno Haible  <bruno@clisp.org>
124797         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124798         the portions belonging to each module.
124799         Suggested by Derek Robert Price <derek@ximbiot.com>.
124801 2004-10-12  Simon Josefsson  <jas@extundo.com>
124803         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124804         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124805         to real functions.
124807 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124809         * modules/vsnprintf: New file.
124811 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124813         * m4/vsnprintf.m4: New file.
124815 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124817         * lib/vsnprintf.h: New file.
124818         * lib/vsnprintf.c: New file.
124820 2004-10-11  Bruno Haible  <bruno@clisp.org>
124822         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124823         vsnprintf.
124825 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124827         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124829 2004-10-07  Bruno Haible  <bruno@clisp.org>
124831         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124832         fits into the provided buffer.
124834 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124836         * lib/diacrit.c, diacrit.h: Add GPL notice.
124838         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124839         notice.
124840         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124841         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124842         This avoids a potential constant-folding bug.
124844 2004-10-05  Bruno Haible  <bruno@clisp.org>
124846         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124847         for the declaration of strsep.
124849 2004-10-05  Bruno Haible  <bruno@clisp.org>
124851         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124853 2004-10-04  Simon Josefsson  <jas@extundo.com>
124855         * modules/memmem: New file.
124856         * tests/test-memmem.c: New file.
124857         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124859 2004-10-04  Simon Josefsson  <jas@extundo.com>
124861         * m4/memmem.m4: New file.
124863 2004-10-04  Simon Josefsson  <jas@extundo.com>
124865         * lib/memmem.h: New file.
124866         * lib/memmem.c: New file, taken from glibc.
124868 2004-10-04  Simon Josefsson  <jas@extundo.com>
124870         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124871         '#ifdef USE_UNLOCKED_IO'.
124873 2004-10-04  Simon Josefsson  <jas@extundo.com>
124875         * config/srclist.txt: Add memmem from glibc.
124877 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124879         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124881         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124882         modules/exclude, modules/getdate, modules/getline,
124883         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124884         modules/getusershell, modules/linebuffer, modules/md5,
124885         modules/mountlist, modules/posixtm, modules/readtokens,
124886         modules/readutmp, modules/regex, modules/sha1,
124887         modules/version-etc, modules/yesno:
124888         Remove dependency on unlocked-io.
124890 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124892         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124894         * m4/unlocked-io.m4: Add copyright notice.
124895         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124897 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124899         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124900         * lib/xmalloc.c (xmemdup): Likewise.
124901         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124902         XFREE): Remove these long-obsolescent macros.
124903         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124904         * lib/xstrdup.c: Remove.
124906         * lib/regex.c (re_comp): Cast gettext return value to char *,
124907         Problem reported by Martin Neitzel via Mark D. Baushke.
124909 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124911         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124912         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124913         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124914         regex.c, sha1.c, version-etc.c, yesno.c:
124915         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124916         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124917         the includer's responsibility.
124919         Sync from coreutils.
124921         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124922         points to the start of a string, as the C Standard says the
124923         resulting behavior is undefined.
124925         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124926         simple -> simple_backups, numbered_existing ->
124927         numbered_existing_backups, numbered -> numbered_backups
124928         to avoid shadowing problems.  All uses changed.
124929         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124930         * lib/backupfile.c (check_extension, numbered_backup):
124931         Rename locals to avoid shadowing 'basename'.
124932         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124933         once.
124935         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124936         * lib/.cvsignore: Add getopt.h.
124938 2004-10-04  Bruno Haible  <bruno@clisp.org>
124940         * modules/README: New file.
124941         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124942         not a module.
124944 2004-10-02  Jim Meyering  <jim@meyering.net>
124946         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124948 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124950         * modules/strsep: New file.
124952 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124954         * m4/strsep.m4: New file.
124956 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124958         * lib/strsep.h: New file.
124959         * lib/strsep.c: New file.
124961 2004-10-01  Simon Josefsson  <jas@extundo.com>
124963         * lib/snprintf.c (snprintf): Handle size==0.
124965 2004-10-01  Simon Josefsson  <jas@extundo.com>
124966             Bruno Haible  <bruno@clisp.org>
124968         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124969         (snprintf): Declare 'args'.
124971 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124973         * lib/snprintf.c: Remove comments as to why each header is needed.
124975 2004-10-01  Bruno Haible  <bruno@clisp.org>
124977         * MODULES.html.sh: Add strsep.
124979 2004-09-30  Simon Josefsson  <jas@extundo.com>
124981         * modules/snprintf: New file.
124983 2004-09-30  Simon Josefsson  <jas@extundo.com>
124985         * m4/snprintf.m4: New file.
124987 2004-09-30  Simon Josefsson  <jas@extundo.com>
124989         * lib/snprintf.h, lib/snprintf.c: New files.
124991 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124993         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124994         (hol_entry_help): Never translate an empty string.
124995         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124996         * lib/argp.h (OPTION_NO_TRANS): New option.
124998 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125000         * modules/argp (Maintainer): Replace Simon Josefsson
125001         by Sergey Poznyakoff.
125003 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125005         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
125006         changes merged back into glibc.
125008 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125010         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
125012 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
125014         * lib/xvasprintf.c: Include xalloc.h.
125015         (xvasprintf): Use xalloc_die, not xmalloc_die.
125017 2004-09-29  Bruno Haible  <bruno@clisp.org>
125019         * modules/alloca-opt: New file, derived from modules/alloca.
125020         * modules/allocsa: Depend on alloca-opt instead of alloca.
125021         * modules/setenv: Likewise.
125022         * modules/vasnprintf: Likewise.
125023         * MODULES.html.sh: Add alloca-opt.
125025 2004-09-28  Simon Josefsson  <jas@extundo.com>
125027         * gnulib-tool: New parameter --lgpl, to asseert that modules are
125028         LGPL, and to replace license template from GPL to LGPL.
125030 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125032         * modules/dummy: Change license to LGPL.
125034 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125036         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
125038 2004-09-24  Simon Josefsson  <jas@extundo.com>
125040         * modules/minmax (License): Change from GPL to LGPL.
125042 2004-09-23  Simon Josefsson  <jas@extundo.com>
125044         * gnulib-tool (--import): Typo.
125046 2004-09-23  Simon Josefsson  <jas@extundo.com>
125048         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
125050 2004-09-22  Bruno Haible  <bruno@clisp.org>
125052         * modules/*: Add 'License' field.
125053         * gnulib-tool: Accept --extract-license option.
125054         (func_get_license): New function.
125056 2004-09-21  Bruno Haible  <bruno@clisp.org>
125058         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
125059         Reported by Simon Josefsson.
125061 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125063         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
125064         gl_AC_TYPE_LONG_LONG.
125066 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125068         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
125070 2004-09-18  Simon Josefsson  <jas@extundo.com>
125071         and  Paul Eggert  <eggert@cs.ucla.edu>
125073         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
125074         calls with autoreconf.  Define GL_LIB.
125076 2004-09-14  Karl Berry  <karl@gnu.org>
125078         * config/srclist.txt: unsync setenv.c, sigh.
125080 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125082         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
125083         Problem reported by Bruno Haible in:
125084         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
125086 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125088         * config/srclist.txt: Comment out argp-pvh.c.
125090 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
125092         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
125093         in case some system header has #define'd it.  Problem reported by
125094         Soeren D. Schulze in
125095         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
125097 2004-09-09  Karl Berry  <karl@gnu.org>
125099         * regex.[ch]: delete from the root.  These were supposed to be
125100                 synced with emacs cvs, but this has not happened for about
125101                 a year, and anyway nothing else uses emacs regex.[ch].
125102                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
125103                 lib/regex[.ch] is untouched.
125105 2004-09-09  Bruno Haible  <bruno@clisp.org>
125107         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
125109 2004-09-09  Bruno Haible  <bruno@clisp.org>
125111         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
125112         modifications.
125113         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
125115 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125117         * modules/xvasprintf: New file.
125118         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
125120 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125122         * lib/xvasprintf.h: New file.
125123         * lib/xvasprintf.c: New file.
125124         * lib/xasprintf.c: New file.
125126 2004-09-08  Bruno Haible  <bruno@clisp.org>
125128         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
125130 2004-09-08  Bruno Haible  <bruno@clisp.org>
125132         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
125133         length is > INT_MAX.
125134         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
125135         more.
125137 2004-09-08  Bruno Haible  <bruno@clisp.org>
125139         * lib/stdint_.h: New file, taken from GNU clisp.
125141 2004-09-08  Bruno Haible  <bruno@clisp.org>
125142             Oskar Liljeblad  <oskar@osk.mine.nu>
125144         * modules/stdint: New file.
125145         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
125147 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125149         Import from coreutils.
125150         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
125151         strings on unbounded length.  alloca's performance benefits aren't
125152         that important here.
125153         (V_STRDUP): Remove.
125154         (parse_with_separator): New function, with most of the internals
125155         of the old parse_user_spec.  Allow user to omit both user and group,
125156         for compatibility with FreeBSD.
125157         Clone only the user name, not the entire spec.
125158         Do not set *uid, *gid unless entirely successful.
125159         Avoid memory leak in some failing cases.
125160         Fix regression for USER.GROUP reported by Dmitry V. Levin in
125161         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
125162         (parse_user_spec): Rewrite to use parse_with_separator.
125164 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125166         * modules/userspec: Don't depend on alloca.
125168 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125170         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
125172 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
125174         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
125175         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
125176         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
125178 2004-08-16  Simon Josefsson  <jas@extundo.com>
125180         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
125181         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
125182         Add --dry-run for --import.
125183         Let user provided command line parameters override configure.ac
125184         settings.
125186 2004-08-12  Simon Josefsson  <jas@extundo.com>
125188         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
125189         as discussed with Paul Eggert in threads rooted at
125190         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
125191         and
125192         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
125193         Before, the test was empty, and relied on ELIDE_CODE in source
125194         code.)
125195         (gl_PREREQ_GETOPT): New macro.
125196         (gl_GETOPT): Use them.
125198 2004-08-12  Simon Josefsson  <jas@extundo.com>
125200         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
125201         * lib/getopt_.h: Renamed from getopt.h.
125203 2004-08-12  Simon Josefsson  <jas@extundo.com>
125205         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
125206         Change default library name from libfoo to libgnu.
125207         Now, if you have a configure.ac that says:
125208                 gl_SOURCE_BASE(gl)
125209                 gl_M4_BASE(gl/m4)
125210                 gl_MODULES(error getopt etcetera)
125211                 gl_INIT
125212         you can import all you need by running:
125213                 ../gnulib/gnulib-tool --import
125215         * modules/getopt (Files): Rename getopt.h to getopt_.h.
125216         (Makefile.am): Rewrite, use logic from argz.
125217         (Include): Use <getopt.h> instead of "getopt.h".
125219 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125221         * modules/argp (Files): Add m4/unlocked-io.m4.
125222         (Depends-on): Add extensions.
125224 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125226         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
125227         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
125228         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
125229         Check for program_invocation_name, program_invocation_short_name,
125230         flockfile, funlockfile, features.h, _getopt_long_only_r.
125232 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125234         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
125235         its complicated substitute.
125236         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
125237         and program_invocation_name.
125238         (__argp_basename) [!_LIBC]: Remove; the only use was
125239         replaced by its body.
125240         (__argp_short_program_name): Change condition from
125241         !defined __argp_short_program_name to
125242         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
125243         to match argp-namefrob.h.
125244         (__argp_failure): Don't assume strerror_r returns char *.
125245         * lib/argp-parse.c (N_): Define unconditionally.
125246         (argp_default_options): Fill out initializers with 0 to avoid
125247         gcc warnings.
125249 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125251         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
125252         getopt1.c.
125254 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125256         Merge from coreutils.
125258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
125260         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
125261         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
125263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125265         Merge from coreutils.
125267         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
125268         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
125269         for Reliant Unix 5.43.
125271         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
125272         (union fooround): Use uintmax_t, not long int.
125273         The rest is a merge from libc:
125274         [defined _LIBC]: Include <shlib-compat.h>.
125275         (_obstack) [defined _LIBC]: Remove after 2.3.4.
125277         * lib/settime.c (settime): Recode to avoid warning with
125278         Sun Forte C 6U2.
125280         * lib/strverscmp.c: Convert to UTF-8.
125282 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125284         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
125285         m4/uintmax_t.m4.
125287 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125289         * modules/xalloc-die: New file.
125290         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
125292         * modules/md5 (Files): Add m4/uint32_t.m4.
125293         * modules/sha1: Renamed from modules/sha.
125294         (Files):
125295         Rename lib/sha.h to lib/sha1.h.
125296         Rename lib/sha.c to lib/sha1.c.
125297         Rename m4/sha.m4 to m4/sha1.m4.
125298         (lib_SOURCES): Likewise.
125299         (configure.ac): Rename gl_SHA to gl_SHA1.
125300         (Include): sha.h -> sha1.h.
125302 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125304         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
125305         * m4/sha1.m4: Renamed from sha.m4.
125306         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
125308 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125310         * lib/obstack.h (obstack_empty_p):
125311         Don't assume that chunk->contents is suitably aligned.
125312         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
125313         Likewise. Problem reported by Benno in
125314         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
125316         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
125317         readable.  This could be improved further but it'd take some work.
125319 2004-08-08  Simon Josefsson  <jas@extundo.com>
125321         * modules/xgethostname (Depends-on): Remove exit and error (not
125322         used).
125324         * modules/getpass-gnu: Add getpass.h.
125325         (Depends-on): Add stdbool.
125326         * modules/getpass: Add getpass.h.
125328 2004-08-08  Simon Josefsson  <jas@extundo.com>
125330         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125331         Check getpass declaration.
125333 2004-08-08  Simon Josefsson  <jas@extundo.com>
125335         * lib/xgethostname.c: Don't include error.h (not used).
125337         * lib/getpass.h: Add.
125338         * lib/getpass.c: Include getpass.h first.
125340 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125342         * lib/xalloc-die.c: New file.
125343         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125344         All uses removed.
125345         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125346         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125347         xalloc-die.c.
125348         (_, N_, xalloc_die): Move to xalloc-die.c.
125349         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125350         so that we needn't mess with xalloc_msg_memory_exhausted.
125352         * lib/sha1.h: Renamed from sha.h.
125353         (SHA1_H): Renamed from _SHA_H.
125354         (sha1_ctx): Renamed from sha_ctx.
125355         (sha1_init_ctx): Renamed from sha_init_ctx.
125356         (sha1_process_block): Renamed from sha_process_block.
125357         (sha1_process_bytes): Renamed from sha_process_bytes.
125358         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125359         (sha1_read_ctx): Renamed from sha_read_ctx.
125360         (sha1_stream): Renamed from sha_stream.
125361         (sha1_buffer): Renamed from sha_buffer.
125362         * lib/sha1.c: Likewise; renamed from sha.c.
125363         Do not include <sys/types.h>.
125364         Include <stddef.h> rather than <stdlib.h>.
125366 2004-08-08  Bruno Haible  <bruno@clisp.org>
125368         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125369         FILESYSTEM_PREFIX_LEN.
125370         * lib/progreloc.c: Likewise.
125371         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125373 2004-08-06  Simon Josefsson  <jas@extundo.com>
125375         * modules/progname (Depends-on): Don't depend on stdbool.
125377 2004-08-06  Simon Josefsson  <jas@extundo.com>
125379         * modules/getsubopt: New file.
125380         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125381         getsubopt.
125383 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125385         More merge from coreutils.
125387         * m4/utimens.m4, m4/utimecmp.m4: New files.
125388         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125389         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125390         prereq.m4, sha.m4: Import changes from coreutils.
125392 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125394         More merge from coreutils.
125395         * modules/raise, modules/readtokens0, modules/utimens:
125396         * modules/utimecmp, module/xnanosleep: New files.
125397         * modules/strftime: Add lib/strftime.h.
125398         Change include from <time.h> to "strftime.h".
125399         * modules/yesno: Add lib/yesno.h.
125400         * modules/backupfile: Remove lib/addext.c.
125401         * modules/euidaccess: Add stat-macros.h.
125402         * modules/canonicalize, modules/euidaccess,
125403         modules/filemode, modules/lchown, modules/makepath,
125404         modules/rmdir, modules/stat: Likewise.
125406 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125408         Merge from tar.
125409         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125410         SIZE_MAX is a valid preprocessor constant.
125411         (__argp_basename): Change from "#ifndef _LIBC"
125412         to "#ifndef __argp_short_program_name", so that
125413         we don't compile these functions for tar.
125415         More merges from coreutils.
125416         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125417         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125418         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125419         * lib/addext.c: Remove; no longer needed.
125420         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125421         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125422         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125423         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125424         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125425         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125426         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125427         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125428         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125429         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125430         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125431         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125432         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125433         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125434         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125435         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125436         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125437         Import changes from coreutils.
125439 2004-08-05  Simon Josefsson  <jas@extundo.com>
125441         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125443 2004-08-05  Simon Josefsson  <jas@extundo.com>
125445         * m4/getsubopt.m4: New file.
125447 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125449         Merge from coreutils.
125451         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125452         * m4/getcwd-path-max.m4: New files.
125454         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125455         FILESYSTEM_PREFIX_LEN ->
125456         FILE_SYSTEM_PREFIX_LEN.
125457         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125458         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125459         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125460         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125462         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125463         prerequisite modules now handle the DOS stuff.
125464         Don't check for unistd.h.
125466 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125468         Merge from coreutils.
125470         * lib/.gdb-history: Remove; this doesn't belong here.
125472         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125473         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125474         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125475         * lib/getcwd.c: New files.
125477         * lib/dirname.h: Include <stdbool.h>.
125478         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125479         for consistency with POSIX terminology.  All uses changed.
125480         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125481         (strip_trailing_slashes): Use bool for booleans.
125482         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125484         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125485         sometimes returns a positive errno value even when it succeeds.
125486         (print_errno_message) [!LIBC]: Fall back on strerror if
125487         __strerror_r fails.
125489         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125490         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125491         (longest_relative_suffix): New function.
125492         (path_concat): Use it.  Assume first argument is not NULL.
125493         Port to DOS.  Omit redundant separators.
125494         Report an error instead of returning NULL.
125495         Use mempcpy instead of memcpy.
125496         (xpath_concat): Remove: not declared or used.
125498         * lib/same.h: Include <stdbool.h>
125499         (same_name): Return bool, not int.
125500         * lib/same.c (same_name): Likewise.
125501         (errno): Don't declare; we assume C89 or better now.
125503         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125504         if not already defined.
125506         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125507         * lib/dup-safer.c (errno): Likewise.
125509 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125511         Merge from coreutils.
125512         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125513         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125514         * modules/path-concat: Don't depend on strdup.
125516 2004-08-03  Simon Josefsson  <jas@extundo.com>
125518         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125519         * lib/progname.h: Don't include stdbool.h.
125521 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125523         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125524         * MODULES.html.sh (func_all_modules): Remove fatal.
125526 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125528         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125530 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125532         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125533         working.
125535 2004-08-02  Simon Josefsson  <jas@extundo.com>
125537         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125538         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125539         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125541 2004-08-01  Simon Josefsson  <jas@extundo.com>
125543         * lib/xgetdomainname.c: Include stdlib.h, for free().
125545 2004-07-19  Bruno Haible  <bruno@clisp.org>
125547         * MODULES.html.sh (func_all_modules): Add dummy.
125549 2004-07-16  Simon Josefsson  <jas@extundo.com>
125551         * modules/dummy: New file.
125553 2004-07-16  Simon Josefsson  <jas@extundo.com>
125555         * lib/dummy.c: New file.
125557 2004-07-16  Bruno Haible  <bruno@clisp.org>
125559         * lib/backupfile.h: Add extern "C" for C++.
125560         * lib/closeout.h: Likewise.
125561         * lib/copy-file.h: Likewise.
125562         * lib/findprog.h: Likewise.
125563         * lib/full-write.h: Likewise.
125564         * lib/pathname.h: Likewise.
125565         * lib/progname.h: Likewise.
125566         * lib/stpcpy.h: Likewise.
125567         * lib/stpncpy.h: Likewise.
125568         * lib/strcase.h: Likewise.
125569         * lib/strstr.h: Likewise.
125570         * lib/xalloc.h: Likewise.
125572         * lib/mbswidth.h: Add extern "C" for C++.
125573         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125575 2004-07-13  Robert Millan  <robertmh@gnu.org>
125577         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125579 2004-07-09  Simon Josefsson  <jas@extundo.com>
125581         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125582         failed without this.)
125584 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125586         * modules/chown (Files): Add lib/fchown-stub.c, since
125587         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125589 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125591         * lib/fchown-stub.c: New file.
125593 2004-06-24  Jim Meyering  <jim@meyering.net>
125595         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125597 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125599         * modules/argz: Omit "#include".
125601         * MODULES.html.sh (func_all_modules): Add calloc, to match
125602         2004-06-01 addition of calloc module.
125604 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125606         * m4/argz.m4: New file, which is autoupdated from libtool.
125608 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125610         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125611         libtool.
125613 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125615         * config/srclist-update: Don't insist on "USA." before the
125616         close-comment, as libtool omits the period and puts the */ on a
125617         separate line.
125618         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125619         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125621 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125623         * modules/argz: New file.
125624         * MODULES.html.sh (func_all_modules): Add argz.
125626 2004-06-12  Jim Meyering  <jim@meyering.net>
125627         and  Paul Eggert  <eggert@cs.ucla.edu>
125629         * modules/hash (Files): Add lib/xalloc.h.
125630         * modules/pipe (Depends-on): Add wait-process.
125631         * modules/stat (Depends-on): Add xalloc.
125632         * modules/userspec (Files): Add lib/userspec.h.
125633         * modules/xstrto
125635         Upgrade from gettext-0.13.
125636         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125637         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125638         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125640 2004-06-10  Jim Meyering  <jim@meyering.net>
125642         * lib/calloc.c: New file.
125644 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125646         * lib/getdate.y (yylex): Allow space between sign and number.
125647         Problem reported by Dan Jacobson.
125649 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125651         Merge from coreutils CVS.
125653         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125654         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125655         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125656         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125657         xstrtol.m4: Fix copyright date and/or serial number.
125659         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125660         See if we need an fchown replacement.
125661         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125662         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125663         and use the replacement function if we detect either defect.
125665         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125666         gl_UTIMECMP.
125668 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125669         and  Jim Meyering  <jim@meyering.net>
125671         Merge from coreutils CVS.
125673         * lib/stat-macros.h: New file, with contents from file-type.h
125674         and coreutils' system.h.
125675         * lib/file-type.c: Include "stat-macros.h".
125676         * lib/file-type.h (file_type): Move all macro definitions to new file,
125677         stat-macros.h.
125679         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125680         Wrap old code with this conditional.
125681         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125682         function that does not dereference symlinks.
125683         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125685         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125686         dependency problems.
125687         (xreadlink): Accept new arg SIZE, for efficiency.
125688         All decls and uses changed.
125689         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125691         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125692         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125694         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125695         sysexits.h.
125697 2004-06-01  Jim Meyering  <jim@meyering.net>
125699         * m4/calloc.m4: New file.
125701 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125704         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125705         Also, fix a typo in a diagnostic.
125707 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125709         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125710         or AC_FUNC_REALLOC.
125712 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125714         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125715         macros to be defined.
125716         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125717         the allocator returns NULL because the requested size is zero.
125719 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125721         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125722         var.  Add comment explaining why libc still defines it.  This
125723         merges the following patch from glibc:
125724         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125726 2004-05-20  Andreas Schwab  <schwab@suse.de>
125728         * m4/free.m4: Replace free if it not known to work, not the other
125729         way round.
125731 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125733         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125734         present in glibc since revision 1.1 of this file.
125735         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125736         obstack_alignment_mask, obstack_alloc, obstack_base,
125737         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125738         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125739         obstack_grow0, obstack_init, obstack_int_grow,
125740         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125741         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125742         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125743         nonexistent functions.
125745 2004-05-18  Karl Berry  <karl@gnu.org>
125747         * config/srclist.txt: break link for vasnprintf.c.
125749 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125751         Port obstack to the AS/400, where pointers are 16 bytes wide and
125752         you cannot cast an integer to a valid pointer.  This patch is
125753         currently waiting to be integrated into glibc; see
125754         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125756         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125757         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125758         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125759         (struct obstack): temp member is now a union of a pointer and
125760         an integer, instead of an integer.  All integer uses changed.
125761         This does not affect the physical layout of struct obstack,
125762         except on hosts (like the AS/400) where the size or alignment of
125763         void * is greater than that of ptrdiff_t.
125764         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125765         __STDC__)]: Store temporary in pointer member of union, not
125766         integer member.
125767         * lib/obstack.c: Include <stddef.h>, for offsetof.
125768         (struct fooalign): Remove; it doesn't need a name.
125769         (union fooround): Change double to long double, and add void *.
125770         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125771         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125772         not a macro.  Hence the values are always int; so remove all
125773         casts-to-int in uses.
125775 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125777         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125778         we can get this patch merged into glibc.
125780 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125781             Paul Eggert  <eggert@cs.ucla.edu>
125783         * m4/argp: Depend on alloca.
125785 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125786             Paul Eggert  <eggert@cs.ucla.edu>
125788         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125789         freecoding.
125791 2004-05-17  Bruno Haible  <bruno@clisp.org>
125793         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125794         precision that consists of a '.' followed by an empty digit string.
125795         Patch by Tor Lillqvist <tml@iki.fi>.
125797 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125800         for backward compatibility with older code.  We need our own
125801         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125802         it under some other name, and our alloca.h will define it.
125804 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125805             Derek Price  <derek@ximbiot.com>
125807         * lib/alloca.c: Include <alloca.h>, to get our interface.
125808         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125809         include <alloca.h> first.  Use C89 prototype for alloca; this
125810         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125811         Use #elif for simplicity, since we can assume C89 now.
125812         Don't try to source the system alloca.h since it will not be found
125813         and to prevent recursively including its replacement.
125814         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125815         * lib/regex.c: Likewise.
125817 2004-05-16  Derek Price  <derek@ximbiot.com>
125818             Paul Eggert  <eggert@cs.ucla.edu>
125820         getline cleanup.  This changes the getndelim2 API: both order of
125821         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125822         no delimiter).
125824         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125825         interface does that.
125826         (getline): Always use getdelim, so that we don't have two
125827         copies of this code.
125828         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125829         if available.
125830         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125831         (GETNDELIM2_MAXIMUM): New macro.
125832         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125833         instead of the old practice of delim2==0.  All callers changed.
125834         Return -1 on overflow, instead of returning junk.
125835         Do not set *linesize unless allocation succeeds.
125836         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125837         that we include sys/types.h.
125838         * lib/getnline.h: Likewise.
125839         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125840         (getndelim2): Reorder arguments.
125841         * lib/getnline.c (getnline, getndelim):
125842         Don't discard the NMAX argument.
125843         (getnline): Invoke getndelim, to avoid code duplication.
125844         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125845         of (size_t) -1 by callers of the getnline family.
125847 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125849         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125850         Check for gettimeofday.
125851         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125852         Check for settimeofday, stime.
125854 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125856         * lib/nanosleep.c (suspended): Change its type from int to
125857         sig_atomic_t volatile.
125858         (first_call): Make it private to rpl_nanosleep, and have it
125859         be zero initially as that's a bit faster.
125860         (my_usleep): Round up fractional times instead of truncating them,
125861         as this is the usual meaning for 'sleep'.
125863         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125864         doesn't work.
125865         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125866         (ENOSYS): Define if not defined.
125867         (settime): Fall back on stime if it exists and settimeofday fails.
125868         But don't bother with fallbacks if a method fails with errno == EPERM.
125870 2004-05-11  Jim Meyering  <jim@meyering.net>
125872         Prior to this change, the save_cwd caller required read access to the
125873         current directory on most systems (ones with the fchdir function).
125875         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125876         fails, try write-only, and finally, resort to using xgetcwd.
125878 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125880         * lib/obstack.c, obstack.h: Import changes from libc.
125882 2004-04-28  Bruno Haible  <bruno@clisp.org>
125884         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125885         also implicitly appends .exe to executables.
125886         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125887         accepts Windows pathnames.
125888         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125889         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125890         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125891         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125892         Reported by Derek Robert Price <derek@ximbiot.com>.
125894 2004-04-21  Karl Berry  <karl@gnu.org>
125896         * config/srclist.txt (localcharset.c): break sync.
125898 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125900         * m4/host-os.m4: Add a copyright notice.
125902 2004-04-20  Jim Meyering  <jim@meyering.net>
125904         Change UTILS_ to gl_ in AC_DEFINE'd names.
125905         Change utils_- and jm_-prefixed variables, too.
125906         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125907         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125910         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125911         Don't emit trailing blanks.
125912         Also rename jm_-prefixed variables to have gl_ prefix.
125914         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125915         Also rename jm_-prefixed variables to have gl_ prefix.
125917         * m4/jm-macros.m4: Reflect the renamings.
125918         * m4/prereq.m4: Likewise.
125920 2004-04-20  Jim Meyering  <jim@meyering.net>
125922         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125923         memory.
125925 2004-04-20  Jim Meyering  <jim@meyering.net>
125926             Bruno Haible  <bruno@clisp.org>
125928         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125929         memory when realloc fails.
125931 2004-04-19  Jim Meyering  <jim@meyering.net>
125933         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125934         now that readutmp.c may call `free (0)'.
125936 2004-04-19  Bruno Haible  <bruno@clisp.org>
125938         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125939         * m4/inttypes_h.m4: Likewise.
125940         * m4/stdint_h.m4: Likewise.
125941         * m4/intmax_t.m4: Likewise.
125942         * m4/uintmax_t.m4: Likewise.
125944 2004-04-18  Jim Meyering  <jim@meyering.net>
125946         * m4/prereq.m4: Don't forbid jm_ prefix.
125948         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125949         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125950         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125951         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125952         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125953         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125954         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125955         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125956         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125957         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125958         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125959         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125960         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125961         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125962         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125963         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125964         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125965         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125966         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125968 2004-04-18  Jim Meyering  <jim@meyering.net>
125970         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125971         failure, don't leak memory and do call END_UTMP_ENT.
125973 2004-04-16  Jim Meyering  <jim@meyering.net>
125975         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125976         coreutils' stat program.
125977         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125979 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125981         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125982         C89.
125983         (CHAR_BIT): Remove, since we assume C89.
125984         Include <stdint.h> if available, as per current Autoconf CVS advice.
125986 2004-03-31  Jim Meyering  <jim@meyering.net>
125988         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125989         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125990         * m4/xalloc.m4: Likewise.
125992 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125994         Merge from coreutils.
125996         * m4/inttostr.m4: New file.
125997         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125998         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125999         Require gl_CLOCK_TIME.
126000         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
126002 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126004         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
126005         not bool, to be more consistent with Unix conventions.
126006         Suggested by Bruno Haible.
126008         Merge from coreutils.
126010         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
126011         * lib/umaxtostr.c: New files.
126013         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
126014         the usual <time.h> dance.
126015         (get_date): Change signature to support fractional time stamps.
126016         All callers changed.
126017         * lib/getdate.y: Include "getdate.h" first, as we can now
126018         assume C89 and don't need to worry about 'const'.
126019         Similarly, include "unlocked-io.h" near start, not in middle.
126020         Include <limits.h>.
126021         (textint.value): Use long int rather than int.
126022         (textint.digits): Use size_t rather than int.
126023         (BILLION, LOG10_BILLION): New constants.
126024         (parser_control): New member rel_ns.  Members day_ordinal,
126025         time_zone, month, day, hour, minutes, rel_year, rel_month,
126026         rel_day, rel_hour, rel_minutes, rel_seconds
126027         are now long int, not int.  Member seconds is now struct timespec,
126028         not int.  New member timespec_seen.  Members dates_seen, days_seen,
126029         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
126030         not int.
126031         (%union.intval): Now long int, not int.
126032         New member timespec.
126033         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
126034         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
126035         (spec): Now is a timespec or an item list.
126036         (timespec, items): New nonterminals.
126037         (time, rel, relunit, number, get_date):
126038         Add support for fractional seconds.
126039         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
126040         (gmtime, localtime, mktime): Remove decls; not needed with C89.
126041         (to_hour): First arg is now long int, not int.
126042         (to_year): Returns long int, not int.
126043         Don't treat year -70 like 70.
126044         (tm_diff): Returns long int, not int.
126045         (lookup_word): Use bool instead of int when appropriate.
126046         (yylex): Use size_t for count, not int.
126047         Detect overflow when parsing large integer constants.
126048         Add support for fractions.
126049         (get_date): Make pointers 'const' if possible.
126050         Use more-portable code to detect integer overflow.
126051         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
126052         Don't use ctime; it's not reliable if the year has >4 digits.
126054         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
126055         This is for compatibility with BSD.
126057         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
126058         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
126059         From coreutils' system.h.
126061         * lib/userspec.c: Don't include "posixver.h".
126062         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
126063         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
126064         compatible extension.  Simplify code by removing a boolean int
126065         that was always nonzero if a string was nonnull.
126067 2004-03-30  Jim Meyering  <jim@meyering.net>
126069         Merge from coreutils.
126071         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
126072         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
126073         on some systems one must include <grp.h> before it.
126074         Reported by Christian Krackowizer.
126076 2004-03-30  Jim Meyering  <jim@meyering.net>
126078         Merge from coreutils.
126080         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
126082         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
126083         an empty input stream.
126085         * lib/readtokens.c: Include <stdbool.h>.
126086         (readtoken): Use `size_t' rather than int/long.
126087         All callers adjusted.
126088         Use `bool' rather than `int' where appropriate.
126089         Use memset rather than an explicit loop.
126090         Use x2nrealloc rather than xrealloc.
126091         Allow the use of `\0' as a delimiter.
126092         (readtokens): Likewise.
126093         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
126095 2004-03-30  Jim Meyering  <jim@meyering.net>
126097         * m4/realloc.m4: Remove file, since now it does no more than
126098         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
126099         the `configure.ac' section of module/realloc.
126100         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
126102 2004-03-30  Bruno Haible  <bruno@clisp.org>
126104         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
126105         nonnull.
126107 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126109         Merge changes to getloadavg.c from coreutils and Emacs.
126111         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
126112         Define to an expression, not to the empty string.
126113         Include cloexec.h and xalloc.h.
126114         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
126115         Use set_cloexec_flag rather than rolling our own.
126116         * lib/cloexec.c, lib/cloexec.h: New files.
126118 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126120         * m4/cloexec.m4: New file.
126122 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126124         * lib/getopt.h: Sync with libc CVS.
126126 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126127             Bruno Haible  <bruno@clisp.org>
126129         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
126130         mbswidth.
126132 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126133             Bruno Haible  <bruno@clisp.org>
126135         * lib/mbswidth.h: Include <wchar.h> only if
126136         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
126137         <wchar.h>.
126138         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
126140 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126142         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
126143         Sync with libc CVS.
126144         * lib/getopt_int.h: New file, also synced from libc.
126146 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126148         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
126149         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
126150         Bring back getopt.c, getopt.h, getopt1.c.
126152 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126154         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
126155         All uses changed.  Check for sa_sigaction member; this fixes
126156         a bug first reported by Jason Andrade in
126157         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126159 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126161         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
126162         '#if' expressions.  Unlike the code it replaces, it does not
126163         depend on (defined _SC_PAGESIZE).  However, it does depend on
126164         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
126165         first reported by Jason Andrade in
126166         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126168 2004-02-25  Simon Josefsson  <jas@extundo.com>
126170         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
126172 2004-02-25  Simon Josefsson  <jas@extundo.com>
126174         * lib/strdup.h: New file.
126175         * lib/strdup.c: Include it.
126176         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
126177         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
126179 2004-02-23  Karl Berry  <karl@gnu.org>
126181         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
126182         (from fencepost.gnu.org:/gd/gnuorg).
126184 2004-02-23  Karl Berry  <karl@gnu.org>
126186         * config/srclistvars.sh (GNUORG) [karl]: redefine.
126187         * config/srclist.txt: add maintain/standards documents.
126189 2004-02-18  Bruno Haible  <bruno@clisp.org>
126191         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
126192         Reported by Derek Robert Price <derek@ximbiot.com>.
126194 2004-02-16  Karl Berry  <karl@gnu.org>
126196         * config/mkinstalldirs, install-sh: update from automake.
126198 2004-02-06  Karl Berry  <karl@gnu.org>
126200         * m4/po.m4: update from gettext 0.14.1.
126202 2004-02-06  Karl Berry  <karl@gnu.org>
126204         * lib/config.charset: update from gettext 0.14.1.
126206 2004-02-05  Paul Eggert  <eggert@twinsun.com>
126208         Add comments and code, prompted by suggestions from Bruno Haible
126209         for sh-quote.
126210         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
126211         describing the enum quoting_style values.
126212         * lib/quotearg.c (quotearg_alloc): New function.
126213         (quotearg_buffer_restyled): Treat lone { and } as special.
126214         Treat = as special.  Work around bug with older shells
126215         that "see" a '\' that is really the 2nd byte of a multibyte char.
126216         Quote empty string with shell_quoting_style.
126218 2004-02-03  Bruno Haible  <bruno@clisp.org>
126220         * m4/pipe.m4: New file, from GNU gettext.
126222 2004-02-03  Bruno Haible  <bruno@clisp.org>
126224         * lib/pipe.h: New file, from GNU gettext.
126225         * lib/pipe.c: New file, from GNU gettext.
126227 2004-01-27  Bruno Haible  <bruno@clisp.org>
126229         * m4/execute.m4: New file, from GNU gettext.
126231 2004-01-27  Bruno Haible  <bruno@clisp.org>
126233         * lib/execute.h: New file, from GNU gettext.
126234         * lib/execute.c: New file, from GNU gettext.
126235         * lib/w32spawn.h: New file, from GNU gettext.
126237 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126239         Merge from diffutils.
126241         * lib/file-type.c (file_type): Add typed memory objects.
126242         * lib/file-type.h (S_TYPEISTMO): New macro.
126244         * lib/c-stack.h (c_stack_action): Remove argv argument.
126245         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
126246         (die): Don't calculate message unless segv_action returns.
126247         (get_stack_location, min_address_from_argv, max_address_from_argv,
126248         volatile stack_base, volatile_stack_size): Remove.
126249         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
126250         that every segmentation violation is a stack overflow.  (Ouch!)
126251         See Debian bug 136249 (still outstanding) for more info about why
126252         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
126254 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126256         Exit-status fix from coreutils.
126258         Use exit_failure consistently in place of EXIT_FAILURE,
126259         so that program exit statuses are consistent on failure.
126261         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
126262         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
126263         * lib/argmatch.h: Comment fix to match the above.
126264         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
126265         Now a macro referring to exit_failure, instead of a separate
126266         variable.  Include "exitfail.h" to get it.
126267         * lib/xstrtol.h: Include "exitfail.h".
126268         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
126270         * lib/long-options.c (parse_long_options): Use prototype
126271         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
126272         for clarity.
126274 2004-01-21  Jim Meyering  <jim@meyering.net>
126276         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
126277         so as not to conflict with a different-sized __mktime_internal
126278         function in GNU libc.
126279         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
126280         Problem building statically-linked `ls' reported by Michael Brunnbauer.
126282 2004-01-20  Karl Berry  <karl@gnu.org>
126284         * config/config.guess: update from config.
126286         * config/srclistvars.sh: GNUWWWLICENSES for karl.
126288 2004-01-20  Bruno Haible  <bruno@clisp.org>
126290         Safer stack allocation.
126291         * lib/setenv.c: Include allocsa.h.
126292         (alloca): Remove fallback definition.
126293         (freea): Remove macro.
126294         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
126295         instead of freea.
126297 2004-01-20  Bruno Haible  <bruno@clisp.org>
126299         * m4/eealloc.m4: New file, from GNU gettext.
126301 2004-01-20  Bruno Haible  <bruno@clisp.org>
126303         * m4/allocsa.m4: New file, from GNU gettext.
126305 2004-01-20  Bruno Haible  <bruno@clisp.org>
126307         * lib/xallocsa.h: New file, from GNU gettext.
126308         * lib/xallocsa.c: New file, from GNU gettext.
126310 2004-01-20  Bruno Haible  <bruno@clisp.org>
126312         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
126314 2004-01-20  Bruno Haible  <bruno@clisp.org>
126316         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
126317         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
126318         specially.
126320 2004-01-20  Bruno Haible  <bruno@clisp.org>
126322         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
126323         patch.
126325 2004-01-20  Bruno Haible  <bruno@clisp.org>
126327         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126329 2004-01-20  Bruno Haible  <bruno@clisp.org>
126331         * lib/eealloc.h: New file.
126333 2004-01-20  Bruno Haible  <bruno@clisp.org>
126335         * lib/binary-io.h: Avoid warnings on Cygwin.
126337 2004-01-20  Bruno Haible  <bruno@clisp.org>
126339         * lib/allocsa.h: New file, from GNU gettext.
126340         * lib/allocsa.c: New file, from GNU gettext.
126342 2004-01-18  Karl Berry  <karl@gnu.org>
126344         * doc/gpl.texi, doc/lgpl.texi: new files.
126346 2004-01-18  Karl Berry  <karl@gnu.org>
126348         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126349         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126351 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126353         Merge from coreutils.
126355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126356         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126357         (gl_DEFAULT_POSIX2_VERSION): Move
126358         the documentation from 'configure' into 'config.hin',
126359         so that 'configure --help' isn't burdened by it and
126360         we don't have to worry about its formatting there.
126361         Reword the documentation so that it's more succinct
126362         and can be run together into a single paragraph.
126363         * m4/same.m4 (gl_SAME): Check for pathconf.
126365 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126367         Merge from coreutils.
126369         * lib/posixver.c: Include posixver.h.
126371         * lib/same.c: Include <stdbool.h>, <limits.h>.
126372         (_POSIX_NAME_MAX): Define if not defined.
126373         (MIN): New macro.
126374         (same_name): If file names are silently truncated, report
126375         that the file names are the same if they are the same after
126376         the silent truncation.
126378         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126379         conversion function.
126380         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126381         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126382         longer needed.
126384 2004-01-15  Jim Meyering  <jim@meyering.net>
126386         Merge from coreutils.
126388         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126389         if no library is required.
126390         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126391         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126392         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126393         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126394         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126395         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126396         value, $ac_cv_search_crypt, if it's "none required".
126397         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126398         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126399         not gl_FUNC_GETLOADAVG.
126400         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126401         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126403 2004-01-15  Jim Meyering  <jim@meyering.net>
126405         Merge from coreutils.
126407         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126408         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126409         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126411         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126412         optional configure-time default.
126414         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126416         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126418 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126420         Merge from coreutils.
126422         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126423         value, $ac_cv_search_nanosleep, if it's "none required".
126425 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126427         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126428         with like-named macro in fnmatch.c.
126429         (EXT): Use an internal constant instead.
126431         Merge fnmatch patches from glibc.
126432         * lib/fnmatch.c (mbsinit): Remove define.
126433         Add libc_hidden_ver (__fnmatch, fnmatch).
126434         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126435         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126437 2004-01-14  Karl Berry  <karl@gnu.org>
126439         * config/install-sh: update from automake.
126441 2004-01-13  Karl Berry  <karl@gnu.org>
126443         * config/install-sh: update from automake.
126445 2004-01-09  Karl Berry  <karl@gnu.org>
126447         * config/install-sh: update from automake.
126449 2004-01-05  Karl Berry  <karl@gnu.org>
126451         * config/config.{sub,guess}: update from config.
126453 2003-12-31  Karl Berry  <karl@gnu.org>
126455         * config/depcomp: update from automake.
126457 2003-12-14  Karl Berry  <karl@gnu.org>
126459         * lib/config.charset: update from gettext-runtime.
126461 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126463         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126464         Bug reported by Alfred M. Szmidt.
126466 2003-12-03  Bruno Haible  <bruno@clisp.org>
126468         * m4/gettext.m4: Upgrade from gettext-0.13.
126469         * m4/po.m4: Upgrade from gettext-0.13.
126470         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126471         * m4/intmax.m4: New file, from gettext-0.13.
126472         * m4/printf-posix.m4: New file, from gettext-0.13.
126474 2003-11-29  Karl Berry  <karl@gnu.org>
126476         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126478 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126479             Bruno Haible  <bruno@clisp.org>
126481         * lib/printf-parse.h: Don't include sys/types.h.
126482         (ARG_NONE): New macro.
126483         (char_directive): Change type of *arg_index fields to size_t.
126484         * lib/printf-parse.c: Don't include sys/types.h.
126485         (SSIZE_MAX): Remove macro.
126486         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126487         Remove unnecessary overflow check.
126488         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126489         fields.
126491 2003-11-25  Bruno Haible  <bruno@clisp.org>
126493         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126495 2003-11-25  Bruno Haible  <bruno@clisp.org>
126497         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126498         gt_TYPE_SSIZE_T.
126500 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126502         * modules/alloca: Remove dependency on xalloc.
126504 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126506         * lib/alloca.c: Remove dependency on xalloc module.
126507         (xalloc_die): Remove.
126508         (memory_full) [!defined emacs]: New macro.
126509         [!defined emacs]: Don't include xalloc.h.
126510         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126511         address arithmetic overflows.  Change datatypes a bit to avoid
126512         unnecessary casts.
126514 2003-11-22  Jim Meyering  <jim@meyering.net>
126516         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126517         s/size/size_t/.
126519 2003-11-21  Karl Berry  <karl@gnu.org>
126521         * config/config.{sub,guess}: update from config.
126523 2003-11-18  Karl Berry  <karl@gnu.org>
126525         * config/config.{sub,guess}: update from config.
126527         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126529 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126531         * README: Mention that S+T cannot overflow if S is the size of
126532         an existing object and T is sufficiently small.
126534 2003-11-17  Jim Meyering  <jim@meyering.net>
126536         On systems without utime and without a utimes function capable of
126537         dealing with a NULL struct utimbuf* argument, this utime replacement
126538         could -- in unusual circumstances -- leak a file descriptor.
126539         * lib/utime.c: Include <unistd.h> and <errno.h>.
126540         (utime_null): Be sure to close `fd' and to preserve errno.
126541         Reported by Geoff Collyer via Arnold Robbins.
126543 2003-11-17  Bruno Haible  <bruno@clisp.org>
126545         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126546         (Depends-on): Add xsize.
126548 2003-11-17  Bruno Haible  <bruno@clisp.org>
126550         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126552 2003-11-17  Bruno Haible  <bruno@clisp.org>
126554         * lib/vasnprintf.c (alloca): Remove fallback definition.
126555         (freea): Remove definition.
126556         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126557         Reported by Paul Eggert.
126559 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126560             Bruno Haible  <bruno@clisp.org>
126562         Protect against address arithmetic overflow.
126563         * lib/printf-args.h: Include stddef.h.
126564         (arguments): Change type of field 'count' to size_t.
126565         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126566         'unsigned int' where appropriate.
126567         * lib/printf-parse.h: Include sys/types.h.
126568         (char_directive): Change type of *arg_index fields to ssize_t.
126569         (char_directives): Change type of fields 'count', max_*_length to
126570         size_t.
126571         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126572         (SSIZE_MAX): Define fallback value.
126573         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126574         instead of 'int' where appropriate. Check a_allocated, d_allocated
126575         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126576         * lib/vasnprintf.c: Include xsize.h.
126577         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126578         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126579         overflow. Avoid wraparound when converting a width or precision from
126580         decimal to binary.
126582 2003-11-16  Bruno Haible  <bruno@clisp.org>
126584         Update from GNU gettext.
126585         * lib/printf-parse.c: Generalize to it can be compiled for wide
126586         strings.
126587         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126588         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126589         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126590         SNPRINTF): New macros.
126591         Don't include <alloca.h> if the file is used inside libintl.
126592         (local_wcslen): New function, for Solaris 2.5.1.
126593         (VASNPRINTF): Use it instead of wcslen.
126595 2003-11-16  Bruno Haible  <bruno@clisp.org>
126597         * lib/xsize.h (xmax): New function.
126598         (xsum, xsum3, xsum4): Declare as "pure" functions.
126600 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126602         * modules/xalloc (Files): Undo latest change, since xalloc.h
126603         no longer needs SIZE_MAX or PTRDIFF_MAX.
126605 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126607         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126608         gl_PTRDIFF_MAX.
126610 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126612         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126613         "return", to pacify some unknown compiler.  Problem reported
126614         by Joerg Schilling.
126616 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126618         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126619         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126620         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126621         heuristic is just as accurate as far as we know, and it removes a
126622         dependency on size_max.m4 and ptrdiff_max.m4.
126624 2003-11-11  Bruno Haible  <bruno@clisp.org>
126626         * modules/xsize (Files): Add m4/size_max.m4.
126627         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126629 2003-11-11  Bruno Haible  <bruno@clisp.org>
126631         * m4/size_max.m4: New file.
126632         * m4/ptrdiff_max.m4: New file.
126633         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126634         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126635         (gl_XALLOC): Invoke it.
126637 2003-11-11  Bruno Haible  <bruno@clisp.org>
126639         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126640         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126641         defined.
126643 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126645         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126646         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126647         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126648         From Bruno Haible.
126649         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126650         not (size_t) -1, since it's defined here.
126652 2003-11-09  Karl Berry  <karl@gnu.org>
126654         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126656 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126658         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126659         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126660         Reject sizes of exactly SIZE_MAX bytes.
126661         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126662         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126664 2003-11-05  Bruno Haible  <bruno@clisp.org>
126666         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126667         SIZE_MAX defined in <limits.h> on Solaris.
126669 2003-11-04  Jim Meyering  <jim@meyering.net>
126671         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126672         variable names, rather than @VAR@.
126673         * modules/poll: Likewise.
126675 2003-11-04  Bruno Haible  <bruno@clisp.org>
126677         * modules/xsize: New file.
126678         * modules/linebreak: Depend on xsize.
126679         * MODULES.html.sh (func_all_modules): Add xsize.
126681 2003-11-04  Bruno Haible  <bruno@clisp.org>
126683         * m4/xsize.m4: New file.
126685 2003-11-04  Bruno Haible  <bruno@clisp.org>
126687         * lib/xsize.h: New file.
126688         * lib/linebreak.c: Include xsize.h.
126689         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126690         argument for overflow.
126691         Suggested by Paul Eggert.
126693 2003-11-03  Karl Berry  <karl@gnu.org>
126695         * config/config.{guess,sub}: update from config.
126697 2003-11-03  Jim Meyering  <jim@meyering.net>
126699         * modules/userspec (lib_SOURCES): Add userspec.h.
126700         (Include): Add "userspec.h".
126701         Improve description.
126703 2003-11-03  Jim Meyering  <jim@meyering.net>
126705         * lib/userspec.c: Include "userspec.h".
126706         * lib/userspec.h: New file.
126708 2003-11-03  Bruno Haible  <bruno@clisp.org>
126710         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126712 2003-11-03  Bruno Haible  <bruno@clisp.org>
126714         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126715         available, to avoid (extremely rare) race condition.
126716         Suggested by Paul Eggert.
126718 2003-11-02  Karl Berry  <karl@gnu.org>
126720         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126722 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126724         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126725         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126726         (read_filesystem_list): Set and use me_type_malloced.
126727         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126728         whatever the type happens to be), for brevity and consistency.
126729         Check for size calculation overflow on Alphas running OSF/1.
126731 2003-10-31  Jim Meyering  <jim@meyering.net>
126733         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126735         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126737 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126738             Bruno Haible  <bruno@clisp.org>
126740         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126741         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126743 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126745         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126746         netbsd*-gnu*.  Suggested by Robert Millan.
126748 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126750         * modules/group-member: Depend on stdbool.
126752 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126754         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126756 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126758         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126759         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126760         after the 'gnu' in these cases.  This fixes some bugs in the
126761         previous change, and is based on suggestions by Robert Millan.
126763 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126765         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126766         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126767         no longer needed.
126768         * lib/quotearg.c (quotearg_n_options): Use it.
126769         * lib/group-member.c: Include <stdbool.h>.
126770         (free_group_info): Arg is now const *; don't free arg.
126771         (get_group_info): Now returns bool and accepts struct group_info *,
126772         rather than returning a malloc'ed struct group_info *.
126773         All uses changed.  Check for overflow in internal size calculation.
126775         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126776         rather than xmalloc/xrealloc.
126777         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126778         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126779         conformance bug: the old code used a pointer after freeing the
126780         storage that it addressed.
126781         * lib/hash.c (hash_initialize): Simplify the code by using
126782         xalloc_oversized rather than doing it by hand.
126783         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126784         the buffer preserved.  Use free and xmalloc instead.
126785         * lib/quotearg.c (quotearg_n_options): Likewise.
126786         Use a simpler test for size overflow.  Don't use xalloc_oversized
126787         because unsigned int might be wider than size_t (!); this suggests
126788         that we should switch from unsigned int to size_t for slot numbers.
126790 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126792         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126793         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126794         NetBSD kernels.  Requested by Richard Stallman.
126796 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126798         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126799         to allocate the returned structure.  Do not allocate a subarray,
126800         as x2nrealloc will do that.
126801         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126802         instead of xnrealloc.
126803         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126805 2003-10-27  Bruno Haible  <bruno@clisp.org>
126807         * lib/stdbool_.h: Better support for BeOS.
126809 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126811         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126812         now uses inline.
126814 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126816         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126817         callers that want to do their own size-overflow checking.  Include
126818         <stdbool.h>, since xalloc_oversized returns bool.
126819         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126820         to use xalloc_oversized.
126822         Add two functions x2realloc, x2nrealloc, for programs that grow
126823         arrays dynamically by doubling their sizes.
126824         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126825         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126826         New functions.
126828         Port to C99 semantics for 'inline' of external functions.
126829         Bug reported by Bruno Haible.
126830         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126831         with the old contents of xnmalloc.
126832         (xnmalloc, xmalloc): Use it.
126833         (xnrealloc_inline): New static inline function,
126834         with the old contents of xnrealloc.
126835         (xnrealloc, xrealloc): Use it.
126837         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126838         that.
126840 2003-10-26  Karl Berry  <karl@gnu.org>
126842         * config/srclist.txt (COPYING.DOC): no longer available from
126843         /gd/gnuorg; don't know where the ultimate source is.
126845 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126847         Fix several address-calculation bugs in the hash modules,
126848         plus some minor code cleanup.
126850         * lib/hash.h: Include <stdbool.h>, for bool.
126851         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126852         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126853         hash_get_n_entries, hash_get_max_bucket_length,
126854         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126855         hash_rehash): Use size_t rather than unsigned.
126856         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126857         hash_get_n_buckets_used, hash_get_n_entries,
126858         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126859         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126860         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126861         Likewise.
126862         (SIZE_MAX): Define if not defined.
126863         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126864         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126865         hash_print):
126866         Use const * when possible.
126867         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126868         (check_tuning): Fix bug: if tuning parameters were very close to
126869         0 or 1, rounding errors could have caused subscript violations.
126870         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126871         (hash_initialize): Add 'fail:' label
126872         to free table and return NULL, and use it to simplify code.
126873         Use calloc rather than clearing the storage ourself.
126874         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126875         buffer size calculations.
126876         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126877         Include <stddef.h>, for size_t.
126878         * lib/hash-pjw.c (hash_pjw): Likewise.
126879         Switch to method described by Bruno Haible.
126880         Include <limits.h>, for CHAR_BIT.
126881         (SIZE_BITS): New macro.
126883 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126885         * m4/getline.m4 (AM_FUNC_GETLINE):
126886         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126887         hosts.  Problem reported by Derek Robert Price in
126888         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126889         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126890         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126892 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126894         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126895         ceiling the allocation at NMAX bytes rather than silently
126896         discarding input bytes before NMAX is reached.  This makes
126897         a difference only if NMAX exceeds SIZE_MAX / 2.
126899         * lib/obstack.c: Merge from glibc.
126900         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126901         Add libc_hidden_def (_obstack_newchunk).
126902         (_obstack_free) [! defined _LIBC]: Remove.
126903         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126904         a clone of the function body.
126905         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126906         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126908         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126909         glibc.
126910         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126911         arg to memcpy.
126913         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126914         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126915         Don't use lvalue casts, as GCC plans to remove support for them
126916         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126917         was also present in the non-GCC version, indicating that this
126918         code had always been buggy and had never been widely used.
126919         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126920         Use the fast variant of each macro, rather than copying the
126921         definiens of the fast variant; that way, we'll be more likely to
126922         catch future bugs in the fast variants.
126924 2003-10-20  Bruno Haible  <bruno@clisp.org>
126926         * modules/wait-process: New file.
126927         * MODULES.html.sh (func_all_modules): Add wait-process.
126929 2003-10-20  Bruno Haible  <bruno@clisp.org>
126931         * m4/wait-process.m4: New file.
126933 2003-10-20  Bruno Haible  <bruno@clisp.org>
126935         * lib/wait-process.h: New file, from GNU gettext.
126936         * lib/wait-process.c: New file, from GNU gettext.
126938 2003-10-19  Jim Meyering  <jim@meyering.net>
126940         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126941         HPUX 10.20.
126943 2003-10-18  Karl Berry  <karl@gnu.org>
126945         * config/config.guess: update from config.
126947 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126949         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126950         (getgroups): First arg is int, not size_t.
126951         Don't let 'free' mangle errno.
126953 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126955         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126957 2003-10-16  Karl Berry  <karl@gnu.org>
126959         * config/config.{guess,sub}: update from config.
126961 2003-10-16  Jim Meyering  <jim@meyering.net>
126963         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126964         memcpy.
126966 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126968         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126969         (SIZE_MAX): Remove.
126970         (new_exclude, add_exclude_file): Initial size no longer needs to
126971         be a power of 2.
126972         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126973         our own address arithmetic overflow checking.
126975         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126976         (fnmatch): Do not alloca more than 2000 wide characters;
126977         instead, use malloc for large buffers.
126978         Check for address arithmetic overflow, and return -1
126979         with errno set to ENOMEM in that case.
126980         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126981         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126982         instead, return -1.  Check for address arithmetic overflow.
126984 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126986         Handle invalid suffixes and overflow independently, so that
126987         callers can treat them independently as needed.  Fix some bugs in
126988         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126989         suffix for a human-readable blocksize.  The major caller-visible
126990         change is the addition of a new
126991         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126992         that both overflow and suffix chars were found.
126994         * lib/human.c (humblock): Don't check separately for invalid suffix
126995         char; that is xstrtoumax's job (now that its bug is fixed).
126996         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126997         INTMAX_MAX]: New macros.
126998         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126999         TYPE_MAXIMUM): New macros.
127000         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
127001         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
127002         if overflow occurs, as it's what __strtol does and it's more useful
127003         in practice.
127004         (__xstrtol): If __strtol reports some error other than ERANGE,
127005         reflect it to the caller as LONGINT_INVALID.  If it reports
127006         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
127007         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
127008         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
127009         value.
127010         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
127011         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
127012         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
127013         [defined UINTMAX_MAX]: New macros.
127015 2003-10-14  Bruno Haible  <bruno@clisp.org>
127017         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
127019 2003-10-14  Bruno Haible  <bruno@clisp.org>
127021         * m4/sig_atomic_t: New file, from GNU gettext.
127022         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
127024 2003-10-14  Bruno Haible  <bruno@clisp.org>
127026         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
127027         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
127028         Also use volatile where needed.
127030 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127032         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
127033         Change maintainer from Bruno Haible to 'all'.
127035 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127037         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
127039 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127041         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
127042         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
127043         and define in terms of the other primitives.
127044         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
127045         (SIZE_MAX): Define if not already defined.
127046         (array_size_overflow): New function.
127047         (xalloc_die): Abort instead of exiting if 'error' returns.
127048         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
127049         (xmalloc, xrealloc): Use them.
127050         (xcalloc): Check for address arithmetic overflow.
127051         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
127052         a bit faster than strcpy.
127054 2003-10-10  Simon Josefsson  <jas@extundo.com>
127056         * modules/argp (Depends-on): Add restrict and strcase.
127058 2003-10-10  Simon Josefsson  <jas@extundo.com>
127060         * m4/argp.m4: Add AC_C_INLINE.
127062 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127064         Merge getpass from libc, plus a few fixes.
127066         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
127067         Include <stdbool.h>.
127068         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
127069         __fsetlocking to empty.
127070         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
127071         do include <bits/libc-lock.h>.
127072         Do not include <fcntl.h>; not needed.
127073         [_LIBC]: Include <wchar.h>.
127074         (NOTCANCEL_MODE): New macro.
127075         (flockfile, funlockfile) [_LIBC]: New macros.
127076         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
127077         [!_LIBC]: New macros.
127078         (call_fclose): New function.
127079         (getpass): Use it.  Save tty stream separately; this simplifies the
127080         code and makes it more reliable if stdin happens to equal stdout.
127081         Invoke __fsetlocking on tty.
127082         Handle thread cancellation if needed.
127083         Namespace cleanup (use __tcgetattr, __getline).
127084         Use bool for Booleans.
127085         [USE_IN_LIBIO]: Handle wide streams.
127086         [!_LIBC]: Unconditionally do the fseek, since we don't know what
127087         stream might go where.
127089         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
127090         doesn't have to include <stdio.h> before us.
127091         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
127092         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
127093         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
127094         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
127095         if not declared, so that we can use getpass.c code from libc without
127096         rewriting it.
127097         (flockfile, ftrylockfile, funlockfile): New macros.
127099 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127101         * modules/getpass: Depend on stdbool.
127103 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127105         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
127107 2003-10-07  Karl Berry  <karl@gnu.org>
127109         * config/config.{guess,sub}: update from config.
127111 2003-10-06  Jim Meyering  <jim@meyering.net>
127112             Bruno Haible  <bruno@clisp.org>
127114         This lets translators provide better translations for the
127115         "Written by ..." part of --version output.
127116         * lib/version-etc.h: Include stdarg.h.
127117         (version_etc_copyright): Declare as readonly.
127118         (version_etc): Make this function variadic with a NULL-terminated list
127119         of author name strings.
127120         (version_etc_va): New declaration.
127121         * lib/version-etc.c: Include stdarg.h, stdlib.h.
127122         (version_etc_copyright): Declare as readonly.
127123         (version_etc_va): New function. Provide a different translatable string
127124         for each possible number of authors < 10. Abbreviate when there are 10
127125         authors or more.
127126         (version_etc): Make this function variadic. Call version_etc_va.
127127         Suggestion from Gary V. Vaughan.
127129         * lib/long-options.h (parse_long_options): Change prototype: the
127130         authors string is moved to the end and becomes variadic.
127131         * lib/long-options.c: Include stdarg.h.
127132         (parse_long_options): Make this function variadic, too.
127133         Call version_etc_va, not version_etc.
127135 2003-10-06  Bruno Haible  <bruno@clisp.org>
127137         * modules/version-etc-2: Remove file.
127138         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
127140 2003-10-06  Bruno Haible  <bruno@clisp.org>
127142         * modules/fatal-signal: New file.
127143         * MODULES.html.sh (func_all_modules): Add fatal-signal.
127145 2003-10-06  Bruno Haible  <bruno@clisp.org>
127147         * m4/fatal-signal.m4: New file.
127148         * m4/signalblocking.m4: New file, from GNU gettext.
127150 2003-10-06  Bruno Haible  <bruno@clisp.org>
127152         * lib/version-etc-2.h: Remove file.
127153         * lib/version-etc-2.c: Remove file.
127155 2003-10-06  Bruno Haible  <bruno@clisp.org>
127157         * lib/fatal-signal.h: New file, from GNU gettext.
127158         * lib/fatal-signal.c: New file, from GNU gettext.
127160 2003-10-05  Paul Eggert  <eggert@twinsun.com>
127162         * README: Rework advice for preventing empty .o files.
127163         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
127164         not <sys/types.h>.
127166 2003-10-04  Karl Berry  <karl@gnu.org>
127168         * lib/argp*: update from libc.
127170 2003-10-04  Karl Berry  <karl@gnu.org>
127172         * config/config.{guess,sub}: update from config.
127174 2003-10-02  Bruno Haible  <bruno@clisp.org>
127176         * modules/lchown (Include): Add lchown.h.
127177         * modules/time_r (Include): Use "..." syntax.
127178         * modules/xgetdomainname (Include): Add xgetdomainname.h.
127180 2003-10-01  Simon Josefsson  <jas@extundo.com>
127182         * MODULES.html.sh (func_all_modules): Move gethostname from section
127183         'based on' to section 'lacking' POSIX:2001.
127185 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
127187         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
127188         to output mode on the same stream.
127190 2003-09-29  Paul Eggert  <eggert@twinsun.com>
127192         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
127193         Fix arg typo in previous patch.
127195 2003-09-28  Jim Meyering  <jim@meyering.net>
127197         * lib/error.c: Correct cpp indentation.
127199 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127201         * modules/free: New file.
127203 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127205         * m4/free.m4: New file.
127207 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127209         * lib/minmax.h (MIN, MAX)
127210         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
127211         Omit the special code that used __typeof__, since we worry that
127212         it could be more trouble than it's worth.  See:
127213         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
127214         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
127216         * lib/free.c: New file.
127218 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
127220         Trivial fixes to Makefile.am parts of module listings.
127221         * modules/strstr: Append strstr.h to lib_SOURCES.
127222         * modules/strcase: Likewise, for strcase.h.
127224 2003-09-27  Karl Berry  <karl@gnu.org>
127226         * config/mkinstalldirs: update from automake.
127228 2003-09-26  Paul Eggert  <eggert@twinsun.com>
127230         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
127231         (error_tail): Do not loop, reallocating temporary buffer, since
127232         the output cannot contain more wide characters than the input
127233         contains bytes, the size must be big enough already.  This avoids
127234         one potential size overflow calculation.  Check for size overflow
127235         when calculating temporary buffer size.  Free temporary buffer
127236         when done, if it was allocated with malloc; this plugs a memory
127237         leak.  Remove casts from void * to pointers, that are no longer
127238         needed now that we're assuming C89 or better.
127240         Merge error changes from glibc.
127242         * lib/error.c, error.h: Update copyright notice header to match glibc.
127243         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
127244         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
127245         Disable cancellation while printing error.
127246         * lib/error.h: Prepend __ to parameter names.
127248 2003-09-26  Jim Meyering  <jim@meyering.net>
127250         * lib/error.c (error_tail): Move some declarations
127251         into inner scope where the local variables are used.
127253 2003-09-26  Bruno Haible  <bruno@clisp.org>
127255         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
127256         stpncpy().
127257         Don't define stpncpy through config.h; it's now done through stpncpy.h.
127259 2003-09-26  Bruno Haible  <bruno@clisp.org>
127261         * lib/stpncpy.h (gnu_stpncpy): New declaration.
127262         (stpncpy): Define as alias for gnu_stpncpy.
127263         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
127265 2003-09-25  Simon Josefsson  <jas@extundo.com>
127267         * lib/xgetdomainname.h: New file.
127268         * lib/xgetdomainname.c: New file.
127270 2003-09-25  Simon Josefsson  <jas@extundo.com>
127271             Bruno Haible  <bruno@clisp.org>
127273         * modules/getdomainname: New file.
127274         * modules/xgetdomainname: New file.
127275         * MODULES.html.sh (func_all_modules): Add getdomainname,
127276         xgetdomainname.
127278 2003-09-25  Simon Josefsson  <jas@extundo.com>
127279             Bruno Haible  <bruno@clisp.org>
127281         * m4/getdomainname.m4: New file.
127283 2003-09-25  Simon Josefsson  <jas@extundo.com>
127284             Bruno Haible  <bruno@clisp.org>
127286         * lib/getdomainname.h: New file.
127287         * lib/getdomainname.c: New file.
127289 2003-09-25  Karl Berry  <karl@gnu.org>
127291         * lib/argp-fmtstream.c, argp-help.c: update from libc.
127293 2003-09-25  Karl Berry  <karl@gnu.org>
127295         * config/install-sh: update from automake.
127297 2003-09-25  Bruno Haible  <bruno@clisp.org>
127299         * modules/version-etc-2: New file, from modules/version-etc with
127300         modifications.
127301         * MODULES.html.sh (func_all_modules): Add version-etc-2.
127303 2003-09-25  Bruno Haible  <bruno@clisp.org>
127305         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
127306         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
127308 2003-09-24  Simon Josefsson  <jas@extundo.com>
127310         * modules/xgethostname: Add xgethostname.h.
127312 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127314         * lib/linebuffer.c (freebuffer): Don't free the argument, just
127315         the buffer associated with the argument.  Bug reported by
127316         Simon Josefsson.
127318 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127320         * README: Document assumptions that 'int' is at least 32 bits
127321         wide, that integer arithmetic is 2's complement without overflow,
127322         that there are no holes in integer values, that adding sizes of
127323         two nonoverlapping objects can't overflow, and that all-bits-zero
127324         yields scalar zero.  Fix spelling and capitalization typos.
127326 2003-09-19  Karl Berry  <karl@gnu.org>
127328         * lib/argp.h: update from libc.
127330 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127332         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127333         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127334         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127336 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127338         * gnulib-tool: Use "test -h", not "test -L", for portability
127339         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127340         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127341         (sed_extract_prog): Issue s commands one-by-one, rather than
127342         using \| in one s command.
127344 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127346         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127347         input error, instead of returning NULL the next time we are called
127348         (and therefore losing track of errno).
127350 2003-09-16  Bruno Haible  <bruno@clisp.org>
127352         * gnulib-tool (func_create_testdir): Warn about duplicated
127353         dependencies.
127355 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127357         * modules/argmatch, modules/fatal, modules/obstack,
127358         modules/xalloc, modules/xgethostname: Sort dependencies by
127359         importance, not alphabetically.
127361 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127363         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127364         fails, so that the caller gets the proper errno.
127366         * lib/readutmp.c (read_utmp): Likewise.
127367         Check for fstat error.  Close stream and free storage
127368         when failing.
127370 2003-09-14  Karl Berry  <karl@gnu.org>
127372         * config/srclist.txt (strdup.c): disable for c89 changes.
127374 2003-09-14  Jim Meyering  <jim@meyering.net>
127376         * lib/getloadavg.c: Correct cpp indentation.
127377         * lib/strdup.c: Likewise.
127378         * lib/vasnprintf.c: Likewise.
127380 2003-09-14  Bruno Haible  <bruno@clisp.org>
127382         * modules/fwriteerror: New file.
127383         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127385 2003-09-14  Bruno Haible  <bruno@clisp.org>
127387         * lib/fwriteerror.h: New file.
127388         * lib/fwriteerror.c: New file.
127390 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127392         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127393         modules/xgethostname, modules/xalloc: Depend on exit.
127395 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127397         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127400         and AC_MINIX, too, so that their extensions are available.
127402         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127403         This macro has been superseded by gl_BACKUPFILE.
127405         More patches to assume C89 or better.
127407         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127409         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127410         unconditionally.
127411         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127412         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127413         Include <string.h>, <stdlib.h> unconditionally.
127414         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127415         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127416         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127417         headers or for string.h.
127418         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127419         or strtoul.
127421         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127422         headers.
127423         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127424         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127425         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127426         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127427         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127428         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127429         memcpy, memset.
127430         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127431         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127432         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127433         strtol.
127434         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127435         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127437         strtoul.
127439 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127441         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127442         * lib/obstack.c [!defined _LIBC]: Likewise.
127443         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127444         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127445         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127447         More changes to assume C89 or better.
127449         * lib/error.c (error_tail): Assume vprintf.
127451         * lib/argmatch.c (getenv): Remove decl.
127452         * lib/progreloc.c (get_full_program_name): Define via prototype.
127453         * lib/setenv.c (clearenv): Likewise.
127454         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127455         needed.
127456         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127457         (malloc, memcpy): Remove decls.
127458         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127459         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127460         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127461         (memcpy): Remove macro.
127462         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127463         (__P): Remove.  All uses removed.
127464         (PTR): Remove.  All uses changed to void *.
127465         (CHAR_BIT, NULL): Remove.
127466         (spaces, zeros, memset_space, memset_zero)
127467         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127468         Remove.
127469         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127470         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127471         Define with prototype.
127472         Remove now-unnecessary prototype decl.
127473         (extra_args_spec): Assume ANSI C.  All uses changed.
127474         (extra_args_spec_iso): Remove.
127475         (my_strftime, emacs_strftimeu): Define via prototype.
127476         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127477         unconditionally.
127478         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127479         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127480         (strtoul, strtol): Remove decls.
127481         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127482         LONG_MAX): Remove.
127483         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127484         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127485         (LOCALE_PARAM_PROTO): New macro.
127486         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127487         (INTERNAL (strtol), strtol): Define with a prototype.
127488         (PARAMS): Remove.  All uses removed.
127489         * lib/tempname.c: Include <string.h> unconditionally.
127490         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127491         * lib/xgethostname.c (main): Define with a prototype.
127492         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127493         Include <stdlib.h> unconditionally.
127494         (calloc, malloc, realloc, free): Remove decls.
127495         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127496         Include <stdlib.h> unconditionally.  Sort include file names.
127497         (strtod): Remove.
127498         (xstrtod): Define with a prototype.
127499         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127500         (strtol, strtoul): Remove decls.
127502 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127504         More patches to assume C89 or better.
127505         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127506         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127507         string.h, memchr, STDC_HEADERS.
127509 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127511         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127512         Include <stdlib.h>, <string.h> unconditionally.
127513         Remove now-unnecessary cast to char *.
127514         * lib/strnlen.c: Include <string.h> unconditionally.
127515         * lib/yesno.c (yesno): Define with a prototype.
127517 2003-09-11  Bruno Haible  <bruno@clisp.org>
127519         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127521 2003-09-10  Jim Meyering  <jim@meyering.net>
127523         * lib/error.c: Correct indentation of cpp directives.
127525 2003-09-10  Bruno Haible  <bruno@clisp.org>
127527         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127528         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127529         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127530         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127531         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127532         <stdlib.h> and <string.h> checks.
127533         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127534         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127536 2003-09-10  Bruno Haible  <bruno@clisp.org>
127538         * lib/strcspn.c: Include <string.h> unconditionally.
127539         * lib/strpbrk.c: Include <string.h> unconditionally.
127540         * lib/strstr.c: Include <string.h> unconditionally.
127541         * lib/unicodeio.c: Include <string.h> unconditionally.
127542         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127543         * lib/unsetenv.c: Likewise.
127544         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127545         * lib/yesno.c: Include <stdlib.h> unconditionally.
127546         (rpmatch): Add prototype.
127548 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127550         More patches to assume C89 or better.
127551         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127552         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127553         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127554         or for string.h.
127555         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127556         stdlib.h.
127557         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127558         C headers.
127559         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127560         string.h.
127561         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127562         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127563         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127564         or for string.h.
127565         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127566         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127567         C headers.
127568         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127569         memcpy.
127570         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127571         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127572         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127573         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127574         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127575         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127576         string.h, free.
127577         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127578         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127579         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127580         C headers, or for string.h.
127581         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127582         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127583         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127584         headers, memory.h, stdlib.h, string.h, strings.h.
127585         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127586         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127587         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127588         strchr.
127589         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127590         headers, memory.h, string.h.
127591         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127592         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127593         free.
127594         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127595         headers.
127596         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127597         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127598         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127599         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127600         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127602 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127604         More K&R removal.
127606         * lib/acosl.c (main): Use a prototype.
127607         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127608         tanl.c: Likewise.
127610         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127612         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127613         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127614         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127615         with a prototype.
127616         * lib/getopt.c (const): Remove macro.
127617         Include <string.h> unconditionally.
127618         (my_index): Remove; all uses changed to strchr.
127619         (strlen): Remove decl.
127620         (exchange): Remove forward decl; no longer needed.
127621         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127622         Define with prototype.
127623         * lib/getopt1.c (const): Remove macro.
127624         (getopt_long, getopt_long_only, main): Define with prototype.
127626         * lib/getugroups.c: Include <string.h> unconditionally.
127628         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127629         (getusershell, setusershell, endusershell, readname, main):
127630         Define with prototypes.
127632         * lib/group-member.c: Include group-member.h first.
127633         Include <stdlib.h> unconditionally.
127635         * lib/hard-locale.c: Include hard-locale.h first.
127636         Include <stdlib.h>, <string.h> unconditionally.
127638         * lib/hash.c (free, malloc): Remove decls.
127639         Include <stdlib.h> unconditionally.
127641         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127642         (getenv): Do not declare.
127644         * lib/idcache.c: Include <string.h> unconditionally.
127646         * lib/long-options.c: Include long-options.h first, to test interface.
127647         Include <stdlib.h> unconditionally.
127649         * lib/makepath.c: Include makepath.h first, to test interface.
127650         Include <stdlib.h> and <string.h> unconditionally.
127652         * lib/linebuffer.c: Include <stdlib.h>.
127653         (free): Remove decl.
127655         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127656         stddef.h. rpl_malloc returns void *, not char *.
127657         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127658         prototype.
127660         * lib/md5.h: Include <limits.h> unconditionally.
127661         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127662         (__P): Remove; all uses removed.
127663         * lib/md5.c: Include "md5.h" first.
127664         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127665         md5_buffer, md5_process_bytes, md5_process_block):
127666         Define with prototypes.
127667         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127668         * lib/sha.c: Include "sha.h" first.
127669         Include <stdlib.h>, <string.h> unconditionally.
127671         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127672         * lib/memcmp.c (__ptr_t): Likewise.
127673         * lib/memrchr.c (__ptr_t): Likewise.
127674         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127675         Include <string.h> unconditionally.
127676         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127677         * lib/memchr.c: Include <stdlib.h> unconditionally.
127678         * lib/memchr.c (LONG_MAX): Remove.
127679         * lib/memrchr.c (LONG_MAX): Likewise.
127680         * lib/memchr.c (__memchr): Define via a prototype.
127681         * lib/memrchr.c (__memrchr): Likewise.
127682         * lib/memcmp.c (__P): Remove, and remove all uses.
127683         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127684         Remove forward decls; no longer needed.
127685         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127686         Use types required by C89 in prototype.
127688         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127689         * lib/savedir.c: Likewise.
127690         * lib/mkdir.c (free): Remove decl.
127691         * lib/rmdir.c (rmdir): Define with a prototype.
127692         * lib/savedir.c: Include savedir.h first, to test interface.
127694         * lib/mktime.c (STDC_HEADERS): Remove.
127695         Include <stdlib.h>, <string.h> unconditionally.
127697         * lib/modechange.c: Include <stdlib.h> unconditionally.
127698         (malloc): Remove decl.
127700         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127701         (free): Remove decl.
127703         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127704         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127705         (This type really should be intptr_t, but that's a C99ism.)
127706         (_obstack_memcpy): Remove: all uses changed to memcpy.
127707         Include <string.h> unconditionally.
127708         (struct obstack): Assume __STDC__ for types of members
127709         chunkfun, freefun, extra_arg.
127710         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127711         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127712         obstack_begin, obstack_specify_allocation,
127713         obstack_specify_allocation_with_arg, obstack_chunkfun,
127714         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127715         Remove unprototyped decls and the macros that use them.
127716         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127717         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127718         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127719         (defined __STDC__ && __STDC__)]:
127720         Remove nonprototyped code.
127721         Include <stdlib.h> unconditionally.
127722         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127723         _obstack_allocated_p, _obstack_free, obstack_free,
127724         _obstack_memory_used, print_and_abort):
127725         Define using prototypes.
127726         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127727         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127728         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127729         obstack_next_free, obstack_object_size, obstack_room) [0]:
127730         Remove unused, unprototyped code.
127732         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127734         * lib/physmem.c (physmem_total, physmem_available, main): Define
127735         with prototypes.
127737         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127738         (main): Define with a prototype.
127740         * lib/posixver.c (getenv): Remove decl.
127742         * lib/putenv.c (malloc): Returns void *, not char *.
127743         Include <string.h> unconditionally.
127744         (strchr, memcpy, NULL): Do not define.
127746         * lib/readtokens.c: Include readtokens.h first, to test interface.
127747         Include <stdlib.h>, <string.h> unconditionally.
127748         (init_tokenbuffer): Define with a prototype.
127750         * lib/regex.c (PARAMS): Remove.  All uses removed.
127751         All uses of _RE_ARGS removed, too.
127752         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127753         unconditionally.
127754         (bzero): Assume memset exists.
127755         (memcmp, memcpy, NULL): Remove.
127756         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127757         char, or assignments to local vars of type signed char.
127758         (init_syntax_once, PREFIX(extract_number_and_incr),
127759         PREFIX(print_partial_compiled_pattern),
127760         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127761         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127762         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127763         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127764         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127765         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127766         wcs_compile_range, byte_compile_range, truncate_wchar,
127767         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127768         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127769         count_mbs_length, wcs_re_match_2_internal,
127770         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127771         PREFIX(alt_match_null_string_p),
127772         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127773         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127774         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127775         now-unnecessary declaration, if any.
127776         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127777         regcomp, regexec):
127778         Remove now-unnecessary casts among pointer types.
127779         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127781         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127782         (free): Remove decl.
127784         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127786         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127787         (free): Remove decl.
127789         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127790         * lib/xgetcwd.c: Likewise.
127792         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127793         (free): Remove decl.
127795         * lib/strchrnul.c (strchrnul): Define with a prototype.
127796         Fix bug: c_in was not converted to char before searching.
127798         The following changes are not K&R related:
127800         * lib/group-member.h: Include <sys/types.h>, so that this file is
127801         self-contained.
127802         * lib/makepath.h: Likewise.
127804         * lib/getusershell.c (readname, default_index, line_size, readname):
127805         Use size_t, not int, for sizes.
127806         (readname): If the size overflows, report an error instead of
127807         looping forever.
127809 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127811         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127812         libc.
127814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127816         * README: New section: portability guidelines.
127818 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127820         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127821         C89 spec.
127823 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127825         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127827 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127829         Assume C89 or better; remove K&R cruft.
127830         A few of these changes were first proposed by Derek Robert Price
127831         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127833         * lib/addext.c: Include <string.h> unconditionally.
127834         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127835         Don't declare getenv or malloc.
127837         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127838         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127839         (NULL): Remove.
127840         (find_stack_direction, alloca): Use prototypes.
127842         * lib/atexit.c (atexit): Define using a prototype.
127844         * lib/basename.c, dirname.c, stripslash.c:
127845         Include <string.h> unconditionally.
127847         * lib/bcopy.c: Include <stddef.h>.
127848         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127850         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127852         * lib/error.h (error, error_at_line, error_print_progname)
127853         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127854         * lib/error.c: Include error.h first, to check interface.
127855         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127856         (VA_START): Remove; all uses changeed to va_start.
127857         (exit, strerror): Remove decls.
127858         (error_print_progname): Prototype uncondionally.
127859         Don't include <errno.h>; no longer needed.
127860         (private_strerror): Remove.
127861         (error_tail): Always define.
127862         (error, error_at_line): Assume C89 or better; always use prototypes.
127863         * lib/fatal.c: Include "fatal.h" first, to test interface.
127864         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127865         (VA_START): Remove; all uses changed to va_start.
127866         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127867         this case.
127868         (exit): Remove decl.
127869         (fatal): Prototype unconditionally.  Assume va_start works.
127870         Abort at end, to pacify gcc.
127872         * lib/euidaccess.c (main): Define with a prototype.
127874         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127876         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127878         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127879         prototypes.
127880         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127881         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127882         (getenv): Remove decl.
127883         (fnmatch): Define using a prototype.
127884         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127885         (FCT): Define using a prototype.
127887         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127889         * lib/gethostname.c: Include <stddef.h>.
127890         (gethostname): Define with prototype.  Length is size_t, not int.
127892 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127894         Assume C89 or better; remove K&R cruft.
127895         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127896         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127897         string.h, getenv, malloc.
127898         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127899         headers.
127900         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127901         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127902         do not check for strerror.
127903         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127904         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127905         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127906         do not check for doprnt or vprintf.
127907         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127908         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127910 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127912         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127913         getversion.c should have been removed then, but was accidentally
127914         preserved.
127916         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127917         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127919 2003-09-08  Karl Berry  <karl@gnu.org>
127921         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127922                 config, forget about prep.
127924         * config/depcomp, missing: update from automake.
127926 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127928         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127929         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127931 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127933         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127934         copy_tm_result.  Bug reported by Simon Josefsson in
127935         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127937 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127939         * m4/time_r.m4: New file.
127940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127941         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127942         is. Check for timegm declaration.
127943         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127944         Do not check for gmtime_r.
127945         Replace mktime if __mktime_internal does not exist and if mktime
127946         hasn't been replaced already.
127948 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127950         * lib/time_r.c, lib/time_r.h: New files.
127952         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127953         __localtime_r.
127954         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127955         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127957         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127958         __gmtime_r.
127959         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127960         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127961         Include <time_r.h>.
127963         * lib/timegm.c: Switch to glibc implementation, with the following
127964         changes:
127965         [defined HAVE_CONFIG_H]: Include <config.h>.
127966         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127967         (__mktime_internal) [!defined _LIBC]: New decl.
127968         (__gmtime_r) [!defined _LIBC]: New macro and function.
127969         (timegm): Use a prototype, since gnulib assumes C89.
127970         Do not bother declaring tmp to be const, as it's not really usefu.
127971         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127972         (timegm): Declare only if HAVE_DECL_TIMEGM.
127974 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127976         * MODULES.html.sh (func_all_modules): Add time_r.
127977         * modules/time_r: New file.
127978         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127979         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127981 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127983         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127984         Bug reported by Lute Kamstra in
127985         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127987         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127988         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127989         course with correspondingly smaller numbers for tomorrow and
127990         yesterday.  From Tadayoshi Funaba.  Originally installed into
127991         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127992         coreutils merge?).
127994 2003-08-31  Simon Josefsson  <jas@extundo.com>
127996         * modules/timegm: New file.
127997         * MODULES.html.sh (func_all_modules): Add timegm.
127999 2003-08-31  Simon Josefsson  <jas@extundo.com>
128001         * m4/timegm.m4: New file.
128003 2003-08-31  Simon Josefsson  <jas@extundo.com>
128005         * lib/timegm.h: New file.
128006         * lib/timegm.c: New file.  Based on
128007         wget-1.8.2/src/http.c:mktime_from_utc.
128009 2003-08-31  Karl Berry  <karl@gnu.org>
128011         * lib/argp.h: update from libc.
128013 2003-08-28  Bruno Haible  <bruno@clisp.org>
128015         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
128016         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
128017         followed by '#define fnmatch fnmatch_posix' gives an error.
128019 2003-08-28  Bruno Haible  <bruno@clisp.org>
128021         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
128022         warning on QNX, which defines O_BINARY to 000000.
128024 2003-08-27  Jim Meyering  <jim@meyering.net>
128026         * m4/mkstemp.m4: Require that the system mkstemp be able to create
128027         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
128028         would fail after 32.  Reported by Danny Levinson.  Details here:
128029         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
128031 2003-08-24  Bruno Haible  <bruno@clisp.org>
128033         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
128034         MSVC7 <stdio.h> is included later.
128036 2003-08-22  Simon Josefsson  <jas@extundo.com>
128038         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
128040 2003-08-20  Karl Berry  <karl@gnu.org>
128042         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
128044 2003-08-20  Bruno Haible  <bruno@clisp.org>
128046         * modules/progname: New file.
128047         * MODULES.html.sh (func_all_modules): Add progname.
128049 2003-08-20  Bruno Haible  <bruno@clisp.org>
128051         * lib/progname.h: New file, from GNU gettext.
128052         * lib/progname.c: New file, from GNU gettext.
128053         * lib/progreloc.c: New file, from GNU gettext.
128055 2003-08-19  Jim Meyering  <jim@meyering.net>
128057         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
128058         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
128060 2003-08-19  Bruno Haible  <bruno@clisp.org>
128062         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
128063         more.
128065 2003-08-19  Bruno Haible  <bruno@clisp.org>
128067         * lib/xstrdup.c: Assume <string.h> exists.
128069 2003-08-18  Paul Eggert  <eggert@twinsun.com>
128071         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
128072         in makefile rules.
128074 2003-08-18  Jim Meyering  <jim@meyering.net>
128076         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
128077         * m4/lib-ld.m4: Likewise.
128079 2003-08-18  Jim Meyering  <jim@meyering.net>
128081         * lib/setenv.h: Indent nested cpp directive.
128082         * lib/vasnprintf.c: Remove trailing blanks.
128084 2003-08-17  Simon Josefsson  <jas@extundo.com>
128086         * modules/xstrndup: New file.
128087         * MODULES.html.sh (func_all_modules): Add xstrndup.
128089 2003-08-17  Simon Josefsson  <jas@extundo.com>
128091         * modules/argp: Fix autoconf macro name. Add more dependencies.
128093 2003-08-17  Simon Josefsson  <jas@extundo.com>
128095         * m4/xstrndup.m4: New file.
128097 2003-08-17  Simon Josefsson  <jas@extundo.com>
128099         * m4/argp.m4: New file.
128101 2003-08-17  Simon Josefsson  <jas@extundo.com>
128102             Bruno Haible  <bruno@clisp.org>
128104         * lib/xstrndup.h: New file.
128105         * lib/xstrndup.c: New file.
128107 2003-08-17  Bruno Haible  <bruno@clisp.org>
128109         * modules/strndup (Files, Include): Add lib/strndup.h.
128111 2003-08-17  Bruno Haible  <bruno@clisp.org>
128113         * modules/euidaccess (Files): Add lib/euidaccess.h.
128115 2003-08-17  Bruno Haible  <bruno@clisp.org>
128117         * lib/strndup.h: New file.
128119 2003-08-17  Bruno Haible  <bruno@clisp.org>
128121         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
128122         like AC_GNU_SOURCE.
128123         * modules/extensions (configure.ac): Comment out the invocation of
128124         gl_USE_SYSTEM_EXTENSIONS.
128126 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128128         Merges from coreutils, etc.
128129         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
128130         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
128131         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
128132         fixing a typo.
128133         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
128134         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
128136 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128138         Document merge from coreutils.
128139         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
128140         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
128141         * modules/utime: Add m4/utimes-null.m4.
128143 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128145         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
128146         space, undoing this 2003-08-12 change:
128147         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128149 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128151         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
128152         strtoul.c from libc, undoing this 2003-08-12 change:
128153         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128155 2003-08-16  Jim Meyering  <jim@meyering.net>
128157         Merges from coreutils.
128158         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
128159         prefix.  Adjust cache variables similarly.  Create 500 rather than
128160         just 300 files, to exercise bug on Darwin6.5, too.
128161         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
128162         $missing_dir.
128163         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
128164         AM_SYS_POSIX_TERMIOS.
128165         Reported by mkc@mathdogs.com.
128166         Also change use of $am_cv_sys_posix_termios
128167         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
128168         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
128169         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
128170         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
128171         in /proc/mounts until it finds one with matching device number.  This
128172         is unnecessary when the FILE argument *is* a mount point.  No stat call
128173         is necessary in that case.  So, disable the statvfs-testing code on
128174         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
128175         as RedHat bug# 84846.
128176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128177         to 1MB, so as not to render systems with no stack size limit (e.g.,
128178         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128179         Include <unistd.h>.  On some systems,
128180         it is required for the definition of _SC_PAGESIZE.
128182 2003-08-16  Jim Meyering  <jim@meyering.net>
128184         Merge from coreutils.
128185         * lib/xstrtoimax.c: #else #if -> #elif.
128186         * lib/xstrtoumax.c: Likewise.
128188 2003-08-16  Jim Meyering  <jim@meyering.net>
128190         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
128191         * m4/utimes.m4: Removed.
128192         * m4/utimes-null.m4: Renamed from utimes.m4.
128194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128195         to 1MB, so as not to render systems with no stack size limit (e.g.,
128196         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128197         Include <unistd.h>.  On some systems,
128198         it is required for the definition of _SC_PAGESIZE.
128200 2003-08-16  Jim Meyering  <jim@meyering.net>
128201         and Paul Eggert  <eggert@cs.ucla.edu>
128203         Merges from coreutils, etc.
128205         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
128206         using the latest version from cvs.  This avoids problems with #line
128207         directives using a vendor (Sun) compiler.
128208         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
128209         Don't set GETGROUPS_LIB here; now it's
128210         done via getgroups.m4's wrapper function.
128211         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
128212         rather than just in sh-util/configure.in, so that the
128213         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
128214         same.
128215         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
128216         AC_FUNC_GETLOADAVG where to find getloadavg.c.
128217         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
128218         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
128219         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
128220         Remove code that is now done by the newly-required macros.
128221         Append $(EXEEXT) to DF_PROG.
128222         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
128223         Do not invoke or require the following here,
128224         since prereq.m4 or some gnulib .m4 now does this for us:
128225         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
128226         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
128227         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
128228         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
128229         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
128230         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
128231         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
128232         AC_FUNC_OBSTACK.
128233         Do not replace the following functions, as this is now the job
128234         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
128235         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
128236         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
128237         atexit getpass, strdup, getpagesize.
128238         Replace 'raise'.
128239         Do not check for the following functions, as this is now the job
128240         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
128241         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
128242         setregid.
128243         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
128244         Check for sys/sysctl.h.
128245         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
128246         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
128247         of checking for ssize_t ourselves.
128249         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
128250         Require every macro that gnulib/modules/* suggests for us.
128251         (jm_PREREQ_ADDEXT): New macro.
128252         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
128253         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
128255         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
128256         (gl_PHYSMEM): Use it.
128257         Also check for `table' function.
128258         Check for new headers and functions.
128259         Add check for sys/sysmp.h.
128260         With suggestions from Kaveh Ghazi.
128261         Ignore headers that are present but cannot be compiled.  This
128262         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
128263         C 5.4.
128265 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128267         Document merge from coreutils.
128268         * modules/userspec: Depend on posixver.
128269         * modules/strftime: Depend on tzset.
128271 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128273         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
128274         rather than tab, after '#' in shell-script copyright notices.
128275         Suggested by Bruno Haible.
128277 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128279         * config/srclist-update: Use three spaces, rather than tab, after '#'
128280         in shell-script copyright notices.  Suggested by Bruno Haible.
128281         Remove unnecessary parenthesization in regular expression.
128283 2003-08-15  Jim Meyering  <jim@meyering.net>
128285         Merge from coreutils.
128286         * lib/xgethostname.c: Include <stdlib.h>.
128287         (xghostname): Don't exit for anything other than memory-related
128288         failure; just return NULL.
128289         * lib/userspec.c: Include "posixver.h".
128290         (parse_user_spec): Accept `.' as a separator only
128291         in pre-POSIX-200112 mode.
128292         * lib/strtoimax.c: Use #elif rather than #else #if.
128293         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
128294         Remove function, now that we can rely on a working tzset function.
128295         [!_LIBC]: Ensure that the required autoconf test has been run.
128296         [!defined _NL_CURRENT && HAVE_STRFTIME]:
128297         Use underlying_strftime for %r.
128298         * lib/sha.c: Merge in some clean-up and optimization changes from
128299         glibc.
128300         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
128301         Ensure that it is a multiple of 64.
128302         Rearrange loop exit tests so as to avoid performing an
128303         additional fread after encountering an error or EOF.
128304         * lib/realloc.c: Update copyright date.
128306 2003-08-15  Jim Meyering  <jim@meyering.net>
128307         and Paul Eggert  <eggert@twinsun.com>
128309         Merge from coreutils.
128310         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
128311         member but strut utmpx does not.  Needed for AIX 4.3.3.
128312         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
128314 2003-08-15  Jim Meyering  <jim@meyering.net>
128315         and Paul Eggert  <eggert@cs.ucla.edu>
128317         Merges from coreutils, etc.
128318         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
128319         Require gl_FUNC_TZSET_CLOBBER.
128320         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
128321         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
128322         members.
128324 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128326         Help the merge from coreutils.
128327         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128328         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128329         * m4/tzset.m4: Use it too.
128331 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128333         * modules/tzset: New file.
128335 2003-08-14  Jim Meyering  <jim@meyering.net>
128337         Merges from coreutils.
128338         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128339         variable names, rather than @FNMATCH_H@.
128340         * modules/alloca: Likewise for $(ALLOCA_H).
128342         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128343         the three copies of the literal target, `fnmatch.h'.
128344         * modules/alloca (alloca.h): Likewise.
128346 2003-08-14  Jim Meyering  <jim@meyering.net>
128348         Merge from coreutils.
128349         * m4/tzset.m4: New file.
128350         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128351         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128352         otherwise, AIX 5.1 systems would end up using the latter.
128353         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128354         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128355         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128356         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128358 2003-08-14  Jim Meyering  <jim@meyering.net>
128360         Merge from coreutils.
128361         * lib/obstack.h: Whitespace changes.
128362         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128363         and xcalloc return values.
128364         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128365         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128366         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128367         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128368         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128369         error from mntctl.
128370         Use mntctl's return value to drive the entry-processing loop, since
128371         we can't rely on the value of the vmt_length member in the last
128372         entry.  On some systems doing so could result in exhausting
128373         virtual memory.  Based in part on a patch from Mike Jetzer.
128375 2003-08-14  Jim Meyering  <jim@meyering.net>
128376         and Paul Eggert  <eggert@twinsun.com>
128378         Merges from coreutils, plus other fixes.
128379         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128380         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128381         for credits and details.  Thanks to Kaveh Ghazi for helping
128382         to keep these files in sync.
128383         (ARRAY_SIZE): Define it.
128384         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128385         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128386         (memcasecmp): Don't assume size_t fits in unsigned int.
128387         Remove casts and duplicate code.
128388         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128389         (memcpy): Remove definition.
128390         Merge in some clean-up and optimization changes from glibc.
128391         [BLOCKSIZE]: Move definition to top of file.
128392         Ensure that it is a multiple of 64.
128393         Rearrange loop exit tests so as to avoid performing an
128394         additional fread after encountering an error or EOF.
128395         * lib/md5.h (md5_uintptr): Define.
128396         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128397         return to the initial working directory.  Preserve errno
128398         for caller.
128399         * lib/idcache.c: Include "xalloc.h".
128400         (xmalloc, xrealloc): Remove decls.
128401         (getuser): Remove casts no longer required in C89.
128402         * lib/human.c: Include stdio.h, for sprintf.
128403         * lib/group-member.c: Include "xalloc.h".
128404         (xmalloc, xrealloc): Remove decls.
128405         (get_group_info): Remove casts no longer required in C89.
128406         * lib/getusershell.c (readname): Remove casts no longer required in
128407         C89.
128408         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128409         * lib/getline.c: Whitespace fix, from coreutils.
128411 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128413         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128414         Check for isascii.
128416         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128417         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128418         Undo previous (whitespace-only) change.
128420 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128422         * lib/exclude.c: Include <ctype.h>
128423         (IN_CTYPE_DOMAIN): New macro.
128424         (is_space): New fn.
128425         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128426         and empty lines.
128428         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128429         Undo previous (whitespace-only) change.
128431 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128433         * config/srclist-update: Change update back to the old behavior,
128434         leaving whitespace alone.  Use one 'sed' command rather than a
128435         pipeline.
128436         (fixlicense): Now a variable, not a function.
128437         (remove_trailing_blanks): Remove.
128438         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128439         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128440         Undo previous (whitespace-only) change.
128442 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128444         Merge from coreutils.
128445         * modules/euidaccess: Add lib_SOURCES, include for new
128446         file euidaccess.h
128448 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128450         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128451         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128452         Normalize leading white space and remove trailing white space.
128454         Merge from coreutils
128455         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128457         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128458         0.12.1.  These files are now being upgraded automatically by
128459         ../config/srclist-update.
128461 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128463         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128464         Normalize leading white space and remove trailing white space.
128465         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128466         notice, as per ../config/srclist-update.
128468         Merge from coreutils.
128469         * lib/euidaccess.h: New file.
128470         * lib/euidaccess.c: Include it.
128471         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128472         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128473         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128475 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128477         * config/srclist-update: Add copyright notice.
128478         (remove_id_lines, remove_trailing_blanks): New constants.
128479         (fixfile): Use them to normalize spacing a bit in copied files.
128480         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128481         Normalize leading white space and remove trailing white space.
128483         * config/texinfo.tex: Sync with texinfo.
128485         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128486         strtoul.c from libc, to merge coreutils whitespace changes.
128488         * config/srclist.txt: Get the following m4 files from gettext:
128489         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128490         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128491         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128492         wint_t.m4.
128494 2003-08-12  Karl Berry  <karl@gnu.org>
128496         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128497         been made.
128499 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128501         * modules/gnu-source, m4/gnu-source.m4:
128502         Remove; we're assuming Autoconf 2.54 or later now.
128503         Suggested by Bruno Haible.
128504         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128506 2003-08-11  Bruno Haible  <bruno@clisp.org>
128508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128510 2003-08-11  Bruno Haible  <bruno@clisp.org>
128512         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128513         (vasnprintf): Use it instead of wcslen.
128515 2003-08-11  Bruno Haible  <bruno@clisp.org>
128517         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128518         value to ensure that _Bool promotes to int. Use #define for _Bool when
128519         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128521 2003-08-10  Karl Berry  <karl@gnu.org>
128523         * lib/regex.h: update from libc (whitespace fix).
128525 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128527         Merge some files from coreutils.  These changes were
128528         originally made by Jim Meyering.
128529         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128530         many older Unixes require this.
128531         * lib/alloca.c (alloca): Remove cast to argument of free;
128532         no longer needed in C89.
128533         * lib/alloca_.h, regex.h: Fix white space to match
128534         what GNU indent does.
128536 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128538         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128539         apparently Emacs's Unicode mode got confused before my 2003-08-05
128540         checkin.
128542 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128544         * m4/extensions.m4: New file.
128545         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128546         Require gl_USE_SYSTEM_EXTENSIONS.
128547         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128548         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128550 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128552         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128553         * modules/extensions, modules/gnu-source: New files.
128554         * modules/timespec, modules/unlocked-io: Depend on extensions.
128556 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128558         * modules/restrict: New file.
128559         * MODULES.html.sh (func_all_modules): Add restrict.
128560         * modules/regex: Depend on restrict.
128562 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128564         * m4/restrict.m4: New file.
128565         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128567 2003-08-07  Bruno Haible  <bruno@clisp.org>
128569         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128570         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128572 2003-08-07  Bruno Haible  <bruno@clisp.org>
128574         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128575         makes the module 'getndelim2' compatible with the module 'getline'.
128577 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128579         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128580         byte with "\201" to avoid glitches when editing that source file
128581         with multi-gnome-terminal.
128583 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128585         * lib/bumpalloc.h: Remove.
128587 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128589         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128590         * modules/bumpalloc: Remove.
128592 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128594         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128595         GNU coding style.
128597         Merge from coreutils.
128598         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128599         1. From glibc.
128600         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128601         from Karl Berry, implemented by Jim Meyering.
128602         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128603         from Dmitry V. Levin.
128604         Remove anachronistic cast of xrealloc.
128605         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128606         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128607         type. Otherwise, it wouldn't compile with at least /bin/cc on
128608         ymp-cray-unicos9.0.2.X.
128609         Combine two mostly-identical uses of alloca into one.
128610         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128612 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128614         [From Emacs.]
128616         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128617         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128618         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128619         obsolete NLIST_NAME_UNION.
128620         [__GNU__]: Undef BSD and FSCALE.
128621         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128623 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128625         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128626         an enum type, so that it's guaranteed to promote to int.  See:
128627         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128629 2003-08-03  Karl Berry  <karl@gnu.org>
128631         * config/depcomp: update from automake.
128633 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128635         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128636         (strerror): Don't assume that a printable int fits in 14 bytes.
128638 2003-07-31  Bruno Haible  <bruno@clisp.org>
128640         * modules/getpass-gnu: New file.
128641         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128643 2003-07-31  Bruno Haible  <bruno@clisp.org>
128645         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128647 2003-07-24  Karl Berry  <karl@gnu.org>
128649         * config/missing: update from automake.
128651 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128652             Bruno Haible  <bruno@clisp.org>
128654         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128655         * lib/getline.c (getline, getdelim): Likewise.
128656         Remove _GNU_SOURCE define; now it's defined in config.h through
128657         m4/getline.m4.
128659 2003-07-23  Karl Berry  <karl@gnu.org>
128661         * config/config.sub: update from prep.
128663 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128665         * modules/xalloc (Depends-on): Add exitfail.
128666         * modules/xmemcoll: Likewise.
128668 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128670         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128671         over-parenthesization in macros.
128673         Sync with coreutils.
128675         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128676         required by C99.
128678         Use `exit_failure' for xalloc and xmemcoll instead of their own
128679         private exit-failure variables.
128680         * lib/xalloc.h (xalloc_exit_failure): Remove.
128681         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128682         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128683         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128684         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128685         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128687 2003-07-20  Jim Meyering  <jim@meyering.net>
128689         * modules/closeout (Depends-on): Add exitfail.
128690         Suggestion from Bruno Haible.
128692 2003-07-19  Karl Berry  <karl@gnu.org>
128694         * config/config.sub: update from prep.
128696 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128698         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128699         Remove.
128700         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128701         to test that it can stand by itself.  Include "exitfail.h".
128702         Clients should set exit_failure instead.
128703         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128705 2003-07-18  Bruno Haible  <bruno@clisp.org>
128707         * modules/getndelim2: New file.
128708         * modules/getline: Share files with module getndelim2.
128709         * modules/getnline: Depend on getndelim2 instead of sharing files with
128710         it. Add getnline.c to lib_SOURCES.
128711         * MODULES.html.sh (func_all_modules): Add getndelim2.
128713 2003-07-18  Bruno Haible  <bruno@clisp.org>
128715         * m4/getndelim2.m4: New file.
128716         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128717         invoke gl_PREREQ_GETNDELIM2.
128718         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128719         gl_PREREQ_GETNDELIM2.
128720         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128721         gl_GETNDELIM2.
128723 2003-07-18  Bruno Haible  <bruno@clisp.org>
128725         * lib/getndelim2.h: New file.
128726         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128727         getndelim2.h.
128728         (getndelim2): Make non-static. Change return type to ssize_t.
128729         * lib/getline.h: Change argument names.
128730         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128731         * lib/getnline.c: Include getndelim2.h.
128733 2003-07-18  Andreas Schwab  <schwab@suse.de>
128735         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128737 2003-07-17  Karl Berry  <karl@gnu.org>
128739         * config/config.sub: update from prep.
128741 2003-07-17  Bruno Haible  <bruno@clisp.org>
128743         * modules/getnline: New file.
128744         * modules/getline: Add lib/getndelim2.c to source file list.
128745         * MODULES.html.sh (func_all_modules): Add getnline.
128747 2003-07-17  Bruno Haible  <bruno@clisp.org>
128749         * m4/getnline.m4: New file.
128751 2003-07-17  Bruno Haible  <bruno@clisp.org>
128753         * m4/Makefile.am.in: Remove file.
128754         * m4/Makefile.am: Remove file.
128755         * m4/Makefile.in: Remove file.
128757 2003-07-17  Bruno Haible  <bruno@clisp.org>
128759         * lib/getnline.h: New file.
128760         * lib/getnline.c: New file.
128761         * lib/getndelim2.c: New file, extracted from getline.c.
128762         (getndelim2): Renamed from getdelim2, with added nmax argument.
128763         * lib/getline.c: Include getndelim2.c.
128764         (getdelim2): Moved out to getndelim2.c.
128765         (getline, getdelim): Update.
128767 2003-07-17  Bruno Haible  <bruno@clisp.org>
128769         * lib/Makefile.am: Remove file.
128770         * lib/Makefile.in: Remove file.
128772 2003-07-17  Bruno Haible  <bruno@clisp.org>
128774         * configure.in: Remove file.
128775         * Makefile.in: Remove file.
128777 2003-07-17  Bruno Haible  <bruno@clisp.org>
128779         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128781 2003-07-16  Karl Berry  <karl@gnu.org>
128783         * config/srclist-update: was running fixlicense twice, which caused
128784                 texinfo.tex to be nullified for some reason.  Simplify,
128785                 $gplsrc is no longer needed as far as I can see?
128787 2003-07-16  Jim Meyering  <jim@meyering.net>
128789         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128791 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128793         * config/srclist.txt: Get the following files from gettext-runtime/intl
128794         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128795         ref-del.sin.  From Bruno Haible.
128796         * config/srclist-update (fixfile): Change grep pattern again, since the
128797         previous fix didn't work (there was another trailing $).  Use
128798         '[$]' to escape the $s.
128800 2003-07-15  Karl Berry  <karl@gnu.org>
128802         * lib/vasnprintf.c: update from gettext.
128804 2003-07-15  Karl Berry  <karl@gnu.org>
128806         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128807         gets expanded when surrounded by '$'.
128809 2003-07-15  Jim Meyering  <jim@meyering.net>
128811         * modules/save-cwd: Don't depend on error.  From Derek Price.
128813 2003-07-15  Jim Meyering  <jim@meyering.net>
128815         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128817 2003-07-14  Simon Josefsson  <jas@extundo.com>
128819         * modules/mempcpy: New file.
128820         * MODULES.html.sh (func_all_modules): Add mempcpy.
128822 2003-07-14  Simon Josefsson  <jas@extundo.com>
128824         * m4/mempcpy.m4: New file.
128826 2003-07-14  Simon Josefsson  <jas@extundo.com>
128828         * lib/mempcpy.h: New file.
128829         * lib/mempcpy.c: New file.
128831 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128833         * modules/getdate, modules/posixtm: Depend on mktime.
128835 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128837         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128838         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128839         unicodeio.c, unicodeio.h, unlocked-io.h:
128840         Switch from LGPL to GPL.
128842 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128844         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128845         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128846         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128847         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128848         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128849         updated automatically by ../config/srclist-update.  This changes
128850         their license from LPGL to GPL.
128852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128854         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128855         assumed to refer to the root of the most recent stable gettext version.
128856         * config/srclistvars.sh: Add defaults for eggert.
128857         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128858         Match "This program" as well as "The program".  This is needed
128859         for gettext.
128861 2003-07-14  Jim Meyering  <jim@meyering.net>
128863         Don't emit diagnostics.  Let callers do that.
128864         * lib/save-cwd.c: Don't include "error.h".
128865         (save_cwd): Don't call error.  Ensure that errno is valid
128866         when returning nonzero.
128868         * lib/save-cwd.h (restore_cwd): Update prototype.
128869         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128870         Simplify.  Don't call error upon failure.  Let callers do that.
128871         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128872         when auditing is enabled.  But don't bother updating the #if.
128874 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128876         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128877         it breaks C++ compilation.
128878         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128880 2003-07-10  Simon Josefsson  <jas@extundo.com>
128882         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128884 2003-07-10  Jim Meyering  <jim@meyering.net>
128886         * m4/clock_time.m4: Remove trailing blank.
128887         * m4/intmax_t.m4: Likewise.
128889 2003-07-10  Jim Meyering  <jim@meyering.net>
128891         * lib/vasnprintf.c: Remove trailing blanks.
128892         Make cpp indentation consistent.
128894 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128896         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128897         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128898         Switch from LGPL to GPL.
128900 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128902         * config/srclist.txt: Sort sublists.  Add
128903         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128904         that differ from gnulib for one reason or another; we'd like this list
128905         to be smaller but for now let's document what we have.
128907 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128909         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128910         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128911         and sweeter "eval x=$x".
128912         * config/srclist.txt: Get lib/argp* from glibc.
128914 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128916         * lib/mktime.c: Fix some boundary cases and remove need for floating
128917         point.
128919         Issue a compile-time diagnostic if time_t is floating point, or if
128920         two's complement arithmetic is not in effect, or if arithmetic
128921         right shift does not propagate the sign.  These assumptions were
128922         all in the original code but they weren't checked.
128924         (TIME_T_MIDPOINT, verify): New macros.
128925         (__isleap): Remove; it has integer overflow problems.
128926         (leapyear): New function, without those problems.
128927         (ydhms_tm_diff): Remove; splitting into two parts.
128928         (ydhms_diff): New function, containing the arithmetic part of
128929         the old ydhms_tm_diff function.  Issue a compile-time
128930         diagnostic if we are not using C99 integer division.
128931         Avoid casts when possible.
128932         (guess_time_tm): New function, containing the checking part of
128933         the old ydhms_tm_diff function.  Return the new value, rather than
128934         the difference between it and the old.  Accept a new argument T
128935         so that *T specifies the old value.  Check for overflow in the result.
128937         (__mktime_internal): Use a time_t offset, not a long int offset.
128938         This undoes the 2003-06-04 change, which is no longer needed now
128939         that we have better overflow checking.
128940         (localtime_offset): Likewise.
128942         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128943         and long are 64-bit but int is only 32-bit.
128944         (ydhms_diff): Use long int to store year1 and yday1.
128945         Issue a compile-time diagnostic if long int is not wide enough.
128947         (__mktime_internal): Use long int to store adjusted year and yday.
128948         Use plain C rather than preprocessor commands, if that doesn't
128949         affect efficiency.
128950         Check for overflow (and try to repair) after each probe
128951         rather than checking only at the very end.  This avoids some bugs
128952         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128953         does not equal GMT offset at maximum time).
128954         Use integer to check for overflow rather than floating point; this
128955         is more portable to non-IEEE hosts, and is a tad faster.
128956         When we detect that we are oscillating between two values,
128957         don't check whether tm_isdst has the requested value, since
128958         we already know the answer.  When tm_isdst has the wrong value,
128959         use a different heuristic to find the right one, based on the
128960         extreme values actually observed in practice in tz2003a,
128961         rather than the (overly optimistic) "previous 3 calendar quarters".
128963         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128964         "T const" to accommodate glibc style.
128965         (check_result): Use less-confusing report format.  "long" -> "long int.
128966         (main): Likewise.
128967         Don't loop if the iteration overflows time_t.
128968         Allow a negative step in the iteration.
128970 2003-07-06  Karl Berry  <karl@gnu.org>
128972         * config/depcomp: update from automake.
128973         * config/config.sub: update from prep.
128975 2003-07-03  Karl Berry  <karl@gnu.org>
128977         * config/config.guess: update from prep.
128979 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128981         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128982         xreadlink.c now includes it unconditionally.
128984 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128986         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128987         having it depend on HAVE_SYS_TYPES_H.
128989 2003-07-01  Bruno Haible  <bruno@clisp.org>
128991         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128992         <sys/types.h> should be sufficient.
128993         Reported by Paul Eggert.
128995 2003-06-26  Karl Berry  <karl@gnu.org>
128997         * config/depcomp: update from automake.
128999 2003-06-26  Bruno Haible  <bruno@clisp.org>
129001         * modules/human: Depend on module stdbool.
129003 2003-06-25  Bruno Haible  <bruno@clisp.org>
129005         * modules/readlink: New file.
129006         * modules/xreadlink: Depend on it.
129007         * MODULES.html.sh (func_all_modules): Add readlink.
129009 2003-06-25  Bruno Haible  <bruno@clisp.org>
129011         * m4/readlink.m4: New file.
129013 2003-06-25  Bruno Haible  <bruno@clisp.org>
129015         * lib/readlink.c: New file.
129017 2003-06-22  Karl Berry  <karl@gnu.org>
129019         * config/srclist.txt: update mkinstalldirs from automake.
129020         * config/mkinstalldirs: update.
129022 2003-06-22  Bruno Haible  <bruno@clisp.org>
129024         Portability to mingw32.
129025         * m4/ssize_t.m4: New file, from GNU gettext.
129026         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
129027         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
129029 2003-06-22  Bruno Haible  <bruno@clisp.org>
129031         * modules/safe-read: Add m4/ssize_t.m4.
129032         * modules/xreadlink: Add m4/ssize_t.m4.
129034 2003-06-20  Bruno Haible  <bruno@clisp.org>
129036         Assume C89, so PARAMS isn't needed.
129037         * lib/unicodeio.h (PARAMS): Remove.
129038         * lib/unicodeio.c: Don't use PARAMS.
129040 2003-06-18  Karl Berry  <karl@gnu.org>
129042         * config/config.{guess,sub}: update from prep.
129044 2003-06-18  Jim Meyering  <jim@meyering.net>
129046         Merge changes from coreutils.
129047         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
129048         Remove explicit declarations of xmalloc and realloc.
129049         Include xalloc.h.
129050         (read_utmp): Remove anachronistic cast of xmalloc.
129052 2003-06-17  Paul Eggert  <eggert@twinsun.com>
129054         Assume C89, so PARAMS isn't needed.
129055         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
129056         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
129057         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
129058         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
129059         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
129060         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
129061         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
129062         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
129063         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
129064         lib/xstrtod.h, lib/xstrtol.h: Likewise.
129065         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
129066         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
129067         no longer needed. Anyway, config.h should always be included before any
129068         other file.
129070 2003-06-11  Simon Josefsson  <jas@extundo.com>
129072         * modules/sysexits: New file.
129073         * MODULES.html.sh (func_all_modules): Add sysexits.
129075 2003-06-11  Simon Josefsson  <jas@extundo.com>
129077         * lib/sysexit_.h: New file.
129079 2003-06-11  Derek Price  <derek@ximbiot.com>
129081         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
129082         necessary.
129084 2003-06-11  Bruno Haible  <bruno@clisp.org>
129086         * m4/sysexits.m4: New file.
129088 2003-06-10  Simon Josefsson  <jas@extundo.com>
129090         * lib/argp.h: New file, from glibc.
129091         * lib/argp-ba.c: New file, from glibc.
129092         * lib/argp-eexst.c: New file, from glibc.
129093         * lib/argp-fmtstream.c: New file, from glibc.
129094         * lib/argp-fmtstream.h: New file, from glibc.
129095         * lib/argp-fs-xinl.c: New file, from glibc.
129096         * lib/argp-help.c: New file, from glibc.
129097         * lib/argp-namefrob.h: New file, from glibc.
129098         * lib/argp-parse.c: New file, from glibc.
129099         * lib/argp-pv.c: New file, from glibc.
129100         * lib/argp-pvh.c: New file, from glibc.
129101         * lib/argp-xinl.c: New file, from glibc.
129103 2003-06-10  Simon Josefsson  <jas@extundo.com>
129105         * modules/strchrnul: New file.
129107 2003-06-10  Simon Josefsson  <jas@extundo.com>
129109         * modules/argp: New file.
129111 2003-06-10  Simon Josefsson  <jas@extundo.com>
129113         * m4/strchrnul.m4: New file.
129115 2003-06-10  Simon Josefsson  <jas@extundo.com>
129117         * lib/strchrnul.h: New file.
129118         * lib/strchrnul.c: New file.
129120 2003-06-10  Bruno Haible  <bruno@clisp.org>
129122         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
129124 2003-06-07  Karl Berry  <karl@gnu.org>
129126         * config/config.{guess,sub}: update from prep.
129128 2003-06-07  Jim Meyering  <jim@meyering.net>
129130         * modules/strtod: Use $(...) notation, not @...@ for
129131         AC_REPLACE'd variables.
129132         * modules/localcharset: Likewise.
129134 2003-06-07  Jim Meyering  <jim@meyering.net>
129136         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
129137         in place of my name in the copyright comment.
129138         Remove definition and uses of __P.
129140         From coreutils.
129141         * lib/stat.c: Don't declare xmalloc explicitly.
129142         Instead, include "xalloc.h".
129143         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
129144         xrealloc, and xcalloc return values.
129145         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
129146         Improve comment.
129147         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
129149 2003-06-07  Bruno Haible  <bruno@clisp.org>
129151         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
129152         avoid AC_CONFIG_LINKS.
129153         * modules/fnmatch (Makefile.am): Use explicit creation rule for
129154         fnmatch.h, to avoid AC_CONFIG_LINKS.
129155         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
129157 2003-06-07  Bruno Haible  <bruno@clisp.org>
129159         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
129160         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
129161         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129162         directory.
129163         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
129164         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129165         directory.
129167 2003-06-06  Jim Meyering  <jim@meyering.net>
129169         Merge from coreutils.
129170         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
129171         Consolidate declarations and initializations of *_base* locals.
129173         Merge from coreutils.
129174         This avoids a core dump on systems without GNU putenv,
129175         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
129176         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
129177         (unsetenv): New static function, from GNU libc.
129178         (rpl_putenv): Use it.
129180         * lib/modechange.c: Remove trailing blanks.
129182         Merge from coreutils.
129183         * lib/fsusage.c: Remove declaration of statfs.
129184         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
129186         * lib/posixtm.c: Include <stdbool.h> unconditionally.
129188 2003-06-06  Jim Meyering  <jim@meyering.net>
129190         * lib/stdbool_.h: Renamed from stdbool.h.in.
129192 2003-06-06  Jim Meyering  <jim@meyering.net>
129193             Bruno Haible  <bruno@clisp.org>
129195         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
129196         Adjust Makefile.am snippet not to redirect directly to target.
129197         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
129199 2003-06-05  Paul Eggert  <eggert@twinsun.com>
129201         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
129202         mismatch, look in future quarters as well as past.  This fixes a
129203         bug when processing fall-backwards gaps immediately after a long
129204         period of daylight-saving time.
129206         * lib/mktime.c: Assume freestanding C89 or better.
129207         (HAVE_LIMITS_H): Remove.  Assume it's 1.
129208         (__P): Remove; not used.
129209         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
129210         (mktime, not_equal_tm, print_tm, check_result,
129211         main): Use prototypes.  Use const * where appropriate.
129212         (main): Fix typo in testing code that uncovered by above changes.
129213         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
129215 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129217         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
129218         locale.h, localeconv.  This merges changes from coreutils.
129220         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
129221         It can be removed after the next Autoconf is released.
129222         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
129223         needed.
129225 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129227         * lib/mktime.c: Fix Debian bug 177940
129228         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
129229         (localtime_offset): Now long int, not time_t, because we want it
129230         to be guaranteed to be signed.  All uses changed.
129231         (__mktime_internal): If overflow would occur when adding offset,
129232         don't add it.
129234         Merge 'human' changes from coreutils.  Rewrite to support
129235         locale-specific notations like thousands separators.
129236         * lib/human.c: Simplify authorship notice.
129237         Include human.h immediately after config.h.
129238         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
129239         <limits.h>: Do not include, since human.h does.
129240         (SIZE_MAX, UINTMAX_MAX): New macros.
129241         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
129242         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
129243         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
129244         (power_letter): Renamed from suffixes.
129245         (generate_suffix_backwards): Remove.
129246         (adjust_value): Now takes int style (because of human.h changes)
129247         and long double value (for greater precision on some platforms).
129248         (group_number): New function.
129249         (human_readable): Use it.  Use integer options, not enum.
129250         Put the options before the sizes in the arg list.
129251         Support all the new options.
129252         The old human_readable function has been removed;
129253         use inttostr.h instead.
129254         (human_readable, default_block_size, humblock):
129255         Use uintmax_t, not int, for block sizes.
129256         (human_readable_inexact, block_size_types): Remove.
129257         (block_size_opts): New constant.
129258         (human_options): Renamed from human_block_size, with new signature
129259         that allows block sizes up to UINTMAX_MAX.  All callers changed.
129260         * lib/human.h: Add copyright and authorship notice.
129261         Include <limits.h> and <stdbool.h> unconditionally.
129262         (PARAMS): Remove.  All uses removed.
129263         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
129264         (enum human_inexact_style): Remove tag; now a nameless enum.
129265         (human_floor, human_ceiling, human_round_to_even): Now have
129266         values 2, 0, 1 rather than -1, 1, 0.
129267         (human_group_digits, human_suppress_point_zero, human_autoscale,
129268         human_base_1024, human_SI, human_B): New constants.
129269         (human_readable_inexact, human_block_size): Remove.
129270         (human_readable): Size args are now uintmax_t, not int.
129271         (human_options): New decl.
129273         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
129274         unnecessary now that we assume C89 or better.  This change
129275         imported from coreutils.
129277         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129278         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
129279         in the 2003-05-30 sync from glibc.
129281         .h files should stand alone, but we shouldn't include <sys/types.h>
129282         if we can get away with just <stddef.h>.
129284         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
129285         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
129286         rather than <sys/types.h>, as we merely need size_t.
129287         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
129288         to get size_t.
129289         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
129290         Include <stdio.h>, to get FILE.
129291         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
129292         memcasecmp.h has included <stddef.h> and all we need is size_t.
129293         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
129294         our interface, instead of including <sys/types.h>
129296 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129298         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
129299         now, as glibc mktime is buggy on non-glibc systems.
129301 2003-06-03  Karl Berry  <karl@gnu.org>
129303         * config/config.sub: update from prep.
129305 2003-06-02  Paul Eggert  <eggert@twinsun.com>
129307         [from coreutils]
129308         Fix some minor time-related bugs with POSIX time arguments.
129309         Some valid time stamps were being rejected (notably -1, and
129310         time stamps before 1900 on 64-bit hosts).  And some invalid
129311         time stamps were being accepted, e.g. September 31.
129313         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
129314         that we can return (time_t) -1 successfully.
129315         * lib/posixtm.c: Likewise.
129316         [HAVE_STDBOOL_H]: Include <stdbool.h>.
129317         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
129318         (t): Remove static var.
129319         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
129320         of static var.  All uses changed.
129321         (year): Do not reject years before 1900; they can occur with
129322         64-bit time_t.
129323         (posix_time_parse): Do not check for out-of-range components;
129324         that is now the caller's responsibility, since our checks were
129325         only approximations.
129326         (posixtime): Use mktime to check for out-of-range components,
129327         since it knows them exactly.
129328         If mktime returns (time_t) -1, check whether an error actually occurred
129329         by invoking localtime on -1.
129330         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129331         posixtime failures better.
129332         Improve the test data (in comments only).
129334 2003-06-02  Karl Berry  <karl@gnu.org>
129336         * config/mkinstalldirs (version): new variable.
129337         (--version): new option.
129338         (usage): improve message.
129340 2003-05-30  Karl Berry  <karl@gnu.org>
129342         * lib/mktime.c: update from libc.
129344 2003-05-30  Bruno Haible  <bruno@clisp.org>
129346         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129347         * config/config.rpath: Upgrade to gettext-0.12.1.
129349 2003-05-30  Bruno Haible  <bruno@clisp.org>
129351         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129352         * m4/nls.m4: New file, from gettext-0.12.1.
129353         * m4/po.m4: New file, from gettext-0.12.1.
129354         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129356 2003-05-30  Bruno Haible  <bruno@clisp.org>
129358         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129359         * lib/localcharset.h: Likewise.
129360         * lib/localcharset.c: Likewise.
129362 2003-05-29  Karl Berry  <karl@gnu.org>
129364         * config/config.rpath: update from gettext.
129366 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129368         Assume the headers required for C89 freestanding compilers.
129369         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129370         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129371         * m4/human.m4 (gl_HUMAN): Likewise.
129372         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129373         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129374         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129375         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129377         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129379 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129381         Assume the headers required for C89 freestanding compilers.
129382         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129383         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129384         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129385         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129386         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129387         define, since <limits.h> is guaranteed to do that.
129388         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129389         * lib/exclude.c: Include <stdbool.h> unconditionally.
129390         * lib/tempname.c: Include <stddef.h> unconditionally.
129391         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129392         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129393         <stddef.h> does that.
129394         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129395         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129396         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129397         needed.
129398         * lib/xstrtol.c: Likewise.
129399         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129400         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129402         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129403         warnings on some platforms.
129405         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129406         arbitrarily.
129408 2003-05-26  Jim Meyering  <jim@meyering.net>
129410         Merge in a change from coreutils:
129411         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129412         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129413         that condition, rather than `-1' which is slightly misleading.
129414         Change the name of the cache variable to have the gl_ prefix.
129415         Prompted by a patch from Richard Dawe for DJGPP.
129417 2003-05-24  Karl Berry  <karl@gnu.org>
129419         * config/config.guess: update from prep.
129421 2003-05-22  Karl Berry  <karl@gnu.org>
129423         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129425 2003-05-20  Karl Berry  <karl@gnu.org>
129427         * config/config.guess: update from prep.
129429 2003-05-18  Karl Berry  <karl@gnu.org>
129431         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129432         might actually be set by the user.
129434         * config/depcomp, install-sh, mdate-sh: update from automake.
129436 2003-05-17  Bruno Haible  <bruno@clisp.org>
129438         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129439         invalid expansion for AC_EGREP_CPP.
129440         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129441         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129442         Suggested by Akim Demaille <akim@epita.fr> in
129443         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129445 2003-05-12  Jim Meyering  <jim@meyering.net>
129447         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129448         the space-padded-by-default conversion specifiers, %e, %k, %l.
129450 2003-05-12  Bruno Haible  <bruno@clisp.org>
129452         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129453         the string is longer than 4 KB.
129455 2003-05-11  Karl Berry  <karl@gnu.org>
129457         * config/config.{guess,sub}: update from prep.
129459 2003-05-09  Bruno Haible  <bruno@clisp.org>
129461         * modules/error: Add m4/strerror_r.m4 to file list.
129463 2003-05-03  Bruno Haible  <bruno@clisp.org>
129465         Upgrade to Unicode-4.0.
129466         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129467         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129468         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129469         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129470         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129471         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129472         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129473         Change width of U+E0100..U+E01EF from 1 to 0.
129475 2003-04-25  Jim Meyering  <jim@meyering.net>
129477         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129478         of type size_t, not int.
129480 2003-04-25  Bruno Haible  <bruno@clisp.org>
129482         * lib/copy-file.c: Include <stddef.h>, for size_t.
129484 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129486         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129487         code which expansion is under static control.  Patch imported from
129488         Akim Demaille's patch to Bison; see
129489         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129491 2003-04-14  Bruno Haible  <bruno@clisp.org>
129493         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129495 2003-04-11  Jim Meyering  <jim@meyering.net>
129497         Merge changes from Coreutils.
129499         2003-03-22  Jim Meyering  <jim@meyering.net>
129501         * lib/strftime.c (widen): Cast alloca return value to proper type.
129503         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129505         From GNU libc.
129506         * lib/strftime.c (my_strftime): Handle very large width
129507         specifications for numeric values correctly.  Improve checks for
129508         overflow.
129510         2003-01-19  Jim Meyering  <jim@meyering.net>
129512         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129513         definitions.
129514         (nl_get_alt_digit) [! defined my_strftime]: Define.
129515         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129516         _nl_get_alt_digit and _nl_get_walt_digit.
129518         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129519         libc. These changes have no effect outside of _LIBC.
129521 2003-04-10  Bruno Haible  <bruno@clisp.org>
129523         * modules/findprog: New file.
129524         * MODULES.html.sh (func_all_modules): Add it.
129526 2003-04-10  Bruno Haible  <bruno@clisp.org>
129528         * m4/findprog.m4: New file.
129529         * m4/eaccess.m4: New file.
129531 2003-04-10  Bruno Haible  <bruno@clisp.org>
129533         * lib/findprog.h: New file, from GNU gettext.
129534         * lib/findprog.c: New file, from GNU gettext.
129536 2003-04-05  Jim Meyering  <jim@meyering.net>
129538         Merge changes from Coreutils.
129540         * lib/exclude.h (PARAMS): Remove definition and uses.
129541         * lib/exclude.c: Remove uses of `PARAMS'.
129543         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129544         Add test-cases for DOS filenames. Declare program_name.
129545         (main): Set up program_name.  Patch by Rich Dawe.
129547         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129548         error from mntctl.
129549         Use mntctl's return value to drive the entry-processing loop, since
129550         we can't rely on the value of the vmt_length member in the last
129551         entry.  On some systems doing so could result in exhausting
129552         virtual memory.  Based in part on a patch from Mike Jetzer.
129554 2003-04-04  Bruno Haible  <bruno@clisp.org>
129556         * modules/linebreak: New file.
129557         * MODULES.html.sh (func_all_modules): Add it.
129559 2003-04-04  Bruno Haible  <bruno@clisp.org>
129561         * m4/linebreak.m4: New file.
129563 2003-04-04  Bruno Haible  <bruno@clisp.org>
129565         * lib/linebreak.h: New file, from GNU gettext.
129566         * lib/linebreak.c: New file, from GNU gettext with slight
129567         modifications.
129568         * lib/lbrkprop.h: New file, from GNU gettext.
129570 2003-04-03  Bruno Haible  <bruno@clisp.org>
129572         * modules/utf8-ucs4: New file.
129573         * modules/utf16-ucs4: New file.
129574         * modules/ucs4-utf8: New file.
129575         * modules/ucs4-utf16: New file.
129576         * MODULES.html.sh (func_all_modules): Add them.
129578 2003-04-03  Bruno Haible  <bruno@clisp.org>
129580         * m4/utf-ucs4.m4: New file.
129581         * m4/ucs4-utf.m4: New file.
129583 2003-04-03  Bruno Haible  <bruno@clisp.org>
129585         * lib/utf8-ucs4.h: New file, from GNU gettext.
129586         * lib/utf16-ucs4.h: New file, from GNU gettext.
129587         * lib/ucs4-utf8.h: New file, from GNU gettext.
129588         * lib/ucs4-utf16.h: New file, from GNU gettext.
129590 2003-04-02  Bruno Haible  <bruno@clisp.org>
129592         * modules/binary-io: New file.
129593         * MODULES.html.sh (func_all_modules): Add it.
129595 2003-04-02  Bruno Haible  <bruno@clisp.org>
129597         * lib/binary-io.h: New file, from GNU gettext.
129599 2003-04-01  Bruno Haible  <bruno@clisp.org>
129601         * modules/pathname: New file.
129602         * MODULES.html.sh (func_all_modules): Add it.
129604 2003-04-01  Bruno Haible  <bruno@clisp.org>
129606         * lib/pathname.h: New file, from GNU gettext.
129607         * lib/concatpath.c: New file, from GNU gettext.
129609 2003-03-30  Bruno Haible  <bruno@clisp.org>
129611         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129613 2003-03-30  Bruno Haible  <bruno@clisp.org>
129615         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129616         function chown() doesn't exist.
129618 2003-03-28  Bruno Haible  <bruno@clisp.org>
129620         * modules/copy-file: New file.
129621         * MODULES.html.sh (func_all_modules): Add it.
129623 2003-03-28  Bruno Haible  <bruno@clisp.org>
129625         * m4/copy-file.m4: New file.
129627 2003-03-28  Bruno Haible  <bruno@clisp.org>
129629         * lib/copy-file.h: New file, from GNU gettext.
129630         * lib/copy-file.c: New file, from GNU gettext.
129632 2003-03-18  Jim Meyering  <jim@meyering.net>
129634         * lib/quote.c (quote_n): Fix typo in comment.
129636 2003-03-18  Bruno Haible  <bruno@clisp.org>
129638         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129639         checking.
129640         * m4/onceonly_2_57.m4: Likewise.
129642 2003-03-17  Bruno Haible  <bruno@clisp.org>
129644         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129645         (m4_quote): Remove macro.
129646         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129648 2003-03-14  Jim Meyering  <jim@meyering.net>
129650         Merge changes from Coreutils.
129651         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129652         to be const, in order to avoid warnings.
129653         (obstack_room): Likewise.
129654         (obstack_empty_p): Likewise.
129656 2003-03-14  Bruno Haible  <bruno@clisp.org>
129658         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129659         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129661 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129663         Merge changes from Bison.
129664         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129665         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129666         when compiling Bison 1.875's `bitset bset = obstack_alloc
129667         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129668         * lib/hash.c: Include <stdbool.h> unconditionally.
129670 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129672         * m4/onceonly.m4 (m4_quote): New macro.
129673         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129674         Quote AC_FOREACH variable-expansions properly.
129676 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129678         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129680 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129682         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129683         Reported by Bruce Becker; see:
129684         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129686 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129687             Bruno Haible  <bruno@clisp.org>
129689         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129690         Reported by John Hughes, see
129691         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129693 2003-02-20  Bruno Haible  <bruno@clisp.org>
129695         * MODULES.html.sh (func_all_modules): Add poll.
129697 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129699         * modules/poll: New file.
129701 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129703         * lib/poll_.h: New file.
129704         * lib/poll.c: New file.
129706 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129708         * m4/poll.m4: New file.
129710 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129712         * modules/mathl: New file.
129714 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129716         * lib/mathl.h: New file.
129717         * lib/acosl.c: New file.
129718         * lib/asinl.c: New file.
129719         * lib/atanl.c: New file.
129720         * lib/ceill.c: New file.
129721         * lib/cosl.c: New file.
129722         * lib/expl.c: New file.
129723         * lib/floorl.c: New file.
129724         * lib/frexpl.c: New file.
129725         * lib/ldexpl.c: New file.
129726         * lib/logl.c: New file.
129727         * lib/sincosl.c: New file.
129728         * lib/sinl.c: New file.
129729         * lib/sqrtl.c: New file.
129730         * lib/tanl.c: New file.
129731         * lib/trigl.c: New file.
129732         * lib/trigl.h: New file.
129734 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129736         * m4/mathl.m4: New file.
129738 2003-02-18  Bruno Haible  <bruno@clisp.org>
129740         * MODULES.html.sh (func_all_modules): Add mathl.
129742 2003-02-17  Bruno Haible  <bruno@clisp.org>
129744         * modules/mkdtemp: New module.
129745         * MODULES.html.sh (func_all_modules): Add it.
129747 2003-02-17  Bruno Haible  <bruno@clisp.org>
129749         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129751 2003-02-17  Bruno Haible  <bruno@clisp.org>
129753         * lib/mkdtemp.h: New file, from GNU gettext.
129754         * lib/mkdtemp.c: New file, from GNU gettext.
129756 2003-02-02  Jim Meyering  <jim@meyering.net>
129758         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129759         e.g. glibc-2.2.93.
129761 2003-01-31  Bruno Haible  <bruno@clisp.org>
129763         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129764         'rpl_rename'.
129765         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129766         'rpl_strnlen'.
129767         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129768         'rpl_strtod'.
129769         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129770         'rpl_utime'.
129772 2003-01-31  Bruno Haible  <bruno@clisp.org>
129774         * lib/rename.c: #undef rename before defining rpl_rename.
129775         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129777 2003-01-30  Bruno Haible  <bruno@clisp.org>
129779         * modules/vasnprintf, modules/vasprintf: New modules.
129780         * MODULES.html.sh (func_all_modules): Add them.
129782 2003-01-30  Bruno Haible  <bruno@clisp.org>
129784         * m4/signed.m4: New file, from GNU gettext.
129785         * m4/longdouble.m4: New file, from GNU gettext.
129786         * m4/wchar_t.m4: New file, from GNU gettext.
129787         * m4/wint_t.m4: New file, from GNU gettext.
129788         * m4/vasnprintf.m4: New file.
129789         * m4/vasprintf.m4: New file.
129791 2003-01-30  Bruno Haible  <bruno@clisp.org>
129793         * lib/printf-args.h: New file, from GNU gettext.
129794         * lib/printf-args.c: New file, from GNU gettext.
129795         * lib/printf-parse.h: New file, from GNU gettext.
129796         * lib/printf-parse.c: New file, from GNU gettext.
129797         * lib/vasnprintf.h: New file, from GNU gettext.
129798         * lib/vasnprintf.c: New file, from GNU gettext.
129799         * lib/asnprintf.c: New file, from GNU gettext.
129800         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129801         * lib/vasprintf.c: New file, from GNU gettext.
129802         * lib/asprintf.c: New file, from GNU gettext.
129804 2003-01-29  Bruno Haible  <bruno@clisp.org>
129806         * modules/stpncpy: New module.
129807         * MODULES.html.sh (func_all_modules): Add it.
129809 2003-01-29  Bruno Haible  <bruno@clisp.org>
129811         * m4/stpncpy.m4: New file.
129813 2003-01-29  Bruno Haible  <bruno@clisp.org>
129815         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129816         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129818 2003-01-28  Bruno Haible  <bruno@clisp.org>
129820         * modules/c-ctype: New module.
129821         * MODULES.html.sh (func_all_modules): Add it.
129823 2003-01-28  Bruno Haible  <bruno@clisp.org>
129825         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129826         Paul Eggert.
129827         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129828         Paul Eggert.
129830 2003-01-27  Bruno Haible  <bruno@clisp.org>
129832         * modules/xsetenv: New module.
129833         * MODULES.html.sh (func_all_modules): Add it.
129835 2003-01-27  Bruno Haible  <bruno@clisp.org>
129837         * lib/xsetenv.h: New file, from GNU gettext.
129838         * lib/xsetenv.c: New file, from GNU gettext.
129840 2003-01-23  Jim Meyering  <jim@meyering.net>
129842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129843         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129845 2003-01-23  Bruno Haible  <bruno@clisp.org>
129847         * modules/minmax: New module.
129848         * MODULES.html.sh (func_all_modules): Add it.
129850 2003-01-23  Bruno Haible  <bruno@clisp.org>
129852         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129853         Eggert.
129855 2003-01-22  Bruno Haible  <bruno@clisp.org>
129857         * modules/exit: New module.
129858         * MODULES.html.sh (func_all_modules): Add it.
129860 2003-01-22  Bruno Haible  <bruno@clisp.org>
129862         * lib/exit.h: New file, from GNU gettext.
129864 2003-01-19  Bruno Haible  <bruno@clisp.org>
129866         * gnulib-tool: Recognize option --extract-maintainer.
129867         (func_get_maintainer): New function.
129868         * modules/*: Add Maintainer entry.
129870 2003-01-16  Jim Meyering  <jim@meyering.net>
129872         * m4/regex.m4: The `regex' struct is both input and output.
129873         Initialize it before each use.  Patch by Tim Waugh.
129875 2003-01-16  Bruno Haible  <bruno@clisp.org>
129877         * MODULES.html.sh: Add a table of contents. Add the module name as
129878         leftmost column. Add hyperlinks.
129880 2003-01-15  Bruno Haible  <bruno@clisp.org>
129882         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129884 2003-01-15  Bruno Haible  <bruno@clisp.org>
129886         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129887         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129888         suffix.
129890 2003-01-15  Bruno Haible  <bruno@clisp.org>
129892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129894 2003-01-15  Bruno Haible  <bruno@clisp.org>
129896         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129897         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129899 2003-01-14  Jim Meyering  <jim@meyering.net>
129901         * lib/same.c (same_name): Tweak a comment.
129903 2003-01-14  Bruno Haible  <bruno@clisp.org>
129905         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129906         when a string comparison is sufficient.
129908 2003-01-14  Bruno Haible  <bruno@clisp.org>
129910         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129911         'unsigned int'.
129913 2003-01-14  Bruno Haible  <bruno@clisp.org>
129915         * lib/hash-pjw.c: Add comment about low quality of this function.
129917 2003-01-13  Bruno Haible  <bruno@clisp.org>
129919         * modules/stpcpy: Distribute lib/stpcpy.h.
129920         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129922 2003-01-13  Bruno Haible  <bruno@clisp.org>
129924         * modules/*: Add a description.
129925         * modules/strpbrk: Fix Makefile.am snippet.
129926         * modules/strtoimax: Fix dependencies.
129927         * modules/strtoumax: Likewise.
129929 2003-01-13  Bruno Haible  <bruno@clisp.org>
129931         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129932         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129933         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129935 2003-01-13  Bruno Haible  <bruno@clisp.org>
129937         * gnulib-tool (func_create_testdir): Store config/* files in the main
129938         directory.
129939         * config.rpath: Move to ...
129940         * config/config.rpath: ... here.
129941         * modules/gettext: Contains config/config.rpath, not config.rpath.
129942         * modules/iconv: Likewise.
129944 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129946         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129947         to avoid collisions with libcurses and libreadline.
129949         * m4/getstr.m4: Remove.
129950         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129952 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129954         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129955         to avoid collisions with libcurses and libreadline.
129957         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129958         * lib/getstr.h, getstr.c: Remove.
129959         * lib/getline.c: Include "getline.h", to check interface.
129960         Move body of old getstr.c here: this defines MIN_CHUNK and
129961         declares getdelim2, which is renamed from getstr.
129962         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129964         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129965         All uses changed.
129966         * lib/linebuffer.h: Likewise.
129967         (readline): Remove backward-compatibility macro.
129969 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129971         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129972         to avoid collisions with libcurses and libreadline.
129973         * getstr: Remove.
129974         * MODULES.html.sh: Remove getstr.
129975         * modules/getline: Depend on unlocked-io, not getstr.
129977 2003-01-12  Jim Meyering  <jim@meyering.net>
129979         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129981 2003-01-10  Bruno Haible  <bruno@clisp.org>
129983         * modules/alloca: Change Makefile.am requirements. Simplify Include
129984         requirements. Add lib/alloca_.h to file list.
129986 2003-01-10  Bruno Haible  <bruno@clisp.org>
129988         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129990 2003-01-10  Bruno Haible  <bruno@clisp.org>
129992         * lib/alloca_.h: New file.
129993         * lib/getdate.y: Unconditionally include alloca.h.
129994         * lib/makepath.c: Likewise.
129995         * lib/setenv.c: Likewise.
129996         * lib/userspec.c: Likewise.
129998 2003-01-09  Karl Berry  <karl@gnu.org>
130000         * MODULES.html.sh: include `dirname $0` in PATH, to find
130001         gnulib-tool.
130003 2003-01-09  Bruno Haible  <bruno@clisp.org>
130005         * modules/stdbool: Change configure.ac, Makefile.am requirements.
130006         Simplify Include requirements. Add lib/stdbool.h.in to file list.
130008 2003-01-09  Bruno Haible  <bruno@clisp.org>
130010         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
130012 2003-01-09  Bruno Haible  <bruno@clisp.org>
130014         * lib/stdbool.h.in: New file.
130016 2003-01-09  Bruno Haible  <bruno@clisp.org>
130018         * gnulib-tool (func_all_modules): Ignore files ending in ~.
130019         * MODULES.html.sh: Likewise.
130021 2003-01-08  Jim Meyering  <jim@meyering.net>
130023         * lib/full-write.c: Undefine and define-away `const' after inclusion
130024         of errno.h, not before.  Suggestion from Bruno Haible.
130026 2003-01-08  Bruno Haible  <bruno@clisp.org>
130028         * modules/full-read: Depend on full-write.
130030 2003-01-08  Bruno Haible  <bruno@clisp.org>
130032         * lib/safe-read.c: Include specification header first, to ensure its
130033         selfcontainedness.
130034         * lib/full-write.c: Likewise.
130036 2003-01-07  Jim Meyering  <jim@meyering.net>
130038         * lib/full-write.c: Rework so that it may serve to define full_read,
130039         too.
130040         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
130042 2003-01-07  Bruno Haible  <bruno@clisp.org>
130044         * lib/strtoimax.c: Include <stdint.h> as an alternative to
130045         <inttypes.h>.
130046         * lib/xstrtol.h: Likewise.
130047         * lib/xstrtoimax.c: Likewise.
130048         * lib/xstrtoumax.c: Likewise.
130049         * lib/human.h: Likewise.
130051         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
130052         on systems that have <inttypes.h> but not <stdint.h>.
130054 2003-01-07  Bruno Haible  <bruno@clisp.org>
130056         * MODULES.html.sh: Add copyright notice.
130057         (missed_files): Omit CVS directory entries.
130058         (func_module): Make it work with sed-3.02.
130059         * MODULES.txt: Remove file.
130061 2003-01-06  Jim Meyering  <jim@meyering.net>
130063         * lib/version-etc.c: Update year in translatable copyright string.
130065 2003-01-03  Karl Berry  <karl@gnu.org>
130067         * config/config.{guess,sub}: update from prep.
130069 2003-01-02  Karl Berry  <karl@gnu.org>
130071         * doc/COPYING.DOC: belatedly updated to 1.2.
130073 2003-01-01  Karl Berry  <karl@gnu.org>
130075         * gnulib-tool (func_verify_module): report module name $module in
130076         error message, not $1.
130077         * gnulib-tool (create-testdir): don't complain if destdir couldn't
130078         be created, only if it doesn't exist.
130079         * gnulib-tool (last_checkin_date): don't expand the $Date here.
130081 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130083         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
130085 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130087         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
130088         memcmp if strcoll doesn't work.
130090 2002-12-31  Bruno Haible  <bruno@clisp.org>
130092         * lib/utime.c (utime_null): No need to call ftruncate if the file was
130093         nonempty.
130095 2002-12-31  Bruno Haible  <bruno@clisp.org>
130097         * lib/memcoll.c (STRCOLL): New macro.
130098         (memcoll): Use it.
130100 2002-12-31  Bruno Haible  <bruno@clisp.org>
130102         * lib/localcharset.h: New file.
130103         * lib/localcharset.c: Include it.
130104         * lib/unicodeio.c: Likewise.
130106 2002-12-31  Bruno Haible  <bruno@clisp.org>
130108         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
130109         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
130111 2002-12-31  Bruno Haible  <bruno@clisp.org>
130113         * lib/getline.h: Include <stddef.h>, for size_t.
130115         * lib/unicodeio.h: Include <stddef.h>, for size_t.
130116         * lib/unicodeio.c: Don't include <stddef.h>.
130118 2002-12-31  Bruno Haible  <bruno@clisp.org>
130120         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
130121         HAVE_TM_ZONE.
130123 2002-12-24  Karl Berry  <karl@gnu.org>
130125         * config/config.guess: update from prep.
130127 2002-12-24  Bruno Haible  <bruno@clisp.org>
130129         General infrasructure.
130130         * m4/README: Rewritten.
130131         * m4/onceonly.m4: New file.
130132         * m4/onceonly_2_57.m4: New file.
130134         Module atexit.
130135         * m4/atexit.m4: New file.
130137         Module strtod.
130138         * m4/strtod.m4: New file.
130140         Module strtol.
130141         * m4/strtol.m4: New file.
130143         Module strtoul.
130144         * m4/strtoul.m4: New file.
130146         Module memchr.
130147         * m4/memchr.m4: New file.
130149         Module memcmp.
130150         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
130151         (jm_FUNC_MEMCMP): Invoke it.
130153         Module memcpy.
130154         * m4/memcpy.m4: New file.
130156         Module memmove.
130157         * m4/memmove.m4: New file.
130159         Module memset.
130160         * m4/memset.m4: New file.
130162         Module strcspn.
130163         * m4/strcspn.m4: New file.
130165         Module strpbrk.
130166         * m4/strpbrk.m4: New file.
130168         Module strstr.
130169         * m4/strstr.m4: New file.
130171         Module strerror.
130172         * m4/strerror.m4: New file.
130174         Module mktime.
130175         * m4/mktime.m4: Renamed from jm-mktime.m4.
130176         (gl_PREREQ_MKTIME): New macro.
130177         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
130179         Module malloc.
130180         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
130181         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
130182         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
130184         Module realloc.
130185         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
130186         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
130187         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
130189         Module strftime.
130190         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
130191         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
130192         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
130193         gl_TM_GMTOFF.
130194         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
130196         Module xalloc.
130197         * m4/xalloc.m4: New file.
130199         Module alloca.
130200         * m4/alloca.m4: New file.
130202         Module putenv.
130203         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
130204         (jm_FUNC_PUTENV): Invoke it.
130206         Module setenv.
130207         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
130208         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
130209         when invoked twice.
130210         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
130211         gt_FUNC_SETENV.
130213         Module memrchr.
130214         * m4/memrchr.m4: New file.
130216         Module stpcpy.
130217         * m4/stpcpy.m4: New file.
130219         Module strcase.
130220         * m4/strcase.m4: New file.
130222         Module strdup.
130223         * m4/strdup.m4: New file.
130225         Module strnlen.
130226         * m4/strnlen.m4: New file.
130228         Module strndup.
130229         * m4/strndup.m4: New file.
130231         Module xstrtod.
130232         * m4/xstrtod.m4: New file.
130234         Module xstrtol.
130235         * m4/xstrtol.m4: New file.
130237         Module getdate.
130238         * m4/getdate.m4: New file.
130240         Module unlocked-io.
130241         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
130242         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
130243         * m4/jm-glibc-io.m4n: Remove file.
130245         Module long-options.
130246         * m4/long-options.m4: New file.
130248         Module md5.
130249         * m4/md5.m4: New file.
130251         Module sha.
130252         * m4/sha.m4: New file.
130254         Module getstr.
130255         * m4/getstr.m4: New file.
130257         Module getline.
130258         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
130259         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
130260         <sys/types.h>, for size_t. Use the function name gnu_getline, not
130261         simply getline. Infoke gl_PREREQ_GETLINE.
130263         Module obstack.
130264         * m4/obstack.m4: New file.
130266         Module hash.
130267         * m4/hash.m4: New file.
130269         Module readtokens.
130270         * m4/readtokens.m4: New file.
130272         Module strverscmp.
130273         * m4/strverscmp.m4: New file.
130275         Module stdbool.
130276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
130277         OSF/1.
130279         Module strtoll.
130280         * m4/strtoll.m4: New file.
130282         Module strtoull.
130283         * m4/strtoull.m4: New file.
130285         Module strtoimax.
130286         * m4/strtoimax.m4: New file.
130288         Module strtoumax.
130289         * m4/strtoumax.m4: New file.
130291         Module xstrtoimax.
130292         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
130293         jm_AC_PREREQ_XSTRTOIMAX.
130294         Moved the strtol prerequisites to strtol.m4.
130295         Moved the strtoll prerequisites to strtoll.m4.
130296         Moved the strtoimax prerequisites to strtoimax.m4.
130298         Module xstrtoumax.
130299         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
130300         jm_AC_PREREQ_XSTRTOUMAX.
130301         Moved the strtoul prerequisites to strtoul.m4.
130302         Moved the strtoull prerequisites to strtoull.m4.
130303         Moved the strtoumax prerequisites to strtoumax.m4.
130305         Module chown.
130306         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
130307         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
130309         Module dup2.
130310         * m4/dup2.m4: New file.
130312         Module ftruncate.
130313         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
130314         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
130316         Module getgroups.
130317         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
130318         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
130320         Module gettimeofday.
130321         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
130322         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
130323         gl_PREREQ_GETTIMEOFDAY.
130325         Module mkdir.
130326         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130327         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130329         Module mkstemp.
130330         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130331         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130332         jm_AC_TYPE_UINTMAX_T.
130333         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130335         Module stat.
130336         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130337         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130339         Module lstat.
130340         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130341         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130343         Module timespec.
130344         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130345         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130346         * m4/st_mtim.m4: Indentation.
130348         Module nanosleep.
130349         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130350         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130351         gl_PREREQ_NANOSLEEP.
130353         Module regex.
130354         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130355         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130356         (gl_REGEX): New macro.
130358         Module rename.
130359         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130360         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130362         Module rmdir.
130363         * m4/rmdir.m4: New file.
130365         Module utime.
130366         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130367         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130368         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130370         Module dirname.
130371         * m4/dirname.m4: New file.
130373         Module getopt.
130374         * m4/getopt.m4: New file.
130376         Module unistd-safer.
130377         * m4/unistd-safer.m4: New file.
130379         Module fnmatch.
130380         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130381         declaration.
130382         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130383         (gl_FUNC_FNMATCH_POSIX): New macro.
130384         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130385         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130386         simply fnmatch.
130388         Module exclude.
130389         * m4/exclude.m4: New file.
130391         Module human.
130392         * m4/human.m4: New file.
130394         Module acl.
130395         * m4/acl.m4: Nop.
130397         Module backupfile.
130398         * m4/backupfile.m4: New file.
130399         * m4/d-ino.m4: Indentation.
130401         Module fsusage.
130402         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130403         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130404         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130406         Module dirfd.
130407         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130408         requirements.
130410         Module euidaccess.
130411         * m4/euidaccess.m4: New file.
130413         Module file-type.
130414         * m4/file-type.m4: New file.
130416         Module fileblocks.
130417         * m4/fileblocks.m4: New file.
130419         Module filemode.
130420         * m4/filemode.m4: New file.
130422         Module isdir.
130423         * m4/isdir.m4: New file.
130425         Module lchown.
130426         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130427         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130429         Module makepath.
130430         * m4/makepath.m4: New file.
130432         Module modechange.
130433         * m4/modechange.m4: New file.
130435         Module mountlist.
130436         * m4/mountlist.m4: New file.
130437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130438         Indentation.
130440         Module path-concat.
130441         * m4/path-concat.m4: New file.
130443         Module pathmax.
130444         * m4/pathmax.m4: New file.
130446         Module same.
130447         * m4/same.m4: New file.
130449         Module save-cwd.
130450         * m4/save-cwd.m4: New file.
130452         Module savedir.
130453         * m4/savedir.m4: New file.
130455         Module xgetcwd.
130456         * m4/xgetcwd.m4: New file.
130457         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130459         Module xreadlink.
130460         * m4/xreadlink.m4: New file.
130462         Module safe-read.
130463         * m4/safe-read.m4: New file.
130465         Module safe-write.
130466         * m4/safe-write.m4: New file.
130468         Module closeout.
130469         * m4/closeout.m4: New file.
130471         Module stdio-safer.
130472         * m4/stdio-safer.m4: New file.
130474         Module getpass.
130475         * m4/getpass.m4: New file.
130477         Module getugroups.
130478         * m4/getugroups.m4: New file.
130480         Module group-member.
130481         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130482         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130484         Module idcache.
130485         * m4/idcache.m4: New file.
130487         Module userspec.
130488         * m4/userspec.m4: New file.
130490         Module gettime.
130491         * m4/clock_time.m4: New file.
130492         * m4/gettime.m4: New file.
130494         Module settime.
130495         * m4/settime.m4: New file.
130497         Module posixtm.
130498         * m4/posixtm.m4: New file.
130500         Module gethostname.
130501         * m4/gethostname.m4: New file.
130503         Module canon-host.
130504         * m4/canon-host.m4: New file.
130506         Module gettext.
130507         * m4/codeset.m4: New file, from gettext-0.11.5.
130508         * m4/gettext.m4: New file, from gettext-0.11.5.
130509         * m4/glibc21.m4: New file, from gettext-0.11.5.
130510         * m4/iconv.m4: New file, from gettext-0.11.5.
130511         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130512         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130513         * m4/inttypes.m4: New file, from gettext-0.11.5.
130514         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130515         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130516         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130517         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130518         * m4/lib-link.m4: New file, from gettext-0.11.5.
130519         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130520         * m4/progtest.m4: New file, from gettext-0.11.5.
130521         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130522         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130523         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130525         Module localcharset.
130526         * m4/localcharset.m4: New file.
130528         Module hard-locale.
130529         * m4/hard-locale.m4: New file.
130531         Module mbswidth.
130532         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130533         onceonly macros.
130534         * m4/mbrtowc.m4: Add comment.
130536         Module memcasecmp.
130537         * m4/memcasecmp.m4: New file.
130539         Module memcoll.
130540         * m4/memcoll.m4: New file.
130542         Module unicodeio.
130543         * m4/unicodeio.m4: New file.
130545         Module rpmatch.
130546         * m4/rpmatch.m4: New file.
130548         Module yesno.
130549         * m4/yesno.m4: New file.
130551         Module exitfail.
130552         * m4/exitfail.m4: New file.
130554         Module c-stack.
130555         * m4/c-stack.m4 (gl_C_STACK): New macro.
130556         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130558         Module error.
130559         * m4/error.m4 (gl_ERROR): New macro.
130560         (jm_PREREQ_ERROR): Use onceonly macros.
130562         Module fatal.
130563         * m4/fatal.m4: New file.
130565         Module getloadavg.
130566         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130567         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130569         Module getpagesize.
130570         * m4/getpagesize.m4: New file.
130572         Module getusershell.
130573         * m4/getusershell.m4: New file.
130575         Module physmem.
130576         * m4/physmem.m4: New file.
130578         Module posixver.
130579         * m4/posixver.m4: New file.
130581         Module quotearg.
130582         * m4/quotearg.m4: New file.
130584         Module quote.
130585         * m4/quote.m4: New file.
130587         Module readutmp.
130588         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130590         Module sig2str.
130591         * m4/sig2str.m4: New file.
130593         Other.
130594         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130595         ulonglong.m4.
130596         * m4/intmax_t.m4: New file.
130597         * m4/d-type.m4: Indentation.
130598         * m4/jm-macros.m4: Update.
130599         * m4/prereq.m4 (jm_PREREQ): Update.
130600         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130601         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130602         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130603         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130604         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130605         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130606         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130607         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130608         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130609         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130610         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130611         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130612         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130613         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130614         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130615         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130616         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130617         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130618         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130620 2002-12-24  Bruno Haible  <bruno@clisp.org>
130622         * MODULES.txt: Update according to m4/ changes.
130624         Module gettext.
130625         * config.rpath: New file, from gettext-0.11.5.
130627         * modules/*: New module descriptions.
130628         * gnulib-tool: New file.
130629         * MODULES.html.sh: New file.
130631 2002-12-21  Karl Berry  <karl@gnu.org>
130633         * doc/fdl.texi: update to version 1.2.
130635 2002-12-19  Karl Berry  <karl@gnu.org>
130637         * config/config.guess: update from prep.
130639 2002-12-18  Bruno Haible  <bruno@clisp.org>
130641         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130642         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130644 2002-12-17  Bruno Haible  <bruno@clisp.org>
130646         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130647         stdlib.h, string.h.
130649 2002-12-17  Bruno Haible  <bruno@clisp.org>
130651         * lib/canon-host.c (strdup): Remove unused declaration.
130653         * lib/fsusage.c: Include full_read.h.
130654         (get_fs_usage): Use full_read instead of safe_read.
130656         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130658 2002-12-12  Karl Berry  <karl@gnu.org>
130660         * config/config.guess: update from prep.
130662 2002-12-11  Bruno Haible  <bruno@clisp.org>
130664         * m4/setenv.m4: New file, from gettext-0.11.5.
130666 2002-12-11  Bruno Haible  <bruno@clisp.org>
130668         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130669         not unsetenv().
130670         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130671         modifications:
130673         2002-12-11  Bruno Haible  <bruno@clisp.org>
130675                 * setenv.c (alloca): Fall back to malloc.
130676                 (freea): New macro.
130677                 (setenv): Use freea() to free memory allocated with alloca().
130679         2002-11-13  Bruno Haible  <bruno@clisp.org>
130681                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130682                 function declarations.
130683                 * unsetenv.c (unsetenv): Likewise.
130685         2002-03-04  Bruno Haible  <bruno@clisp.org>
130687                 Portability to AIX 4.3.3.
130688                 * unsetenv.c: New file, extracted from setenv.c.
130689                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130691         2001-12-20  Bruno Haible  <bruno@clisp.org>
130693                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130694                 use malloc instead. For SunOS 4.
130696         2001-12-11  Bruno Haible  <bruno@clisp.org>
130698                 * setenv.c: Declare alloca.
130699                 (compar_fn_t): New typedef.
130700                 (KNOWN_VALUE, STORE_VALUE): Use it.
130702         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130703         setenv.h.
130705 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130707         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130708         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130709         Choose values that are less likely to collide with system fnmatch
130710         options.
130711         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130712         defined (e.g., a pure POSIX system).
130713         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130714         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130716 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130718         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130719         a pain in practice to deal with generated m4 files.  This change
130720         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130722         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130723         and jm-glibc-io.m4, as they are no longer a special case.
130724         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130725         kludge and the auto-generation stuff.  Check only whether the
130726         functions are declared, not whether they exist, since older hosts
130727         that don't declare the functions can't use the optimization anyway.
130729 2002-12-06  Jim Meyering  <jim@meyering.net>
130731         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130733         Merge in changes from libc's misc/error.c, in preparation
130734         for the merge of gnulib's changes back into libc.
130736         * lib/error.c (_): Define only if not already defined.
130737         Move definition to follow all #include directives.
130738         Include unlocked-io.h only if !_LIBC.
130739         [_LIBC]: Include <libio/libioP.h>.
130740         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130741         (fflush): Tweak definition to use INTUSE.
130742         (putc): Define.
130744 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130746         * lib/alloca.c [defined emacs]: Include "lisp.h".
130747         (xalloc_die) [defined emacs]: New macro.
130748         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130749         [! defined emacs]: Include <xalloc.h>.
130750         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130751         (pointer): Typedef to POINTER_TYPE *.
130752         (malloc): Remove decl; we now always use xmalloc.
130753         (alloca): Use old-style definition, since Emacs needs this.
130754         Check for arithmetic overflow when computing combined size.
130756 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130758         Do not generate unlocked-io.h automatically, since it's easier to
130759         maintain it by hand.
130761         * lib/unlocked-io.h: New file, from GNU diffutils,
130762         but with proper copyright notice and attribution.
130763         * lib/gen-uio: Remove.
130764         * lib/Makefile.am: Add copyright notice.
130765         (libfetish_a_SOURCES): Add unlocked-io.h.
130766         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130767         (DISTCLEANFILES, io_functions): Remove macros.
130768         (EXTRA_DIST): Remove gen_uio.
130769         (unlocked-io.h): Remove rule.
130771 2002-12-04  Jim Meyering  <jim@meyering.net>
130773         Reflect the fact that stat.c and lstat.c are no longer generated.
130774         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130775         (DISTCLEANFILES): Likewise.
130776         (EXTRA_DIST): Likewise.
130777         (all_local): Don't depend on stat.c or lstat.c.
130778         (stat.c, lstat.c): Remove rules.
130779         (EXTRA_DIST): Remove xstat.in.
130781         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130782         * lib/stat.c: New file.  Contents mostly from xstat.in.
130783         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130784         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130786         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130787         too.
130788         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130790 2002-12-03  Jim Meyering  <jim@meyering.net>
130792         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130793         but not semantics, to minimize the differences between these two files.
130794         (safe_read): Change comment to mention SAFE_READ_ERROR.
130796         * lib/safe-read.c (IS_EINTR): Define.
130797         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130799 2002-12-02  Jim Meyering  <jim@meyering.net>
130801         * lib/safe-read.c (EINTR): Define.
130802         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130803         (INT_MAX): Provide fallback.
130804         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130806         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130808 2002-12-02  Bruno Haible  <bruno@clisp.org>
130810         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130811         Define, taken from safe-read.c.
130812         (INT_MAX): Provide fallback.
130813         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130814         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130816         * lib/safe-read.c (EINTR): Remove definition.
130817         (safe_read): Don't use EINTR if it is absent.
130819 2002-12-01  Jim Meyering  <jim@meyering.net>
130821         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130822         zero.
130823         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130825 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130827         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130828         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130829         with `if (! (value < limit)) abort ();', for readability.
130831 2002-11-26  Karl Berry  <karl@gnu.org>
130833         * lib/strdup.c: copy from libc again, with jim's ok.
130834         * lib/.cppi-disable: re-add strdup.c
130836 2002-11-25  Karl Berry  <karl@gnu.org>
130838         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130839         instead of "strtol.c".
130841 2002-11-25  Karl Berry  <karl@gnu.org>
130843         * config/install-sh: update from automake for variable quoting, $0 in
130844         error msgs, etc.
130846         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130847         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130848         entry.
130850 2002-11-25  Jim Meyering  <jim@meyering.net>
130852         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130854 2002-11-24  Karl Berry  <karl@gnu.org>
130856         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130857         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130859 2002-11-24  Jim Meyering  <jim@meyering.net>
130861         Update from coreutils:
130863         * lib/mktime.c: Merge in changes from libc.
130865         Avoid a link-time failure on some Linux systems.
130866         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130867         (otherwise).
130868         (__mon_yday): Declare with the STATIC attribute.
130869         (__mktime_internal): Likewise.
130870         Based on a report from Greg Schafer.
130872 2002-11-23  Jim Meyering  <jim@meyering.net>
130874         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130875         Use `unsigned', not `int', as type of index.
130877         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130879         * lib/fsusage.c: Remove unneeded parentheses around operands of
130880         `defined'.
130882 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130884         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130885         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130886         so that we can be included first.
130887         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130888         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130889         No need to include stddef.h or sys/types.h any more.
130890         Surround local include files with "", not "<>".
130891         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130892         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130893         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130894         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130895         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130896         (ISPRINT): Remove; no longer needed now that we assume C89.
130898         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130899         Preserve errno.
130901         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130902         quotearg_char): Use SIZE_MAX rather than
130903         (size_t) -1 when we are talking about "infinity".
130905         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130907 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130909         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130910         hint that one should use `if (! x) abort ();' rather than `assert
130911         (x);', and anyway it's one less thing to worry about configuring.
130912         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130913         hash_rehash, hash_insert): Use abort rather than assert.
130915 2002-11-22  Bruno Haible  <bruno@clisp.org>
130917         * lib/safe-read.h: Assume C89. Add comments.
130918         (safe_read): Change return type to size_t.
130919         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130920         byte counts > SSIZE_MAX correctly.
130921         * lib/safe-write.h: New file.
130922         * lib/safe-write.c: New file.
130923         * lib/full-read.h: New file.
130924         * lib/full-read.c: New file.
130925         * lib/full-write.h: Assume C89. Add comments.
130926         * lib/full-write.c: Include safe-write.h.
130927         (full_write): Rewritten to use safe_write.
130928         Suggested by Jim Meyering and Paul Eggert.
130930 2002-11-21  Jim Meyering  <jim@meyering.net>
130932         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130934         Merge in changes from the coreutils.
130936         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130937         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130938         <stdint.h>.
130939         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130940         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130941         int.  Work more efficiently if X is the same width as uintmax_t.
130942         Do not compare X to -1, to avoid bogus compiler warning.
130943         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130944         Don't assume that f_frsize and f_bsize are the same type.
130946         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130947         warning on FreeBSD.
130949         * lib/makepath.c (make_path): Restore umask *before* creating the final
130950         component.
130951         (make_path): Minor reformatting.
130953         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130954         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130955         HAVE_MALLOC/HAVE_REALLOC.
130957         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130958         dummy ones.  At least on GNU/Linux systems, `auto' means something
130959         else.
130960         From Michael Stone.
130962 2002-11-21  Bruno Haible  <bruno@clisp.org>
130964         Remove case insensitive option matching.
130965         * lib/argmatch.h (argcasematch): Remove declaration.
130966         (ARGCASEMATCH): Remove macro.
130967         (__xargmatch_internal): Remove case_sensitive argument.
130968         (XARGMATCH): Update.
130969         (XARGCASEMATCH): Remove macro.
130970         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130971         case_sensitive argument.
130972         (argcasematch): Remove function.
130973         (__xargmatch_internal): Remove case_sensitive argument.
130974         (main): Use XARGMATCH instead of XARGCASEMATCH.
130976         * lib/xmalloc.c: Change compile-time error message. Add comment about
130977         required autoconf version.
130979 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130981         Merge argmatch cleanups from Bison.  Assume C89.
130983         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130984         Include stdlib.h, for EXIT_FAILURE.
130985         Always include <string.h>, since we assume C89.
130986         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130987         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130988         Include <stddef.h> instead, since it's all we need for size_t.
130989         (PARAMS): Remove.  All uses removed.
130990         (ARRAY_CARDINALITY): Do not bother to #undef.
130991         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130992         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130993         Remove unnecessary parentheses.
130994         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130995         Insert necessary parentheses.
130996         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130997         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130999 2002-11-19  Bruno Haible  <bruno@clisp.org>
131001         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
131002         * lib/mbswidth.h: Include <stddef.h>, for size_t.
131004         * lib/mbswidth.h (PARAMS): Remove macro.
131005         (mbswidth, mbsnwidth): Use ANSI C function declarations.
131006         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
131008         * lib/gcd.h (PARAMS): Remove macro.
131009         (gcd): Use ANSI C function declarations.
131010         * lib/gcd.c (gcd): Likewise.
131012 2002-11-15  Bruno Haible  <bruno@clisp.org>
131014         * lib/strcspn.c: Include <stddef.h>.
131015         (strcspn): Use ANSI C function declaration. Change return type to
131016         size_t. Use NULL.
131017         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
131018         (strpbrk): Use NULL.
131019         * lib/strpbrk.h (PARAMS): Remove macro.
131020         (strpbrk): Use ANSI C function declaration.
131021         * lib/strstr.c: Don't include <sys/types.h>.
131022         * lib/strstr.h (PARAMS): Remove macro.
131023         (strstr): Use ANSI C function declarations.
131025 2002-11-14  Karl Berry  <karl@gnu.org>
131027         * config/mkinstalldirs: `do' on separate line, instead of
131028         `for var; do'.
131030 2002-11-06  Bruno Haible  <bruno@clisp.org>
131032         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
131033         * lib/gcd.c (gcd): Likewise.
131035 2002-11-05  Bruno Haible  <bruno@clisp.org>
131037         * lib/gcd.h: New file, from gettext-0.11.5.
131038         * lib/gcd.c: New file, from gettext-0.11.5.
131040 2002-11-05  Bruno Haible  <bruno@clisp.org>
131042         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131043         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131044         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131045         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131047         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
131048         <libintl.h>.
131049         * lib/makepath.c: Include gettext.h instead of <locale.h> and
131050         <libintl.h>.
131052         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
131053         * lib/human.c: Include gettext.h instead of <libintl.h>.
131054         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
131055         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
131056         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
131057         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
131058         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
131059         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
131060         (textdomain): Remove definition.
131061         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
131063         * lib/long-options.c: Remove include of <libintl.h> and definition of
131064         _.
131065         * lib/same.c: Remove include of <libintl.h> and definition of _.
131067 2002-11-04  Owen Taylor  <otaylor@redhat.com>
131069         * lib/config.charset: A few additions for Solaris.
131071 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131073         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
131074         * lib/localcharset.c (locale_charset): Declare as extern "C".
131076 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131078         * lib/config.charset: msdos in uk_UA uses CP1125.
131080 2002-11-04  Bruno Haible  <bruno@clisp.org>
131082         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
131083         * lib/strcase.h: New file, from GNU gettext-0.11.5.
131084         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
131085         * lib/strstr.h: New file, from GNU gettext-0.11.5.
131086         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
131088 2002-11-04  Bruno Haible  <bruno@clisp.org>
131090         * lib/localcharset.c (locale_charset): Don't return an empty string.
131092 2002-11-04  Bruno Haible  <bruno@clisp.org>
131094         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
131095         aliases.
131097 2002-11-04  Bruno Haible  <bruno@clisp.org>
131099         * lib/config.charset: Update for newest glibc. Add canonical names
131100         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
131102 2002-11-04  Bruno Haible  <bruno@clisp.org>
131104         * lib/config.charset: Add support for NetBSD.
131106 2002-11-04  Bruno Haible  <bruno@clisp.org>
131108         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
131110 2002-11-01  Bruno Haible  <bruno@clisp.org>
131112         * configure.in: Add AC_CONFIG_AUX_DIR call.
131113         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
131114         test/Makefile.
131115         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
131117 2002-09-28  Karl Berry  <karl@gnu.org>
131119         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
131120         installed automake until the next release, since changes have been
131121         made.
131123 2002-09-25  Karl Berry  <karl@gnu.org>
131125         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
131126         * lib/getopt*: copy from libc/posix.
131127         * lib/gettext.h: copy from gettext.
131128         * lib/.cppi-disable: add strdup.c, gettext.h.
131130 2002-09-25  Karl Berry  <karl@gnu.org>
131132         * config/srclist.txt: enable gettext.h check.
131133         * config/config.{guess,sub}: update from prep.
131134         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
131135                 from automake 1.6.3.
131136         See srclist*.
131138 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
131140         * regex.c (PATFETCH): Remove the translating fetch.
131141         (PATFETCH_RAW): Rename to PATFETCH.
131142         (set_image_of_range): New fun.
131143         (SET_RANGE_TABLE_WORK_AREA): Use it.
131144         (regex_compile): Don't translate the pattern chars so eagerly.
131145         Only do it when inserting an `exactn' bytecode or when handling
131146         a char-range.
131147         (mutually_exclusive_p): Avoid empty statement.
131149 2002-07-06  Jim Meyering  <meyering@lucent.com>
131151         * m4/README: Don't mention Makefile.am.in.
131152         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
131154 2002-07-01  Jim Meyering  <meyering@lucent.com>
131156         * lib/c-stack.c: Include sys/time.h.
131157         From Volker Borchert.
131159 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131161         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
131163 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131165         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
131166         New macro.  Use it uniformly instead of
131167         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
131168         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
131169         reported by Vin Shelton.
131171 2002-06-22  Paul Eggert  <eggert@twinsun.com>
131173         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
131174         Do not assume SA_SIGINFO behavior.
131175         Bug reported by Jim Meyering on NetBSD 1.5.2.
131177 2002-06-22  Jim Meyering  <meyering@lucent.com>
131179         * m4/c-stack.m4: New file, from diffutils-2.8.2.
131180         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
131182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
131183         now that configure.ac uses AC_GNU_SOURCE.
131184         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
131185         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
131187         Update to latest tools.  Suggestions from Paul Eggert.
131188         * m4/stdbool.m4: New file, from diffutils-2.8.2.
131189         * m4/gnu-source.m4: Update from diffutils-2.8.2.
131190         * m4/fnmatch.m4: Likewise.
131191         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
131192         to AC_HEADER_STDBOOL
131194 2002-06-22  Jim Meyering  <meyering@lucent.com>
131196         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
131197         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
131199 2002-06-22  Jim Meyering  <meyering@lucent.com>
131201         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
131203         * lib/exitfail.c, exitfail.h: Likewise.
131204         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
131206         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
131207         of fnmatch.h.
131208         (EXTRA_DIST): Add fnmatch_loop.c.
131209         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
131211         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
131212         * lib/fnmatch.c: Update from diffutils-2.8.2.
131213         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
131214         * lib/fnmatch.h: Remove file.
131216 2002-06-21  Jim Meyering  <meyering@lucent.com>
131218         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
131219         * m4/mbrtowc.m4: Likewise.
131221         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
131222         * m4/mbswidth.m4: Reflect name change:
131223         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
131224         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131226         * m4/lib-link.m4: Update from gettext-0.11.2.
131227         * m4/gettext.m4: Likewise.
131229         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
131230         From Alfred M. Szmidt.
131232 2002-06-18  Paul Eggert  <eggert@twinsun.com>
131234         * lib/file-type.h: Report an error if neither S_ISREG nor
131235         S_IFREG is defined, instead of using a test specific to glibc
131236         2.2.  This should be safe, since POSIX requires S_ISREG and
131237         Unix Version 7 had S_IFREG.  We don't need to check for
131238         <sys/types.h> since we don't use any symbols that it defines.
131240 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
131242         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
131243         $@-t, so that each temporary file name is unique and valid in the first
131244         8 characters, for operation under DOS.
131246 2002-06-15  Paul Eggert  <eggert@twinsun.com>
131248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
131250 2002-06-15  Jim Meyering  <meyering@lucent.com>
131252         Work even with DJGPP 2.03, which lacks support for symlinks.
131253         From Richard Dawe.
131254         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
131255         is defined.
131256         * lib/lchown.c (S_ISLNK): Likewise.
131258 2002-06-15  Jim Meyering  <meyering@lucent.com>
131260         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
131261         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
131262         have been included before this file.
131264 2002-06-14  Jim Meyering  <meyering@lucent.com>
131266         * lib/file-type.h: Use the version from diffutils-2.8.2.
131267         * lib/file-type.c: Likewise.
131269 2002-06-07  Jim Meyering  <meyering@lucent.com>
131271         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
131272         They're needed at least for NetBSD 1.5.2.
131273         ($statxfs_includes): Include those same headers.
131274         ($statxfs_includes): Include sys/vfs.h if available.
131275         ($statxfs_includes): Likewise for sys/statvfs.h.
131276         Check for the following members in both structs statfs and statvfs:
131277         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
131279 2002-06-01  Jim Meyering  <meyering@lucent.com>
131281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
131282         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
131284 2002-05-28  Jim Meyering  <meyering@lucent.com>
131286         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
131287         Reported by Volker Borchert.
131289 2002-05-27  Jim Meyering  <meyering@lucent.com>
131291         Fix a problem seen only on nonconforming systems whereby ls.c's
131292         use of localtime, and then of gettimeofday would cause trouble:
131293         the localtime call used to initialize rpl_gettimeofday's save
131294         mechanism would clobber ls's current local time information so
131295         that in any long listing the first file would always be listed
131296         with date 1970-01-01.  Analysis by Volker Borchert.
131298         * lib/gettimeofday.c (localtime): Undefine.
131299         (rpl_localtime): New function.
131301 2002-05-27  Jim Meyering  <meyering@lucent.com>
131303         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
131304         localtime.
131306         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
131307         use the replacement function; it wouldn't resolve at link time.
131308         Reported by Volker Borchert.
131310 2002-05-22  Jim Meyering  <meyering@lucent.com>
131312         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
131313         file-type.h.
131314         * lib/file-type.h: New file.
131315         * lib/file-type.c (file_type): New file/function.  Extracted from
131316         diffutils.
131318 2002-04-30  Jim Meyering  <meyering@lucent.com>
131320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
131322 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131324         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
131326 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131328         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131329         Do not check for alloca.h (no longer used) or stdbool.h (was never
131330         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131332 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131334         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131336 2002-04-29  Jim Meyering  <meyering@lucent.com>
131338         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131339         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131340         Use AC_FUNC_STRNLEN here instead.
131342         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131343         With autoconf-2.53a, it's part of AC_PROG_CC.
131345 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131347         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131350 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131352         * lib/sig2str.h, lib/sig2str.c: New files.
131353         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131355 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131357         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131358         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131359         of 127, since 64 is the largest conceivable number for ancient
131360         nonstandard hosts.
131361         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131363 2002-04-28  Jim Meyering  <meyering@lucent.com>
131365         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131367 2002-04-24  Jim Meyering  <meyering@lucent.com>
131369         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131370         (jm_PREREQ): Use it.
131372         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131373         mach/mach.h fcntl.h.
131374         Check for this function: setlocale.
131376 2002-04-24  Jim Meyering  <meyering@lucent.com>
131378         * lib/gettext.h: New file, from Gettext.
131379         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131380         (libfetish_a_SOURCES): Add gettext.h.
131382 2002-04-16  Jim Meyering  <meyering@lucent.com>
131384         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131385         ut_pid, ut_id, ut_exit.
131387 2002-04-16  Jim Meyering  <meyering@lucent.com>
131389         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131390         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131391         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131393 2002-04-12  Jim Meyering  <meyering@lucent.com>
131395         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131396         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131397         existence of the getmntinfo function.  Needed for Darwin 5.3.
131399         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131400         This is necessary at least on Darwin 5.3.
131402         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131403         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131404         strnlen.o in the library, and that makes some versions of ranlib
131405         object.
131407 2002-04-12  Jim Meyering  <meyering@lucent.com>
131409         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131411 2002-04-09  Jim Meyering  <meyering@lucent.com>
131413         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131414         to be more precise.  Rather than saying we're checking whether the
131415         function `works', say what we're testing.
131416         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131417         Reported by Bruno Haible.
131419 2002-03-10  Jim Meyering  <meyering@lucent.com>
131421         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131422         Suggestion from Santiago Vila.
131424 2002-03-08  Jim Meyering  <meyering@lucent.com>
131426         * lib/rename.c: Mention that this wrapper is needed also on
131427         mips-dec-ultrix4.4 systems.
131429 2002-03-02  Jim Meyering  <meyering@lucent.com>
131431         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131432         not HAVE_CLOCK_SETTIME.
131434 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131436         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131437         Check for clock_settime.
131439 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131441         * lib/nanosleep.h: Rename to....
131442         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131444         * lib/gettime.c: New file.
131445         * lib/settime.c: New file.
131446         * lib/stime.c: Remove.
131448         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131449         timespec.h.  Remove nanosleep.h.
131451 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131453         * m4/acl.m4: New file.
131454         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131455         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131457 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131459         * lib/acl.c, lib/acl.h: New files.
131460         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131462 2002-02-24  Jim Meyering  <meyering@lucent.com>
131464         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131465         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131466         cause trouble.  Reported by Nelson Beebe.
131468 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131470         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131471         compilers that don't know that xalloc_die never returns.
131473 2002-02-20  Jim Meyering  <meyering@lucent.com>
131475         * lib/getdate.c: Regenerate using bison-1.33.
131477 2002-02-17  Jim Meyering  <meyering@lucent.com>
131479         * config/config.guess (main): Don't use `head -1'; it's no longer
131480         portable. Use `sed 1q' instead.
131482 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131484         * m4/codeset.m4: Upgrade to gettext-0.11.
131485         * m4/gettext.m4: Upgrade to gettext-0.11.
131486         * m4/glibc21.m4: Upgrade to gettext-0.11.
131487         * m4/iconv.m4: Upgrade to gettext-0.11.
131488         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131489         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131490         * m4/lib-ld.m4: New file, from gettext-0.11.
131491         * m4/lib-link.m4: New file, from gettext-0.11.
131492         * m4/lib-prefix.m4: New file, from gettext-0.11.
131493         * m4/progtest.m4: Upgrade to gettext-0.11.
131495 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131497         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131498         (jm_PREREQ): Use it.
131500 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131502         * lib/posixver.c, lib/posixver.h: New files.
131503         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131505 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131506             Bruno Haible  <bruno@clisp.org>
131508         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131509         (fwrite_success_callback): New declaration.
131510         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131511         print_unicode_char. Call failure callback instead of error.
131512         (fwrite_success_callback): New function.
131513         (exit_failure_callback): New function.
131514         (fallback_failure_callback): New function.
131515         (print_unicode_char): Call unicode_to_mb.
131517 2002-01-26  Jim Meyering  <meyering@lucent.com>
131519         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131520         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131522 2002-01-26  Jim Meyering  <meyering@lucent.com>
131524         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131526 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131528         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131530 2002-01-22  Jim Meyering  <meyering@lucent.com>
131532         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131533         Otherwise, some versions of automake would omit the rule that makes
131534         Makefile from Makefile.in.
131536 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131538         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131539         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131540         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131541         (memcoll): Set errno to zero if there is no error.
131543         * lib/quotearg.c (quotearg_buffer_restyled):
131544         Fix bug with quoting buffers containing NUL when backslashing escapes.
131545         This bug was exposed by the other changes in this patch.
131546         (quotearg_n_options): New arg ARGSIZE.
131547         All callers changed.
131548         (quoting_options_from_style): New function.
131549         (quotearg_n_style): Use it.
131550         (quotearg_n_style_mem): New function.
131552         * lib/quotearg.h (quotearg_n_style_mem): New function.
131554 2002-01-19  Jim Meyering  <meyering@lucent.com>
131556         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131557         Remove useless quotes: DF_PROG="df".
131558         * m4/strnlen.m4: New file.
131560 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131562         * lib/backupfile.c (ISDIGIT): Comment fix.
131563         * lib/getdate.y (ISDIGIT): Likewise.
131564         * lib/posixtm.c (ISDIGIT, year): Likewise.
131565         * lib/strverscmp.c (ISDIGIT): Likewise.
131566         * lib/userspec.c (ISDIGIT): Likewise.
131568 2002-01-16  Jim Meyering  <meyering@lucent.com>
131570         * lib/getdate.y: Add three semicolons, each just before a closing
131571         brace. Bison (as of version 1.31) no longer papers over that mistake.
131573 2002-01-05  Jim Meyering  <meyering@lucent.com>
131575         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131577 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131579         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131580         not silently exit merely because the output buffer happens to
131581         have nothing pending.
131583 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131585         See the big note in ../ChangeLog.
131586         * lib/human.c (suffixes): Prefer K to k for 1024.
131587         (generate_suffix_backwards): New function.
131588         (human_readable_inexact): Use it.
131589         * lib/xstrtol.c (__xstrtol): If there is no number but there
131590         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131591         Accept 'K' as well as 'k'.
131593 2001-12-15  Jim Meyering  <meyering@lucent.com>
131595         * lib/regex.h (__restrict_arr): Update from libc.
131597         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131598         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131599         (STREQ): Define.
131601 2001-12-14  Jim Meyering  <meyering@lucent.com>
131603         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131604         Suggestion from Bruno Haible.
131606 2001-12-10  Jim Meyering  <meyering@lucent.com>
131608         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131609         xrealloc, Instead, include "xalloc.h".
131610         (initbuffer): Don't cast xmalloc return value to char*.
131611         (readline): Reword comment.
131612         Don't cast xrealloc return value to char*
131613         Return NULL, not 0.
131615 2001-12-09  Jim Meyering  <meyering@lucent.com>
131617         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131618         about `signed and unsigned type in conditional expression'.
131619         * lib/posixtm.c (posix_time_parse): Likewise.
131621         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131623         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131624         to avoid a pedantic warning.
131626         * lib/getstr.c: Don't include assert.h.
131627         (getstr): Remove warning-evoking assertions.
131628         Return -1 if offset parameter is out of bounds.
131629         Change the type of a local from int to size_t.
131631         * lib/strftime.c (my_strftime_localtime_r): Include this function
131632         definition in the `#if ! HAVE_TM_GMTOFF' block.
131634         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131635         Include xalloc.h instead.
131637 2001-12-02  Jim Meyering  <meyering@lucent.com>
131639         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131640         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131641         included.
131643         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131644         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131646 2001-11-30  Akim Demaille  <akim@epita.fr>
131648         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131649         before being defined.
131651 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131653         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131654         First arg is int, not unsigned.
131655         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131656         (SIZE_MAX, UINT_MAX): New macros.
131657         (quotearg_n_options): Abort if N is negative.
131658         Avoid overflow check on hosts where size_t is 64 bits and int
131659         is 32 bits, as overflow is impossible there.
131660         Fix off-by-one typo that caused unnecessary reallocation.
131662 2001-11-27  Jim Meyering  <meyering@lucent.com>
131664         * lib/tempname.c: Merge with version from libc.
131665         * lib/regex.c: Likewise.
131667         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131668         systems for which STDC_HEADERS is 0, it was not included, resulting in
131669         a warning about an integer-to-pointer conversion problem with getenv.
131670         Reported by Volker Borchert.
131672 2001-11-26  Jim Meyering  <meyering@lucent.com>
131674         * lib/gtod.h: Remove file.
131675         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131676         * lib/gettimeofday.c: Don't include gtod.h.
131677         (GTOD_init): Remove function.
131678         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131679         Suggestion from Volker Borchert.
131681 2001-11-23  Jim Meyering  <meyering@lucent.com>
131683         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131684         it.
131685         * lib/hash.c (struct hash_table): Define it here instead.
131687 2001-11-22  Jim Meyering  <meyering@lucent.com>
131689         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131691 2001-11-20  Jim Meyering  <meyering@lucent.com>
131693         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131694         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131696 2001-11-19  Jim Meyering  <meyering@lucent.com>
131698         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131699         directory.  Use "conftestXXXXXX" as the template.
131700         Suggestion from Paul Eggert.
131702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131703         immediately, so the test doesn't mistakenly hit the max-open-files
131704         limit.
131706 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131708         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131709         (TEMPORARIES): New macro.
131710         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131711         removes an artificial limitation (e.g. HP-UX 10.20, where
131712         TMP_MAX is 17576).
131714 2001-11-18  Jim Meyering  <meyering@lucent.com>
131716         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131718 2001-11-18  Jim Meyering  <meyering@lucent.com>
131720         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131721         on SunOS 4.
131723         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131724         files will be created before anything else.
131726 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131728         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131729         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131731 2001-11-17  Jim Meyering  <meyering@lucent.com>
131733         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131734         Prompted by a report from Bob Proulx.
131736         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131737         Instead, require UTILS_FUNC_MKSTEMP.
131739 2001-11-17  Jim Meyering  <meyering@lucent.com>
131741         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131742         Now, that's done as part of AC_FUNC_STRTOD.
131744 2001-11-17  Jim Meyering  <meyering@lucent.com>
131746         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131747         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131748         rather than group writable.  Patch by Juan F. Codagnone.
131750         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131751         xrealloc, Instead, include "xalloc.h".
131753         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131754         Remove explicit declarations of xmalloc, xrealloc,
131755         and xstrdup.  Instead, include "xalloc.h".
131757         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131758         unlocked-io.h.
131759         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131760         Likewise.
131761         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131763         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131764         Reported by Padraig Brady.
131766         * lib/mkstemp.c: #undef mkstemp.
131767         Include config.h.
131768         (rpl_mkstemp): Rename from mkstemp.
131769         Protoize.
131771 2001-11-16  Jim Meyering  <meyering@lucent.com>
131773         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131774         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131775         determine the amount of total physical memory, use pstat_getstatic.
131776         HPUX-11 doesn't define _SC_PHYS_PAGES.
131777         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131778         If sysconf couldn't be used to determine the amount of available
131779         physical memory, use both pstat_getstatic and pstat_getdynamic.
131780         Based on a patch from Bob Proulx.
131782 2001-11-10  Jim Meyering  <meyering@lucent.com>
131784         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131785         (jm_PREREQ): Use it.
131787 2001-11-09  Jim Meyering  <meyering@lucent.com>
131789         * m4/jm-macros.m4: Require autoconf-2.52f.
131790         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131791         Use these AC_-prefixed names, not the AM_-prefixed ones.
131793         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131795 2001-11-05  Jim Meyering  <meyering@lucent.com>
131797         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131799 2001-11-04  Jim Meyering  <meyering@lucent.com>
131801         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131802         $DEFS.
131804 2001-11-03  Jim Meyering  <meyering@lucent.com>
131806         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131807         of AC_DEFUN.
131809         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131810         know the name of the variable in the macro definition.
131812 2001-11-03  Jim Meyering  <meyering@lucent.com>
131814         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131815         in argmatch_to_argument call.
131817         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131818         argument.
131820         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131821         e.g., a fault due to an attempt to free a NULL pointer.
131823 2001-11-01  Jim Meyering  <meyering@lucent.com>
131825         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131826         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131828 2001-11-01  Jim Meyering  <meyering@lucent.com>
131830         * lib/dirfd.c, lib/dirfd.h: New files.
131831         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131833         * lib/hash.c (hash_print) [TESTING]: Clean up.
131835 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131837         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131838         to avoid a warning if -Wall.
131840 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131842         * README: New file
131843         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131844         (per RMS's instructions, this is now the canonical source)
131845         * lgpl/, gpl/: New directories.
131847 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131849         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131851 2001-10-21  Jim Meyering  <meyering@lucent.com>
131853         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131854         this code would end up calling gettext even in packages built
131855         with --disable-nls.
131856         * lib/getopt.c (_): Likewise.
131857         * lib/regex.c (_): Likewise.
131859 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131861         * m4/error.m4 (jm_PREREQ_ERROR):
131862         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131863         AC_FUNC_STRERROR_R does that.
131864         Check for strerror declaration.
131866         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131867         are supposed to have them these days.
131868         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131869         Merge changes from latest Autoconf CVS.
131870         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131871         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131872         POSIX decided to standardize on the int flavor of strerror_r.
131874 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131876         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131877         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131878         Use strerror_r that is only a macro, even if it is not a function.
131879         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131880         (private_strerror): Use prototypes, not old-style function definition.
131881         (print_errno_message): New function.
131882         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131883         char*-flavored one.
131884         (error_tail, error, error_at_line): Use it.
131886 2001-10-11  Jim Meyering  <meyering@lucent.com>
131888         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131889         and quote_n (1, ... to avoid clobbering a buffer.
131891 2001-10-05  Jim Meyering  <meyering@lucent.com>
131893         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131894         hash-pjw.h.
131895         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131896         * lib/hash-pjw.h: New file.
131898 2001-09-30  Jim Meyering  <meyering@lucent.com>
131900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131901         `struct fsstat' has the `f_fstypename' member.
131902         Use that to define FS_TYPE, which is now used to make
131903         the getfsstat link test tighter.
131905 2001-09-30  Jim Meyering  <meyering@lucent.com>
131907         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131908         Include <sys/ucred.h>, for Apple Darwin.
131909         Include sys/mount.h and sys/fs_types.h only if available.
131910         (FS_TYPE): Define.
131911         (read_filesystem_list): Use FS_TYPE.
131913 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131915         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131916         a boolean context.
131918 2001-09-29  Jim Meyering  <meyering@lucent.com>
131920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131921         [one-argument getmntent function]): Include stdio.h before mntent.h.
131922         SunOS 4.1.x needs it for the declaration of `FILE'.
131923         Patch by Volker Borchert.
131925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131926         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131927         sys/fs_types.h, and make the link-test for getfsstat guard #include
131928         directives with appropriate #if HAVE_*_H tests so that we can
131929         detect getfsstat on Apple Darwin1.3.7 systems.
131930         Reported by Nelson Beebe.
131931         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131933 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131935         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131936         #defines strtoimax.  Also treat the other strto* functions
131937         like strtoimax.
131939         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131940         Check for strtoul and strtoumax,
131941         as those declarations are made even in the signed case.
131942         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131943         Likewise, for strtol and strtoimax.
131945 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131947         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131948         #defines strtoimax.  Also treat the other strto* functions
131949         like strtoimax.
131951         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131952         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131953         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131955 2001-09-26  Jim Meyering  <meyering@lucent.com>
131957         Most macros in unlocked-io.h had the wrong number of arguments.
131958         * lib/gen-uio: New script.
131959         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131960         * lib/unlocked-io.hin: Remove file.
131961         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131962         rather than trying to embed it here.
131963         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131964         Reported by Padraig Brady.
131966 2001-09-25  Volker Borchert  <bt@teknon.de>
131968         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131969         `result'.
131971 2001-09-24  Jim Meyering  <meyering@lucent.com>
131973         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131975 2001-09-23  Jim Meyering  <meyering@lucent.com>
131977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131978         instead of the mere test for existence of mntent.h.  The latter
131979         would get a false-positive on AIX 3.4 systems.
131980         In the outer getmntent if-block, don't die if neither of the getmntent
131981         tests succeeds.  Instead, just fall through and continue with the
131982         remaining tests.
131984 2001-09-23  Jim Meyering  <meyering@lucent.com>
131986         * lib/mountlist.c: Remove useless parentheses in #if directives.
131987         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131988         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131990 2001-09-22  Jim Meyering  <meyering@lucent.com>
131992         * m4/gettext.m4: New file.  From gettext.
131993         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131994         * m4/progtest.m4: Likewise
131995         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131996         * m4/glibc21.m4: Likewise.
131998         * m4/libintl.m4: Remove.  No longer used.
132000 2001-09-22  Jim Meyering  <meyering@lucent.com>
132002         * lib/localcharset.c: Update from latest gettext.
132003         * lib/config.charset: Likewise.
132005 2001-09-20  Jim Meyering  <meyering@lucent.com>
132007         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
132008         strtoimax.
132009         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
132010         strtoumax.
132012 2001-09-20  Jim Meyering  <meyering@lucent.com>
132014         * lib/xstrtol.c (strtoimax): Guard declaration with
132015         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
132016         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
132017         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
132018         (strtoumax): Likewise, for completeness (it wasn't necessary).
132020 2001-09-17  Paul Eggert  <eggert@twinsun.com>
132022         * lib/strtoimax.c (HAVE_LONG_LONG):
132023         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
132024         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
132025         to work around bug in IBM C compiler.
132027 2001-09-17  Jim Meyering  <meyering@lucent.com>
132029         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
132030         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
132031         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
132032         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
132033         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
132034         whenever the right hand side need not be expanded by the shell.
132036 2001-09-16  Paul Eggert  <eggert@twinsun.com>
132038         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
132039         library.  It's not correct, as some older glibcs are buggy.
132040         fnmatch wasn't fixed until glibc 2.2.
132042         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
132043         special shell magic here.
132045 2001-09-16  Jim Meyering  <meyering@lucent.com>
132047         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
132048         * m4/jm-macros.m4: Require it.
132050 2001-09-16  Jim Meyering  <meyering@lucent.com>
132052         * lib/mkdir.c: New file.
132054 2001-09-15  Jim Meyering  <meyering@lucent.com>
132056         * m4/jm-macros.m4: Check for help2man.
132058 2001-09-11  Jim Meyering  <meyering@lucent.com>
132060         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
132061         The body, by Paul Eggert, was moved here from configure.in.
132062         * m4/jm-macros.m4: Require UTILS_HOST_OS.
132064 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132066         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
132067         (jm_PREREQ): Use it.
132069 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132071         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
132072         Use ssize_t, not int, to store result of readlink.
132073         Check for ssize_t overflow as well as size_t overflow,
132074         as POSIX says the result of readlink is implementation-defined
132075         when ssize_t overflows.
132076         Remove unnecessary cast to char*.
132077         Use free+malloc instead of realloc, as the storage doesn't need
132078         to be preserved and it's clearer and can be more efficient that way.
132079         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
132080         * lib/xreadlink.h (xreadlink): Update prototype.
132082 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132084         * lib/xgetcwd.c: Revert some of the previous change; intead,
132085         fix the HAVE_GETCWD_NULL code to behave more like the
132086         !HAVE_GETCWD_NULL code used to.
132088         Include "xalloc.h".
132089         (xgetcwd): Do not return NULL when memory is exhausted; instead,
132090         invoke xalloc_die.
132092 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132094         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
132095         sys/param.h, as pathmax.h includes them.
132097 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132099         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
132100         (jm_PREREQ_XGETCWD): New macro.
132102         * m4/getcwd.m4: New file.
132104 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132106         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
132107         like the HAVE_GETCWD_NULL code.
132108         Include pathmax.h if not HAVE_GETCWD.
132109         Do not include xalloc.h.
132110         (INITIAL_BUFFER_SIZE): New symbol.
132111         Do not use xmalloc / xrealloc, since the caller is responsible for
132112         handling errors.  Preserve errno around `free' during failure.
132113         Do not overrun buffer when using getwd.
132115 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132117         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
132118         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
132119         getcwd (NULL, 0).
132121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132123         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
132124         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
132125         spotted by Jim Meyering.
132127 2001-09-03  Jim Meyering  <meyering@lucent.com>
132129         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
132130         failure.
132132 2001-09-02  Jim Meyering  <meyering@lucent.com>
132134         * lib/error.c: Update from GNU libc.
132136 2001-09-01  Jim Meyering  <meyering@lucent.com>
132138         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
132139         Used by df.
132141 2001-09-01  Jim Meyering  <meyering@lucent.com>
132143         * lib/xreadlink.c: New file.
132144         * lib/xreadlink.h: New file.
132145         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
132146         xreadlink.h.
132148         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
132149         doesn't conflict with sparc Solaris 7's definition in
132150         /usr/include/sys/int_types.h.
132152         * lib/exclude.c: Use `""', not `<>' to #include non-system header
132153         files.
132154         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
132155         and strncasecmp as r-values.  Unixware didn't have declarations.
132157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132159         * lib/xstrtol.h: Add copyright notice.
132160         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
132161         LONGINT_INVALID_SUFFIX_CHAR.
132163 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132165         * lib/xstrtol.c (strtoimax): New decl.
132167 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132169         * lib/xgetcwd.c: Don't include pathmax.h.
132170         Include stdlib.h and unistd.h if available.
132171         Include xalloc.h.
132172         (xmalloc, xstrdup, free): Remove decls.
132173         (xgetcwd): Don't assume sizes fit in unsigned.
132174         Check for overflow when computing sizes.
132175         Simplify reallocation code.
132177 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132179         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
132180         a directory's st_size can have an arbitrary value, so the old
132181         usage could waste an arbitrary amount of memory.  All uses
132182         changed.
132183         * lib/savedir.h: Update prototype.
132185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132187         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
132189         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
132190         old strtoimax.c.
132192         Also, make the following further changes to make this file's
132193         configuration more similar to that of strtol.c:
132194         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
132195         (strtoumax, uintmax_t, strtoull, strtol): Remove.
132196         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
132197         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
132198         changed to signed values.
132200         And make the following changes as well:
132201         Fix copyright notice, as 1999 was missing.
132202         (verify): New macro.
132203         (strtoimax): Check sizes at compile-time, not run-time.
132204         Prefer strtol to strtoll if both work.
132205         (main): Remove; it was not that useful and was a pain to maintain.
132207         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
132209 2001-08-31  Jim Meyering  <meyering@lucent.com>
132211         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
132212         Use an initial, malloc'd, buffer of length 128 rather than
132213         a statically allocated one of length 1024.
132215 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132217         Simplify code, partly by assuming autoconf 2.52 semantics.
132219         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
132221         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
132222         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
132223         All uses removed.
132224         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
132225         Move AC_REQUIRE to next-to-top level, to avoid confusion.
132226         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
132227         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
132228         jm_AC_HEADER_INTTYPES_H.
132229         * m4/jm-macros.m4 (jm_MACROS): Likewise.
132231         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
132233         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132234         Quote first arg of AC_DEFUN.
132235         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
132236         since they are needed to parse the include file even if we need
132237         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
132238         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
132239         but with opposite signedness.
132241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132243         Merge 'exclude' changes from tar 1.13.22.
132244         This fixes one or two unlikely storage allocation overflow bugs,
132245         but doesn't change user-visible behavior otherwise.
132247 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132249         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
132250         (jm_PREREQ_EXCLUDE): New macro.
132252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132254         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
132255         tm to be declared.
132257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132259         * lib/hash.c: Remove '2001' from copyright notice.
132261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132263         * lib/full-write.h: New file.
132264         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
132265         * lib/full-write.c: Correct credits, as cccp.c no longer
132266         exists and anyway it was so heavily changed from the old cccp
132267         code as to be unrecognizable.  Include full-write.h.
132268         (full_write): Return size_t, with short writes meaning failure.
132269         All callers changed.  This fixes a bug with large buffers
132270         on 64-bit hosts.
132271         * lib/utime.c: Include full-write.h.
132273 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132275         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
132276         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
132277         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
132278         Include if available.
132279         (<xalloc.h>): Include
132280         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
132281         (verify): New macro.  Use it to verify that EXCLUDE macros do not
132282         collide with FNM macros.
132283         (struct patopts): New struct.
132284         (struct exclude): Use it, as exclude patterns now come with options.
132285         (new_exclude): Support above changes.
132286         (new_exclude, add_exclude_file):
132287         Initial size must now be a power of two to simplify overflow checking.
132288         (free_exclude, fnmatch_no_wildcards): New function.
132289         (excluded_filename): No longer requires options arg, as the options
132290         are determined by add_exclude.  Now returns bool, not int.
132291         (excluded_filename, add_exclude):
132292         Add support for the fancy new exclusion options.
132293         (add_exclude, add_exclude_file): Now takes int options arg.
132294         Check for arithmetic overflow when computing sizes.
132295         (add_exclude_file): xrealloc might modify errno, so don't
132296         realloc until after errno might be used.
132298         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
132299         New macros.
132300         (free_exclude): New decl.
132301         (add_exclude, add_exclude_file): Now takes int options arg.
132302         (excluded_filename): No longer requires options arg, as the options
132303         are determined by add_exclude.  Now returns bool, not int.
132305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132307         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
132309 2001-08-27  Jim Meyering  <meyering@lucent.com>
132311         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
132313         * lib/version-etc.c (N_): Remove definition.
132314         Revert most of last change.
132315         Instead, simply don't mark the `Copyright...' string for translation.
132316         Based on advice from Paul Eggert.
132318         * lib/strtoxmax.c: Tweak comment.
132320 2001-08-26  Jim Meyering  <meyering@lucent.com>
132322         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
132324         * m4/xstrtoimax.m4: New file.
132325         * m4/xstrtoumax.m4: Add comments explaining why we
132326         AC_REPLACE_FUNCS(strtol).
132328 2001-08-26  Jim Meyering  <meyering@lucent.com>
132330         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132331         of copyright with `%s' so translators don't get an untranslated
132332         message in 2002.
132333         (COPYRIGHT_YEAR): Define.
132334         (version_etc): Use fprintf rather than fputs.
132335         Suggestion from Ulrich Drepper.
132337         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132339         * lib/strtoll.c: New file, from GNU libc.
132340         * lib/xstrtoimax.c: New file.
132342         * lib/xstrtol.h: Add xstrtoimax.
132343         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132344         * lib/strtoimax.c: New file.  Likewise, but first define
132345         STRTOUXMAX_SIGNED.
132347         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132348         ...
132349         * lib/strtoxmax.c: ... then renamed to this.
132351 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132353         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132354         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132355         (jm_AC_TYPE_INTMAX_T): New macro.
132356         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132358         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132360         * m4/longlong.m4: Renamed from ulonglong.m4.
132361         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132362         * m4/uintmax_t.m4: Removed.
132364 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132366         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132367         Port to Solaris 8, where 'sed' requires a space after the 'r'
132368         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132369         Redirect output to $tmp just once.
132371 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132373         * lib/addext.c (<errno.h>): Include.
132374         (errno): Declare if not defined.
132375         (addext): Work correctly when pathconf returns -1 and leaves
132376         errno alone because there is no limit.  Also, work even if
132377         pathconf returns a value greater than SIZE_MAX.
132379 2001-08-12  Jim Meyering  <meyering@lucent.com>
132381         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132382         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132383         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132384         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132385         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132386         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132387         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132388         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132389         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132390         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132391         utime.m4, utimes.m4, xstrtoumax.m4:
132392         Quote the first argument in each use of AC_DEFUN.
132394 2001-08-12  Jim Meyering  <meyering@lucent.com>
132396         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132397         Simply `return getcwd (NULL, 0);'.
132398         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132399         Use 1300 as initial value for length, not PATH_MAX.
132401         * lib/pathmax.h: Clean up cpp syntax.
132403 2001-08-12  Jim Meyering  <meyering@lucent.com>
132405         * lib/gettimeofday.c: New file.
132406         * lib/gtod.h: New file.
132407         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132409 2001-08-05  Jim Meyering  <meyering@lucent.com>
132411         * m4/jm-macros.m4: Require autoconf-2.52.
132413 2001-08-04  Jim Meyering  <meyering@lucent.com>
132415         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132416         stmt, to get in sync with glibc.
132418 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132420         The following changes are from gettext 0.10.39 as maintained by
132421         Bruno Haible.
132423         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132424         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132425         with inverted sense.  All uses changed.
132427         * lib/mbswidth.c: Don't include <limits.h>.
132428         Include <stdlib.h> and <string.h> unconditionally.
132429         (iswcntrl, mbsinit, ISCNTRL): New macros.
132430         (mbsnwidth): Use K&R style function declarations.
132431         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132432         can optimize it when MB_CUR_MAX == 1.
132433         The width of control characters is zero, not 1.
132435 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132437         The following changes are from gettext 0.10.39 as maintained by
132438         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132440         * m4/codeset.m4: Upgrade to serial AM1.
132441         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132442         all uses changed.  Quote first arg of AC_DEFUN.
132443         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132445         * m4/iconv.m4: Upgrade to serial AM2.
132446         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132447         Add --with-libconv-prefix.
132448         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132449         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132450         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132451         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132452         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132454         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132455         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132456         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132457         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132458         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132459         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132460         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132461         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132462         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132464         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132465         string.h any more.
132467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132468         not the default value.
132470         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132471         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132472         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132473         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132474         Also check for iswcntrl, used for wcwidth fallback.
132475         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132476         to Autoconf 2.13.
132478 2001-08-03  Jim Meyering  <meyering@lucent.com>
132480         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132481         as it was in the original.  Reported by Paul Eggert.
132483 2001-07-16  Jim Meyering  <meyering@lucent.com>
132485         * m4/gettimeofday.m4: New file.
132486         Prompted by a report from Bernhard Baehr.
132488 2001-07-15  Jim Meyering  <meyering@lucent.com>
132490         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132491         stuff. Now it's in ../Makefile.cfg.
132493 2001-07-15  Jim Meyering  <meyering@lucent.com>
132495         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132496         (BUILT_SOURCES): Add unlocked-io.h.
132497         (io_functions): Define.
132498         (unlocked-io.h): New rule.
132499         (DISTCLEANFILES): Add unlocked-io.h.
132500         (all-local): Depend on unlocked-io.h, to ensure it is created.
132502         * lib/unlocked-io.hin: New file
132504         * lib/regex.c: Update from glibc.
132506 2001-07-05  Jim Meyering  <meyering@lucent.com>
132508         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132509         recommendation.
132510         (libfetish_a_SOURCES): Put all .h files here instead.
132511         Remove a thus-exposed (better checks in automake) duplicate and
132512         two unnecessary .h files.
132514 2001-07-04  Jim Meyering  <meyering@lucent.com>
132516         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132517         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132518         distcheck failure.
132520 2001-07-02  Jim Meyering  <meyering@lucent.com>
132522         The following changes were prompted by suggestions from Bruno Haible.
132524         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132525         is now generated.
132526         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132527         definition of EXTRA_DIST.
132528         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132529         ensure that the generated file is created/updated whenever the list
132530         of $(unlocked_functions) is changed.
132531         (jm-glibc-io.m4): New rule.
132532         (unlocked-io.h): New rule -- currently unused.
132534 2001-06-24  Jim Meyering  <meyering@lucent.com>
132536         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132537         unmatched right bracket, rather than kludging it with an extra,
132538         falsely-matching quote in a comment.  Patch by Akim Demaille.
132540 2001-06-11  Jim Meyering  <meyering@lucent.com>
132542         * lib/regex.c: Update from GNU libc.
132544 2001-05-27  Jim Meyering  <meyering@lucent.com>
132546         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132547         Check for ut_type in struct utmp.
132549 2001-05-27  Jim Meyering  <meyering@lucent.com>
132551         * lib/readutmp.h (UT_TYPE): Define.
132553 2001-05-24  Jim Meyering  <meyering@lucent.com>
132555         * lib/argmatch.c: Include "quote.h".
132556         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132557         quote function.  Reported by Göran Uddeborg.
132559 2001-05-22  Jim Meyering  <meyering@lucent.com>
132561         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132562         now that we use the package-supplied version unconditionally.
132563         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132565 2001-05-21  Jim Meyering  <meyering@lucent.com>
132567         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132568         shell syntax errors.
132570 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132572         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132574 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132576         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132577         Don't bother to check library strftime, since
132578         we'll be using our own my_strftime function anyway.
132579         Define my_strftime instead of strftime.
132581 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132583         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132584         which is not yet declared.
132586 2001-05-15  Jim Meyering  <meyering@lucent.com>
132588         * m4/regex.m4: Use proper quoting so brackets appear in the test
132589         program.
132590         Reported by, and with help from, Bruno Haible.
132592 2001-05-13  Jim Meyering  <meyering@lucent.com>
132594         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132595         undefined.
132597 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132599         dirname code cleanup.  base_name now behaves more compatibly
132600         with POSIX basename when given file names that have trailing
132601         slashes, and similarly for dir_name.  Add new primitives
132602         base_len and dir_len.  Put the directory-name-related decls
132603         into dirname.h.
132605         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132606         * lib/backupfile.c (base_name): Likewise.
132607         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132608         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132609         * lib/makepath.c (strip_trailing_slashes): Likewise.
132610         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132611         ISSLASH): Likewise.
132612         * lib/rename.c (strip_trailing_slashes): Likewise.
132613         * lib/same.c (base_name): Likewise.
132614         * lib/stripslash.c (ISSLASH): Likewise.
132616         * lib/addext.c: Include <dirname.h> after size_t is defined.
132617         * lib/backupfile.c: Likewise.
132619         * lib/addext.c (addext): Use base_len to trim redundant
132620         trailing slashes instead of doing it ourselves.
132621         But do not trim the last slash if it is not redundant.
132623         * lib/backupfile.c (find_backup_file_name,
132624         max_backup_version): Use base_len instead of rolling it ourselves.
132625         Handle the case of "" and (on DOS) "C:" correctly.
132627         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132628         needed. Include <string.h>, <dirname.h>.
132629         (base_name): Allow file names ending in slashes, other than names
132630         that are all slashes.  In this case, return the basename followed
132631         by the slashes.  This is more general, and can be used in places
132632         where the original base_name purposely had an assertion failure.
132633         (base_len): New function.
132635         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132636         Do not include <assert.h>; no longer needed.
132637         Include xalloc.h.
132638         (memrchr): Remove decl.
132639         (dir_name_r): Remove.
132640         (dir_len): Renamed from dirlen.  All callers changed.
132641         Rewrite in terms of base_name, for simplicity and consistency.
132642         (dir_name): Never return NULL.  All callers changed.
132643         Do not include <stdlib.h> in test program; no longer needed.
132644         return 0; is fine for test program.
132646         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132647         New macros.
132648         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132650         * lib/path-concat.c (path_concat): Use base_len to compute
132651         base length, not strlen; this means we cannot rely on memcpy
132652         to null-terminate.
132654         * lib/same.c (STREQ): Remove.
132655         (same_name): Handle the case where the basename ends in trailing '/'.
132657         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132658         a slash was stripped.  Do not strip the last slash after a
132659         file system prefix.
132661 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132663         * lib/Makefile.am (libfetish_a_SOURCES):
132664         Add strftime.c, since we now compile it on all hosts.
132666         * lib/strftime.c (my_strftime):
132667         Define to nstrftime if emacs, but only if my_strftime is not defined.
132668         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132669         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132670         Add one more extra argument: a nanoseconds value.
132671         All uses changed.
132672         (ns): New macro.
132673         (my_strftime function): Add %N format.
132674         (emacs_strftimeu): Renamed from emacs_strftime,
132675         with extra ut argument.
132677 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132679         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132681 2001-04-21  Jim Meyering  <meyering@lucent.com>
132683         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132684         doesn't interfere.
132686 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132688         * m4/ftruncate.m4: Check for chsize.
132689         Link with ftruncate.o unconditionally if ftruncate is missing.
132690         This was required when cross-compiling to i586-mingw32msvc.
132692 2001-04-08  Jim Meyering  <meyering@lucent.com>
132694         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132695         recomputed; that's necessary when the offset spans a DST transition.
132696         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132698 2001-04-02  Jim Meyering  <meyering@lucent.com>
132700         * lib/regex.h, regex.c: Update from GNU libc.
132702 2001-03-24  Jim Meyering  <meyering@lucent.com>
132704         * m4/jm-macros.m4: Require autoconf-2.49d.
132706 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132708         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132710 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132712         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132714 2001-03-17  Jim Meyering  <meyering@lucent.com>
132716         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132717         now that the version in autoconf is equivalent.
132718         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132720         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132721         Suggestion from Akim Demaille.
132723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132724         (jm_PREREQ_TEMPNAME): New function.
132726 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132728         * lib/tempname.c (uint64_t): Define to uintmax_t if
132729         not defined, and if UINT64_MAX is not defined.
132730         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132731         Reported by John David Anglin.
132733 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132735         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132736         resolve alias if codeset is empty.
132737         * lib/config.charset (BeOS): Use wildcard syntax.
132739 2001-03-13  Jim Meyering  <meyering@lucent.com>
132741         * lib/path-concat.c (path_concat)
132742         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132743         concatenating e.g., `C:' and `foo'.
132744         From Bruno Haible.
132746 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132748         * lib/localcharset.c (locale_charset): Don't use
132749         setlocale(LC_CTYPE,NULL). Don't return NULL.
132750         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132752 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132754         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132755         support for DOS/DJGPP.
132757 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132759         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132760         lacks mkstemp.  Compile our own tempname.c if we compile our own
132761         mkstemp.c, as mkstemp relies on tempname.
132763 2001-03-01  Jim Meyering  <meyering@lucent.com>
132765         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132766         AH_VERBATIM really does output its argument verbatim.
132768 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132770         * lib/Makefile.am (libfetish_a_SOURCES):
132771         Add dup-safer.c, fopen-safer.c.
132772         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132774         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132775         * lib/unistd-safer.h: New files.
132777 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132779         The mkstemp replacement is taken from glibc 2.2.2, with some
132780         portability fixes for use outside glibc, as follows:
132782         * lib/tempname.c (struct_stat64): New macro.
132783         (direxists, __gen_tempname): Use it.
132784         This avoids a portability problem with Solaris 8.
132786         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132787         (<stddef.h>, <stdint.h>, <string.h>):
132788         Include only if STDC_HEADERS || _LIBC.
132789         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132790         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132791         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132792         (__set_errno): Define this macro if <errno.h> doesn't.
132793         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132794         Define these macros if <stdio.h> doesn't.
132795         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132796         Define these macros if <sys/stat.h>
132797         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132798         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132799         __xstat64): Define if not _LIBC.
132800         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132801         (__gen_tempname): Invoke gettimeofday only if
132802         HAVE_GETTIMEOFDAY || _LIBC;
132803         otherwise, fall back on plain "time".
132804         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132806         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132808         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132810 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132812         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132814 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132816         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132817         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132818         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132819         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132821 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132823         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132824         Remove workaround macros for hosts that have mbrtowc but not
132825         mbstate_t, as we now insist on proper declarations for both
132826         before using mbrtowc.
132828 2001-02-17  Jim Meyering  <meyering@lucent.com>
132830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132831         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132832         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132833         UnixWare 7.1.1.
132835         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132836         rather than AC_CACHE_VAL.
132838 2001-02-17  Jim Meyering  <meyering@lucent.com>
132840         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132841         around included file name.
132843         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132845         * lib/strftime.c: Update from GNU libc (the only changes were to
132846         comments).
132848 2001-02-17  Jim Meyering  <meyering@lucent.com>
132850         * lib/regex.c: Update from libc.
132852 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132854         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132855         clash.
132857 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132859         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132860         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132861         Reported by Mark Hounschell via Paul Eggert.
132863 2001-02-07  Jim Meyering  <meyering@lucent.com>
132865         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132867 2001-02-05  Jim Meyering  <meyering@lucent.com>
132869         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132870         it includes the patch required for `large file' support with at least
132871         HP-UX's 10.20 /bin/cc.
132873 2001-02-03  Jim Meyering  <meyering@lucent.com>
132875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132876         AS_IF, now that it works once again (mysteriously).
132877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132879 2001-01-30  Jim Meyering  <meyering@lucent.com>
132881         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132882         * m4/chown.m4: Rename conftestchown to conftest.chown.
132883         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132884         s/conftestdir2/conftest.d2/.
132885         * m4/utimes.m4: s/conftestdata/conftest.data/
132886         Inspired by Pavel Roskin's change in autoconf.
132888 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132890         * lib/config.charset: Update for FreeBSD 4.2.
132892 2001-01-27  Jim Meyering  <meyering@lucent.com>
132894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132895         a use of AS_IF.
132896         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132898 2001-01-26  Jim Meyering  <meyering@lucent.com>
132900         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132901         quotearg.c includes it.
132903 2001-01-26  Jim Meyering  <meyering@lucent.com>
132905         * lib/quotearg.c: Include stddef.h.
132906         * lib/quote.c: Include stddef.h.
132907         Reported by Axel Kittenberger.
132909         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132910         line in double quotes so that it evokes a better diagnostic.
132911         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132912         Reported by Axel Kittenberger.
132914 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132916         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132917         as if it was a `charset'.
132919 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132921         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132922         has const.
132924 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132926         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132927         to avoid a warning.  Add back 'const' to inptr.
132929 2001-01-20  Jim Meyering  <meyering@lucent.com>
132931         Be sure that headers are checked before used in code compiled
132932         for the type checks.
132933         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132934         In place of that, invoke jm_CHECK_ALL_TYPES.
132935         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132936         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132937         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132938         The check for ssize_t was mistakenly run before the test for unistd.h.
132940         The configure-time check for stdbool.h was missing.
132941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132942         (jm_PREREQ_HASH): New function.
132944 2001-01-17  Jim Meyering  <meyering@lucent.com>
132946         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132947         for autoconf-2.49c.
132948         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132950 2001-01-16  Jim Meyering  <meyering@lucent.com>
132952         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132953         From Bruno Haible.
132955 2001-01-14  Jim Meyering  <meyering@lucent.com>
132957         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132958         foo and bar.  Create conftestdir/ in the script, not in the C code.
132959         Remove directories in the script, not in the C code.
132960         Remove conftestdir{,2} before trying to create the directory.
132961         Make the entire configure script fail if the mkdir fails.
132963 2001-01-14  Jim Meyering  <meyering@lucent.com>
132965         * lib/rename.c: New file.  From Volker Borchert.
132966         Include stdlib.h, string.h or strings.h, and xalloc.h.
132967         Use strip_trailing_slashes rather than open-coding it.
132969 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132971         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132973 2001-01-03  Jim Meyering  <meyering@lucent.com>
132975         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132976         of local `inptr' to avoid warning with some system declarations of
132977         iconv.
132979 2001-01-02  Volker Borchert  <bt@teknon.de>
132981         * m4/rename.m4: New file.
132982         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132984 2001-01-01  Jim Meyering  <meyering@lucent.com>
132986         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132987         even on systems with utmpx.h.  It's necessary for the declaration of
132988         utmp's ut_user member.  Reported by Andreas Jaeger.
132990         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132991         available. They are required for the declarations of getgrgid and
132992         getpwuid resp.
132993         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132994         Reported by Andreas Jaeger.
132996 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132998         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132999         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
133000         so `make install' also works in VPATH builds.
133002 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
133004         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
133005         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
133006         can be used in subdirectories.
133008 2000-12-29  Paul Eggert  <eggert@twinsun.com>
133010         * lib/modechange.c: Do not assume that mode_t uses the
133011         traditional octal encoding.  E.g. "chmod 1 FOO" should set
133012         the other-execute bit of FOO even if S_IXOTH != 1.
133014         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
133015         WOTH, XOTH, ALLM): New macros.
133016         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
133017          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
133018         Use them.
133019         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
133020         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
133021         (mode_compile):
133022         No need to use uintmax_t; unsigned long is long enough.
133023         Don't bother to get suffix since we don't use it.
133025 2000-12-26  Jim Meyering  <meyering@lucent.com>
133027         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
133028         better with autoheader.
133030 2000-12-24  Jim Meyering  <meyering@lucent.com>
133032         * lib/hash.c (is_prime): Return explicit boolean values.
133033         (hash_get_first): Return NULL to appease Irix5.6's 89.
133034         Reported by Nelson Beebe.
133036 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
133038         * lib/localcharset.c (locale_charset): Add support for Win32.
133040 2000-12-18  Paul Eggert  <eggert@twinsun.com>
133042         * lib/physmem.h, lib/physmem.c: New files.
133044         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
133045         (noinst_HEADERS): Add physmem.h.
133047         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
133048         't' for compatibility with Solaris 8 sort.
133050 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
133052         * lib/config.charset: Add support for BeOS.
133054 2000-12-17  Jim Meyering  <meyering@lucent.com>
133056         * m4/dos.m4 (jm_AC_DOS): New file and macro.
133057         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
133059 2000-12-16  Jim Meyering  <meyering@lucent.com>
133061         This bug had a serious impact on chown: `chown N:M FILE' (for integer
133062         N and M) would have treated it like `chown N:N FILE'.
133064         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
133066 2000-12-16  Jim Meyering  <meyering@lucent.com>
133068         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
133069         SHELLS_FILE to a file name that's useful on djgpp systems.
133070         Include stdlib.h.
133071         (ADDITIONAL_DEFAULT_SHELLS): Define.
133072         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
133073         Based mostly on a patch from Prashant TR.
133075 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
133077         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
133078         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
133079         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
133081 2000-12-08  Andreas Schwab  <schwab@suse.de>
133083         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
133084         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
133086 2000-12-07  Jim Meyering  <meyering@lucent.com>
133088         * lib/stripslash.c (ISSLASH): Define.
133089         (strip_trailing_slashes): Use ISSLASH rather than comparing against
133090         `/'.
133091         From Prashant TR.
133093         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
133094         (dir_name_r): Declare this function as static.
133095         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
133096         manifest itself on a name containing a mix of slashes and
133097         backslashes.
133098         Make this function work with names starting with a DOS-style
133099         drive letter and colon prefix.
133100         (dir_name): Append `.' if necessary.
133101         Based mostly on patches from Prashant TR and Eli Zaretskii.
133103         * lib/dirname.h (dir_name_r): Remove prototype.
133105 2000-12-06  Paul Eggert  <eggert@twinsun.com>
133107         * m4/off_t-format.m4: Remove this file.
133108         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
133110 2000-12-06  Jim Meyering  <meyering@lucent.com>
133112         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
133113         replacement strtoull, we may well need the replacement strtoul, too.
133114         Check for declarations of strtoul and strtoull.
133115         Check for strtol.  Mainly as a cue to cause automake to include
133116         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
133117         Check for limits.h -- strtol.c needs it.
133119 2000-12-05  Jim Meyering  <meyering@lucent.com>
133121         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
133123 2000-12-04  Jim Meyering  <meyering@lucent.com>
133125         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
133126         Also include memory.h, stdlib.h, unistd.h if appropriate.
133127         Reported by Andreas Jaeger (conflicting declaration of malloc).
133129 2000-12-02  Jim Meyering  <meyering@lucent.com>
133131         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
133132         * m4/jm-macros.m4 (jm_MACROS): require it.
133134 2000-12-02  Jim Meyering  <meyering@lucent.com>
133136         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
133138 2000-12-01  Paul Eggert  <eggert@twinsun.com>
133140         * lib/memrchr.c: Include <config.h> before any system include file.
133142 2000-11-30  Jim Meyering  <meyering@lucent.com>
133144         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
133146 2000-11-30  Jim Meyering  <meyering@lucent.com>
133148         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
133150 2000-11-29  Paul Eggert  <eggert@twinsun.com>
133152         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
133154 2000-11-26  Jim Meyering  <meyering@lucent.com>
133156         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
133158 2000-11-22  Paul Eggert  <eggert@twinsun.com>
133160         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
133161         size of (size_t) -1; it's not portable.
133163 2000-11-17  Jim Meyering  <meyering@lucent.com>
133165         * lib/strstr.c: Update from GNU libc.
133167 2000-11-17  Akim Demaille  <akim@epita.fr>
133169         * lib/obstack.h: Formatting changes.
133170         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
133171         prevent type checking.
133172         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
133173         cast the value to (void *): assigning a `foo *' to a `void *'
133174         variable is valid.
133175         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
133177 2000-11-16  Jim Meyering  <meyering@lucent.com>
133179         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
133181 2000-11-11  Jim Meyering  <meyering@lucent.com>
133183         * lib/error.c: Add a couple #includes, merging from GNU libc version.
133185 2000-11-10  Jim Meyering  <meyering@lucent.com>
133187         * lib/obstack.h: Update from GNU libc.
133188         * lib/obstack.c: Likewise.
133190 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
133192         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
133194 2000-11-06  Paul Eggert  <eggert@twinsun.com>
133196         * lib/getusershell.c (setusershell): Use rewind rather than
133197         fseek/fseeko, to avoid configuration hassles with fseeko.
133198         Don't bother opening SHELLS_FILE if shellstream is NULL;
133199         it's not necessary.
133201 2000-11-05  Jim Meyering  <meyering@lucent.com>
133203         * lib/makepath.h (make_dir): Declare.
133204         * lib/makepath.c (make_dir): Remove `static' attribute.
133205         Tweak a comment.
133207 2000-11-04  Jim Meyering  <meyering@lucent.com>
133209         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
133211 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
133213         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
133214         last one in a bucket, advance to the next bucket.
133216 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
133218         * lib/fnmatch.c: Do not comment out all the code if we are using
133219         the GNU C library, because in some cases we are replacing buggy
133220         code in the GNU C library itself.
133222 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
133224         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
133225         (regex_compile): Catch bogus \(\1\).
133227 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133229         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
133230         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
133231         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
133233 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133235         * lib/error.h, getline.h, modechange.h:
133236         Remove "2000" from Copyright line, as the file hasn't been
133237         changed this year other than in the copyright notice.
133239         * lib/xalloc.h: Add "2000" to Copyright line, as this file
133240         was changed this year.
133242 2000-10-29  Jim Meyering  <meyering@lucent.com>
133244         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
133245         renaming.
133246         * m4/ls-mntd-fs.m4: Likewise
133248 2000-10-29  Jim Meyering  <meyering@lucent.com>
133250         * lib/xstat.in: Fix grammar in comment.
133252 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
133254         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
133255         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
133256         doesn't define __restrict_arr.
133258 2000-10-28  Jim Meyering  <meyering@lucent.com>
133260         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
133261         (jm_PREREQ_MEMCHR): New function.
133263 2000-10-28  Jim Meyering  <meyering@lucent.com>
133265         * lib/memchr.c: Update from libc.
133266         Adjust for portability:
133267         [HAVE_STDLIB_H]: Include stdlib.h.
133268         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
133269         Undef __memchr, too.
133270         [!weak_alias]: Define __memchr to memchr.
133272         * lib/regex.c: Update from libc.
133273         * lib/regex.h: Likewise.
133274         * lib/getopt1.c: Likewise.
133275         * lib/memcmp.c: Likewise.
133277         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
133278         Avoid using fseek, when possible -- it's broken by design.
133279         Patch by Ulrich Drepper.
133281 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
133283         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
133284         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
133285         Giving in to popular pressure to shut up the compiler with casts.
133287 2000-10-26  Jim Meyering  <meyering@lucent.com>
133289         * lib/strftime.c: Update from libc.
133291 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
133293         * regex.c: More `unsigned char' -> `re_char' changes.
133294         Also change several `int' into `re_wchar_t'.
133295         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
133296         (PUSH_FAILURE_POINTER): Don't cast any more.
133297         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
133298         We want GCC to complain, since this piece of code makes
133299         re_match non-reentrant, which *should* be fixed.
133300         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
133301         (EXTEND_BUFFER): Use RETALLOC.
133302         (SET_LIST_BIT): Don't cast.
133303         (re_wchar_t): New type.
133304         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
133305         that those two functions will always properly return.
133306         (IMMEDIATE_QUIT_CHECK): Cast to void.
133307         (analyse_first): Use recursion rather than an explicit stack.
133308         (re_compile_fastmap): Can't fail anymore.
133309         (re_search_2): Don't check re_compile_fastmap for failure.
133310         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
133311         Now also sets the new value (passed in a new argument).
133312         (re_match_2_internal): Use it.
133313         Also, use a new var `reg' of type size_t when looping through regs
133314         rather than reuse the inappropriate `mcnt'.
133316 2000-10-25  Jim Meyering  <meyering@lucent.com>
133318         * lib/obstack.c: Update from libc.
133320 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
133322         * regex.c (regex_compile): Change the way of handling a range from
133323         a char less than 256 to a char not less than 256.
133325 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133327         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133328         NT-Emacs only.
133329         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133330         so that re_search functions only quit when callers expect them to.
133332 2000-10-23  Jim Meyering  <meyering@lucent.com>
133334         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133335         wrong.  That set_locale call must not have any side effects.
133336         From Paul Eggert.
133338 2000-10-22  Jim Meyering  <meyering@lucent.com>
133340         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133341         [CYCLIC]: Remove now-unused definition.
133343         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133344         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133345         Suggestion from Ulrich Drepper.
133347 2000-10-21  Jim Meyering  <meyering@lucent.com>
133349         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133350         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133351         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133353 2000-10-21  Jim Meyering  <meyering@lucent.com>
133355         * lib/dirname.c (memrchr): Declare if necessary.
133356         (dir_name): Remove the restriction that there be no
133357         trailing slashes.  Now, this code skips past them, effectively
133358         ignoring them.
133359         [TEST_DIRNAME] (main): New unit tests.
133361         * lib/memrchr.c: New file from GNU libc.
133362         Undef __memrchr, too.
133363         [!weak_alias]: Define __memrchr to memrchr.
133364         Guard weak_alias use with `#ifdef weak_alias'.
133366 2000-10-21  Jim Meyering  <meyering@lucent.com>
133368         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133369         (dir_name): Use dir_name_r.
133370         * lib/dirname.h (dir_name_r): Declare it.
133372 2000-10-17  Jim Meyering  <meyering@lucent.com>
133374         * lib/quote.h (PARAMS): Define and use.
133375         Reported by Akim Demaille.
133377         * lib/getopt.c: Update from libc.
133379 2000-10-16  Jim Meyering  <meyering@lucent.com>
133381         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133382         setlocale.
133383         From Jan Fedak.
133385 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133387         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133389 2000-09-25  Jim Meyering  <meyering@lucent.com>
133391         * lib/md5.h (rol): Define (from GnuPG).
133393         * lib/sha.c: Give credit (GnuPG) where due.
133394         (M): Use rol rather than open-coding it.
133395         Add a FIXME comment.
133397 2000-09-21  Jim Meyering  <meyering@lucent.com>
133399         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133400         Reported by Michael Stone.
133402 2000-09-20  Jim Meyering  <meyering@lucent.com>
133404         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133405         (noinst_HEADERS): Add sha.h.
133406         Based on code from Scott G. Miller and from GnuPG.
133408 2000-09-18  Jim Meyering  <meyering@lucent.com>
133410         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133411         LIBS. Otherwise, everyone ends up linking with -lelf for some
133412         configurations.
133413         Reported by Mike Stone.
133415 2000-09-15  Jim Meyering  <meyering@lucent.com>
133417         * lib/regex.c: Update from libc.
133419 2000-09-10  Jim Meyering  <meyering@lucent.com>
133421         * lib/getopt.c (_getopt_internal): Update from glibc.
133423 2000-09-09  Jim Meyering  <meyering@lucent.com>
133425         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133426         think it should be used as a general replacement for isascii.
133427         * lib/fnmatch.c: Likewise.
133428         * lib/mbswidth.c: Likewise
133429         * lib/regex.c: Likewise.
133431         Don't use atoi.
133432         * lib/userspec.c: Include sys/param.h and limits.h.
133433         Include xstrtol.h.
133434         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133435         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133436         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133437         UID, GID.  Check range.
133439 2000-09-06  Jim Meyering  <meyering@lucent.com>
133441         * lib/getopt.c (_getopt_internal): Update from glibc.
133443 2000-08-30  Jim Meyering  <meyering@lucent.com>
133445         * lib/strftime.c: Merge in changes from GNU libc.
133447 2000-08-26  Jim Meyering  <meyering@lucent.com>
133449         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133450         * m4/fpending.m4: New file.
133452 2000-08-26  Jim Meyering  <meyering@lucent.com>
133454         * lib/closeout.c: Include "__fpending.h".
133455         (close_stdout_status): Return right away if there's nothing to flush.
133457         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133458         * lib/__fpending.c: New file.
133459         * lib/__fpending.h: New file.
133461 2000-08-20  Jim Meyering  <meyering@lucent.com>
133463         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133464         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133465         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133467 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133469         Improve fileutils installation on systems where running
133470         programs (like install) can't be unlinked.
133471         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133472         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133474 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133476         Standardize on "memory exhausted" instead of "Memory exhausted"
133477         or "virtual memory exhausted".
133478         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133479         "virtual memory exhausted".
133480         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133481         our own message.
133482         * lib/userspec.c (parse_user_spec): Likewise.
133483         * lib/bumpalloc.h: comment fix
133484         * lib/same.c, userspec.c: Include xalloc.h.
133486         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133487         not char *const and pointing to a constant array.
133488         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133489         (xrealloc): Comment fix.
133491         * lib/userspec.c (parse_user_spec):
133492         Don't translate a message until just before returning,
133493         to avoid unnecessary translation.
133495 2000-08-07  Jim Meyering  <meyering@lucent.com>
133497         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133498         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133499         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133500         getgroups.c, gethostname.c, getopt.h, group-member.c,
133501         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133502         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133503         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133504         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133505         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133506         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133507         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133508         yesno.c: Back out Copyright date changes for each file with no change
133509         this year.  This eases coordination with other programs using the same
133510         source code modules.  From Paul Eggert.
133512 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133514         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133515         not char, for compatibility with glibc 2.1.3 strftime.c.
133517 2000-08-03  Greg McGary  <greg@mcgary.org>
133519         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133520         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133521         (EXTEND_BUFFER): Use them.
133523 2000-08-01  Jim Meyering  <meyering@lucent.com>
133525         * lib/dirname.c (ISSLASH): Define.
133526         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133527         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133528         both `\' and `/' may be use as path separators.
133529         Based on a patch from Prashant TR.
133531 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133533         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133534         slot vector a constant, since it might get modified.
133536 2000-07-31  Jim Meyering  <meyering@lucent.com>
133538         * lib/xmalloc.c: Use `virtual memory exhausted', not
133539         `Memory exhausted'.
133540         * lib/obstack.c (print_and_abort): Likewise.
133542 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133544         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133545         buffer, so that the caller can always quote one small
133546         component of a "memory exhausted" message in slot 0.
133547         From a suggestion by Jim Meyering.
133549 2000-07-30  Jim Meyering  <meyering@lucent.com>
133551         * lib/makepath.c (make_path): Quote the other instance, too.
133553         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133554         (STATIC_BUF_SIZE): Define.
133555         (quotearg_n_options): Use only statically allocated storage when
133556         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133557         than STATIC_BUF_SIZE.
133559 2000-07-29  Jim Meyering  <meyering@lucent.com>
133561         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133562         * lib/dirname.c (dir_name): Likewise.
133564         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133565         `/'.
133567         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133568         (dir_name): Assert that there are no trailing slashes.
133570 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133572         * lib/mbswidth.h (mbswidth): Add a flags argument.
133573         (mbswidth): New declaration.
133574         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133575         * lib/mbswidth.c (mbswidth): Add a flags argument.
133576         (mbsnwidth): New function.
133578 2000-07-24  Jim Meyering  <meyering@lucent.com>
133580         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133582 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133584         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133586 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133588         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133589         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133590         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133591         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133592         invoke multibyte primitives.
133594 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133596         * lib/quotearg.c:
133597         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133598         so that mbstate_t is always defined.
133600         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133601         be 1 in at least one GCC installation, and this configuration
133602         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133603         performance on hosts that have mbrtowc but have only unibyte
133604         locales, but I assume these hosts are rare.
133606 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133608         * lib/mbswidth.c (_XOPEN_SOURCE):
133609         Don't define; this causes problems on Solaris 7.
133610         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133612 2000-07-23  Jim Meyering  <meyering@lucent.com>
133614         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133615         too: getgrgid, getpwuid, getuid.
133617 2000-07-23  Jim Meyering  <meyering@lucent.com>
133619         * lib/basename.c (base_name): Add an assertion.
133621 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133623         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133624         shadow its mbsinit function.
133626 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133628         * lib/mbswidth.h: New file.
133629         * lib/mbswidth.c: New file.
133630         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133631         (noinst_HEADERS): Add mbswidth.h.
133633 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133635         * lib/config.charset: Add support for FreeBSD. Improve support for
133636         HP-UX and IRIX 6.
133638 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133640         * m4/mbswidth.m4: New file.
133641         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133643 2000-07-15  Jim Meyering  <meyering@lucent.com>
133645         * lib/makepath.c: Include quote.h.
133646         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133647         corresponding argument in a `quote (...)' call.
133648         Give better diagnostics.
133650         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133651         (noinst_HEADERS): Add quote.h.
133653         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133654         from tar's src/misc.c.
133655         * lib/quote.h: New file.  Prototypes for same.
133657 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133659         From a suggestion by Bruno Haible.
133660         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133661         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133662         to decide whether to define the BeOS workaround macro;
133663         this adjusts to the change to AC_MBSTATE_T.
133665 2000-07-14  Jim Meyering  <meyering@lucent.com>
133667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133668         jm_AC_TYPE_UINTMAX_T.
133670 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133672         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133674         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133675         quotearg_buffer_restyled): Add support for
133676         clocale_quoting_style.  Undo previous change to
133677         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133678         and "{RIGHT QUOTATION MARK}" msgids.
133680 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133682         From a suggestion by Bruno Haible.
133683         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133684         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133685         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133686         and mbstate_t, to a single-part test that simply defines mbstate_t.
133687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133688         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133690 2000-07-10  Jim Meyering  <meyering@lucent.com>
133692         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133694         * m4/gnu-source.m4: Output to confdefs.h directly.
133695         Suggestion from Akim Demaille.
133697 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133699         The old behavior of quoting `like this' doesn't look good with
133700         newer, ISO-style fonts.  See:
133701         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133703         Instead, quote "like this" by default.  Let the translator
133704         tailor the locale-specific quoting behavior by providing
133705         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133707         * lib/quotearg.c (N_): New macro.
133708         (gettext_default): New function.
133709         (quotearg_buffer_restyled): Use
133710         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133711         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133713 2000-07-09  Jim Meyering  <meyering@lucent.com>
133715         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133716         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133718         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133721 2000-07-09  Jim Meyering  <meyering@lucent.com>
133723         * lib/Most files: Update copyright dates to include 2000.
133725 2000-07-08  Jim Meyering  <meyering@lucent.com>
133727         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133728         if not defined.
133729         (xgethostname): Remove now-unnecessary #ifdef.
133730         Move declaration of `err' into loop where it's used.
133732 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133733         and Bruno Haible  <haible@clisp.cons.org>
133735         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133736         only if the test for an object-type mbstate_t fails.  This
133737         prevents us from mistakenly reporting that mbstate_t is a
133738         system object type after we "#define mbstate_t int" to work
133739         around its lack.
133741 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133742         and Bruno Haible  <haible@clisp.cons.org>
133744         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133746 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133748         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133749         to strerror_r.
133750         Include <ctype.h> for use of isalpha.
133752 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133754         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133755         by allocating a larger buffer. Test the gethostname return value for
133756         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133757         returns an error and ENAMETOOLONG isn't defined.
133759 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133761         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133762         dimension.
133764 2000-07-04  Jim Meyering  <meyering@lucent.com>
133766         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133767         of the deprecated AC_CHECKING.
133769 2000-07-04  Jim Meyering  <meyering@lucent.com>
133771         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133772         Reported by Bruno Haible.
133774 2000-07-04  Jim Meyering  <meyering@lucent.com>
133776         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133777         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133778         lacks mbrtowc.
133780 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133782         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133783         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133785 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133786         and Bruno Haible  <haible@clisp.cons.org>
133788         * lib/quotearg.c (mbrtowc):
133789         Assign to *pwc, and return 1 only if result is nonzero.
133790         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133792 2000-07-03  Jim Meyering  <meyering@lucent.com>
133794         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133796 2000-07-03  Jim Meyering  <meyering@lucent.com>
133798         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133799         This is necessary to get a definition of e.g., UTMP_FILE on
133800         HP-UX 10.20.
133801         From Bob Proulx.
133803 2000-07-02  Jim Meyering  <meyering@lucent.com>
133805         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133807         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133808         AC_LIBOBJ(function_name).
133809         * m4/chown.m4: Likewise.
133810         * m4/fnmatch.m4: Likewise.
133811         * m4/ftruncate.m4: Likewise.
133812         * m4/getgroups.m4: Likewise.
133813         * m4/getline.m4: Likewise.
133814         * m4/group-member.m4: Likewise.
133815         * m4/jm-macros.m4: Likewise.
133816         * m4/lstat.m4: Likewise.
133817         * m4/malloc.m4: Likewise.
133818         * m4/memcmp.m4: Likewise.
133819         * m4/nanosleep.m4: Likewise.
133820         * m4/putenv.m4: Likewise.
133821         * m4/realloc.m4: Likewise.
133822         * m4/regex.m4: Likewise.
133823         * m4/stat.m4: Likewise.
133824         * m4/strftime.m4: Likewise.
133826 2000-07-02  Jim Meyering  <meyering@lucent.com>
133828         * lib/quotearg.c (mbstate_t): Don't define here.
133830 2000-07-02  Jim Meyering  <meyering@lucent.com>
133832         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133834 2000-07-01  Jim Meyering  <meyering@lucent.com>
133836         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133838 2000-07-01  Jim Meyering  <meyering@lucent.com>
133840         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133841         problem.
133843 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133846         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133848 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133850         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133851         per change in ../m4/ls-mntd-fs.m4.
133852         (read_filesystem_list): Ignore symbolic links.
133854 2000-06-29  Jim Meyering  <meyering@lucent.com>
133856         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133857         for declaration of strcmp.
133859         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133861         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133862         Avoid warning by casting result to `char *' to remove `const'.
133864 2000-06-28  Jim Meyering  <meyering@lucent.com>
133866         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133867         included by quotearg.c, for which we perform this test.  From
133868         Bruno Haible.
133870 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133872         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133873         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133874         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133876 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133878         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133880 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133882         savedir now sets errno on failure and invokes xmalloc to get memory.
133883         Fix a couple of other minor bugs while we're at it.
133885         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133886         (NAMLEN): Remove macro.
133887         (malloc, realloc): Remove decls.
133888         (stpcpy): Likewise.
133889         ("xalloc.h"): Include.
133890         (NAME_SIZE_DEFAULT): New macro.
133891         (savedir): Use xmalloc / xrealloc to allocate memory.
133892         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133893         Skip "" directory entries.
133894         Use strlen to calculate directory entry length, since the old method
133895         is rarely used these days and isn't worth supporting.
133896         Don't use a pointer after freeing it.
133897         Check for integer overflow when calculating allocation size.
133898         Use memcpy to copy entries, instead of stpcpy.
133899         Set errno properly when returning NULL.
133900         Check for readdir error.
133902 2000-06-26  Jim Meyering  <meyering@lucent.com>
133904         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133906 2000-06-25  Jim Meyering  <meyering@lucent.com>
133908         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133909         Linux header bug when _XOPEN_SOURCE is defined to 500.
133911 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133913         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133914         deficiency.
133916 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133918         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133919         Include xalloc.h.
133920         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133922 2000-06-24  Jim Meyering  <meyering@lucent.com>
133924         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133925         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133926         for which strerror does return char*, but which lacks a conveniently
133927         accessible declaration of the function.  If the compile-test says
133928         strerror_r doesn't work, then resort to a `run'-test that works on
133929         BeOS and segfaults on DEC Unix.
133931 2000-06-24  Jim Meyering  <meyering@lucent.com>
133933         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133935 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133937         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133938         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133940 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133942         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133943         (mbrtowc, mbstate_t): Define substitutes if
133944         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133945         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133946         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133948 2000-06-23  Jim Meyering  <meyering@lucent.com>
133950         * m4/afs.m4: Add missing AC_MSG_RESULT.
133951         Reported by Bruno Haible.
133953         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133954         Suggestion from Bruno Haible.
133956 2000-06-23  Jim Meyering  <meyering@lucent.com>
133958         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133960 2000-06-21  Jim Meyering  <meyering@lucent.com>
133962         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133964 2000-06-21  Jim Meyering  <meyering@lucent.com>
133966         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133967         (noinst_HEADERS): Add getstr.h.
133969         * lib/getline.c (getstr): Move into a separate file.
133970         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133971         the following changes: new parameter, delim2; both delim[12]
133972         parameters have type `int', not `char'.  The latter would lose
133973         with 8-bit delimiters.
133974         * lib/getstr.h: New file.
133976 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133978         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133979         than 1024, return a memory chunk of least possible size, instead
133980         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133981         Use free/xmalloc instead of xrealloc to avoid copying for very long
133982         paths.
133984 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133986         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133987         the empty string.
133989 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133991         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133992         address, not strdup.  Include <stdlib.h> and don't declare free().
133994 2000-06-19  Jim Meyering  <meyering@lucent.com>
133996         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133998 2000-06-18  Jim Meyering  <meyering@lucent.com>
134000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
134002         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
134003         `checking whether...' message to be consistent with that of the
134004         lstat test.
134006 2000-06-18  Jim Meyering  <meyering@lucent.com>
134008         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
134009         Besides, these days every porting target provides a mkdir function.
134011         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
134012         needed. (this snippet comes from src/system.h).
134014 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
134016         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
134018 2000-06-15  Paul Eggert  <eggert@twinsun.com>
134020         * lib/human.c (adjust_value): New function.
134021         (human_readable_inexact): Apply rounding style even when
134022         printing approximate values.
134024 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134026         * lib/human.c (human_readable_inexact): Allow an input block
134027         size that is not a multiple of the output block size, and vice versa.
134028         Reported by Piergiorgio Sartor.
134030 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134032         * lib/getdate.y (get_date): Apply relative times after time
134033         zone indicator, not before.  Reported by Todd A. Jacobs.
134035 2000-06-13  Jim Meyering  <meyering@lucent.com>
134037         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
134039         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
134041 2000-06-12  Paul Eggert  <eggert@twinsun.com>
134043         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
134045 2000-06-12  Jim Meyering  <meyering@lucent.com>
134047         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
134048         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
134049         optional argument.
134050         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
134051         the optional argument, `lib'.
134053 2000-06-08  Jim Meyering  <meyering@lucent.com>
134055         * m4/largefile.m4: Remove file (now that it's part of autoconf).
134057 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134059         Rewrite largefile configuration so that we don't need to run
134060         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
134061         AC_CANONICAL_HOST in configure.in -- jmm]
134063         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
134064         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
134065         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
134066         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
134067         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
134068         All uses changed.
134069         Instead of inspecting the output of getconf, try to compile the
134070         test program without and with the macro definition.
134071         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
134072         for getconf.  Instead, check for the needed flags by compiling
134073         test programs.
134075 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134077         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
134079 2000-06-04  Jim Meyering  <meyering@lucent.com>
134081         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
134082         SunOS 4.1.4 for which gid_t is an unsigned type.
134084 2000-06-03  Jim Meyering  <meyering@lucent.com>
134086         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
134087         now that autoconf requires that.
134089         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
134090         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
134091         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
134093 2000-06-03  Jim Meyering  <meyering@lucent.com>
134095         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
134097 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134099         * m4/glibc21.m4: New file.
134100         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
134102 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134104         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
134105         newer, don't install charset.alias.
134106         * lib/config.charset: Change the Linux/glibc rules so they become empty
134107         on glibc-2.1 or newer.
134109 2000-06-02  Jim Meyering  <meyering@lucent.com>
134111         * lib/mountlist.c: Back out last change.  Instead, do this...
134112         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
134113         me_dummy member using the same `ignore'-testing code.
134114         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
134115         fs_type strings.
134116         From Mark D. Roth.
134118 2000-05-29  Jim Meyering  <meyering@lucent.com>
134120         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
134121         mounts with the `ignore' attribute.  Based on a patch from
134122         Mark D. Roth.
134124 2000-05-28  Jim Meyering  <meyering@lucent.com>
134126         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
134127         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134128         * m4/stat.m4: Likewise.
134129         * m4/lstat.m4: Likewise.
134130         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
134132         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
134133         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
134135 2000-05-26  Jim Meyering  <meyering@lucent.com>
134137         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
134139 2000-05-24  Jim Meyering  <meyering@lucent.com>
134141         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
134142         autoconf requires that.
134143         * m4/lib-check.m4: Likewise.
134144         * m4/jm-macros.m4: Likewise.
134145         * m4/strftime.m4: Likewise.
134147         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
134148         AC_CHECK_DECLS, now that autoconf requires that.
134150 2000-05-22  Jim Meyering  <meyering@lucent.com>
134152         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134153         * m4/lstat.m4: Likewise.
134155 2000-05-22  Jim Meyering  <meyering@lucent.com>
134157         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
134159 2000-05-20  Jim Meyering  <meyering@lucent.com>
134161         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
134162         (jm_PREREQ): Use it.
134164 2000-05-18  Jim Meyering  <meyering@lucent.com>
134166         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
134167         back, too, since it may have been modified by allocate_entry.
134168         (hash_delete): Rewrite to use neither the assignment operator
134169         nor the comma operator in an if-expression.
134171 2000-05-15  Paul Eggert  <eggert@twinsun.com>
134173         * lib/closeout.c:
134174         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
134175         Remove; no longer needed.
134176         "quotearg.h": Add include.
134177         (file_name): Do not bother to explicitly initialize to NULL; it's less
134178         efficient on some hosts.
134179         (close_stdout_status): Remove test as to whether stdout was already
134180         closed; it breaks for the case "echo x | sort >&-".
134181         Quote file name colons.
134182         Do not assume that _("write error") lacks format strings.
134184 2000-05-15  Jim Meyering  <meyering@lucent.com>
134186         * lib/version-etc.c (version_etc_copyright): Update the copyright
134187         string used in all --version output.
134189 2000-05-14  Jim Meyering  <meyering@lucent.com>
134191         * lib/closeout.c (close_stdout_set_file_name): New function.
134192         (close_stdout_status): Use new file-scoped global.
134193         Return right away if fstat says the stdout file descriptor is invalid.
134194         * lib/closeout.h (close_stdout_set_file_name): Declare.
134196 2000-05-10  Jim Meyering  <meyering@lucent.com>
134198         * lib/closeout.c [default_exit_status]: New file-scoped variable.
134199         (close_stdout_set_status): New function.
134200         * lib/closeout.h (close_stdout_set_status): Declare.
134202 2000-05-09  Jim Meyering  <meyering@lucent.com>
134204         * m4/gettext.m4: Rename this...
134205         * m4/libintl.m4: ...to this.
134207 2000-05-08  Jim Meyering  <meyering@lucent.com>
134209         * lib/long-options.c: Don't include closeout.h.
134210         (parse_long_options): Don't call close_stdout for --version.
134212 2000-05-06  Paul Eggert  <eggert@twinsun.com>
134214         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
134215         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
134216         2.1.3 bug.  This avoids a clash when files like regex.c define
134217         _GNU_SOURCE.
134219 2000-05-06  Jim Meyering  <meyering@lucent.com>
134221         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
134222         (AC_REPLACE_FUNCS): Add strnlen.
134224         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
134225         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
134227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
134228         AC_SEARCH_LIBS call for nanosleep.
134229         (LIB_NANOSLEEP): Set and AC_SUBST.
134231 2000-05-06  Jim Meyering  <meyering@lucent.com>
134233         * lib/strnlen.c: Undefine __strnlen and strnlen.
134234         [!weak_alias]: Define __strnlen to strnlen.
134236         * lib/atexit.c: New file, from libiberty.
134238 2000-05-06  Jim Meyering  <meyering@lucent.com>
134240         * lib/closeout.c (close_stdout_status): Also check for errors on the
134241         stderr stream.
134243 2000-05-05  Jim Meyering  <meyering@lucent.com>
134245         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
134246         AC_SEARCH_LIBS call for clock_gettime.
134247         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
134249         * m4/search-libs.m4: Update from autoconf.
134251         su doesn't work on Solaris 2.6.
134252         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
134253         <shadow.h>.  Reported by Dragos Harabor.
134255 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
134257         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
134258         memcpy instead of xmalloc, xrealloc, path_concat.
134259         (locale_charset): Treat empty environment variables as absent.
134260         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
134262 2000-05-04  Jim Meyering  <meyering@lucent.com>
134264         * lib/getopt.c: Update from glibc.
134265         * lib/obstack.c: Likewise.
134266         * lib/obstack.h: Likewise.
134267         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
134268         file
134270         * lib/regex.h: Likewise.
134271         * lib/strndup.c: Likewise.
134272         * lib/strnlen.c: New file, from glibc.
134274 2000-05-03  Jim Meyering  <meyering@lucent.com>
134276         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
134278 2000-05-02  Paul Eggert  <eggert@twinsun.com>
134280         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
134281         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
134282         compile-time test, rather than inspecting host and OS, to
134283         decide whether to define _LARGEFILE_SOURCE.
134285 2000-05-01  Jim Meyering  <meyering@lucent.com>
134287         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
134289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
134290         Based on a patch from Bruno Haible.
134292 2000-05-01  Jim Meyering  <meyering@lucent.com>
134294         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
134296 2000-04-29  Jim Meyering  <meyering@lucent.com>
134298         * lib/path-concat.c: Declare strdup only if it's not defined.
134299         * lib/canon-host.c: Likewise.
134301 2000-04-28  Jim Meyering  <meyering@lucent.com>
134303         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
134304         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
134305         is included first, then limits.h is included by locale.h by libintl.h.
134306         From John David Anglin.
134308 2000-04-25  Jim Meyering  <meyering@lucent.com>
134310         * lib/makepath.c (S_IRWXUGO): Define.
134311         (make_path): Always perform explicit chmod if MODE specifies any
134312         of the `special' permission bits.  Prompted by a bug report against
134313         install from Mate Wierdl and Joost van Baal.
134315 2000-04-18  Jim Meyering  <meyering@lucent.com>
134317         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
134318         (jm_PREREQ): Use it.
134320 2000-04-18  Jim Meyering  <meyering@lucent.com>
134322         * lib/README: New file.
134324         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
134325         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134327 2000-04-17  Jim Meyering  <meyering@lucent.com>
134329         Get it right :-)
134330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134331         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134332         Suggestion from Akim Demaille.
134334 2000-04-17  Jim Meyering  <meyering@lucent.com>
134336         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134337         the definition of it to rpl_strftime also defined-away the system's
134338         declaration.
134340 2000-04-15  Jim Meyering  <meyering@lucent.com>
134342         Use `C' to denote so-called `contiguous' files, the same way
134343         that tar does.
134344         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134345         (ftypelet): Use S_ISCTG.
134346         From Michael Deutschmann.
134348 2000-04-14  Jim Meyering  <meyering@lucent.com>
134350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134351         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134352         clobbered.
134354 2000-04-14  Jim Meyering  <meyering@lucent.com>
134356         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134358 2000-04-13  Jim Meyering  <meyering@lucent.com>
134360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134361         AH_VERBATIM to insert required #ifndef into config.h.in.
134362         Suggestion from Akim Demaille.
134364 2000-04-12  Jim Meyering  <meyering@lucent.com>
134366         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134367         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134368         Christian Krackowizer.
134370         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134371         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134372         (AC_SYS_LARGEFILE): Require.
134373         (AM_C_PROTOTYPES): Require.
134375 2000-04-08  Jim Meyering  <meyering@lucent.com>
134377         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134378         names don't conflict.  Reported by Eli Zaretskii.
134380 2000-04-07  Jim Meyering  <meyering@lucent.com>
134382         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134383         sys/types.h, to work around system header problems on AIX 3.2.5.
134384         From Bruno Haible.
134386 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134388         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134389         bug.  Deal with the different error behavior of Irix iconv.
134391 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134394         IRIX if the installer said otherwise.
134396 2000-04-05  Jim Meyering  <meyering@lucent.com>
134398         Portability tweaks required for ultrix4.3.
134399         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134400         (jm_CHECK_DECLS): Add getutent to the list of functions.
134401         (_jm_DECL_HEADERS): Add utmpx.h.
134402         From John David Anglin.
134404         * m4/strftime.m4: Back out the 2000-04-02 change.
134405         Instead of that change, simply undefine putenv in the test program.
134407 2000-04-05  Jim Meyering  <meyering@lucent.com>
134409         Portability tweaks required for ultrix4.3.
134410         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134411         getutent.
134412         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134413         * lib/canon-host.c: Declare strdup.
134414         * lib/path-concat.c: Likewise.
134415         From John David Anglin.
134417 2000-04-04  Jim Meyering  <meyering@lucent.com>
134419         Be more DOS 8.3-friendly.
134420         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134421         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134422         * lib/Makefile.am: Reflect renaming.
134423         Reported by Eli Zaretskii.
134425         Use a temporary file name that won't clash with `charset.alias'
134426         in the DOS 8.3 name space.
134427         * lib/Makefile.am (charset_tmp): Define.
134428         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134429         (uninstall-local): Likewise.
134430         Reported by Eli Zaretskii.
134432 2000-04-03  Jim Meyering  <meyering@lucent.com>
134434         * m4/gettext.m4: Fix typo in comment.
134436         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134437         textutils/configure.in).  Suggestion from Paul Eggert.
134438         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134440 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134442         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134443         variable in the shell rather than using putenv, which isn't
134444         portable.  This avoids the configure-time inter-test dependency
134445         on the potentially-renamed putenv function.
134447 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134449         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134450         before checking struct stat.st_blksize, so that
134451         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134453 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134455         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134456         since strftime.c uses HAVE_STRFTIME to decide whether to use
134457         the underlying strftime.
134459 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134461         * lib/time/strftime.c (my_strftime): Make sure we call the system
134462         strftime, not ourselves, when invoking the underlying strftime.
134464 2000-03-24  Jim Meyering  <meyering@lucent.com>
134466         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134467         (charset_alias): Define.
134468         (install-exec-local): Factor out common code.
134469         (uninstall-local): Split lines longer than 80.
134470         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134471         (SUFFIXES): Define.
134472         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134473         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134475 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134477         * lib/config.charset: Output a line containing "Packages using this
134478         file".
134479         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134480         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134481         ref-del.sed): New rules.
134483 2000-03-17  Jim Meyering  <meyering@lucent.com>
134485         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134486         Otherwise, include <strings.h>
134488 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134490         * lib/unicodeio.c (utf8_wctomb): New function.
134491         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134492         format instead of in UCS-4 with platform dependent endianness.
134494 2000-03-10  Jim Meyering  <meyering@lucent.com>
134496         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134497         From Marco Franzen.
134499 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134501         * lib/savedir.c (savedir): Work even if directory size is
134502         negative; this can happen with some screwy NFS configurations.
134504 2000-03-06  Jim Meyering  <meyering@lucent.com>
134506         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134507         if it's NULL (because we ran out of memory).  From Bruno Haible.
134509 2000-03-05  Jim Meyering  <meyering@lucent.com>
134511         * lib/localcharset.c ("path-concat.h"): Include.
134512         (get_charset_aliases): Use path_concat instead of ANSI string
134513         concatenation.
134515         * lib/unicodeio.h (PARAMS): Define.
134516         Use it to guard prototype.
134518 2000-03-04  Jim Meyering  <meyering@lucent.com>
134520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134521         for lib/localcharset.c.
134523 2000-03-04  Jim Meyering  <meyering@lucent.com>
134525         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134526         installing into it.
134527         (uninstall-local): Uncomment this rule so `make distcheck' works
134528         once again.
134530         * lib/unicodeio.c (<errno.h>): Include it.
134531         (errno): Declare if not defined.
134533         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134535         * lib/config.charset: New version, incorporating remarks from a linux
134536         i18n mailing list.  From Bruno Haible.
134538 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134540         * m4/codeset.m4: New file.
134541         * m4/iconv.m4: New file.
134542         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134544 2000-03-03  Jim Meyering  <meyering@lucent.com>
134546         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134548 2000-03-02  Jim Meyering  <meyering@lucent.com>
134550         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134551         the messages come out on separate lines.
134553         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134554         rather than jm_CHECK_DECLARATIONS.
134555         * m4/decl.m4: Remove now-unused file.
134557         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134558         geteuid.
134560 2000-03-02  Jim Meyering  <meyering@lucent.com>
134562         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134564 2000-03-01  Jim Meyering  <meyering@lucent.com>
134566         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134567         * lib/unicodeio.c: Likewise.
134569 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134571         * lib/config.charset: New file.
134572         * lib/localcharset.c: New file.
134573         * lib/unicodeio.h, lib/unicodeio.c: New files.
134574         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134575         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134576         (noinst_HEADERS): Add unicodeio.h.
134577         (all-local, install-exec-local, charset.alias): New targets.
134579 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134581         * lib/quotearg.c (ALERT_CHAR): New macro.
134582         (quotearg_buffer_restyled): Use it.
134584 2000-02-27  Jim Meyering  <meyering@lucent.com>
134586         * m4/check-decl.m4: Add getenv to the list.
134588 2000-02-27  Jim Meyering  <meyering@lucent.com>
134590         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134591         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134593         * lib/backupfile.c: Guard inclusion of stdlib.h with
134594         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134595         Declare malloc if needed.
134597         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134598         `#ifndef HAVE_DECL..'
134599         now that autoconf always defines the HAVE_DECL_ symbols.
134600         * lib/human.c: Likewise.
134601         * lib/same.c: Likewise.
134602         * lib/strtoumax.c: Likewise.
134604         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134605         declaration check was not run.
134606         * lib/hash.c: Likewise.
134607         * lib/human.c: Likewise.
134608         * lib/same.c: Likewise.
134609         * lib/strtoumax.c: Likewise.
134611         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134612         `.', then first look up the entire `.'-containing string as a login
134613         name.
134615 2000-02-23  Jim Meyering  <meyering@lucent.com>
134617         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134618         in place of my hack.
134620 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134622         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134623         (textint): New typedef.
134624         (parser_control): Member year changed from int to textint.
134625         All uses changed.
134626         (YYSTYPE): Removed; replaced by %union with int and textint members.
134627         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134628         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134629         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134630         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134631         (date, number, to_year): Use width of number in digits, not its value,
134632         to determine whether it's a 2-digit year, or a 2-digit time.
134633         (yylex): Store number of digits of numeric tokens.
134634         Reported by John Kendall.
134636         (parser_control): Changed from struct parser_control to typedef (for
134637         consistency).  All uses changed.
134639         (tID): Removed; not used.
134640         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134642 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134644         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134645         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134647 2000-02-12  Jim Meyering  <meyering@lucent.com>
134649         * lib/userspec.c (ISDIGIT): Define it.
134650         (isdigit): Remove definition.
134651         (is_number): Use ISDIGIT, not isdigit.
134652         <libintl.h>: Include.
134653         (_ and N_): Define.
134654         (parse_user_spec): Mark translatable strings.
134656 2000-02-10  Jim Meyering  <meyering@lucent.com>
134658         With these changes, nanosleep.[ch] are finally enough like the other
134659         lib/* replacement files to compile on a few more losing systems.
134661         * lib/nanosleep.h: Don't include config.h.
134662         Remove prototype from declaration of nanosleep.
134663         (PARAMS): Remove now-unneeded definition.
134664         * lib/nanosleep.c: #undef nanosleep.
134665         (rpl_nanosleep): Rename from nanosleep.
134667 2000-02-10  Jim Meyering  <meyering@lucent.com>
134669         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134670         gnu_nanosleep to rpl_nanosleep.
134672 2000-02-09  Jim Meyering  <meyering@lucent.com>
134674         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134675         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134677 2000-02-08  Akim Demaille  <akim@epita.fr>
134679         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134680         `[' and `]' and remove uses of `changequote'.
134681         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134682         (AC_SYS_LARGEFILE): Likewise.
134683         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134684         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134685         of changequote.
134686         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134687         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134688         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134689         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134691 2000-02-05  Jim Meyering  <meyering@lucent.com>
134693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134694         Remove explicit use of AC_HEADER_TIME.  It is required by
134695         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134696         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134697         in autoconf whereby the expansion of the latter ended up preceding
134698         the expansion of its prerequisite, AC_HEADER_TIME.
134699         Reported by Volker Borchert.
134701 2000-02-03  Jim Meyering  <meyering@lucent.com>
134703         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134705 2000-02-03  Jim Meyering  <meyering@lucent.com>
134707         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134708         rather than with `#if HAVE_UTMPNAME'.
134710 2000-02-02  Jim Meyering  <meyering@lucent.com>
134712         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134713         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134714         Reported by Eli Zaretskii.
134716 2000-02-01  Jim Meyering  <meyering@lucent.com>
134718         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134720 2000-01-31  Jim Meyering  <meyering@lucent.com>
134722         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134723         functions.  Add the time.h and sys/time.h headers along with the
134724         AC_REQUIRE'ment of AC_HEADER_TIME.
134726 2000-01-31  Jim Meyering  <meyering@lucent.com>
134728         * lib/nanosleep.h (nanosleep): Guard declaration with
134729         `#if ! HAVE_DECL_NANOSLEEP'.
134730         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134731         the declaration in that vendor's sys/timers.h.
134732         Reported by Christian Krackowizer.
134734         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134735         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134736         (ISPRINT): Likewise.
134737         Reported by Tom Tromey.
134739 2000-01-30  Jim Meyering  <meyering@lucent.com>
134741         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134743         * m4/prereq.m4 (utmp_includes): Define.
134744         Check for ut_user and ut_name members in both struct utmpx
134745         and struct utmp.
134747 2000-01-30  Jim Meyering  <meyering@lucent.com>
134749         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134750         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134751         header files where only utmpx.ut_user is declared.
134753         * lib/readutmp.h (UT_USER): Define.
134755 2000-01-29  Jim Meyering  <meyering@lucent.com>
134757         * m4/lib-check.m4: New file containing library-related checks from
134758         fileutils and sh-utils (textutils had none).
134760 2000-01-28  Jim Meyering  <meyering@lucent.com>
134762         * m4/perl.m4: Change format of warning message to look more like that
134763         from the missing script.  Suggestion from François Pinard.
134765 2000-01-25  Jim Meyering  <meyering@lucent.com>
134767         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134768         well as time.h in the compile check.
134769         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134770         Fix typo in cross-compiling case: s/yes/no/.
134772 2000-01-23  Jim Meyering  <meyering@lucent.com>
134774         * m4/jm-macros.m4: Move df-related tests here from
134775         fileutils/configure.in
134777         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134778         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134780         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134781         s/space/ac_fsusage_space/.
134782         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134784         * m4/ftruncate.m4: New file (derived from part of
134785         fileutils/configure.in).
134786         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134787         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134789         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134790         AC_SUBST these here, rather than just in sh-util/configure.in, so
134791         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134792         all the same.
134793         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134794         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134795         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134796         (AC_SUBST(POW_LIBM)): Likewise.
134797         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134799 2000-01-23  Jim Meyering  <meyering@lucent.com>
134801         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134802         obstack.c.
134804 2000-01-22  Jim Meyering  <meyering@lucent.com>
134806         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134810         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134811         configure.in
134812         (AC_CHECK_HEADERS): Likewise for sh-utils.
134813         (AC_CHECK_HEADERS): Likewise for textutils.
134814         Merge the three lists of headers.
134816         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134817         from fileutils' configure.in.
134819         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134820         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134821         check-decl.m4.
134823         * m4/check-decl.m4: Use #if rather than #ifdef.
134824         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134825         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134826         (_jm_DECL_HEADERS): Define new function.
134827         (jm_CHECK_DECLARATIONS): Require it.
134829 2000-01-22  Jim Meyering  <meyering@lucent.com>
134831         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134832         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134833         Required for some AIX systems.  Reported by Christian Krackowizer.
134834         [TESTING] (main): New function.
134836         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134837         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134838         letters.
134840         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134841         iswprint.
134843         * lib/strverscmp.c (ISDIGIT): Define.
134844         (strverscmp): Use ISDIGIT, not isdigit.
134846 2000-01-19  Jim Meyering  <meyering@lucent.com>
134848         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134849         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134850         defines `struct timespec' in <sys/time.h>
134852         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134853         Thanks to Akim for explaining.
134855 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134857         * lib/nanosleep.c (nanosleep):
134858         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134859         POSIX.1 doesn't require SA_INTERRUPT and some systems
134860         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134861         it's been part of POSIX.1 since day 1 (in 1988).
134863 2000-01-17  Jim Meyering  <meyering@lucent.com>
134865         * lib/interlock: Remove unused file.  Reported by François Pinard.
134867 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134869         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134870         alert, backslash, formfeed, and vertical tab unnecessarily in
134871         shell quoting style.
134873 2000-01-16  Jim Meyering  <meyering@lucent.com>
134875         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134876         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134877         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134878         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134880 2000-01-16  Jim Meyering  <meyering@lucent.com>
134882         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134883         because the latter didn't work.
134885 2000-01-15  Jim Meyering  <meyering@lucent.com>
134887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134888         (AC_REPLACE_FUNCS): Add memcpy and memset.
134889         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134890         Add strpbrk.
134891         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134893 2000-01-12  Jim Meyering  <meyering@lucent.com>
134895         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134896         (jm_PREREQ): Use it.
134897         (jm_PREREQ_READUTMP): New macro.
134898         (jm_PREREQ): Use it.
134900 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134902         Quote multibyte characters correctly.
134903         * m4/c-bs-a.m4: New file.
134904         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134905         (jm_PREREQ): Use it.
134907 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134909         * m4/uintmax_t.m4: Port to autoconf 2.13.
134911 2000-01-08  Jim Meyering  <meyering@ascend.com>
134913         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134914         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134916 2000-01-04  Jim Meyering  <meyering@ascend.com>
134918         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134919         jm_STRUCT_DIRENT_D_TYPE.
134920         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134921         jm_STRUCT_DIRENT_D_INO.
134922         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134923         jm_STRUCT_UTIMBUF.
134924         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134925         renamings.
134926         * m4/utime.m4: Likewise.
134928         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134929         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134931 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134934         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134936 2000-01-02  Jim Meyering  <meyering@ascend.com>
134938         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134939         remember if this is necessary.
134941 1999-12-26  Jim Meyering  <meyering@ascend.com>
134943         * m4/jm-macros.m4: Use it here.
134944         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134946 1999-12-23  Jim Meyering  <meyering@ascend.com>
134948         * m4/jm-macros.m4: Check for clock_gettime (moved from
134949         fileutils/configure.in)
134950         Check for gettimeofday.
134952 1999-12-20  Jim Meyering  <meyering@ascend.com>
134954         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134955         autoconf-2.14a-1999-12-20.
134957 1999-12-19  Jim Meyering  <meyering@ascend.com>
134959         * m4/lstat-slash.m4: New file.
134960         * m4/jm-macros.m4: Use the new macro:
134961         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134963 1999-12-07  Jim Meyering  <meyering@ascend.com>
134965         * m4/perl.m4: Require that File::Compare be available, too.
134966         Too many systems seem to lack it.
134968         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134969         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134971 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134973         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134974         problem with the QNX 4.25 shell, which doesn't propagate exit
134975         status of failed commands inside shell assignments.
134977 1999-11-17  Jim Meyering  <meyering@ascend.com>
134979         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134981 1999-11-07  Jim Meyering  <meyering@ascend.com>
134983         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134985 1999-11-06  Jim Meyering  <meyering@ascend.com>
134987         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134988         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134990 1999-11-05  Jim Meyering  <meyering@ascend.com>
134992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134993         configure.in of textutils, fileutils, and sh-utils into this one
134994         (shared between those packages) file.
134995         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134996         AC_STRUCT_ST_BLKSIZE.
134998 1999-11-03  Jim Meyering  <meyering@ascend.com>
135000         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
135001         of AC_CHECK_TYPE checks includes unistd.h.
135002         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
135003         Suggestion from Akim Demaille.
135005 1999-10-30  Jim Meyering  <meyering@ascend.com>
135007         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
135008         m4-quoted string.
135009         * m4/ls-mntd-fs.m4: Likewise.
135010         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
135011         * m4/jm-winsz1.m4: Likewise.
135013         * m4/const.m4: Remove file, since the fix made it into the experimental
135014         version of autoconf.
135015         * m4/mktime.m4: Likewise.
135017         * m4/check-type.m4: Remove file, now that the latest version of
135018         AC_CHECK_TYPE takes a third arg to specify additional #includes.
135020         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
135021         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
135022         AC_CHECK_TYPE.
135024 1999-10-04  Jim Meyering  <meyering@ascend.com>
135026         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
135028 1999-09-22  Paul Eggert  <eggert@twinsun.com>
135030         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
135031         2.95.1 bug with HP-UX 10.20.
135033 1999-09-17  Jim Meyering  <meyering@ascend.com>
135035         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
135036         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
135037         due to missing strdup (against sh-utils-2.0).
135039 1999-08-29  Jim Meyering  <meyering@ascend.com>
135041         * m4/jm-macros.m4: Require jm_BISON.
135042         * m4/bison.m4: New file.
135044 1999-08-17  Paul Eggert  <eggert@twinsun.com>
135046         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
135047         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
135049 1999-08-05  Jim Meyering  <meyering@ascend.com>
135051         * m4/getline.m4: Rename test file from conftestdata to conftest.data
135052         to avoid conflicts with `conftest' on 8+3 filesystems.
135053         Suggestion from Eli Zaretskii.
135055 1999-08-04  Jim Meyering  <meyering@ascend.com>
135057         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
135058         fileutils and sh-utils (textutils's getline test was inadequate).
135059         (AM_FUNC_GETLINE): Run this test.
135060         (AC_CHECK_FUNCS): Check for getdelim.
135061         Reported by Bob Proulx.
135063 1999-08-02  Jim Meyering  <meyering@ascend.com>
135065         * m4/jm-macros.m4: Add a comment.
135067 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135069         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
135070         <inttypes.h> defines strtoumax as a macro (and not as a
135071         function).
135073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135075         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
135076         that we can shift, multiply and divide unsigned long long
135077         values; Ultrix cc can't do it.
135079 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135081         * m4/mktime.m4: New file, which is a preview of what should appear
135082         in the next public autoconf release.
135084 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135086         * m4/lfs.m4: Remove this file.
135087         * m4/largefile.m4: New file.  It contains the old contents of
135088         lfs.m4, except that all names with prefix AC_LFS have been
135089         changed to use the prefix AC_SYS_LARGEFILE instead, to be
135090         compatible with future autoconf versions.  Also, some minor m4
135091         quoting problems have been fixed.
135093 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135095         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
135096         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
135097         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
135098         and simplify the shell code.
135100 1999-08-01  Jim Meyering  <meyering@ascend.com>
135102         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
135103         m4.
135105 1999-07-20  Jim Meyering  <meyering@ascend.com>
135107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
135109 1999-07-15  Jim Meyering  <meyering@ascend.com>
135111         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
135113 1999-05-22  Jim Meyering  <meyering@ascend.com>
135115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
135117 1999-05-20  Jim Meyering  <meyering@ascend.com>
135119         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
135120         Add a colon after each `then' in case $4 is empty.
135122 1999-05-16  Jim Meyering  <meyering@ascend.com>
135124         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
135126 1999-05-10  Jim Meyering  <meyering@ascend.com>
135128         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
135130         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
135131         AC_FUNC_MKTIME.
135133 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
135135         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
135137 1999-05-04  Paul Eggert  <eggert@twinsun.com>
135139         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
135140         not CPPFLAGS, so that linking works correctly in IRIX.
135142 1999-04-30  Paul Eggert  <eggert@twinsun.com>
135144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
135146 1999-04-20  Paul Eggert  <eggert@twinsun.com>
135148         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
135149         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
135150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
135151         jm_AC_TYPE_UNSIGNED_LONG_LONG.
135152         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
135154         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
135156 1999-04-20  Jim Meyering  <meyering@ascend.com>
135158         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
135159         AC_REPLACE xstroull if necessary.  From Paul Eggert.
135160         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
135162 1999-04-18  Jim Meyering  <meyering@ascend.com>
135164         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
135165         * m4/jm-macros.m4: Use it.
135167 1999-04-06  Jim Meyering  <meyering@ascend.com>
135169         * m4/strftime.m4: Remove test for %f.
135171 1999-03-29  Jim Meyering  <meyering@ascend.com>
135173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
135174         superset of the AC_TYPE_* checks in the textutils, fileutils,
135175         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
135176         AC_TYPE_PID_T.
135178 1999-03-28  Jim Meyering  <meyering@ascend.com>
135180         * m4/jm-macros.m4: Define GNU_PACKAGE here.
135181         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
135182         replaced e.g., in the *.sh files of the sh-utils.
135184 1999-03-20  Jim Meyering  <meyering@ascend.com>
135186         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
135187         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
135188         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
135190 1999-03-19  Jim Meyering  <meyering@ascend.com>
135192         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
135194 1999-03-12  Jim Meyering  <meyering@ascend.com>
135196         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
135198 1999-03-07  Jim Meyering  <meyering@ascend.com>
135200         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
135201         declared.
135203 1999-02-17  Jim Meyering  <meyering@ascend.com>
135205         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
135206         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
135208 1999-02-07  Jim Meyering  <meyering@ascend.com>
135210         * m4/group-member.m4: New file -- extracted from sh-utils'
135211         configure.in.
135213         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
135214         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
135216 1999-02-06  Jim Meyering  <meyering@ascend.com>
135218         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
135219         * m4/fnmatch.m4: Likewise.
135220         * m4/getgroups.m4: Likewise.
135221         * m4/lstat.m4: Likewise.
135222         * m4/malloc.m4: Likewise.
135223         * m4/putenv.m4: Likewise.
135224         * m4/realloc.m4: Likewise.
135225         * m4/regex.m4: Likewise.
135226         * m4/stat.m4: Likewise.
135227         * m4/strftime.m4: Likewise.
135228         Suggestion from Alain Magloire.
135230         * m4/chown.m4: Use `.$ac_objext', not `.o'.
135231         * m4/fnmatch.m4: Likewise.
135232         * m4/getgroups.m4: Likewise.
135233         * m4/getline.m4: Likewise.
135234         * m4/lstat.m4: Likewise.
135235         * m4/malloc.m4: Likewise.
135236         * m4/memcmp.m4: Likewise.
135237         * m4/putenv.m4: Likewise.
135238         * m4/realloc.m4: Likewise.
135239         * m4/regex.m4: Likewise.
135240         * m4/stat.m4: Likewise.
135241         * m4/strftime.m4: Likewise.
135242         Suggestion from Alain Magloire.
135244         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
135245         an argument.
135247         * m4/regex.m4: Add a run-time Test for proper operation of
135248         re_compile_pattern.
135250 1999-01-31  Jim Meyering  <meyering@ascend.com>
135252         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
135254 1999-01-30  Jim Meyering  <meyering@ascend.com>
135256         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
135258         * m4/jm-mktime.m4: Make this a wrapper around the official
135259         AM_FUNC_MKTIME rather than my private copy, now that the official one
135260         is up to date.
135261         * m4/mktime.m4: Remove file.
135263         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
135264         * m4/uptime.m4: Likewise.
135265         * m4/uintmax_t.m4: Likewise.
135267 1999-01-28  Jim Meyering  <meyering@ascend.com>
135269         * m4/jm-macros.m4: Use jm_AFS.
135270         * m4/afs.m4: New file (from fileutils' configure.in).
135272         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
135273         * m4/chown.m4: Likewise.
135274         * m4/d-ino.m4: Likewise.
135275         * m4/d-type.m4: Likewise.
135276         * m4/fnmatch.m4: Likewise.
135277         * m4/getgroups.m4: Likewise.
135278         * m4/gettext.m4: Likewise.
135279         * m4/jm-mktime.m4: Likewise.
135280         * m4/jm-winsz2.m4: Likewise.
135281         * m4/lcmessage.m4: Likewise.
135282         * m4/ls-mntd-fs.m4: Likewise.
135283         * m4/malloc.m4: Likewise.
135284         * m4/memcmp.m4: Likewise.
135285         * m4/putenv.m4: Likewise.
135286         * m4/realloc.m4: Likewise.
135287         * m4/st_mtim.m4: Likewise.
135288         * m4/strftime.m4: Likewise.
135290 1999-01-16  Jim Meyering  <meyering@ascend.com>
135292         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
135293         (ARGMATCH_DIE_DECL): Define.
135295 1999-01-12  Jim Meyering  <meyering@ascend.com>
135297         * m4/Makefile.am.in: Rewrite to avoid using fmt.
135298         Reported by Lars Hecking.
135300 1999-01-10  Jim Meyering  <meyering@ascend.com>
135302         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
135303         gross kludge.
135304         * m4/inttypes_h.m4: Likewise.
135305         * m4/lstat.m4: Likewise.
135306         * m4/malloc.m4: Likewise.
135307         * m4/readdir.m4: Likewise.
135308         * m4/realloc.m4: Likewise.
135309         * m4/st_dm_mode.m4: Likewise.
135310         * m4/stat.m4: Likewise.
135311         * m4/utimbuf.m4: Likewise.
135312         * m4/utimes.m4: Likewise.
135314         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
135315         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
135316         comments in config.h.in are meaningful.
135318         * m4/jm-macros.m4: Require autoconf-2.13 here.
135320         * m4/regex.m4: By default, don't use the included regex.c on systems
135321         with glibc 2.  Suggestion from Uli Drepper.
135323 1999-01-02  Jim Meyering  <meyering@ascend.com>
135325         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135327 1998-12-18  Jim Meyering  <meyering@ascend.com>
135329         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135330         Based on a suggestion from Lars Hecking.
135332 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135334         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135336 1998-11-16  Jim Meyering  <meyering@ascend.com>
135338         * m4/lfs.m4: Double-quote the `uname...` expression.
135340 1998-11-14  Jim Meyering  <meyering@ascend.com>
135342         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135343         * m4/stat.m4: Likewise.
135345 1998-11-03  Jim Meyering  <meyering@ascend.com>
135347         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135348         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135350 1998-10-18  Jim Meyering  <meyering@ascend.com>
135352         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135354 1998-10-17  Jim Meyering  <meyering@ascend.com>
135356         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135357         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135358         calls for those previously hard-coded headers.  Instead, take a new
135359         parameter.
135360         (jm_CHECK_DECLARATIONS): Reflect interface change.
135361         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135362         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135364         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135366 1998-10-14  Jim Meyering  <meyering@ascend.com>
135368         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135369         instead of "TZ=America/Vancouver".  From Paul Eggert.
135371 1998-10-11  Jim Meyering  <meyering@ascend.com>
135373         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135374         This adds a test for a recently added compatibility fix for mktime.c.
135375         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135377 1998-09-27  Jim Meyering  <meyering@ascend.com>
135379         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135381         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135382         ../configure.in, including a change from Gordon Matzigkeit to allow
135383         cross-compiling for the Hurd.
135385         * m4/glibc.m4: New file/macro to test for the GNU C Library
135386         versions 1 and 2.  From Gordon Matzigkeit.
135387         Indent.
135389 1998-09-21  Jim Meyering  <meyering@ascend.com>
135391         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135393 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135395         Port nanosecond-resolution times to UnixWare 2.1.2 and
135396         pedantic Solaris 2.6.
135398         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135399         AC_STRUCT_ST_MTIM.
135400         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135401         Generate name of ns member, instead of just 1 or undef.
135402         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135404 1998-08-15  Jim Meyering  <meyering@ascend.com>
135406         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135407         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135408         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135409         instead of jm_TYPE_SSIZE_T.
135411 1998-08-12  Jim Meyering  <meyering@ascend.com>
135413         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135415 1998-08-02  Jim Meyering  <meyering@ascend.com>
135417         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135418         in acconfig.h manually.
135420 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135422         * m4/st_mtim.m4: New file.
135424 1998-07-28  Jim Meyering  <meyering@ascend.com>
135426         * m4/utimes.m4: Undef stat.
135428 1998-07-25  Jim Meyering  <meyering@ascend.com>
135430         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135431         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135433 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135435         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135436         uid and gid actually remain unchanged.
135438 1998-07-07  Jim Meyering  <meyering@ascend.com>
135440         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135442 1998-07-04  Jim Meyering  <meyering@ascend.com>
135444         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135445         to prove that this macro can be used in packages without regex.c.
135447 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135449         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135450         is to be used.
135452 1998-07-03  Jim Meyering  <meyering@ascend.com>
135454         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135456         * m4/gettext.m4: New file -- from gettext-0.10.35.
135457         * m4/lcmessage.m4: Likewise.
135458         * m4/progtest.m4: Likewise.
135460         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135461         * m4/jm-macros.m4: Require the new macro.
135463 1998-06-29  Jim Meyering  <meyering@ascend.com>
135465         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135466         for the definition of NGROUPS (used in a system header included
135467         by sys/mount.h).
135469 1998-06-28  Jim Meyering  <meyering@ascend.com>
135471         * m4/ls-mntd-fs.m4: New file.
135472         * m4/fstypename.m4: New file.
135474         * m4/jm-macros.m4: Require the new macro.
135475         * m4/jm-glibc-io.m4: New file.
135477 1998-05-19  Jim Meyering  <meyering@ascend.com>
135479         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135480         * m4/lchown.m4: New file.
135482         * m4/Makefile.am.in: New file.
135483         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135485 1998-05-14  Jim Meyering  <meyering@ascend.com>
135487         * m4/Makefile.am (EXTRA_DIST): Add them.
135488         * m4/jm-macros.m4: New file.
135489         * m4/utimbuf.m4: New file.
135491 1998-05-12  Jim Meyering  <meyering@ascend.com>
135493         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135495 1998-05-11  Jim Meyering  <meyering@ascend.com>
135497         * m4/isc-posix.m4: New file.
135499 1998-05-10  Jim Meyering  <meyering@ascend.com>
135501         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135503 1998-05-09  Jim Meyering  <meyering@ascend.com>
135505         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135506         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135507         with automake.
135509         * m4/ssize_t.m4: New file.
135510         * m4/mktime.m4: Remove file -- the new automake has this now.
135512 1998-04-26  Jim Meyering  <meyering@ascend.com>
135514         * m4/assert.m4: New file.
135515         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135517 1998-04-05  Jim Meyering  <meyering@ascend.com>
135519         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135520         (jm_PREREQ): Use it here.
135522 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135524         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135525         in acconfig.h.
135527 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135529         * m4/prereq.m4: New file.
135530         * m4/error.m4: New file.
135531         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135533 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135535         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135536         cache-check for the same variable -- that defeated the purpose of
135537         the test; the test program was never run.  This was a problem only
135538         on systems with losing getline functions -- HP-UX 10.20 is one.
135539         Reported by Bjorn Helgaas.
135541 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135543         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135545 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135547         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135549         * m4/const.m4: New file.  Use an initializer in this declaration
135550         typedef int charset[2]; const charset x;
135551         Reported by Bob Glickstein.
135553 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135555         * m4/chown.m4: Fix reversed types on -1 args to chown.
135556         From Kaveh Ghazi.
135558 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135560         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135561         Add lseek and memchr.
135563         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135564         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135565         have a 20-character limit on names.
135567 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135569         * m4/inttypes_h.m4: New file.
135570         * m4/uintmax_t.m4: New file.
135571         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135574         -----
135576         Local Variables:
135577         coding: utf-8
135578         End:
135580         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135582         Copying and distribution of this file, with or without
135583         modification, are permitted provided the copyright notice
135584         and this notice are preserved.